@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.
Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/dist/apis/MtnManagerApi.d.ts +85 -4
  4. package/dist/apis/MtnManagerApi.js +89 -1
  5. package/dist/esm/apis/MtnManagerApi.d.ts +85 -4
  6. package/dist/esm/apis/MtnManagerApi.js +89 -1
  7. package/dist/esm/models/Amenity.d.ts +15 -0
  8. package/dist/esm/models/Amenity.js +7 -0
  9. package/dist/esm/models/EntityImage.d.ts +39 -0
  10. package/dist/esm/models/EntityImage.js +47 -0
  11. package/dist/esm/models/FullReport.d.ts +5 -3
  12. package/dist/esm/models/FullReport.js +2 -2
  13. package/dist/esm/models/Lift.d.ts +8 -0
  14. package/dist/esm/models/Lift.js +3 -0
  15. package/dist/esm/models/MarkerIcon.d.ts +1 -0
  16. package/dist/esm/models/MarkerIcon.js +2 -1
  17. package/dist/esm/models/ParkingLot.d.ts +8 -0
  18. package/dist/esm/models/ParkingLot.js +3 -0
  19. package/dist/esm/models/Run.d.ts +8 -0
  20. package/dist/esm/models/Run.js +3 -0
  21. package/dist/esm/models/SummerTrail.d.ts +8 -0
  22. package/dist/esm/models/SummerTrail.js +3 -0
  23. package/dist/esm/models/TerrainPark.d.ts +8 -0
  24. package/dist/esm/models/TerrainPark.js +3 -0
  25. package/dist/esm/models/TerrainParkFeature.d.ts +8 -0
  26. package/dist/esm/models/TerrainParkFeature.js +3 -0
  27. package/dist/esm/models/TrailMapElementOneOf6.d.ts +4 -9
  28. package/dist/esm/models/TrailMapElementOneOf6.js +5 -8
  29. package/dist/esm/models/TrailMapElementOneOf7.d.ts +88 -0
  30. package/dist/esm/models/TrailMapElementOneOf7.js +76 -0
  31. package/dist/esm/models/Weather.d.ts +18 -0
  32. package/dist/esm/models/Weather.js +6 -0
  33. package/dist/esm/models/Webcam.d.ts +88 -0
  34. package/dist/esm/models/Webcam.js +71 -0
  35. package/dist/esm/models/WebcamHistoryFrame.d.ts +44 -0
  36. package/dist/esm/models/WebcamHistoryFrame.js +51 -0
  37. package/dist/esm/models/WebcamHistoryQuery.d.ts +38 -0
  38. package/dist/esm/models/WebcamHistoryQuery.js +43 -0
  39. package/dist/esm/models/WebcamHistoryResponse.d.ts +39 -0
  40. package/dist/esm/models/WebcamHistoryResponse.js +48 -0
  41. package/dist/esm/models/index.d.ts +6 -0
  42. package/dist/esm/models/index.js +6 -0
  43. package/dist/models/Amenity.d.ts +15 -0
  44. package/dist/models/Amenity.js +7 -0
  45. package/dist/models/EntityImage.d.ts +39 -0
  46. package/dist/models/EntityImage.js +54 -0
  47. package/dist/models/FullReport.d.ts +5 -3
  48. package/dist/models/FullReport.js +2 -2
  49. package/dist/models/Lift.d.ts +8 -0
  50. package/dist/models/Lift.js +3 -0
  51. package/dist/models/MarkerIcon.d.ts +1 -0
  52. package/dist/models/MarkerIcon.js +2 -1
  53. package/dist/models/ParkingLot.d.ts +8 -0
  54. package/dist/models/ParkingLot.js +3 -0
  55. package/dist/models/Run.d.ts +8 -0
  56. package/dist/models/Run.js +3 -0
  57. package/dist/models/SummerTrail.d.ts +8 -0
  58. package/dist/models/SummerTrail.js +3 -0
  59. package/dist/models/TerrainPark.d.ts +8 -0
  60. package/dist/models/TerrainPark.js +3 -0
  61. package/dist/models/TerrainParkFeature.d.ts +8 -0
  62. package/dist/models/TerrainParkFeature.js +3 -0
  63. package/dist/models/TrailMapElementOneOf6.d.ts +4 -9
  64. package/dist/models/TrailMapElementOneOf6.js +5 -8
  65. package/dist/models/TrailMapElementOneOf7.d.ts +88 -0
  66. package/dist/models/TrailMapElementOneOf7.js +84 -0
  67. package/dist/models/Weather.d.ts +18 -0
  68. package/dist/models/Weather.js +6 -0
  69. package/dist/models/Webcam.d.ts +88 -0
  70. package/dist/models/Webcam.js +78 -0
  71. package/dist/models/WebcamHistoryFrame.d.ts +44 -0
  72. package/dist/models/WebcamHistoryFrame.js +58 -0
  73. package/dist/models/WebcamHistoryQuery.d.ts +38 -0
  74. package/dist/models/WebcamHistoryQuery.js +50 -0
  75. package/dist/models/WebcamHistoryResponse.d.ts +39 -0
  76. package/dist/models/WebcamHistoryResponse.js +55 -0
  77. package/dist/models/index.d.ts +6 -0
  78. package/dist/models/index.js +6 -0
  79. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the EntityImage interface.
