@mtnmanager/sdk 1.5.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +8 -0
- package/dist/apis/MtnManagerApi.d.ts +85 -4
- package/dist/apis/MtnManagerApi.js +89 -1
- package/dist/esm/apis/MtnManagerApi.d.ts +85 -4
- package/dist/esm/apis/MtnManagerApi.js +89 -1
- package/dist/esm/models/Amenity.d.ts +15 -0
- package/dist/esm/models/Amenity.js +7 -0
- package/dist/esm/models/EntityImage.d.ts +39 -0
- package/dist/esm/models/EntityImage.js +47 -0
- package/dist/esm/models/FullReport.d.ts +5 -3
- package/dist/esm/models/FullReport.js +2 -2
- package/dist/esm/models/Lift.d.ts +8 -0
- package/dist/esm/models/Lift.js +3 -0
- package/dist/esm/models/MarkerIcon.d.ts +1 -0
- package/dist/esm/models/MarkerIcon.js +2 -1
- package/dist/esm/models/ParkingLot.d.ts +8 -0
- package/dist/esm/models/ParkingLot.js +3 -0
- package/dist/esm/models/Run.d.ts +8 -0
- package/dist/esm/models/Run.js +3 -0
- package/dist/esm/models/SummerTrail.d.ts +8 -0
- package/dist/esm/models/SummerTrail.js +3 -0
- package/dist/esm/models/TerrainPark.d.ts +8 -0
- package/dist/esm/models/TerrainPark.js +3 -0
- package/dist/esm/models/TerrainParkFeature.d.ts +8 -0
- package/dist/esm/models/TerrainParkFeature.js +3 -0
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/esm/models/TrailMapElementOneOf6.js +5 -8
- package/dist/esm/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/esm/models/TrailMapElementOneOf7.js +76 -0
- package/dist/esm/models/Weather.d.ts +18 -0
- package/dist/esm/models/Weather.js +6 -0
- package/dist/esm/models/Webcam.d.ts +88 -0
- package/dist/esm/models/Webcam.js +71 -0
- package/dist/esm/models/WebcamHistoryFrame.d.ts +44 -0
- package/dist/esm/models/WebcamHistoryFrame.js +51 -0
- package/dist/esm/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/esm/models/WebcamHistoryQuery.js +43 -0
- package/dist/esm/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/esm/models/WebcamHistoryResponse.js +48 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/Amenity.d.ts +15 -0
- package/dist/models/Amenity.js +7 -0
- package/dist/models/EntityImage.d.ts +39 -0
- package/dist/models/EntityImage.js +54 -0
- package/dist/models/FullReport.d.ts +5 -3
- package/dist/models/FullReport.js +2 -2
- package/dist/models/Lift.d.ts +8 -0
- package/dist/models/Lift.js +3 -0
- package/dist/models/MarkerIcon.d.ts +1 -0
- package/dist/models/MarkerIcon.js +2 -1
- package/dist/models/ParkingLot.d.ts +8 -0
- package/dist/models/ParkingLot.js +3 -0
- package/dist/models/Run.d.ts +8 -0
- package/dist/models/Run.js +3 -0
- package/dist/models/SummerTrail.d.ts +8 -0
- package/dist/models/SummerTrail.js +3 -0
- package/dist/models/TerrainPark.d.ts +8 -0
- package/dist/models/TerrainPark.js +3 -0
- package/dist/models/TerrainParkFeature.d.ts +8 -0
- package/dist/models/TerrainParkFeature.js +3 -0
- package/dist/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/models/TrailMapElementOneOf6.js +5 -8
- package/dist/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/models/TrailMapElementOneOf7.js +84 -0
- package/dist/models/Weather.d.ts +18 -0
- package/dist/models/Weather.js +6 -0
- package/dist/models/Webcam.d.ts +88 -0
- package/dist/models/Webcam.js +78 -0
- package/dist/models/WebcamHistoryFrame.d.ts +44 -0
- package/dist/models/WebcamHistoryFrame.js +58 -0
- package/dist/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/models/WebcamHistoryQuery.js +50 -0
- package/dist/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/models/WebcamHistoryResponse.js +55 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
|
@@ -88,11 +88,13 @@ export interface FullReport {
|
|
|
88
88
|
*/
|
|
89
89
|
hours: OperatingHours;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
91
|
+
* Weather entries: the resort-wide entry first (current + forecast), then
|
|
92
|
+
* any per-area current-conditions entries. Empty when weather is disabled
|
|
93
|
+
* or unavailable.
|
|
94
|
+
* @type {Array<Weather>}
|
|
93
95
|
* @memberof FullReport
|
|
94
96
|
*/
|
|
95
|
-
weather?: Weather
|
|
97
|
+
weather?: Array<Weather>;
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
* Check if a given object implements the FullReport interface.
|
|
@@ -69,7 +69,7 @@ function FullReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'parkingLots': (json['parking_lots'].map(ParkingLot_1.ParkingLotFromJSON)),
|
|
70
70
|
'summerTrails': (json['summer_trails'].map(SummerTrail_1.SummerTrailFromJSON)),
|
|
71
71
|
'hours': (0, OperatingHours_1.OperatingHoursFromJSON)(json['hours']),
|
|
72
|
-
'weather': json['weather'] == null ? undefined : (
|
|
72
|
+
'weather': json['weather'] == null ? undefined : (json['weather'].map(Weather_1.WeatherFromJSON)),
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
function FullReportToJSON(json) {
|
|
@@ -89,6 +89,6 @@ function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
89
|
'parking_lots': (value['parkingLots'].map(ParkingLot_1.ParkingLotToJSON)),
|
|
90
90
|
'summer_trails': (value['summerTrails'].map(SummerTrail_1.SummerTrailToJSON)),
|
|
91
91
|
'hours': (0, OperatingHours_1.OperatingHoursToJSON)(value['hours']),
|
|
92
|
-
'weather':
|
|
92
|
+
'weather': value['weather'] == null ? undefined : (value['weather'].map(Weather_1.WeatherToJSON)),
|
|
93
93
|
};
|
|
94
94
|
}
|
package/dist/models/Lift.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { LiftStatus } from './LiftStatus';
|
|
13
13
|
import type { LiftType } from './LiftType';
|
|
14
|
+
import type { EntityImage } from './EntityImage';
|
|
14
15
|
/**
|
|
15
16
|
* Represents a single lift at the resort with its current operational status,
|
|
16
17
|
* type, and optional wait time information.
|
|
@@ -146,6 +147,13 @@ export interface Lift {
|
|
|
146
147
|
* @memberof Lift
|
|
147
148
|
*/
|
|
148
149
|
updatedAt: Date;
|
|
150
|
+
/**
|
|
151
|
+
* Images attached to this lift, ordered for display. Each includes a
|
|
152
|
+
* ThumbHash for rendering a blurred placeholder while the image loads.
|
|
153
|
+
* @type {Array<EntityImage>}
|
|
154
|
+
* @memberof Lift
|
|
155
|
+
*/
|
|
156
|
+
images?: Array<EntityImage>;
|
|
149
157
|
}
|
|
150
158
|
/**
|
|
151
159
|
* Check if a given object implements the Lift interface.
|
package/dist/models/Lift.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.LiftToJSON = LiftToJSON;
|
|
|
20
20
|
exports.LiftToJSONTyped = LiftToJSONTyped;
|
|
21
21
|
const LiftStatus_1 = require("./LiftStatus");
|
|
22
22
|
const LiftType_1 = require("./LiftType");
|
|
23
|
+
const EntityImage_1 = require("./EntityImage");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the Lift interface.
|
|
25
26
|
*/
|
|
@@ -73,6 +74,7 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
74
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
74
75
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
75
76
|
'updatedAt': (new Date(json['updated_at'])),
|
|
77
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
80
|
function LiftToJSON(json) {
|
|
@@ -104,5 +106,6 @@ function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
104
106
|
'area_name': value['areaName'],
|
|
105
107
|
'area_display_order': value['areaDisplayOrder'],
|
|
106
108
|
'updated_at': value['updatedAt'].toISOString(),
|
|
109
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
107
110
|
};
|
|
108
111
|
}
|
|
@@ -36,6 +36,7 @@ export declare const MarkerIcon: {
|
|
|
36
36
|
readonly Retail: "retail";
|
|
37
37
|
readonly Atm: "atm";
|
|
38
38
|
readonly Star: "star";
|
|
39
|
+
readonly Webcam: "webcam";
|
|
39
40
|
};
|
|
40
41
|
export type MarkerIcon = typeof MarkerIcon[keyof typeof MarkerIcon];
|
|
41
42
|
export declare function instanceOfMarkerIcon(value: any): boolean;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ParkingLotStatus } from './ParkingLotStatus';
|
|
13
|
+
import type { EntityImage } from './EntityImage';
|
|
13
14
|
/**
|
|
14
15
|
* Represents a parking lot at the resort with its current status and amenities.
|
|
15
16
|
* @export
|
|
@@ -70,6 +71,13 @@ export interface ParkingLot {
|
|
|
70
71
|
* @memberof ParkingLot
|
|
71
72
|
*/
|
|
72
73
|
updatedAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
* Images attached to this parking lot, ordered for display. Each includes a
|
|
76
|
+
* ThumbHash for rendering a blurred placeholder while the image loads.
|
|
77
|
+
* @type {Array<EntityImage>}
|
|
78
|
+
* @memberof ParkingLot
|
|
79
|
+
*/
|
|
80
|
+
images?: Array<EntityImage>;
|
|
73
81
|
}
|
|
74
82
|
/**
|
|
75
83
|
* Check if a given object implements the ParkingLot interface.
|
|
@@ -19,6 +19,7 @@ exports.ParkingLotFromJSONTyped = ParkingLotFromJSONTyped;
|
|
|
19
19
|
exports.ParkingLotToJSON = ParkingLotToJSON;
|
|
20
20
|
exports.ParkingLotToJSONTyped = ParkingLotToJSONTyped;
|
|
21
21
|
const ParkingLotStatus_1 = require("./ParkingLotStatus");
|
|
22
|
+
const EntityImage_1 = require("./EntityImage");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ParkingLot interface.
|
|
24
25
|
*/
|
|
@@ -58,6 +59,7 @@ function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
59
|
'paid': json['paid'],
|
|
59
60
|
'reservationRequired': json['reservation_required'],
|
|
60
61
|
'updatedAt': (new Date(json['updated_at'])),
|
|
62
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
65
|
function ParkingLotToJSON(json) {
|
|
@@ -77,5 +79,6 @@ function ParkingLotToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
79
|
'paid': value['paid'],
|
|
78
80
|
'reservation_required': value['reservationRequired'],
|
|
79
81
|
'updated_at': value['updatedAt'].toISOString(),
|
|
82
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
80
83
|
};
|
|
81
84
|
}
|
package/dist/models/Run.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { RunStatus } from './RunStatus';
|
|
13
|
+
import type { EntityImage } from './EntityImage';
|
|
13
14
|
import type { RunDifficulty } from './RunDifficulty';
|
|
14
15
|
/**
|
|
15
16
|
* Represents a single run at the resort with its current status,
|
|
@@ -109,6 +110,13 @@ export interface Run {
|
|
|
109
110
|
* @memberof Run
|
|
110
111
|
*/
|
|
111
112
|
updatedAt: Date;
|
|
113
|
+
/**
|
|
114
|
+
* Images attached to this run, ordered for display. Each includes a
|
|
115
|
+
* ThumbHash for rendering a blurred placeholder while the image loads.
|
|
116
|
+
* @type {Array<EntityImage>}
|
|
117
|
+
* @memberof Run
|
|
118
|
+
*/
|
|
119
|
+
images?: Array<EntityImage>;
|
|
112
120
|
}
|
|
113
121
|
/**
|
|
114
122
|
* Check if a given object implements the Run interface.
|
package/dist/models/Run.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.RunFromJSONTyped = RunFromJSONTyped;
|
|
|
19
19
|
exports.RunToJSON = RunToJSON;
|
|
20
20
|
exports.RunToJSONTyped = RunToJSONTyped;
|
|
21
21
|
const RunStatus_1 = require("./RunStatus");
|
|
22
|
+
const EntityImage_1 = require("./EntityImage");
|
|
22
23
|
const RunDifficulty_1 = require("./RunDifficulty");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the Run interface.
|
|
@@ -69,6 +70,7 @@ function RunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
70
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
70
71
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
71
72
|
'updatedAt': (new Date(json['updated_at'])),
|
|
73
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
72
74
|
};
|
|
73
75
|
}
|
|
74
76
|
function RunToJSON(json) {
|
|
@@ -94,5 +96,6 @@ function RunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
96
|
'area_name': value['areaName'],
|
|
95
97
|
'area_display_order': value['areaDisplayOrder'],
|
|
96
98
|
'updated_at': value['updatedAt'].toISOString(),
|
|
99
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
97
100
|
};
|
|
98
101
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SummerTrailStatus } from './SummerTrailStatus';
|
|
13
13
|
import type { SummerTrailType } from './SummerTrailType';
|
|
14
|
+
import type { EntityImage } from './EntityImage';
|
|
14
15
|
import type { SummerTrailDifficulty } from './SummerTrailDifficulty';
|
|
15
16
|
/**
|
|
16
17
|
* Represents a single summer trail at the resort with its current status,
|
|
@@ -91,6 +92,13 @@ export interface SummerTrail {
|
|
|
91
92
|
* @memberof SummerTrail
|
|
92
93
|
*/
|
|
93
94
|
updatedAt: Date;
|
|
95
|
+
/**
|
|
96
|
+
* Images attached to this trail, ordered for display. Each includes a
|
|
97
|
+
* ThumbHash for rendering a blurred placeholder while the image loads.
|
|
98
|
+
* @type {Array<EntityImage>}
|
|
99
|
+
* @memberof SummerTrail
|
|
100
|
+
*/
|
|
101
|
+
images?: Array<EntityImage>;
|
|
94
102
|
}
|
|
95
103
|
/**
|
|
96
104
|
* Check if a given object implements the SummerTrail interface.
|
|
@@ -20,6 +20,7 @@ exports.SummerTrailToJSON = SummerTrailToJSON;
|
|
|
20
20
|
exports.SummerTrailToJSONTyped = SummerTrailToJSONTyped;
|
|
21
21
|
const SummerTrailStatus_1 = require("./SummerTrailStatus");
|
|
22
22
|
const SummerTrailType_1 = require("./SummerTrailType");
|
|
23
|
+
const EntityImage_1 = require("./EntityImage");
|
|
23
24
|
const SummerTrailDifficulty_1 = require("./SummerTrailDifficulty");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the SummerTrail interface.
|
|
@@ -61,6 +62,7 @@ function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
62
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
62
63
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
63
64
|
'updatedAt': (new Date(json['updated_at'])),
|
|
65
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
68
|
function SummerTrailToJSON(json) {
|
|
@@ -83,5 +85,6 @@ function SummerTrailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
'area_name': value['areaName'],
|
|
84
86
|
'area_display_order': value['areaDisplayOrder'],
|
|
85
87
|
'updated_at': value['updatedAt'].toISOString(),
|
|
88
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { TerrainParkFeature } from './TerrainParkFeature';
|
|
13
|
+
import type { EntityImage } from './EntityImage';
|
|
13
14
|
import type { TerrainParkStatus } from './TerrainParkStatus';
|
|
14
15
|
/**
|
|
15
16
|
* Represents a terrain park at the resort with its current status,
|
|
@@ -84,6 +85,13 @@ export interface TerrainPark {
|
|
|
84
85
|
* @memberof TerrainPark
|
|
85
86
|
*/
|
|
86
87
|
updatedAt: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Images attached to this terrain park, ordered for display. Each includes
|
|
90
|
+
* a ThumbHash for rendering a blurred placeholder while the image loads.
|
|
91
|
+
* @type {Array<EntityImage>}
|
|
92
|
+
* @memberof TerrainPark
|
|
93
|
+
*/
|
|
94
|
+
images?: Array<EntityImage>;
|
|
87
95
|
}
|
|
88
96
|
/**
|
|
89
97
|
* Check if a given object implements the TerrainPark interface.
|
|
@@ -19,6 +19,7 @@ exports.TerrainParkFromJSONTyped = TerrainParkFromJSONTyped;
|
|
|
19
19
|
exports.TerrainParkToJSON = TerrainParkToJSON;
|
|
20
20
|
exports.TerrainParkToJSONTyped = TerrainParkToJSONTyped;
|
|
21
21
|
const TerrainParkFeature_1 = require("./TerrainParkFeature");
|
|
22
|
+
const EntityImage_1 = require("./EntityImage");
|
|
22
23
|
const TerrainParkStatus_1 = require("./TerrainParkStatus");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the TerrainPark interface.
|
|
@@ -59,6 +60,7 @@ function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
60
61
|
'features': (json['features'].map(TerrainParkFeature_1.TerrainParkFeatureFromJSON)),
|
|
61
62
|
'updatedAt': (new Date(json['updated_at'])),
|
|
63
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
function TerrainParkToJSON(json) {
|
|
@@ -80,5 +82,6 @@ function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
82
|
'area_display_order': value['areaDisplayOrder'],
|
|
81
83
|
'features': (value['features'].map(TerrainParkFeature_1.TerrainParkFeatureToJSON)),
|
|
82
84
|
'updated_at': value['updatedAt'].toISOString(),
|
|
85
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
83
86
|
};
|
|
84
87
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { FeatureType } from './FeatureType';
|
|
13
13
|
import type { FeatureSize } from './FeatureSize';
|
|
14
14
|
import type { TerrainParkFeatureStatus } from './TerrainParkFeatureStatus';
|
|
15
|
+
import type { EntityImage } from './EntityImage';
|
|
15
16
|
/**
|
|
16
17
|
* Represents a single feature within a terrain park (jump, box, rail, etc.)
|
|
17
18
|
* with its current status and size rating.
|
|
@@ -62,6 +63,13 @@ export interface TerrainParkFeature {
|
|
|
62
63
|
* @memberof TerrainParkFeature
|
|
63
64
|
*/
|
|
64
65
|
status: TerrainParkFeatureStatus;
|
|
66
|
+
/**
|
|
67
|
+
* Images attached to this feature, ordered for display. Each includes a
|
|
68
|
+
* ThumbHash for rendering a blurred placeholder while the image loads.
|
|
69
|
+
* @type {Array<EntityImage>}
|
|
70
|
+
* @memberof TerrainParkFeature
|
|
71
|
+
*/
|
|
72
|
+
images?: Array<EntityImage>;
|
|
65
73
|
}
|
|
66
74
|
/**
|
|
67
75
|
* Check if a given object implements the TerrainParkFeature interface.
|
|
@@ -21,6 +21,7 @@ exports.TerrainParkFeatureToJSONTyped = TerrainParkFeatureToJSONTyped;
|
|
|
21
21
|
const FeatureType_1 = require("./FeatureType");
|
|
22
22
|
const FeatureSize_1 = require("./FeatureSize");
|
|
23
23
|
const TerrainParkFeatureStatus_1 = require("./TerrainParkFeatureStatus");
|
|
24
|
+
const EntityImage_1 = require("./EntityImage");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the TerrainParkFeature interface.
|
|
26
27
|
*/
|
|
@@ -52,6 +53,7 @@ function TerrainParkFeatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'featureType': (0, FeatureType_1.FeatureTypeFromJSON)(json['feature_type']),
|
|
53
54
|
'size': json['size'] == null ? undefined : (0, FeatureSize_1.FeatureSizeFromJSON)(json['size']),
|
|
54
55
|
'status': (0, TerrainParkFeatureStatus_1.TerrainParkFeatureStatusFromJSON)(json['status']),
|
|
56
|
+
'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
function TerrainParkFeatureToJSON(json) {
|
|
@@ -69,5 +71,6 @@ function TerrainParkFeatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'feature_type': (0, FeatureType_1.FeatureTypeToJSON)(value['featureType']),
|
|
70
72
|
'size': (0, FeatureSize_1.FeatureSizeToJSON)(value['size']),
|
|
71
73
|
'status': (0, TerrainParkFeatureStatus_1.TerrainParkFeatureStatusToJSON)(value['status']),
|
|
74
|
+
'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Webcam } from './Webcam';
|
|
12
13
|
import type { MarkerIcon } from './MarkerIcon';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -54,16 +55,10 @@ export interface TrailMapElementOneOf6 {
|
|
|
54
55
|
color?: string | null;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
|
-
* @type {
|
|
58
|
-
* @memberof TrailMapElementOneOf6
|
|
59
|
-
*/
|
|
60
|
-
label: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
58
|
+
* @type {Webcam}
|
|
64
59
|
* @memberof TrailMapElementOneOf6
|
|
65
60
|
*/
|
|
66
|
-
|
|
61
|
+
webcam?: Webcam | null;
|
|
67
62
|
/**
|
|
68
63
|
*
|
|
69
64
|
* @type {string}
|
|
@@ -75,7 +70,7 @@ export interface TrailMapElementOneOf6 {
|
|
|
75
70
|
* @export
|
|
76
71
|
*/
|
|
77
72
|
export declare const TrailMapElementOneOf6TypeEnum: {
|
|
78
|
-
readonly
|
|
73
|
+
readonly WebcamMarker: "webcam_marker";
|
|
79
74
|
};
|
|
80
75
|
export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
|
|
81
76
|
/**
|
|
@@ -19,12 +19,13 @@ exports.TrailMapElementOneOf6FromJSON = TrailMapElementOneOf6FromJSON;
|
|
|
19
19
|
exports.TrailMapElementOneOf6FromJSONTyped = TrailMapElementOneOf6FromJSONTyped;
|
|
20
20
|
exports.TrailMapElementOneOf6ToJSON = TrailMapElementOneOf6ToJSON;
|
|
21
21
|
exports.TrailMapElementOneOf6ToJSONTyped = TrailMapElementOneOf6ToJSONTyped;
|
|
22
|
+
const Webcam_1 = require("./Webcam");
|
|
22
23
|
const MarkerIcon_1 = require("./MarkerIcon");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
26
27
|
exports.TrailMapElementOneOf6TypeEnum = {
|
|
27
|
-
|
|
28
|
+
WebcamMarker: 'webcam_marker'
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Check if a given object implements the TrailMapElementOneOf6 interface.
|
|
@@ -32,7 +33,7 @@ exports.TrailMapElementOneOf6TypeEnum = {
|
|
|
32
33
|
function instanceOfTrailMapElementOneOf6(value) {
|
|
33
34
|
if (!('type' in value) || value['type'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (value['type'] !== '
|
|
36
|
+
if (value['type'] !== 'webcam_marker')
|
|
36
37
|
return false;
|
|
37
38
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
38
39
|
return false;
|
|
@@ -40,8 +41,6 @@ function instanceOfTrailMapElementOneOf6(value) {
|
|
|
40
41
|
return false;
|
|
41
42
|
if (!('y' in value) || value['y'] === undefined)
|
|
42
43
|
return false;
|
|
43
|
-
if (!('label' in value) || value['label'] === undefined)
|
|
44
|
-
return false;
|
|
45
44
|
return true;
|
|
46
45
|
}
|
|
47
46
|
function TrailMapElementOneOf6FromJSON(json) {
|
|
@@ -58,8 +57,7 @@ function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
57
|
'y': json['y'],
|
|
59
58
|
'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
|
|
60
59
|
'color': json['color'] == null ? undefined : json['color'],
|
|
61
|
-
'
|
|
62
|
-
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
60
|
+
'webcam': json['webcam'] == null ? undefined : (0, Webcam_1.WebcamFromJSON)(json['webcam']),
|
|
63
61
|
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
64
62
|
};
|
|
65
63
|
}
|
|
@@ -77,8 +75,7 @@ function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
75
|
'y': value['y'],
|
|
78
76
|
'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
|
|
79
77
|
'color': value['color'],
|
|
80
|
-
'
|
|
81
|
-
'searchable': value['searchable'],
|
|
78
|
+
'webcam': (0, Webcam_1.WebcamToJSON)(value['webcam']),
|
|
82
79
|
'group_label': value['groupLabel'],
|
|
83
80
|
};
|
|
84
81
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 TrailMapElementOneOf7
|
|
17
|
+
*/
|
|
18
|
+
export interface TrailMapElementOneOf7 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TrailMapElementOneOf7TypeEnum}
|
|
22
|
+
* @memberof TrailMapElementOneOf7
|
|
23
|
+
*/
|
|
24
|
+
type: TrailMapElementOneOf7TypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TrailMapElementOneOf7
|
|
29
|
+
*/
|
|
30
|
+
uuid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TrailMapElementOneOf7
|
|
35
|
+
*/
|
|
36
|
+
x: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TrailMapElementOneOf7
|
|
41
|
+
*/
|
|
42
|
+
y: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MarkerIcon}
|
|
46
|
+
* @memberof TrailMapElementOneOf7
|
|
47
|
+
*/
|
|
48
|
+
icon?: MarkerIcon | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TrailMapElementOneOf7
|
|
53
|
+
*/
|
|
54
|
+
color?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TrailMapElementOneOf7
|
|
59
|
+
*/
|
|
60
|
+
label: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof TrailMapElementOneOf7
|
|
65
|
+
*/
|
|
66
|
+
searchable?: boolean | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TrailMapElementOneOf7
|
|
71
|
+
*/
|
|
72
|
+
groupLabel?: string | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const TrailMapElementOneOf7TypeEnum: {
|
|
78
|
+
readonly GenericMarker: "generic_marker";
|
|
79
|
+
};
|
|
80
|
+
export type TrailMapElementOneOf7TypeEnum = typeof TrailMapElementOneOf7TypeEnum[keyof typeof TrailMapElementOneOf7TypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the TrailMapElementOneOf7 interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfTrailMapElementOneOf7(value: object): value is TrailMapElementOneOf7;
|
|
85
|
+
export declare function TrailMapElementOneOf7FromJSON(json: any): TrailMapElementOneOf7;
|
|
86
|
+
export declare function TrailMapElementOneOf7FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf7;
|
|
87
|
+
export declare function TrailMapElementOneOf7ToJSON(json: any): TrailMapElementOneOf7;
|
|
88
|
+
export declare function TrailMapElementOneOf7ToJSONTyped(value?: TrailMapElementOneOf7 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.TrailMapElementOneOf7TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfTrailMapElementOneOf7 = instanceOfTrailMapElementOneOf7;
|
|
18
|
+
exports.TrailMapElementOneOf7FromJSON = TrailMapElementOneOf7FromJSON;
|
|
19
|
+
exports.TrailMapElementOneOf7FromJSONTyped = TrailMapElementOneOf7FromJSONTyped;
|
|
20
|
+
exports.TrailMapElementOneOf7ToJSON = TrailMapElementOneOf7ToJSON;
|
|
21
|
+
exports.TrailMapElementOneOf7ToJSONTyped = TrailMapElementOneOf7ToJSONTyped;
|
|
22
|
+
const MarkerIcon_1 = require("./MarkerIcon");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TrailMapElementOneOf7TypeEnum = {
|
|
27
|
+
GenericMarker: 'generic_marker'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the TrailMapElementOneOf7 interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfTrailMapElementOneOf7(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (value['type'] !== 'generic_marker')
|
|
36
|
+
return false;
|
|
37
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TrailMapElementOneOf7FromJSON(json) {
|
|
48
|
+
return TrailMapElementOneOf7FromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'uuid': json['uuid'],
|
|
57
|
+
'x': json['x'],
|
|
58
|
+
'y': json['y'],
|
|
59
|
+
'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
|
|
60
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
61
|
+
'label': json['label'],
|
|
62
|
+
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
63
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function TrailMapElementOneOf7ToJSON(json) {
|
|
67
|
+
return TrailMapElementOneOf7ToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function TrailMapElementOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'type': value['type'],
|
|
75
|
+
'uuid': value['uuid'],
|
|
76
|
+
'x': value['x'],
|
|
77
|
+
'y': value['y'],
|
|
78
|
+
'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
|
|
79
|
+
'color': value['color'],
|
|
80
|
+
'label': value['label'],
|
|
81
|
+
'searchable': value['searchable'],
|
|
82
|
+
'group_label': value['groupLabel'],
|
|
83
|
+
};
|
|
84
|
+
}
|
package/dist/models/Weather.d.ts
CHANGED
|
@@ -19,6 +19,24 @@ import type { DailyForecast } from './DailyForecast';
|
|
|
19
19
|
* @interface Weather
|
|
20
20
|
*/
|
|
21
21
|
export interface Weather {
|
|
22
|
+
/**
|
|
23
|
+
* The area this weather belongs to, or omitted for resort-wide weather.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Weather
|
|
26
|
+
*/
|
|
27
|
+
areaUuid?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The area's name, or omitted for resort-wide weather.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Weather
|
|
32
|
+
*/
|
|
33
|
+
areaName?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The area's display order, or omitted for resort-wide weather.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Weather
|
|
38
|
+
*/
|
|
39
|
+
areaDisplayOrder?: number | null;
|
|
22
40
|
/**
|
|
23
41
|
* Current weather conditions
|
|
24
42
|
* @type {CurrentWeather}
|
package/dist/models/Weather.js
CHANGED
|
@@ -45,6 +45,9 @@ function WeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return json;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
49
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
50
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
48
51
|
'current': (0, CurrentWeather_1.CurrentWeatherFromJSON)(json['current']),
|
|
49
52
|
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecast_1.HourlyForecastFromJSON)),
|
|
50
53
|
'dailyForecast': (json['daily_forecast'].map(DailyForecast_1.DailyForecastFromJSON)),
|
|
@@ -60,6 +63,9 @@ function WeatherToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
63
|
return value;
|
|
61
64
|
}
|
|
62
65
|
return {
|
|
66
|
+
'area_uuid': value['areaUuid'],
|
|
67
|
+
'area_name': value['areaName'],
|
|
68
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
63
69
|
'current': (0, CurrentWeather_1.CurrentWeatherToJSON)(value['current']),
|
|
64
70
|
'hourly_forecast': (value['hourlyForecast'].map(HourlyForecast_1.HourlyForecastToJSON)),
|
|
65
71
|
'daily_forecast': (value['dailyForecast'].map(DailyForecast_1.DailyForecastToJSON)),
|