@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,43 @@
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 PathUuid interface.
16
+ */
17
+ export function instanceOfPathUuid(value) {
18
+ if (!('uuid' in value) || value['uuid'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PathUuidFromJSON(json) {
23
+ return PathUuidFromJSONTyped(json, false);
24
+ }
25
+ export function PathUuidFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'uuid': json['uuid'],
31
+ };
32
+ }
33
+ export function PathUuidToJSON(json) {
34
+ return PathUuidToJSONTyped(json, false);
35
+ }
36
+ export function PathUuidToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'uuid': value['uuid'],
42
+ };
43
+ }
@@ -0,0 +1,24 @@
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 { PointMarkerOneOf } from './PointMarkerOneOf';
13
+ import type { PointMarkerOneOf1 } from './PointMarkerOneOf1';
14
+ import type { PointMarkerOneOf2 } from './PointMarkerOneOf2';
15
+ /**
16
+ * @type PointMarker
17
+ * A point marker on a trail map, enriched with entity data where applicable.
18
+ * @export
19
+ */
20
+ export type PointMarker = PointMarkerOneOf | PointMarkerOneOf1 | PointMarkerOneOf2;
21
+ export declare function PointMarkerFromJSON(json: any): PointMarker;
22
+ export declare function PointMarkerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointMarker;
23
+ export declare function PointMarkerToJSON(json: any): any;
24
+ export declare function PointMarkerToJSONTyped(value?: PointMarker | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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 { instanceOfPointMarkerOneOf, PointMarkerOneOfFromJSONTyped, PointMarkerOneOfToJSON, } from './PointMarkerOneOf';
15
+ import { instanceOfPointMarkerOneOf1, PointMarkerOneOf1FromJSONTyped, PointMarkerOneOf1ToJSON, } from './PointMarkerOneOf1';
16
+ import { instanceOfPointMarkerOneOf2, PointMarkerOneOf2FromJSONTyped, PointMarkerOneOf2ToJSON, } from './PointMarkerOneOf2';
17
+ export function PointMarkerFromJSON(json) {
18
+ return PointMarkerFromJSONTyped(json, false);
19
+ }
20
+ export function PointMarkerFromJSONTyped(json, ignoreDiscriminator) {
21
+ if (json == null) {
22
+ return json;
23
+ }
24
+ if (typeof json !== 'object') {
25
+ return json;
26
+ }
27
+ if (instanceOfPointMarkerOneOf(json)) {
28
+ return PointMarkerOneOfFromJSONTyped(json, true);
29
+ }
30
+ if (instanceOfPointMarkerOneOf1(json)) {
31
+ return PointMarkerOneOf1FromJSONTyped(json, true);
32
+ }
33
+ if (instanceOfPointMarkerOneOf2(json)) {
34
+ return PointMarkerOneOf2FromJSONTyped(json, true);
35
+ }
36
+ return {};
37
+ }
38
+ export function PointMarkerToJSON(json) {
39
+ return PointMarkerToJSONTyped(json, false);
40
+ }
41
+ export function PointMarkerToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ if (typeof value !== 'object') {
46
+ return value;
47
+ }
48
+ if (instanceOfPointMarkerOneOf(value)) {
49
+ return PointMarkerOneOfToJSON(value);
50
+ }
51
+ if (instanceOfPointMarkerOneOf1(value)) {
52
+ return PointMarkerOneOf1ToJSON(value);
53
+ }
54
+ if (instanceOfPointMarkerOneOf2(value)) {
55
+ return PointMarkerOneOf2ToJSON(value);
56
+ }
57
+ return {};
58
+ }
@@ -0,0 +1,77 @@
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 { Amenity } from './Amenity';
13
+ import type { MarkerIcon } from './MarkerIcon';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PointMarkerOneOf
18
+ */
19
+ export interface PointMarkerOneOf {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof PointMarkerOneOf
24
+ */
25
+ uuid: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof PointMarkerOneOf
30
+ */
31
+ x: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof PointMarkerOneOf
36
+ */
37
+ y: number;
38
+ /**
39
+ *
40
+ * @type {MarkerIcon}
41
+ * @memberof PointMarkerOneOf
42
+ */
43
+ icon?: MarkerIcon | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PointMarkerOneOf
48
+ */
49
+ color?: string | null;
50
+ /**
51
+ *
52
+ * @type {Amenity}
53
+ * @memberof PointMarkerOneOf
54
+ */
55
+ amenity?: Amenity | null;
56
+ /**
57
+ *
58
+ * @type {PointMarkerOneOfKindEnum}
59
+ * @memberof PointMarkerOneOf
60
+ */
61
+ kind: PointMarkerOneOfKindEnum;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const PointMarkerOneOfKindEnum: {
67
+ readonly Amenity: "amenity";
68
+ };
69
+ export type PointMarkerOneOfKindEnum = typeof PointMarkerOneOfKindEnum[keyof typeof PointMarkerOneOfKindEnum];
70
+ /**
71
+ * Check if a given object implements the PointMarkerOneOf interface.
72
+ */
73
+ export declare function instanceOfPointMarkerOneOf(value: object): value is PointMarkerOneOf;
74
+ export declare function PointMarkerOneOfFromJSON(json: any): PointMarkerOneOf;
75
+ export declare function PointMarkerOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointMarkerOneOf;
76
+ export declare function PointMarkerOneOfToJSON(json: any): PointMarkerOneOf;
77
+ export declare function PointMarkerOneOfToJSONTyped(value?: PointMarkerOneOf | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 { AmenityFromJSON, AmenityToJSON, } from './Amenity';
15
+ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
16
+ /**
17
+ * @export
18
+ */
19
+ export const PointMarkerOneOfKindEnum = {
20
+ Amenity: 'amenity'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PointMarkerOneOf interface.
24
+ */
25
+ export function instanceOfPointMarkerOneOf(value) {
26
+ if (!('uuid' in value) || value['uuid'] === undefined)
27
+ return false;
28
+ if (!('x' in value) || value['x'] === undefined)
29
+ return false;
30
+ if (!('y' in value) || value['y'] === undefined)
31
+ return false;
32
+ if (!('kind' in value) || value['kind'] === undefined)
33
+ return false;
34
+ if (value['kind'] !== 'amenity')
35
+ return false;
36
+ return true;
37
+ }
38
+ export function PointMarkerOneOfFromJSON(json) {
39
+ return PointMarkerOneOfFromJSONTyped(json, false);
40
+ }
41
+ export function PointMarkerOneOfFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'uuid': json['uuid'],
47
+ 'x': json['x'],
48
+ 'y': json['y'],
49
+ 'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
50
+ 'color': json['color'] == null ? undefined : json['color'],
51
+ 'amenity': json['amenity'] == null ? undefined : AmenityFromJSON(json['amenity']),
52
+ 'kind': json['kind'],
53
+ };
54
+ }
55
+ export function PointMarkerOneOfToJSON(json) {
56
+ return PointMarkerOneOfToJSONTyped(json, false);
57
+ }
58
+ export function PointMarkerOneOfToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'uuid': value['uuid'],
64
+ 'x': value['x'],
65
+ 'y': value['y'],
66
+ 'icon': MarkerIconToJSON(value['icon']),
67
+ 'color': value['color'],
68
+ 'amenity': AmenityToJSON(value['amenity']),
69
+ 'kind': value['kind'],
70
+ };
71
+ }
@@ -0,0 +1,77 @@
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 { ParkingLot } from './ParkingLot';
13
+ import type { MarkerIcon } from './MarkerIcon';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PointMarkerOneOf1
18
+ */
19
+ export interface PointMarkerOneOf1 {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof PointMarkerOneOf1
24
+ */
25
+ uuid: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof PointMarkerOneOf1
30
+ */
31
+ x: number;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof PointMarkerOneOf1
36
+ */
37
+ y: number;
38
+ /**
39
+ *
40
+ * @type {MarkerIcon}
41
+ * @memberof PointMarkerOneOf1
42
+ */
43
+ icon?: MarkerIcon | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PointMarkerOneOf1
48
+ */
49
+ color?: string | null;
50
+ /**
51
+ *
52
+ * @type {ParkingLot}
53
+ * @memberof PointMarkerOneOf1
54
+ */
55
+ parkingLot?: ParkingLot | null;
56
+ /**
57
+ *
58
+ * @type {PointMarkerOneOf1KindEnum}
59
+ * @memberof PointMarkerOneOf1
60
+ */
61
+ kind: PointMarkerOneOf1KindEnum;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const PointMarkerOneOf1KindEnum: {
67
+ readonly ParkingLot: "parking_lot";
68
+ };
69
+ export type PointMarkerOneOf1KindEnum = typeof PointMarkerOneOf1KindEnum[keyof typeof PointMarkerOneOf1KindEnum];
70
+ /**
71
+ * Check if a given object implements the PointMarkerOneOf1 interface.
72
+ */
73
+ export declare function instanceOfPointMarkerOneOf1(value: object): value is PointMarkerOneOf1;
74
+ export declare function PointMarkerOneOf1FromJSON(json: any): PointMarkerOneOf1;
75
+ export declare function PointMarkerOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): PointMarkerOneOf1;
76
+ export declare function PointMarkerOneOf1ToJSON(json: any): PointMarkerOneOf1;
77
+ export declare function PointMarkerOneOf1ToJSONTyped(value?: PointMarkerOneOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 { ParkingLotFromJSON, ParkingLotToJSON, } from './ParkingLot';
15
+ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
16
+ /**
17
+ * @export
18
+ */
19
+ export const PointMarkerOneOf1KindEnum = {
20
+ ParkingLot: 'parking_lot'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PointMarkerOneOf1 interface.
24
+ */
25
+ export function instanceOfPointMarkerOneOf1(value) {
26
+ if (!('uuid' in value) || value['uuid'] === undefined)
27
+ return false;
28
+ if (!('x' in value) || value['x'] === undefined)
29
+ return false;
30
+ if (!('y' in value) || value['y'] === undefined)
31
+ return false;
32
+ if (!('kind' in value) || value['kind'] === undefined)
33
+ return false;
34
+ if (value['kind'] !== 'parking_lot')
35
+ return false;
36
+ return true;
37
+ }
38
+ export function PointMarkerOneOf1FromJSON(json) {
39
+ return PointMarkerOneOf1FromJSONTyped(json, false);
40
+ }
41
+ export function PointMarkerOneOf1FromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'uuid': json['uuid'],
47
+ 'x': json['x'],
48
+ 'y': json['y'],
49
+ 'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
50
+ 'color': json['color'] == null ? undefined : json['color'],
51
+ 'parkingLot': json['parking_lot'] == null ? undefined : ParkingLotFromJSON(json['parking_lot']),
52
+ 'kind': json['kind'],
53
+ };
54
+ }
55
+ export function PointMarkerOneOf1ToJSON(json) {
56
+ return PointMarkerOneOf1ToJSONTyped(json, false);
57
+ }
58
+ export function PointMarkerOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'uuid': value['uuid'],
64
+ 'x': value['x'],
65
+ 'y': value['y'],
66
+ 'icon': MarkerIconToJSON(value['icon']),
67
+ 'color': value['color'],
68
+ 'parking_lot': ParkingLotToJSON(value['parkingLot']),
69
+ 'kind': value['kind'],
70
+ };
71
+ }
@@ -0,0 +1,82 @@
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 PointMarkerOneOf2
17
+ */
18
+ export interface PointMarkerOneOf2 {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PointMarkerOneOf2
23
+ */
24
+ uuid: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof PointMarkerOneOf2
29
+ */
30
+ x: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PointMarkerOneOf2
35
+ */
36
+ y: number;
37
+ /**
38
+ *
39
+ * @type {MarkerIcon}
40
+ * @memberof PointMarkerOneOf2
41
+ */
42
+ icon?: MarkerIcon | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PointMarkerOneOf2
47
+ */
48
+ color?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PointMarkerOneOf2
53
+ */
54
+ label: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof PointMarkerOneOf2
59
+ */
60
+ searchable?: boolean | null;
61
+ /**
62
+ *
63
+ * @type {PointMarkerOneOf2KindEnum}
64
+ * @memberof PointMarkerOneOf2
65
+ */
66
+ kind: PointMarkerOneOf2KindEnum;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const PointMarkerOneOf2KindEnum: {
72
+ readonly Generic: "generic";
73
+ };
74
+ export type PointMarkerOneOf2KindEnum = typeof PointMarkerOneOf2KindEnum[keyof typeof PointMarkerOneOf2KindEnum];
75
+ /**
76
+ * Check if a given object implements the PointMarkerOneOf2 interface.
77
+ */
78
+ export declare function instanceOfPointMarkerOneOf2(value: object): value is PointMarkerOneOf2;
79
+ export declare function PointMarkerOneOf2FromJSON(json: any): PointMarkerOneOf2;
80
+ export declare function PointMarkerOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PointMarkerOneOf2;
81
+ export declare function PointMarkerOneOf2ToJSON(json: any): PointMarkerOneOf2;
82
+ export declare function PointMarkerOneOf2ToJSONTyped(value?: PointMarkerOneOf2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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 PointMarkerOneOf2KindEnum = {
19
+ Generic: 'generic'
20
+ };
21
+ /**
22
+ * Check if a given object implements the PointMarkerOneOf2 interface.
23
+ */
24
+ export function instanceOfPointMarkerOneOf2(value) {
25
+ if (!('uuid' in value) || value['uuid'] === undefined)
26
+ return false;
27
+ if (!('x' in value) || value['x'] === undefined)
28
+ return false;
29
+ if (!('y' in value) || value['y'] === undefined)
30
+ return false;
31
+ if (!('label' in value) || value['label'] === undefined)
32
+ return false;
33
+ if (!('kind' in value) || value['kind'] === undefined)
34
+ return false;
35
+ if (value['kind'] !== 'generic')
36
+ return false;
37
+ return true;
38
+ }
39
+ export function PointMarkerOneOf2FromJSON(json) {
40
+ return PointMarkerOneOf2FromJSONTyped(json, false);
41
+ }
42
+ export function PointMarkerOneOf2FromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'uuid': json['uuid'],
48
+ 'x': json['x'],
49
+ 'y': json['y'],
50
+ 'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
51
+ 'color': json['color'] == null ? undefined : json['color'],
52
+ 'label': json['label'],
53
+ 'searchable': json['searchable'] == null ? undefined : json['searchable'],
54
+ 'kind': json['kind'],
55
+ };
56
+ }
57
+ export function PointMarkerOneOf2ToJSON(json) {
58
+ return PointMarkerOneOf2ToJSONTyped(json, false);
59
+ }
60
+ export function PointMarkerOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'uuid': value['uuid'],
66
+ 'x': value['x'],
67
+ 'y': value['y'],
68
+ 'icon': MarkerIconToJSON(value['icon']),
69
+ 'color': value['color'],
70
+ 'label': value['label'],
71
+ 'searchable': value['searchable'],
72
+ 'kind': value['kind'],
73
+ };
74
+ }
@@ -27,7 +27,7 @@ export function instanceOfResortInfo(value) {
27
27
  return false;
28
28
  if (!('region' in value) || value['region'] === undefined)
29
29
  return false;
30
- if (!('unitPreference' in value) || value['unitPreference'] === undefined)
30
+ if ((!('unitPreference' in value) && !('unit_preference' in value)) || (value['unitPreference'] === undefined && value['unit_preference'] === undefined))
31
31
  return false;
32
32
  return true;
33
33
  }
