@mtnmanager/sdk 1.2.0 → 1.4.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.
Files changed (170) hide show
  1. package/README.md +24 -0
  2. package/dist/apis/MtnManagerApi.d.ts +166 -1
  3. package/dist/apis/MtnManagerApi.js +204 -40
  4. package/dist/esm/apis/MtnManagerApi.d.ts +166 -1
  5. package/dist/esm/apis/MtnManagerApi.js +205 -41
  6. package/dist/esm/models/Amenity.d.ts +69 -0
  7. package/dist/esm/models/Amenity.js +64 -0
  8. package/dist/esm/models/AmenityCategory.d.ts +12 -3
  9. package/dist/esm/models/AmenityCategory.js +12 -3
  10. package/dist/esm/models/CalendarDay.d.ts +2 -2
  11. package/dist/esm/models/CalendarDay.js +4 -6
  12. package/dist/esm/models/CurrentWeather.js +1 -1
  13. package/dist/esm/models/CurrentWeatherImperial.js +2 -2
  14. package/dist/esm/models/CurrentWeatherMetric.js +2 -2
  15. package/dist/esm/models/DailyForecast.js +1 -1
  16. package/dist/esm/models/DailyForecastImperial.js +2 -2
  17. package/dist/esm/models/DailyForecastMetric.js +2 -2
  18. package/dist/esm/models/FullReport.js +3 -3
  19. package/dist/esm/models/GeoControlPoint.d.ts +50 -0
  20. package/dist/esm/models/GeoControlPoint.js +55 -0
  21. package/dist/esm/models/HourlyForecast.js +1 -1
  22. package/dist/esm/models/HourlyForecastImperial.js +1 -1
  23. package/dist/esm/models/HourlyForecastMetric.js +1 -1
  24. package/dist/esm/models/LabelOffset.d.ts +38 -0
  25. package/dist/esm/models/LabelOffset.js +47 -0
  26. package/dist/esm/models/Lift.d.ts +30 -0
  27. package/dist/esm/models/Lift.js +13 -3
  28. package/dist/esm/models/MarkerIcon.d.ts +45 -0
  29. package/dist/esm/models/MarkerIcon.js +63 -0
  30. package/dist/esm/models/OperatingHours.d.ts +1 -1
  31. package/dist/esm/models/OperatingHours.js +3 -5
  32. package/dist/esm/models/Overview.d.ts +20 -100
  33. package/dist/esm/models/Overview.js +19 -52
  34. package/dist/esm/models/OverviewLifts.d.ts +45 -0
  35. package/dist/esm/models/OverviewLifts.js +49 -0
  36. package/dist/esm/models/OverviewNews.d.ts +44 -0
  37. package/dist/esm/models/OverviewNews.js +51 -0
  38. package/dist/esm/models/OverviewRuns.d.ts +66 -0
  39. package/dist/esm/models/OverviewRuns.js +55 -0
  40. package/dist/esm/models/OverviewSummerTrails.d.ts +45 -0
  41. package/dist/esm/models/OverviewSummerTrails.js +49 -0
  42. package/dist/esm/models/OverviewTerrainParks.d.ts +45 -0
  43. package/dist/esm/models/OverviewTerrainParks.js +49 -0
  44. package/dist/esm/models/ParkingLot.js +2 -2
  45. package/dist/esm/models/PathUuid.d.ts +32 -0
  46. package/dist/esm/models/PathUuid.js +43 -0
  47. package/dist/esm/models/PointMarker.d.ts +24 -0
  48. package/dist/esm/models/PointMarker.js +58 -0
  49. package/dist/esm/models/PointMarkerOneOf.d.ts +77 -0
  50. package/dist/esm/models/PointMarkerOneOf.js +71 -0
  51. package/dist/esm/models/PointMarkerOneOf1.d.ts +77 -0
  52. package/dist/esm/models/PointMarkerOneOf1.js +71 -0
  53. package/dist/esm/models/PointMarkerOneOf2.d.ts +82 -0
  54. package/dist/esm/models/PointMarkerOneOf2.js +74 -0
  55. package/dist/esm/models/ResortInfo.js +1 -1
  56. package/dist/esm/models/Run.js +4 -4
  57. package/dist/esm/models/Schedule.js +9 -9
  58. package/dist/esm/models/SeasonType.d.ts +4 -9
  59. package/dist/esm/models/SeasonType.js +23 -24
  60. package/dist/esm/models/SnowMetrics.js +4 -4
  61. package/dist/esm/models/SnowReport.d.ts +34 -0
  62. package/dist/esm/models/SnowReport.js +4 -4
  63. package/dist/esm/models/SummerTrail.d.ts +1 -1
  64. package/dist/esm/models/SummerTrail.js +3 -3
  65. package/dist/esm/models/TerrainPark.js +2 -2
  66. package/dist/esm/models/TerrainParkFeature.d.ts +1 -1
  67. package/dist/esm/models/TerrainParkFeature.js +1 -1
  68. package/dist/esm/models/TrailMap.d.ts +84 -0
  69. package/dist/esm/models/TrailMap.js +77 -0
  70. package/dist/esm/models/TrailMapElement.d.ts +26 -0
  71. package/dist/esm/models/TrailMapElement.js +72 -0
  72. package/dist/esm/models/TrailMapElementOneOf.d.ts +64 -0
  73. package/dist/esm/models/TrailMapElementOneOf.js +64 -0
  74. package/dist/esm/models/TrailMapElementOneOf1.d.ts +64 -0
  75. package/dist/esm/models/TrailMapElementOneOf1.js +64 -0
  76. package/dist/esm/models/TrailMapElementOneOf2.d.ts +71 -0
  77. package/dist/esm/models/TrailMapElementOneOf2.js +67 -0
  78. package/dist/esm/models/TrailMapElementOneOf3.d.ts +64 -0
  79. package/dist/esm/models/TrailMapElementOneOf3.js +64 -0
  80. package/dist/esm/models/TrailMapElementOneOf4.d.ts +39 -0
  81. package/dist/esm/models/TrailMapElementOneOf4.js +48 -0
  82. package/dist/esm/models/TrailMapSummary.d.ts +57 -0
  83. package/dist/esm/models/TrailMapSummary.js +60 -0
  84. package/dist/esm/models/Weather.js +3 -3
  85. package/dist/esm/models/index.d.ts +22 -0
  86. package/dist/esm/models/index.js +22 -0
  87. package/dist/esm/runtime.js +16 -1
  88. package/dist/models/Amenity.d.ts +69 -0
  89. package/dist/models/Amenity.js +71 -0
  90. package/dist/models/AmenityCategory.d.ts +12 -3
  91. package/dist/models/AmenityCategory.js +12 -3
  92. package/dist/models/CalendarDay.d.ts +2 -2
  93. package/dist/models/CalendarDay.js +4 -6
  94. package/dist/models/CurrentWeather.js +1 -1
  95. package/dist/models/CurrentWeatherImperial.js +2 -2
  96. package/dist/models/CurrentWeatherMetric.js +2 -2
  97. package/dist/models/DailyForecast.js +1 -1
  98. package/dist/models/DailyForecastImperial.js +2 -2
  99. package/dist/models/DailyForecastMetric.js +2 -2
  100. package/dist/models/FullReport.js +3 -3
  101. package/dist/models/GeoControlPoint.d.ts +50 -0
  102. package/dist/models/GeoControlPoint.js +62 -0
  103. package/dist/models/HourlyForecast.js +1 -1
  104. package/dist/models/HourlyForecastImperial.js +1 -1
  105. package/dist/models/HourlyForecastMetric.js +1 -1
  106. package/dist/models/LabelOffset.d.ts +38 -0
  107. package/dist/models/LabelOffset.js +54 -0
  108. package/dist/models/Lift.d.ts +30 -0
  109. package/dist/models/Lift.js +13 -3
  110. package/dist/models/MarkerIcon.d.ts +45 -0
  111. package/dist/models/MarkerIcon.js +71 -0
  112. package/dist/models/OperatingHours.d.ts +1 -1
  113. package/dist/models/OperatingHours.js +3 -5
  114. package/dist/models/Overview.d.ts +20 -100
  115. package/dist/models/Overview.js +19 -52
  116. package/dist/models/OverviewLifts.d.ts +45 -0
  117. package/dist/models/OverviewLifts.js +56 -0
  118. package/dist/models/OverviewNews.d.ts +44 -0
  119. package/dist/models/OverviewNews.js +58 -0
  120. package/dist/models/OverviewRuns.d.ts +66 -0
  121. package/dist/models/OverviewRuns.js +62 -0
  122. package/dist/models/OverviewSummerTrails.d.ts +45 -0
  123. package/dist/models/OverviewSummerTrails.js +56 -0
  124. package/dist/models/OverviewTerrainParks.d.ts +45 -0
  125. package/dist/models/OverviewTerrainParks.js +56 -0
  126. package/dist/models/ParkingLot.js +2 -2
  127. package/dist/models/PathUuid.d.ts +32 -0
  128. package/dist/models/PathUuid.js +50 -0
  129. package/dist/models/PointMarker.d.ts +24 -0
  130. package/dist/models/PointMarker.js +64 -0
  131. package/dist/models/PointMarkerOneOf.d.ts +77 -0
  132. package/dist/models/PointMarkerOneOf.js +79 -0
  133. package/dist/models/PointMarkerOneOf1.d.ts +77 -0
  134. package/dist/models/PointMarkerOneOf1.js +79 -0
  135. package/dist/models/PointMarkerOneOf2.d.ts +82 -0
  136. package/dist/models/PointMarkerOneOf2.js +82 -0
  137. package/dist/models/ResortInfo.js +1 -1
  138. package/dist/models/Run.js +4 -4
  139. package/dist/models/Schedule.js +9 -9
  140. package/dist/models/SeasonType.d.ts +4 -9
  141. package/dist/models/SeasonType.js +23 -26
  142. package/dist/models/SnowMetrics.js +4 -4
  143. package/dist/models/SnowReport.d.ts +34 -0
  144. package/dist/models/SnowReport.js +4 -4
  145. package/dist/models/SummerTrail.d.ts +1 -1
  146. package/dist/models/SummerTrail.js +3 -3
  147. package/dist/models/TerrainPark.js +2 -2
  148. package/dist/models/TerrainParkFeature.d.ts +1 -1
  149. package/dist/models/TerrainParkFeature.js +1 -1
  150. package/dist/models/TrailMap.d.ts +84 -0
  151. package/dist/models/TrailMap.js +84 -0
  152. package/dist/models/TrailMapElement.d.ts +26 -0
  153. package/dist/models/TrailMapElement.js +78 -0
  154. package/dist/models/TrailMapElementOneOf.d.ts +64 -0
  155. package/dist/models/TrailMapElementOneOf.js +72 -0
  156. package/dist/models/TrailMapElementOneOf1.d.ts +64 -0
  157. package/dist/models/TrailMapElementOneOf1.js +72 -0
  158. package/dist/models/TrailMapElementOneOf2.d.ts +71 -0
  159. package/dist/models/TrailMapElementOneOf2.js +75 -0
  160. package/dist/models/TrailMapElementOneOf3.d.ts +64 -0
  161. package/dist/models/TrailMapElementOneOf3.js +72 -0
  162. package/dist/models/TrailMapElementOneOf4.d.ts +39 -0
  163. package/dist/models/TrailMapElementOneOf4.js +56 -0
  164. package/dist/models/TrailMapSummary.d.ts +57 -0
  165. package/dist/models/TrailMapSummary.js +67 -0
  166. package/dist/models/Weather.js +3 -3
  167. package/dist/models/index.d.ts +22 -0
  168. package/dist/models/index.js +22 -0
  169. package/dist/runtime.js +16 -1
  170. package/package.json +1 -1