16
+ */
17
+ export function instanceOfEntityImage(value) {
18
+ if (!('url' in value) || value['url'] === undefined)
19
+ return false;
20
+ if ((!('thumbHash' in value) && !('thumb_hash' in value)) || (value['thumbHash'] === undefined && value['thumb_hash'] === undefined))
21
+ return false;
22
+ return true;
23
+ }
24
+ export function EntityImageFromJSON(json) {
25
+ return EntityImageFromJSONTyped(json, false);
26
+ }
27
+ export function EntityImageFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'url': json['url'],
33
+ 'thumbHash': json['thumb_hash'],
34
+ };
35
+ }
36
+ export function EntityImageToJSON(json) {
37
+ return EntityImageToJSONTyped(json, false);
38
+ }
39
+ export function EntityImageToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'url': value['url'],
45
+ 'thumb_hash': value['thumbHash'],
46
+ };
47
+ }
@@ -88,11 +88,13 @@ export interface FullReport {
88
88
  */
89
89
  hours: OperatingHours;
90
90
  /**
91
- *
92
- * @type {Weather}
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 | null;
97
+ weather?: Array<Weather>;
96
98
  }
97
99
  /**
98
100
  * Check if a given object implements the FullReport interface.
@@ -62,7 +62,7 @@ export function FullReportFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'parkingLots': (json['parking_lots'].map(ParkingLotFromJSON)),
63
63
  'summerTrails': (json['summer_trails'].map(SummerTrailFromJSON)),
64
64
  'hours': OperatingHoursFromJSON(json['hours']),
65
- 'weather': json['weather'] == null ? undefined : WeatherFromJSON(json['weather']),
65
+ 'weather': json['weather'] == null ? undefined : (json['weather'].map(WeatherFromJSON)),
66
66
  };
67
67
  }
68
68
  export function FullReportToJSON(json) {
@@ -82,6 +82,6 @@ export function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'parking_lots': (value['parkingLots'].map(ParkingLotToJSON)),
83
83
  'summer_trails': (value['summerTrails'].map(SummerTrailToJSON)),
84
84
  'hours': OperatingHoursToJSON(value['hours']),
85
- 'weather': WeatherToJSON(value['weather']),
85
+ 'weather': value['weather'] == null ? undefined : (value['weather'].map(WeatherToJSON)),
86
86
  };
87
87
  }
@@ -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.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { LiftStatusFromJSON, LiftStatusToJSON, } from './LiftStatus';
15
15
  import { LiftTypeFromJSON, LiftTypeToJSON, } from './LiftType';
16
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
16
17
  /**
17
18
  * Check if a given object implements the Lift interface.
18
19
  */
@@ -66,6 +67,7 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
66
67
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
67
68
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
68
69
  'updatedAt': (new Date(json['updated_at'])),
70
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
69
71
  };
70
72
  }
71
73
  export function LiftToJSON(json) {
@@ -97,5 +99,6 @@ export function LiftToJSONTyped(value, ignoreDiscriminator = false) {
97
99
  'area_name': value['areaName'],
98
100
  'area_display_order': value['areaDisplayOrder'],
99
101
  'updated_at': value['updatedAt'].toISOString(),
102
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
100
103
  };
101
104
  }
@@ -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;
@@ -37,7 +37,8 @@ export const MarkerIcon = {
37
37
  Phone: 'phone',
38
38
  Retail: 'retail',
39
39
  Atm: 'atm',
40
- Star: 'star'
40
+ Star: 'star',
41
+ Webcam: 'webcam'
41
42
  };
42
43
  export function instanceOfMarkerIcon(value) {
43
44
  for (const key in MarkerIcon) {
@@ -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.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ParkingLotStatusFromJSON, ParkingLotStatusToJSON, } from './ParkingLotStatus';
15
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
15
16
  /**
16
17
  * Check if a given object implements the ParkingLot interface.
17
18
  */
@@ -51,6 +52,7 @@ export function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
51
52
  'paid': json['paid'],
52
53
  'reservationRequired': json['reservation_required'],
53
54
  'updatedAt': (new Date(json['updated_at'])),
55
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
54
56
  };
55
57
  }
