@mtnmanager/sdk 1.2.1 → 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 (168) 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 +1 -1
  11. package/dist/esm/models/CalendarDay.js +2 -2
  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.js +1 -1
  31. package/dist/esm/models/Overview.d.ts +20 -100
  32. package/dist/esm/models/Overview.js +19 -52
  33. package/dist/esm/models/OverviewLifts.d.ts +45 -0
  34. package/dist/esm/models/OverviewLifts.js +49 -0
  35. package/dist/esm/models/OverviewNews.d.ts +44 -0
  36. package/dist/esm/models/OverviewNews.js +51 -0
  37. package/dist/esm/models/OverviewRuns.d.ts +66 -0
  38. package/dist/esm/models/OverviewRuns.js +55 -0
  39. package/dist/esm/models/OverviewSummerTrails.d.ts +45 -0
  40. package/dist/esm/models/OverviewSummerTrails.js +49 -0
  41. package/dist/esm/models/OverviewTerrainParks.d.ts +45 -0
  42. package/dist/esm/models/OverviewTerrainParks.js +49 -0
  43. package/dist/esm/models/ParkingLot.js +2 -2
  44. package/dist/esm/models/PathUuid.d.ts +32 -0
  45. package/dist/esm/models/PathUuid.js +43 -0
  46. package/dist/esm/models/PointMarker.d.ts +24 -0
  47. package/dist/esm/models/PointMarker.js +58 -0
  48. package/dist/esm/models/PointMarkerOneOf.d.ts +77 -0
  49. package/dist/esm/models/PointMarkerOneOf.js +71 -0
  50. package/dist/esm/models/PointMarkerOneOf1.d.ts +77 -0
  51. package/dist/esm/models/PointMarkerOneOf1.js +71 -0
  52. package/dist/esm/models/PointMarkerOneOf2.d.ts +82 -0
  53. package/dist/esm/models/PointMarkerOneOf2.js +74 -0
  54. package/dist/esm/models/ResortInfo.js +1 -1
  55. package/dist/esm/models/Run.js +4 -4
  56. package/dist/esm/models/Schedule.js +9 -9
  57. package/dist/esm/models/SeasonType.d.ts +4 -9
  58. package/dist/esm/models/SeasonType.js +23 -24
  59. package/dist/esm/models/SnowMetrics.js +4 -4
  60. package/dist/esm/models/SnowReport.d.ts +34 -0
  61. package/dist/esm/models/SnowReport.js +4 -4
  62. package/dist/esm/models/SummerTrail.d.ts +1 -1
  63. package/dist/esm/models/SummerTrail.js +3 -3
  64. package/dist/esm/models/TerrainPark.js +2 -2
  65. package/dist/esm/models/TerrainParkFeature.d.ts +1 -1
  66. package/dist/esm/models/TerrainParkFeature.js +1 -1
  67. package/dist/esm/models/TrailMap.d.ts +84 -0
  68. package/dist/esm/models/TrailMap.js +77 -0
  69. package/dist/esm/models/TrailMapElement.d.ts +26 -0
  70. package/dist/esm/models/TrailMapElement.js +72 -0
  71. package/dist/esm/models/TrailMapElementOneOf.d.ts +64 -0
  72. package/dist/esm/models/TrailMapElementOneOf.js +64 -0
  73. package/dist/esm/models/TrailMapElementOneOf1.d.ts +64 -0
  74. package/dist/esm/models/TrailMapElementOneOf1.js +64 -0
  75. package/dist/esm/models/TrailMapElementOneOf2.d.ts +71 -0
  76. package/dist/esm/models/TrailMapElementOneOf2.js +67 -0
  77. package/dist/esm/models/TrailMapElementOneOf3.d.ts +64 -0
  78. package/dist/esm/models/TrailMapElementOneOf3.js +64 -0
  79. package/dist/esm/models/TrailMapElementOneOf4.d.ts +39 -0
  80. package/dist/esm/models/TrailMapElementOneOf4.js +48 -0
  81. package/dist/esm/models/TrailMapSummary.d.ts +57 -0
  82. package/dist/esm/models/TrailMapSummary.js +60 -0
  83. package/dist/esm/models/Weather.js +3 -3
  84. package/dist/esm/models/index.d.ts +22 -0
  85. package/dist/esm/models/index.js +22 -0
  86. package/dist/esm/runtime.js +16 -1
  87. package/dist/models/Amenity.d.ts +69 -0
  88. package/dist/models/Amenity.js +71 -0
  89. package/dist/models/AmenityCategory.d.ts +12 -3
  90. package/dist/models/AmenityCategory.js +12 -3
  91. package/dist/models/CalendarDay.d.ts +1 -1
  92. package/dist/models/CalendarDay.js +2 -2
  93. package/dist/models/CurrentWeather.js +1 -1
  94. package/dist/models/CurrentWeatherImperial.js +2 -2
  95. package/dist/models/CurrentWeatherMetric.js +2 -2
  96. package/dist/models/DailyForecast.js +1 -1
  97. package/dist/models/DailyForecastImperial.js +2 -2
  98. package/dist/models/DailyForecastMetric.js +2 -2
  99. package/dist/models/FullReport.js +3 -3
  100. package/dist/models/GeoControlPoint.d.ts +50 -0
  101. package/dist/models/GeoControlPoint.js +62 -0
  102. package/dist/models/HourlyForecast.js +1 -1
  103. package/dist/models/HourlyForecastImperial.js +1 -1
  104. package/dist/models/HourlyForecastMetric.js +1 -1
  105. package/dist/models/LabelOffset.d.ts +38 -0
  106. package/dist/models/LabelOffset.js +54 -0
  107. package/dist/models/Lift.d.ts +30 -0
  108. package/dist/models/Lift.js +13 -3
  109. package/dist/models/MarkerIcon.d.ts +45 -0
  110. package/dist/models/MarkerIcon.js +71 -0
  111. package/dist/models/OperatingHours.js +1 -1
  112. package/dist/models/Overview.d.ts +20 -100
  113. package/dist/models/Overview.js +19 -52
  114. package/dist/models/OverviewLifts.d.ts +45 -0
  115. package/dist/models/OverviewLifts.js +56 -0
  116. package/dist/models/OverviewNews.d.ts +44 -0
  117. package/dist/models/OverviewNews.js +58 -0
  118. package/dist/models/OverviewRuns.d.ts +66 -0
  119. package/dist/models/OverviewRuns.js +62 -0
  120. package/dist/models/OverviewSummerTrails.d.ts +45 -0
  121. package/dist/models/OverviewSummerTrails.js +56 -0
  122. package/dist/models/OverviewTerrainParks.d.ts +45 -0
  123. package/dist/models/OverviewTerrainParks.js +56 -0
  124. package/dist/models/ParkingLot.js +2 -2
  125. package/dist/models/PathUuid.d.ts +32 -0
  126. package/dist/models/PathUuid.js +50 -0
  127. package/dist/models/PointMarker.d.ts +24 -0
  128. package/dist/models/PointMarker.js +64 -0
  129. package/dist/models/PointMarkerOneOf.d.ts +77 -0
  130. package/dist/models/PointMarkerOneOf.js +79 -0
  131. package/dist/models/PointMarkerOneOf1.d.ts +77 -0
  132. package/dist/models/PointMarkerOneOf1.js +79 -0
  133. package/dist/models/PointMarkerOneOf2.d.ts +82 -0
  134. package/dist/models/PointMarkerOneOf2.js +82 -0
  135. package/dist/models/ResortInfo.js +1 -1
  136. package/dist/models/Run.js +4 -4
  137. package/dist/models/Schedule.js +9 -9
  138. package/dist/models/SeasonType.d.ts +4 -9
  139. package/dist/models/SeasonType.js +23 -26
  140. package/dist/models/SnowMetrics.js +4 -4
  141. package/dist/models/SnowReport.d.ts +34 -0
  142. package/dist/models/SnowReport.js +4 -4
  143. package/dist/models/SummerTrail.d.ts +1 -1
  144. package/dist/models/SummerTrail.js +3 -3
  145. package/dist/models/TerrainPark.js +2 -2
  146. package/dist/models/TerrainParkFeature.d.ts +1 -1
  147. package/dist/models/TerrainParkFeature.js +1 -1
  148. package/dist/models/TrailMap.d.ts +84 -0
  149. package/dist/models/TrailMap.js +84 -0
  150. package/dist/models/TrailMapElement.d.ts +26 -0
  151. package/dist/models/TrailMapElement.js +78 -0
  152. package/dist/models/TrailMapElementOneOf.d.ts +64 -0
  153. package/dist/models/TrailMapElementOneOf.js +72 -0
  154. package/dist/models/TrailMapElementOneOf1.d.ts +64 -0
  155. package/dist/models/TrailMapElementOneOf1.js +72 -0
  156. package/dist/models/TrailMapElementOneOf2.d.ts +71 -0
  157. package/dist/models/TrailMapElementOneOf2.js +75 -0
  158. package/dist/models/TrailMapElementOneOf3.d.ts +64 -0
  159. package/dist/models/TrailMapElementOneOf3.js +72 -0
  160. package/dist/models/TrailMapElementOneOf4.d.ts +39 -0
  161. package/dist/models/TrailMapElementOneOf4.js +56 -0
  162. package/dist/models/TrailMapSummary.d.ts +57 -0
  163. package/dist/models/TrailMapSummary.js +67 -0
  164. package/dist/models/Weather.js +3 -3
  165. package/dist/models/index.d.ts +22 -0
  166. package/dist/models/index.js +22 -0
  167. package/dist/runtime.js +16 -1
  168. package/package.json +1 -1