@@ -210,7 +210,7 @@ export class BaseAPI {
210
210
  return next;
211
211
  }
212
212
  }
213
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
213
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
214
214
  ;
215
215
  function isBlob(value) {
216
216
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -223,6 +223,11 @@ export class ResponseError extends Error {
223
223
  super(msg);
224
224
  this.response = response;
225
225
  this.name = "ResponseError";
226
+ // restore prototype chain
227
+ const actualProto = new.target.prototype;
228
+ if (Object.setPrototypeOf) {
229
+ Object.setPrototypeOf(this, actualProto);
230
+ }
226
231
  }
227
232
  }
228
233
  export class FetchError extends Error {
@@ -230,6 +235,11 @@ export class FetchError extends Error {
230
235
  super(msg);
231
236
  this.cause = cause;
232
237
  this.name = "FetchError";
238
+ // restore prototype chain
239
+ const actualProto = new.target.prototype;
240
+ if (Object.setPrototypeOf) {
241
+ Object.setPrototypeOf(this, actualProto);
242
+ }
233
243
  }
234
244
  }
235
245
  export class RequiredError extends Error {
@@ -237,6 +247,11 @@ export class RequiredError extends Error {
237
247
  super(msg);
238
248
  this.field = field;
239
249
  this.name = "RequiredError";
250
+ // restore prototype chain
251
+ const actualProto = new.target.prototype;
252
+ if (Object.setPrototypeOf) {
253
+ Object.setPrototypeOf(this, actualProto);
254
+ }
240
255
  }
241
256
  }