56
58
  export function ParkingLotToJSON(json) {
@@ -70,5 +72,6 @@ export function ParkingLotToJSONTyped(value, ignoreDiscriminator = false) {
70
72
  'paid': value['paid'],
71
73
  'reservation_required': value['reservationRequired'],
72
74
  'updated_at': value['updatedAt'].toISOString(),
75
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
73
76
  };
74
77
  }
@@ -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.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { RunStatusFromJSON, RunStatusToJSON, } from './RunStatus';
15
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
15
16
  import { RunDifficultyFromJSON, RunDifficultyToJSON, } from './RunDifficulty';
16
17
  /**
17
18
  * Check if a given object implements the Run interface.
@@ -62,6 +63,7 @@ export function RunFromJSONTyped(json, ignoreDiscriminator) {
62
63
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
63
64
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
64
65
  'updatedAt': (new Date(json['updated_at'])),
66
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
65
67
  };
66
68
  }
67
69
  export function RunToJSON(json) {
@@ -87,5 +89,6 @@ export function RunToJSONTyped(value, ignoreDiscriminator = false) {
87
89
  'area_name': value['areaName'],
88
90
  'area_display_order': value['areaDisplayOrder'],
89
91
  'updated_at': value['updatedAt'].toISOString(),
92
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
90
93
  };
91
94
  }
@@ -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.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { SummerTrailStatusFromJSON, SummerTrailStatusToJSON, } from './SummerTrailStatus';
15
15
  import { SummerTrailTypeFromJSON, SummerTrailTypeToJSON, } from './SummerTrailType';
16
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
16
17
  import { SummerTrailDifficultyFromJSON, SummerTrailDifficultyToJSON, } from './SummerTrailDifficulty';
17
18
  /**
18
19
  * Check if a given object implements the SummerTrail interface.
@@ -54,6 +55,7 @@ export function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
54
55
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
55
56
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
56
57
  'updatedAt': (new Date(json['updated_at'])),
58
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
57
59
  };
58
60
  }
59
61
  export function SummerTrailToJSON(json) {
@@ -76,5 +78,6 @@ export function SummerTrailToJSONTyped(value, ignoreDiscriminator = false) {
76
78
  'area_name': value['areaName'],
77
79
  'area_display_order': value['areaDisplayOrder'],
78
80
  'updated_at': value['updatedAt'].toISOString(),
81
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
79
82
  };
80
83
  }
@@ -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.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { TerrainParkFeatureFromJSON, TerrainParkFeatureToJSON, } from './TerrainParkFeature';
15
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
15
16
  import { TerrainParkStatusFromJSON, TerrainParkStatusToJSON, } from './TerrainParkStatus';
16
17
  /**
17
18
  * Check if a given object implements the TerrainPark interface.
@@ -52,6 +53,7 @@ export function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
53
54
  'features': (json['features'].map(TerrainParkFeatureFromJSON)),
54
55
  'updatedAt': (new Date(json['updated_at'])),
56
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
55
57
  };
56
58
  }
57
59
  export function TerrainParkToJSON(json) {
@@ -73,5 +75,6 @@ export function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
73
75
  'area_display_order': value['areaDisplayOrder'],
74
76
  'features': (value['features'].map(TerrainParkFeatureToJSON)),
75
77
  'updated_at': value['updatedAt'].toISOString(),
78
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
76
79
  };
77
80
  }
@@ -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.
@@ -14,6 +14,7 @@
14
14
  import { FeatureTypeFromJSON, FeatureTypeToJSON, } from './FeatureType';
15
15
  import { FeatureSizeFromJSON, FeatureSizeToJSON, } from './FeatureSize';
16
16
  import { TerrainParkFeatureStatusFromJSON, TerrainParkFeatureStatusToJSON, } from './TerrainParkFeatureStatus';
17
+ import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
17
18
  /**
18
19
  * Check if a given object implements the TerrainParkFeature interface.
19
20
  */
@@ -45,6 +46,7 @@ export function TerrainParkFeatureFromJSONTyped(json, ignoreDiscriminator) {
45
46
  'featureType': FeatureTypeFromJSON(json['feature_type']),
46
47
  'size': json['size'] == null ? undefined : FeatureSizeFromJSON(json['size']),
47
48
  'status': TerrainParkFeatureStatusFromJSON(json['status']),
49
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
48
50
  };
49
51
  }
50
52
  export function TerrainParkFeatureToJSON(json) {
@@ -62,5 +64,6 @@ export function TerrainParkFeatureToJSONTyped(value, ignoreDiscriminator = false
62
64
  'feature_type': FeatureTypeToJSON(value['featureType']),
63
65
  'size': FeatureSizeToJSON(value['size']),
64
66
  'status': TerrainParkFeatureStatusToJSON(value['status']),
67
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImageToJSON)),
65
68
  };