@@ -27,15 +27,15 @@ export function instanceOfRun(value) {
27
27
  return false;
28
28
  if (!('status' in value) || value['status'] === undefined)
29
29
  return false;
30
- if (!('groomedToday' in value) || value['groomedToday'] === undefined)
30
+ if ((!('groomedToday' in value) && !('groomed_today' in value)) || (value['groomedToday'] === undefined && value['groomed_today'] === undefined))
31
31
  return false;
32
32
  if (!('snowmaking' in value) || value['snowmaking'] === undefined)
33
33
  return false;
34
- if (!('nightSkiing' in value) || value['nightSkiing'] === undefined)
34
+ if ((!('nightSkiing' in value) && !('night_skiing' in value)) || (value['nightSkiing'] === undefined && value['night_skiing'] === undefined))
35
35
  return false;
36
- if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
36
+ if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
37
37
  return false;
38
- if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
39
39
  return false;
40
40
  return true;
41
41
  }
@@ -16,23 +16,23 @@ import { DayOfWeekFromJSON, DayOfWeekToJSON, } from './DayOfWeek';
16
16
  * Check if a given object implements the Schedule interface.
17
17
  */
18
18
  export function instanceOfSchedule(value) {
19
- if (!('daysString' in value) || value['daysString'] === undefined)
19
+ if ((!('daysString' in value) && !('days_string' in value)) || (value['daysString'] === undefined && value['days_string'] === undefined))
20
20
  return false;
21
- if (!('daysOfWeek' in value) || value['daysOfWeek'] === undefined)
21
+ if ((!('daysOfWeek' in value) && !('days_of_week' in value)) || (value['daysOfWeek'] === undefined && value['days_of_week'] === undefined))
22
22
  return false;
23
- if (!('timeString' in value) || value['timeString'] === undefined)
23
+ if ((!('timeString' in value) && !('time_string' in value)) || (value['timeString'] === undefined && value['time_string'] === undefined))
24
24
  return false;
25
- if (!('opensAt' in value) || value['opensAt'] === undefined)
25
+ if ((!('opensAt' in value) && !('opens_at' in value)) || (value['opensAt'] === undefined && value['opens_at'] === undefined))
26
26
  return false;
27
- if (!('closesAt' in value) || value['closesAt'] === undefined)
27
+ if ((!('closesAt' in value) && !('closes_at' in value)) || (value['closesAt'] === undefined && value['closes_at'] === undefined))
28
28
  return false;
29
- if (!('inEffect' in value) || value['inEffect'] === undefined)
29
+ if ((!('inEffect' in value) && !('in_effect' in value)) || (value['inEffect'] === undefined && value['in_effect'] === undefined))
30
30
  return false;
31
- if (!('effectiveString' in value) || value['effectiveString'] === undefined)
31
+ if ((!('effectiveString' in value) && !('effective_string' in value)) || (value['effectiveString'] === undefined && value['effective_string'] === undefined))
32
32
  return false;
33
- if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
33
+ if ((!('effectiveFrom' in value) && !('effective_from' in value)) || (value['effectiveFrom'] === undefined && value['effective_from'] === undefined))
34
34
  return false;
35
- if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
35
+ if ((!('effectiveTo' in value) && !('effective_to' in value)) || (value['effectiveTo'] === undefined && value['effective_to'] === undefined))
36
36
  return false;
37
37
  return true;
38
38
  }
@@ -10,17 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
+ * @type SeasonType
13
14
  * Current operating season of the resort.
14
15
  * @export
15
16
  */
16
- export declare const SeasonType: {
17
- readonly Winter: "winter";
18
- readonly Summer: "summer";
19
- readonly Closed: "closed";
20
- };
21
- export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
22
- export declare function instanceOfSeasonType(value: any): boolean;
17
+ export type SeasonType = string;
23
18
  export declare function SeasonTypeFromJSON(json: any): SeasonType;
24
19
  export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
25
- export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
26
- export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
20
+ export declare function SeasonTypeToJSON(json: any): any;
21
+ export declare function SeasonTypeToJSONTyped(value?: SeasonType | null, ignoreDiscriminator?: boolean): any;