242
257
  export const COLLECTION_FORMATS = {
@@ -0,0 +1,69 @@
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 { AmenityCategory } from './AmenityCategory';
13
+ /**
14
+ * Minimal amenity info for trail map markers.
15
+ * @export
16
+ * @interface Amenity
17
+ */
18
+ export interface Amenity {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Amenity
23
+ */
24
+ description: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Amenity
29
+ */
30
+ uuid: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Amenity
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {AmenityCategory}
40
+ * @memberof Amenity
41
+ */
42
+ category: AmenityCategory;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof Amenity
47
+ */
48
+ website: string;
49
+ /**
50
+ * Today's scheduled opening time in 24-hour format (HH:MM), in resort's local timezone.
51
+ * @type {string}
52
+ * @memberof Amenity
53
+ */
54
+ opensAt?: string | null;
55
+ /**
56
+ * Today's scheduled closing time in 24-hour format (HH:MM), in resort's local timezone.
57
+ * @type {string}
58
+ * @memberof Amenity
59
+ */
60
+ closesAt?: string | null;
61
+ }
62
+ /**
63
+ * Check if a given object implements the Amenity interface.
64
+ */
65
+ export declare function instanceOfAmenity(value: object): value is Amenity;
66
+ export declare function AmenityFromJSON(json: any): Amenity;
67
+ export declare function AmenityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Amenity;
68
+ export declare function AmenityToJSON(json: any): Amenity;
69
+ export declare function AmenityToJSONTyped(value?: Amenity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfAmenity = instanceOfAmenity;
17
+ exports.AmenityFromJSON = AmenityFromJSON;
18
+ exports.AmenityFromJSONTyped = AmenityFromJSONTyped;
19
+ exports.AmenityToJSON = AmenityToJSON;
20
+ exports.AmenityToJSONTyped = AmenityToJSONTyped;
21
+ const AmenityCategory_1 = require("./AmenityCategory");
22
+ /**
23
+ * Check if a given object implements the Amenity interface.
24
+ */
25
+ function instanceOfAmenity(value) {
26
+ if (!('description' in value) || value['description'] === undefined)
27
+ return false;
28
+ if (!('uuid' in value) || value['uuid'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('category' in value) || value['category'] === undefined)
33
+ return false;
34
+ if (!('website' in value) || value['website'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AmenityFromJSON(json) {
39
+ return AmenityFromJSONTyped(json, false);
40
+ }
41
+ function AmenityFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'description': json['description'],
47
+ 'uuid': json['uuid'],
48
+ 'name': json['name'],
49
+ 'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
50
+ 'website': json['website'],
51
+ 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
52
+ 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
53
+ };
54
+ }
55
+ function AmenityToJSON(json) {
56
+ return AmenityToJSONTyped(json, false);
57
+ }
58
+ function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'description': value['description'],
64
+ 'uuid': value['uuid'],
65
+ 'name': value['name'],
66
+ 'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
67
+ 'website': value['website'],
68
+ 'opens_at': value['opensAt'],
69
+ 'closes_at': value['closesAt'],
70
+ };
71
+ }
@@ -14,10 +14,19 @@
14
14
  * @export
15
15
  */
16
16
  export declare const AmenityCategory: {
17
- readonly FoodBeverage: "food_beverage";
17
+ readonly Restaurant: "restaurant";
18
+ readonly Coffee: "coffee";
19
+ readonly Bar: "bar";
20
+ readonly Tubing: "tubing";
21
+ readonly SkiSchool: "ski_school";
22
+ readonly RentalShop: "rental_shop";
23
+ readonly Daycare: "daycare";
24
+ readonly Ticketing: "ticketing";
25
+ readonly Lodge: "lodge";
26
+ readonly Hotel: "hotel";
27
+ readonly Lockers: "lockers";
18
28
  readonly Retail: "retail";
19
- readonly Recreation: "recreation";
20
- readonly Facility: "facility";
29
+ readonly Other: "other";
21
30
  };
22
31
  export type AmenityCategory = typeof AmenityCategory[keyof typeof AmenityCategory];
23
32
  export declare function instanceOfAmenityCategory(value: any): boolean;
@@ -24,10 +24,19 @@ exports.AmenityCategoryToJSONTyped = AmenityCategoryToJSONTyped;
24
24
  * @export
25
25
  */
26
26
  exports.AmenityCategory = {
27
- FoodBeverage: 'food_beverage',
27
+ Restaurant: 'restaurant',
28
+ Coffee: 'coffee',
29
+ Bar: 'bar',
30
+ Tubing: 'tubing',
31
+ SkiSchool: 'ski_school',
32
+ RentalShop: 'rental_shop',
33
+ Daycare: 'daycare',
34
+ Ticketing: 'ticketing',
35
+ Lodge: 'lodge',
36
+ Hotel: 'hotel',
37
+ Lockers: 'lockers',
28
38
  Retail: 'retail',
29
- Recreation: 'recreation',
30
- Facility: 'facility'
39
+ Other: 'other'
31
40
  };
32
41
  function instanceOfAmenityCategory(value) {
33
42
  for (const key in exports.AmenityCategory) {
@@ -54,7 +54,7 @@ export interface CalendarDay {
54
54
  */
55
55
  closesAt?: string | null;
56
56
  /**
57
- *
57
+ * Optional reason code for closure.
58
58
  * @type {ClosureReason}
59
59
  * @memberof CalendarDay
60
60
  */
@@ -70,7 +70,7 @@ export interface CalendarDay {
70
70
  * @type {Array<AmenityCalendarEntry>}
71
71
  * @memberof CalendarDay
72
72
  */
73
- amenities: Array<AmenityCalendarEntry>;
73
+ amenities?: Array<AmenityCalendarEntry>;
74
74
  }
75
75
  /**
76
76
  * Check if a given object implements the CalendarDay interface.
@@ -27,11 +27,9 @@ const ClosureReason_1 = require("./ClosureReason");
27
27
  function instanceOfCalendarDay(value) {
28
28
  if (!('date' in value) || value['date'] === undefined)
29
29
  return false;
30
- if (!('dayOfWeek' in value) || value['dayOfWeek'] === undefined)
30
+ if ((!('dayOfWeek' in value) && !('day_of_week' in value)) || (value['dayOfWeek'] === undefined && value['day_of_week'] === undefined))
31
31
  return false;
32
- if (!('isOpen' in value) || value['isOpen'] === undefined)
33
- return false;
34
- if (!('amenities' in value) || value['amenities'] === undefined)
32
+ if ((!('isOpen' in value) && !('is_open' in value)) || (value['isOpen'] === undefined && value['is_open'] === undefined))
35
33
  return false;
36
34
  return true;
37
35
  }
@@ -50,7 +48,7 @@ function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
51
49
  'closureReason': json['closure_reason'] == null ? undefined : (0, ClosureReason_1.ClosureReasonFromJSON)(json['closure_reason']),
52
50
  'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
53
- 'amenities': (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
51
+ 'amenities': json['amenities'] == null ? undefined : (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
54
52
  };
55
53
  }
56
54
  function CalendarDayToJSON(json) {
@@ -68,6 +66,6 @@ function CalendarDayToJSONTyped(value, ignoreDiscriminator = false) {
68
66
  'closes_at': value['closesAt'],
69
67
  'closure_reason': (0, ClosureReason_1.ClosureReasonToJSON)(value['closureReason']),
70
68
  'special_event': value['specialEvent'],
71
- 'amenities': (value['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryToJSON)),
69
+ 'amenities': value['amenities'] == null ? undefined : (value['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryToJSON)),
72
70
  };
73
71
  }
@@ -31,7 +31,7 @@ function instanceOfCurrentWeather(value) {
31
31
  return false;
32
32
  if (!('condition' in value) || value['condition'] === undefined)
33
33
  return false;
34
- if (!('conditionCode' in value) || value['conditionCode'] === undefined)
34
+ if ((!('conditionCode' in value) && !('condition_code' in value)) || (value['conditionCode'] === undefined && value['condition_code'] === undefined))
35
35
  return false;
36
36
  if (!('timestamp' in value) || value['timestamp'] === undefined)
37
37
  return false;
@@ -24,9 +24,9 @@ exports.CurrentWeatherImperialToJSONTyped = CurrentWeatherImperialToJSONTyped;
24
24
  function instanceOfCurrentWeatherImperial(value) {
25
25
  if (!('temperature' in value) || value['temperature'] === undefined)
26
26
  return false;
27
- if (!('feelsLike' in value) || value['feelsLike'] === undefined)
27
+ if ((!('feelsLike' in value) && !('feels_like' in value)) || (value['feelsLike'] === undefined && value['feels_like'] === undefined))
28
28
  return false;
29
- if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ if ((!('windSpeed' in value) && !('wind_speed' in value)) || (value['windSpeed'] === undefined && value['wind_speed'] === undefined))
30
30
  return false;
31
31
  return true;
32
32
  }
@@ -24,9 +24,9 @@ exports.CurrentWeatherMetricToJSONTyped = CurrentWeatherMetricToJSONTyped;
24
24
  function instanceOfCurrentWeatherMetric(value) {
25
25
  if (!('temperature' in value) || value['temperature'] === undefined)
26
26
  return false;
27
- if (!('feelsLike' in value) || value['feelsLike'] === undefined)
27
+ if ((!('feelsLike' in value) && !('feels_like' in value)) || (value['feelsLike'] === undefined && value['feels_like'] === undefined))
28
28
  return false;
29
- if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ if ((!('windSpeed' in value) && !('wind_speed' in value)) || (value['windSpeed'] === undefined && value['wind_speed'] === undefined))
30
30
  return false;
31
31
  return true;
32
32
  }
@@ -33,7 +33,7 @@ function instanceOfDailyForecast(value) {
33
33
  return false;
34
34
  if (!('condition' in value) || value['condition'] === undefined)
35
35
  return false;
36
- if (!('conditionCode' in value) || value['conditionCode'] === undefined)
36
+ if ((!('conditionCode' in value) && !('condition_code' in value)) || (value['conditionCode'] === undefined && value['condition_code'] === undefined))
37
37
  return false;
38
38
  if (!('sunrise' in value) || value['sunrise'] === undefined)
39
39
  return false;
@@ -22,9 +22,9 @@ exports.DailyForecastImperialToJSONTyped = DailyForecastImperialToJSONTyped;
22
22
  * Check if a given object implements the DailyForecastImperial interface.
23
23
  */
24
24
  function instanceOfDailyForecastImperial(value) {
25
- if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
25
+ if ((!('temperatureHigh' in value) && !('temperature_high' in value)) || (value['temperatureHigh'] === undefined && value['temperature_high'] === undefined))
26
26
  return false;
27
- if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
27
+ if ((!('temperatureLow' in value) && !('temperature_low' in value)) || (value['temperatureLow'] === undefined && value['temperature_low'] === undefined))
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -22,9 +22,9 @@ exports.DailyForecastMetricToJSONTyped = DailyForecastMetricToJSONTyped;
22
22
  * Check if a given object implements the DailyForecastMetric interface.
23
23
  */
24
24
  function instanceOfDailyForecastMetric(value) {
25
- if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
25
+ if ((!('temperatureHigh' in value) && !('temperature_high' in value)) || (value['temperatureHigh'] === undefined && value['temperature_high'] === undefined))
26
26
  return false;
27
- if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
27
+ if ((!('temperatureLow' in value) && !('temperature_low' in value)) || (value['temperatureLow'] === undefined && value['temperature_low'] === undefined))
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -42,11 +42,11 @@ function instanceOfFullReport(value) {
42
42
  return false;
43
43
  if (!('runs' in value) || value['runs'] === undefined)
44
44
  return false;
45
- if (!('terrainParks' in value) || value['terrainParks'] === undefined)
45
+ if ((!('terrainParks' in value) && !('terrain_parks' in value)) || (value['terrainParks'] === undefined && value['terrain_parks'] === undefined))
46
46
  return false;
47
- if (!('parkingLots' in value) || value['parkingLots'] === undefined)
47
+ if ((!('parkingLots' in value) && !('parking_lots' in value)) || (value['parkingLots'] === undefined && value['parking_lots'] === undefined))
48
48
  return false;
49
- if (!('summerTrails' in value) || value['summerTrails'] === undefined)
49
+ if ((!('summerTrails' in value) && !('summer_trails' in value)) || (value['summerTrails'] === undefined && value['summer_trails'] === undefined))
50
50
  return false;
51
51
  if (!('hours' in value) || value['hours'] === undefined)
52
52
  return false;
@@ -0,0 +1,50 @@
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
+ * @interface GeoControlPoint
16
+ */
17
+ export interface GeoControlPoint {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GeoControlPoint
22
+ */
23
+ pixelX: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GeoControlPoint
28
+ */
29
+ pixelY: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GeoControlPoint
34
+ */
35
+ lat: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GeoControlPoint
40
+ */
41
+ lng: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GeoControlPoint interface.
45
+ */
46
+ export declare function instanceOfGeoControlPoint(value: object): value is GeoControlPoint;
47
+ export declare function GeoControlPointFromJSON(json: any): GeoControlPoint;
48
+ export declare function GeoControlPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoControlPoint;
49
+ export declare function GeoControlPointToJSON(json: any): GeoControlPoint;
50
+ export declare function GeoControlPointToJSONTyped(value?: GeoControlPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfGeoControlPoint = instanceOfGeoControlPoint;
17
+ exports.GeoControlPointFromJSON = GeoControlPointFromJSON;
18
+ exports.GeoControlPointFromJSONTyped = GeoControlPointFromJSONTyped;
19
+ exports.GeoControlPointToJSON = GeoControlPointToJSON;
20
+ exports.GeoControlPointToJSONTyped = GeoControlPointToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GeoControlPoint interface.
23
+ */
24
+ function instanceOfGeoControlPoint(value) {
25
+ if ((!('pixelX' in value) && !('pixel_x' in value)) || (value['pixelX'] === undefined && value['pixel_x'] === undefined))
26
+ return false;
27
+ if ((!('pixelY' in value) && !('pixel_y' in value)) || (value['pixelY'] === undefined && value['pixel_y'] === undefined))
28
+ return false;
29
+ if (!('lat' in value) || value['lat'] === undefined)
30
+ return false;
31
+ if (!('lng' in value) || value['lng'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GeoControlPointFromJSON(json) {
36
+ return GeoControlPointFromJSONTyped(json, false);
37
+ }
38
+ function GeoControlPointFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'pixelX': json['pixel_x'],
44
+ 'pixelY': json['pixel_y'],
45
+ 'lat': json['lat'],
46
+ 'lng': json['lng'],
47
+ };
48
+ }
49
+ function GeoControlPointToJSON(json) {
50
+ return GeoControlPointToJSONTyped(json, false);
51
+ }
52
+ function GeoControlPointToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'pixel_x': value['pixelX'],
58
+ 'pixel_y': value['pixelY'],
59
+ 'lat': value['lat'],
60
+ 'lng': value['lng'],
61
+ };
62
+ }
@@ -33,7 +33,7 @@ function instanceOfHourlyForecast(value) {
33
33
  return false;
34
34
  if (!('condition' in value) || value['condition'] === undefined)
35
35
  return false;
36
- if (!('conditionCode' in value) || value['conditionCode'] === undefined)
36
+ if ((!('conditionCode' in value) && !('condition_code' in value)) || (value['conditionCode'] === undefined && value['condition_code'] === undefined))
37
37
  return false;
38
38
  return true;
39
39
  }
@@ -24,7 +24,7 @@ exports.HourlyForecastImperialToJSONTyped = HourlyForecastImperialToJSONTyped;
24
24
  function instanceOfHourlyForecastImperial(value) {
25
25
  if (!('temperature' in value) || value['temperature'] === undefined)
26
26
  return false;
27
- if (!('windSpeed' in value) || value['windSpeed'] === undefined)
27
+ if ((!('windSpeed' in value) && !('wind_speed' in value)) || (value['windSpeed'] === undefined && value['wind_speed'] === undefined))
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -24,7 +24,7 @@ exports.HourlyForecastMetricToJSONTyped = HourlyForecastMetricToJSONTyped;
24
24
  function instanceOfHourlyForecastMetric(value) {
25
25
  if (!('temperature' in value) || value['temperature'] === undefined)
26
26
  return false;
27
- if (!('windSpeed' in value) || value['windSpeed'] === undefined)
27
+ if ((!('windSpeed' in value) && !('wind_speed' in value)) || (value['windSpeed'] === undefined && value['wind_speed'] === undefined))
28
28
  return false;
29
29
  return true;
30
30
  }
@@ -0,0 +1,38 @@
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
+ * @interface LabelOffset
16
+ */
17
+ export interface LabelOffset {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LabelOffset
22
+ */
23
+ x: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LabelOffset
28
+ */
29
+ y: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LabelOffset interface.
33
+ */
34
+ export declare function instanceOfLabelOffset(value: object): value is LabelOffset;
35
+ export declare function LabelOffsetFromJSON(json: any): LabelOffset;
36
+ export declare function LabelOffsetFromJSONTyped(json: any, ignoreDiscriminator: boolean): LabelOffset;
37
+ export declare function LabelOffsetToJSON(json: any): LabelOffset;
38
+ export declare function LabelOffsetToJSONTyped(value?: LabelOffset | 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.instanceOfLabelOffset = instanceOfLabelOffset;
17
+ exports.LabelOffsetFromJSON = LabelOffsetFromJSON;
18
+ exports.LabelOffsetFromJSONTyped = LabelOffsetFromJSONTyped;
19
+ exports.LabelOffsetToJSON = LabelOffsetToJSON;
20
+ exports.LabelOffsetToJSONTyped = LabelOffsetToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LabelOffset interface.
23
+ */
24
+ function instanceOfLabelOffset(value) {
25
+ if (!('x' in value) || value['x'] === undefined)
26
+ return false;
27
+ if (!('y' in value) || value['y'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LabelOffsetFromJSON(json) {
32
+ return LabelOffsetFromJSONTyped(json, false);
33
+ }
34
+ function LabelOffsetFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'x': json['x'],
40
+ 'y': json['y'],
41
+ };
42
+ }
43
+ function LabelOffsetToJSON(json) {
44
+ return LabelOffsetToJSONTyped(json, false);
45
+ }
46
+ function LabelOffsetToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'x': value['x'],
52
+ 'y': value['y'],
53
+ };
54
+ }
@@ -66,6 +66,36 @@ export interface Lift {
66
66
  * @memberof Lift
67
67
  */
68
68
  heated: boolean;
69
+ /**
70
+ * Estimated travel time in minutes.
71
+ * @type {number}
72
+ * @memberof Lift
73
+ */
74
+ travelTime?: number | null;
75
+ /**
76
+ * Length of the lift in feet.
77
+ * @type {number}
78
+ * @memberof Lift
79
+ */
80
+ lengthFt?: number | null;
81
+ /**
82
+ * Length of the lift in meters.
83
+ * @type {number}
84
+ * @memberof Lift
85
+ */
86
+ lengthM?: number | null;
87
+ /**
88
+ * Vertical rise of the lift in feet.
89
+ * @type {number}
90
+ * @memberof Lift
91
+ */
92
+ verticalRiseFt?: number | null;
93
+ /**
94
+ * Vertical rise of the lift in meters.
95
+ * @type {number}
96
+ * @memberof Lift
97
+ */
98
+ verticalRiseM?: number | null;
69
99
  /**
70
100
  * Current operational status (open, closed, on_hold, or unknown).
71
101
  * @type {LiftStatus}