66
69
  }
@@ -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 {string}
58
- * @memberof TrailMapElementOneOf6
59
- */
60
- label: string;
61
- /**
62
- *
63
- * @type {boolean}
58
+ * @type {Webcam}
64
59
  * @memberof TrailMapElementOneOf6
65
60
  */
66
- searchable?: boolean | null;
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 GenericMarker: "generic_marker";
73
+ readonly WebcamMarker: "webcam_marker";
79
74
  };
80
75
  export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
81
76
  /**
@@ -11,12 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { WebcamFromJSON, WebcamToJSON, } from './Webcam';
14
15
  import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
15
16
  /**
16
17
  * @export
17
18
  */
18
19
  export const TrailMapElementOneOf6TypeEnum = {
19
- GenericMarker: 'generic_marker'
20
+ WebcamMarker: 'webcam_marker'
20
21
  };
21
22
  /**
22
23
  * Check if a given object implements the TrailMapElementOneOf6 interface.
@@ -24,7 +25,7 @@ export const TrailMapElementOneOf6TypeEnum = {
24
25
  export function instanceOfTrailMapElementOneOf6(value) {
25
26
  if (!('type' in value) || value['type'] === undefined)
26
27
  return false;
27
- if (value['type'] !== 'generic_marker')
28
+ if (value['type'] !== 'webcam_marker')
28
29
  return false;
29
30
  if (!('uuid' in value) || value['uuid'] === undefined)
30
31
  return false;
@@ -32,8 +33,6 @@ export function instanceOfTrailMapElementOneOf6(value) {
32
33
  return false;
33
34
  if (!('y' in value) || value['y'] === undefined)
34
35
  return false;
35
- if (!('label' in value) || value['label'] === undefined)
36
- return false;
37
36
  return true;
38
37
  }
39
38
  export function TrailMapElementOneOf6FromJSON(json) {
@@ -50,8 +49,7 @@ export function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
50
49
  'y': json['y'],
51
50
  'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
52
51
  'color': json['color'] == null ? undefined : json['color'],
53
- 'label': json['label'],
54
- 'searchable': json['searchable'] == null ? undefined : json['searchable'],
52
+ 'webcam': json['webcam'] == null ? undefined : WebcamFromJSON(json['webcam']),
55
53
  'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
56
54
  };
57
55
  }
@@ -69,8 +67,7 @@ export function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = fa
69
67
  'y': value['y'],
70
68
  'icon': MarkerIconToJSON(value['icon']),
71
69
  'color': value['color'],
72
- 'label': value['label'],
73
- 'searchable': value['searchable'],
70
+ 'webcam': WebcamToJSON(value['webcam']),
74
71
  'group_label': value['groupLabel'],
75
72
  };
76
73
  }
@@ -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,76 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
15
+ /**
16
+ * @export
17
+ */
18
+ export const TrailMapElementOneOf7TypeEnum = {
19
+ GenericMarker: 'generic_marker'
20
+ };
21
+ /**
22
+ * Check if a given object implements the TrailMapElementOneOf7 interface.
23
+ */
24
+ export function instanceOfTrailMapElementOneOf7(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ if (value['type'] !== 'generic_marker')
28
+ return false;
29
+ if (!('uuid' in value) || value['uuid'] === undefined)
30
+ return false;
31
+ if (!('x' in value) || value['x'] === undefined)
32
+ return false;
33
+ if (!('y' in value) || value['y'] === undefined)
34
+ return false;
35
+ if (!('label' in value) || value['label'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function TrailMapElementOneOf7FromJSON(json) {
40
+ return TrailMapElementOneOf7FromJSONTyped(json, false);
41
+ }
42
+ export function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'type': json['type'],
48
+ 'uuid': json['uuid'],
49
+ 'x': json['x'],
50
+ 'y': json['y'],
51
+ 'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
52
+ 'color': json['color'] == null ? undefined : json['color'],
53
+ 'label': json['label'],
54
+ 'searchable': json['searchable'] == null ? undefined : json['searchable'],
55
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
56
+ };
57
+ }
58
+ export function TrailMapElementOneOf7ToJSON(json) {
59
+ return TrailMapElementOneOf7ToJSONTyped(json, false);
60
+ }
61
+ export function TrailMapElementOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'type': value['type'],
67
+ 'uuid': value['uuid'],
68
+ 'x': value['x'],
69
+ 'y': value['y'],
70
+ 'icon': MarkerIconToJSON(value['icon']),
71
+ 'color': value['color'],
72
+ 'label': value['label'],
73
+ 'searchable': value['searchable'],
74
+ 'group_label': value['groupLabel'],
75
+ };
76
+ }
@@ -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}