@@ -0,0 +1,84 @@
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 { ResortInfo } from './ResortInfo';
13
+ import type { TrailMapElement } from './TrailMapElement';
14
+ import type { SeasonType } from './SeasonType';
15
+ import type { GeoControlPoint } from './GeoControlPoint';
16
+ /**
17
+ * A public trail map with enriched entity data.
18
+ * @export
19
+ * @interface TrailMap
20
+ */
21
+ export interface TrailMap {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TrailMap
26
+ */
27
+ uuid: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TrailMap
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof TrailMap
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {SeasonType}
43
+ * @memberof TrailMap
44
+ */
45
+ season: SeasonType;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof TrailMap
50
+ */
51
+ displayOrder: number;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof TrailMap
56
+ */
57
+ backgroundImageUrl: string;
58
+ /**
59
+ *
60
+ * @type {ResortInfo}
61
+ * @memberof TrailMap
62
+ */
63
+ resort: ResortInfo;
64
+ /**
65
+ *
66
+ * @type {Array<TrailMapElement>}
67
+ * @memberof TrailMap
68
+ */
69
+ elements: Array<TrailMapElement>;
70
+ /**
71
+ *
72
+ * @type {Array<GeoControlPoint>}
73
+ * @memberof TrailMap
74
+ */
75
+ geoControlPoints?: Array<GeoControlPoint> | null;
76
+ }
77
+ /**
78
+ * Check if a given object implements the TrailMap interface.
79
+ */
80
+ export declare function instanceOfTrailMap(value: object): value is TrailMap;
81
+ export declare function TrailMapFromJSON(json: any): TrailMap;
82
+ export declare function TrailMapFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMap;
83
+ export declare function TrailMapToJSON(json: any): TrailMap;
84
+ export declare function TrailMapToJSONTyped(value?: TrailMap | 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.instanceOfTrailMap = instanceOfTrailMap;
17
+ exports.TrailMapFromJSON = TrailMapFromJSON;
18
+ exports.TrailMapFromJSONTyped = TrailMapFromJSONTyped;
19
+ exports.TrailMapToJSON = TrailMapToJSON;
20
+ exports.TrailMapToJSONTyped = TrailMapToJSONTyped;
21
+ const ResortInfo_1 = require("./ResortInfo");
22
+ const TrailMapElement_1 = require("./TrailMapElement");
23
+ const SeasonType_1 = require("./SeasonType");
24
+ const GeoControlPoint_1 = require("./GeoControlPoint");
25
+ /**
26
+ * Check if a given object implements the TrailMap interface.
27
+ */
28
+ function instanceOfTrailMap(value) {
29
+ if (!('uuid' in value) || value['uuid'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('slug' in value) || value['slug'] === undefined)
34
+ return false;
35
+ if (!('season' in value) || value['season'] === undefined)
36
+ return false;
37
+ if ((!('displayOrder' in value) && !('display_order' in value)) || (value['displayOrder'] === undefined && value['display_order'] === undefined))
38
+ return false;
39
+ if ((!('backgroundImageUrl' in value) && !('background_image_url' in value)) || (value['backgroundImageUrl'] === undefined && value['background_image_url'] === undefined))
40
+ return false;
41
+ if (!('resort' in value) || value['resort'] === undefined)
42
+ return false;
43
+ if (!('elements' in value) || value['elements'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function TrailMapFromJSON(json) {
48
+ return TrailMapFromJSONTyped(json, false);
49
+ }
50
+ function TrailMapFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'uuid': json['uuid'],
56
+ 'name': json['name'],
57
+ 'slug': json['slug'],
58
+ 'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
59
+ 'displayOrder': json['display_order'],
60
+ 'backgroundImageUrl': json['background_image_url'],
61
+ 'resort': (0, ResortInfo_1.ResortInfoFromJSON)(json['resort']),
62
+ 'elements': (json['elements'].map(TrailMapElement_1.TrailMapElementFromJSON)),
63
+ 'geoControlPoints': json['geo_control_points'] == null ? undefined : (json['geo_control_points'].map(GeoControlPoint_1.GeoControlPointFromJSON)),
64
+ };
65
+ }
66
+ function TrailMapToJSON(json) {
67
+ return TrailMapToJSONTyped(json, false);
68
+ }
69
+ function TrailMapToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'uuid': value['uuid'],
75
+ 'name': value['name'],
76
+ 'slug': value['slug'],
77
+ 'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
78
+ 'display_order': value['displayOrder'],
79
+ 'background_image_url': value['backgroundImageUrl'],
80
+ 'resort': (0, ResortInfo_1.ResortInfoToJSON)(value['resort']),
81
+ 'elements': (value['elements'].map(TrailMapElement_1.TrailMapElementToJSON)),
82
+ 'geo_control_points': value['geoControlPoints'] == null ? undefined : (value['geoControlPoints'].map(GeoControlPoint_1.GeoControlPointToJSON)),
83
+ };
84
+ }
@@ -0,0 +1,26 @@
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 { TrailMapElementOneOf } from './TrailMapElementOneOf';
13
+ import type { TrailMapElementOneOf1 } from './TrailMapElementOneOf1';
14
+ import type { TrailMapElementOneOf2 } from './TrailMapElementOneOf2';
15
+ import type { TrailMapElementOneOf3 } from './TrailMapElementOneOf3';
16
+ import type { TrailMapElementOneOf4 } from './TrailMapElementOneOf4';
17
+ /**
18
+ * @type TrailMapElement
19
+ * A trail map element with full entity data from existing public models.
20
+ * @export
21
+ */
22
+ export type TrailMapElement = TrailMapElementOneOf | TrailMapElementOneOf1 | TrailMapElementOneOf2 | TrailMapElementOneOf3 | TrailMapElementOneOf4;
23
+ export declare function TrailMapElementFromJSON(json: any): TrailMapElement;
24
+ export declare function TrailMapElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElement;
25
+ export declare function TrailMapElementToJSON(json: any): any;
26
+ export declare function TrailMapElementToJSONTyped(value?: TrailMapElement | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
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.TrailMapElementFromJSON = TrailMapElementFromJSON;
17
+ exports.TrailMapElementFromJSONTyped = TrailMapElementFromJSONTyped;
18
+ exports.TrailMapElementToJSON = TrailMapElementToJSON;
19
+ exports.TrailMapElementToJSONTyped = TrailMapElementToJSONTyped;
20
+ const TrailMapElementOneOf_1 = require("./TrailMapElementOneOf");
21
+ const TrailMapElementOneOf1_1 = require("./TrailMapElementOneOf1");
22
+ const TrailMapElementOneOf2_1 = require("./TrailMapElementOneOf2");
23
+ const TrailMapElementOneOf3_1 = require("./TrailMapElementOneOf3");
24
+ const TrailMapElementOneOf4_1 = require("./TrailMapElementOneOf4");
25
+ function TrailMapElementFromJSON(json) {
26
+ return TrailMapElementFromJSONTyped(json, false);
27
+ }
28
+ function TrailMapElementFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ if (typeof json !== 'object') {
33
+ return json;
34
+ }
35
+ if ((0, TrailMapElementOneOf_1.instanceOfTrailMapElementOneOf)(json)) {
36
+ return (0, TrailMapElementOneOf_1.TrailMapElementOneOfFromJSONTyped)(json, true);
37
+ }
38
+ if ((0, TrailMapElementOneOf1_1.instanceOfTrailMapElementOneOf1)(json)) {
39
+ return (0, TrailMapElementOneOf1_1.TrailMapElementOneOf1FromJSONTyped)(json, true);
40
+ }
41
+ if ((0, TrailMapElementOneOf2_1.instanceOfTrailMapElementOneOf2)(json)) {
42
+ return (0, TrailMapElementOneOf2_1.TrailMapElementOneOf2FromJSONTyped)(json, true);
43
+ }
44
+ if ((0, TrailMapElementOneOf3_1.instanceOfTrailMapElementOneOf3)(json)) {
45
+ return (0, TrailMapElementOneOf3_1.TrailMapElementOneOf3FromJSONTyped)(json, true);
46
+ }
47
+ if ((0, TrailMapElementOneOf4_1.instanceOfTrailMapElementOneOf4)(json)) {
48
+ return (0, TrailMapElementOneOf4_1.TrailMapElementOneOf4FromJSONTyped)(json, true);
49
+ }
50
+ return {};
51
+ }
52
+ function TrailMapElementToJSON(json) {
53
+ return TrailMapElementToJSONTyped(json, false);
54
+ }
55
+ function TrailMapElementToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ if (typeof value !== 'object') {
60
+ return value;
61
+ }
62
+ if ((0, TrailMapElementOneOf_1.instanceOfTrailMapElementOneOf)(value)) {
63
+ return (0, TrailMapElementOneOf_1.TrailMapElementOneOfToJSON)(value);
64
+ }
65
+ if ((0, TrailMapElementOneOf1_1.instanceOfTrailMapElementOneOf1)(value)) {
66
+ return (0, TrailMapElementOneOf1_1.TrailMapElementOneOf1ToJSON)(value);
67
+ }
68
+ if ((0, TrailMapElementOneOf2_1.instanceOfTrailMapElementOneOf2)(value)) {
69
+ return (0, TrailMapElementOneOf2_1.TrailMapElementOneOf2ToJSON)(value);
70
+ }
71
+ if ((0, TrailMapElementOneOf3_1.instanceOfTrailMapElementOneOf3)(value)) {
72
+ return (0, TrailMapElementOneOf3_1.TrailMapElementOneOf3ToJSON)(value);
73
+ }
74
+ if ((0, TrailMapElementOneOf4_1.instanceOfTrailMapElementOneOf4)(value)) {
75
+ return (0, TrailMapElementOneOf4_1.TrailMapElementOneOf4ToJSON)(value);
76
+ }
77
+ return {};
78
+ }
@@ -0,0 +1,64 @@
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 { Lift } from './Lift';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TrailMapElementOneOf
17
+ */
18
+ export interface TrailMapElementOneOf {
19
+ /**
20
+ *
21
+ * @type {TrailMapElementOneOfTypeEnum}
22
+ * @memberof TrailMapElementOneOf
23
+ */
24
+ type: TrailMapElementOneOfTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TrailMapElementOneOf
29
+ */
30
+ uuid: string;
31
+ /**
32
+ *
33
+ * @type {Array<number>}
34
+ * @memberof TrailMapElementOneOf
35
+ */
36
+ points: Array<number>;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof TrailMapElementOneOf
41
+ */
42
+ tension?: number | null;
43
+ /**
44
+ *
45
+ * @type {Lift}
46
+ * @memberof TrailMapElementOneOf
47
+ */
48
+ lift?: Lift | null;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const TrailMapElementOneOfTypeEnum: {
54
+ readonly Lift: "lift";
55
+ };
56
+ export type TrailMapElementOneOfTypeEnum = typeof TrailMapElementOneOfTypeEnum[keyof typeof TrailMapElementOneOfTypeEnum];
57
+ /**
58
+ * Check if a given object implements the TrailMapElementOneOf interface.
59
+ */
60
+ export declare function instanceOfTrailMapElementOneOf(value: object): value is TrailMapElementOneOf;
61
+ export declare function TrailMapElementOneOfFromJSON(json: any): TrailMapElementOneOf;
62
+ export declare function TrailMapElementOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf;
63
+ export declare function TrailMapElementOneOfToJSON(json: any): TrailMapElementOneOf;
64
+ export declare function TrailMapElementOneOfToJSONTyped(value?: TrailMapElementOneOf | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.TrailMapElementOneOfTypeEnum = void 0;
17
+ exports.instanceOfTrailMapElementOneOf = instanceOfTrailMapElementOneOf;
18
+ exports.TrailMapElementOneOfFromJSON = TrailMapElementOneOfFromJSON;
19
+ exports.TrailMapElementOneOfFromJSONTyped = TrailMapElementOneOfFromJSONTyped;
20
+ exports.TrailMapElementOneOfToJSON = TrailMapElementOneOfToJSON;
21
+ exports.TrailMapElementOneOfToJSONTyped = TrailMapElementOneOfToJSONTyped;
22
+ const Lift_1 = require("./Lift");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.TrailMapElementOneOfTypeEnum = {
27
+ Lift: 'lift'
28
+ };
29
+ /**
30
+ * Check if a given object implements the TrailMapElementOneOf interface.
31
+ */
32
+ function instanceOfTrailMapElementOneOf(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (value['type'] !== 'lift')
36
+ return false;
37
+ if (!('uuid' in value) || value['uuid'] === undefined)
38
+ return false;
39
+ if (!('points' in value) || value['points'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function TrailMapElementOneOfFromJSON(json) {
44
+ return TrailMapElementOneOfFromJSONTyped(json, false);
45
+ }
46
+ function TrailMapElementOneOfFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'type': json['type'],
52
+ 'uuid': json['uuid'],
53
+ 'points': json['points'],
54
+ 'tension': json['tension'] == null ? undefined : json['tension'],
55
+ 'lift': json['lift'] == null ? undefined : (0, Lift_1.LiftFromJSON)(json['lift']),
56
+ };
57
+ }
58
+ function TrailMapElementOneOfToJSON(json) {
59
+ return TrailMapElementOneOfToJSONTyped(json, false);
60
+ }
61
+ function TrailMapElementOneOfToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'type': value['type'],
67
+ 'uuid': value['uuid'],
68
+ 'points': value['points'],
69
+ 'tension': value['tension'],
70
+ 'lift': (0, Lift_1.LiftToJSON)(value['lift']),
71
+ };
72
+ }
@@ -0,0 +1,64 @@
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 { Run } from './Run';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TrailMapElementOneOf1
17
+ */
18
+ export interface TrailMapElementOneOf1 {
19
+ /**
20
+ *
21
+ * @type {TrailMapElementOneOf1TypeEnum}
22
+ * @memberof TrailMapElementOneOf1
23
+ */
24
+ type: TrailMapElementOneOf1TypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TrailMapElementOneOf1
29
+ */
30
+ uuid: string;
31
+ /**
32
+ *
33
+ * @type {Array<number>}
34
+ * @memberof TrailMapElementOneOf1
35
+ */
36
+ points: Array<number>;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof TrailMapElementOneOf1
41
+ */
42
+ tension?: number | null;
43
+ /**
44
+ *
45
+ * @type {Run}
46
+ * @memberof TrailMapElementOneOf1
47
+ */
48
+ run?: Run | null;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const TrailMapElementOneOf1TypeEnum: {
54
+ readonly Run: "run";
55
+ };
56
+ export type TrailMapElementOneOf1TypeEnum = typeof TrailMapElementOneOf1TypeEnum[keyof typeof TrailMapElementOneOf1TypeEnum];
57
+ /**
58
+ * Check if a given object implements the TrailMapElementOneOf1 interface.
59
+ */
60
+ export declare function instanceOfTrailMapElementOneOf1(value: object): value is TrailMapElementOneOf1;
61
+ export declare function TrailMapElementOneOf1FromJSON(json: any): TrailMapElementOneOf1;
62
+ export declare function TrailMapElementOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf1;
63
+ export declare function TrailMapElementOneOf1ToJSON(json: any): TrailMapElementOneOf1;
64
+ export declare function TrailMapElementOneOf1ToJSONTyped(value?: TrailMapElementOneOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.TrailMapElementOneOf1TypeEnum = void 0;
17
+ exports.instanceOfTrailMapElementOneOf1 = instanceOfTrailMapElementOneOf1;
18
+ exports.TrailMapElementOneOf1FromJSON = TrailMapElementOneOf1FromJSON;
19
+ exports.TrailMapElementOneOf1FromJSONTyped = TrailMapElementOneOf1FromJSONTyped;
20
+ exports.TrailMapElementOneOf1ToJSON = TrailMapElementOneOf1ToJSON;
21
+ exports.TrailMapElementOneOf1ToJSONTyped = TrailMapElementOneOf1ToJSONTyped;
22
+ const Run_1 = require("./Run");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.TrailMapElementOneOf1TypeEnum = {
27
+ Run: 'run'
28
+ };
29
+ /**
30
+ * Check if a given object implements the TrailMapElementOneOf1 interface.
31
+ */
32
+ function instanceOfTrailMapElementOneOf1(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (value['type'] !== 'run')
36
+ return false;
37
+ if (!('uuid' in value) || value['uuid'] === undefined)
38
+ return false;
39
+ if (!('points' in value) || value['points'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function TrailMapElementOneOf1FromJSON(json) {
44
+ return TrailMapElementOneOf1FromJSONTyped(json, false);
45
+ }
46
+ function TrailMapElementOneOf1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'type': json['type'],
52
+ 'uuid': json['uuid'],
53
+ 'points': json['points'],
54
+ 'tension': json['tension'] == null ? undefined : json['tension'],
55
+ 'run': json['run'] == null ? undefined : (0, Run_1.RunFromJSON)(json['run']),
56
+ };
57
+ }
58
+ function TrailMapElementOneOf1ToJSON(json) {
59
+ return TrailMapElementOneOf1ToJSONTyped(json, false);
60
+ }
61
+ function TrailMapElementOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'type': value['type'],
67
+ 'uuid': value['uuid'],
68
+ 'points': value['points'],
69
+ 'tension': value['tension'],
70
+ 'run': (0, Run_1.RunToJSON)(value['run']),
71
+ };
72
+ }
@@ -0,0 +1,71 @@
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 { LabelOffset } from './LabelOffset';
13
+ import type { TerrainPark } from './TerrainPark';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TrailMapElementOneOf2
18
+ */
19
+ export interface TrailMapElementOneOf2 {
20
+ /**
21
+ *
22
+ * @type {TrailMapElementOneOf2TypeEnum}
23
+ * @memberof TrailMapElementOneOf2
24
+ */
25
+ type: TrailMapElementOneOf2TypeEnum;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TrailMapElementOneOf2
30
+ */
31
+ uuid: string;
32
+ /**
33
+ *
34
+ * @type {Array<number>}
35
+ * @memberof TrailMapElementOneOf2
36
+ */
37
+ points: Array<number>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof TrailMapElementOneOf2
42
+ */
43
+ tension?: number | null;
44
+ /**
45
+ *
46
+ * @type {LabelOffset}
47
+ * @memberof TrailMapElementOneOf2
48
+ */
49
+ labelOffset?: LabelOffset | null;
50
+ /**
51
+ *
52
+ * @type {TerrainPark}
53
+ * @memberof TrailMapElementOneOf2
54
+ */
55
+ terrainPark?: TerrainPark | null;
56
+ }
57
+ /**
58
+ * @export
59
+ */
60
+ export declare const TrailMapElementOneOf2TypeEnum: {
61
+ readonly TerrainPark: "terrain_park";
62
+ };
63
+ export type TrailMapElementOneOf2TypeEnum = typeof TrailMapElementOneOf2TypeEnum[keyof typeof TrailMapElementOneOf2TypeEnum];
64
+ /**
65
+ * Check if a given object implements the TrailMapElementOneOf2 interface.
66
+ */
67
+ export declare function instanceOfTrailMapElementOneOf2(value: object): value is TrailMapElementOneOf2;
68
+ export declare function TrailMapElementOneOf2FromJSON(json: any): TrailMapElementOneOf2;
69
+ export declare function TrailMapElementOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf2;
70
+ export declare function TrailMapElementOneOf2ToJSON(json: any): TrailMapElementOneOf2;
71
+ export declare function TrailMapElementOneOf2ToJSONTyped(value?: TrailMapElementOneOf2 | null, ignoreDiscriminator?: boolean): any;