@mtnmanager/sdk 0.0.26 → 0.0.28

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 (194) hide show
  1. package/README.md +14 -16
  2. package/dist/apis/ReportApi.d.ts +186 -0
  3. package/dist/apis/ReportApi.js +241 -0
  4. package/dist/apis/index.d.ts +1 -6
  5. package/dist/apis/index.js +1 -6
  6. package/dist/esm/apis/ReportApi.d.ts +186 -0
  7. package/dist/esm/apis/ReportApi.js +237 -0
  8. package/dist/esm/apis/index.d.ts +1 -6
  9. package/dist/esm/apis/index.js +1 -6
  10. package/dist/esm/models/ClosureReason.d.ts +1 -1
  11. package/dist/esm/models/ClosureReason.js +1 -1
  12. package/dist/esm/models/CurrentWeather.d.ts +3 -3
  13. package/dist/esm/models/CurrentWeather.js +3 -3
  14. package/dist/esm/models/DailyForecast.d.ts +7 -7
  15. package/dist/esm/models/DailyForecast.js +7 -7
  16. package/dist/esm/models/DailyForecastImperial.d.ts +1 -1
  17. package/dist/esm/models/DailyForecastImperial.js +1 -1
  18. package/dist/esm/models/DailyForecastMetric.d.ts +1 -1
  19. package/dist/esm/models/DailyForecastMetric.js +1 -1
  20. package/dist/esm/models/DayHours.d.ts +1 -1
  21. package/dist/esm/models/DayHours.js +1 -1
  22. package/dist/esm/models/HourlyForecast.d.ts +3 -3
  23. package/dist/esm/models/HourlyForecast.js +3 -3
  24. package/dist/esm/models/HourlyForecastImperial.d.ts +1 -1
  25. package/dist/esm/models/HourlyForecastImperial.js +1 -1
  26. package/dist/esm/models/HourlyForecastMetric.d.ts +1 -1
  27. package/dist/esm/models/HourlyForecastMetric.js +1 -1
  28. package/dist/esm/models/ImperialUnits.d.ts +1 -1
  29. package/dist/esm/models/ImperialUnits.js +1 -1
  30. package/dist/esm/models/LiftStatus.d.ts +11 -5
  31. package/dist/esm/models/LiftStatus.js +26 -36
  32. package/dist/esm/models/LiftType.d.ts +20 -5
  33. package/dist/esm/models/LiftType.js +35 -90
  34. package/dist/esm/models/MetricUnits.d.ts +1 -1
  35. package/dist/esm/models/MetricUnits.js +1 -1
  36. package/dist/esm/models/OperatingHoursResponse.d.ts +1 -1
  37. package/dist/esm/models/OperatingHoursResponse.js +1 -1
  38. package/dist/esm/models/PublicLift.d.ts +1 -1
  39. package/dist/esm/models/PublicLift.js +1 -1
  40. package/dist/esm/models/PublicResortInfo.d.ts +1 -1
  41. package/dist/esm/models/PublicResortInfo.js +1 -1
  42. package/dist/esm/models/PublicResortResponse.d.ts +1 -1
  43. package/dist/esm/models/PublicResortResponse.js +1 -1
  44. package/dist/esm/models/PublicResortStatus.d.ts +1 -1
  45. package/dist/esm/models/PublicResortStatus.js +1 -1
  46. package/dist/esm/models/PublicRun.d.ts +1 -1
  47. package/dist/esm/models/PublicRun.js +1 -1
  48. package/dist/esm/models/PublicSnowReport.d.ts +1 -1
  49. package/dist/esm/models/PublicSnowReport.js +1 -1
  50. package/dist/esm/models/PublicSnowResponse.d.ts +1 -1
  51. package/dist/esm/models/PublicSnowResponse.js +1 -1
  52. package/dist/esm/models/PublicSummerTrail.d.ts +1 -1
  53. package/dist/esm/models/PublicSummerTrail.js +1 -1
  54. package/dist/esm/models/ResortStatusType.d.ts +9 -5
  55. package/dist/esm/models/ResortStatusType.js +27 -24
  56. package/dist/esm/models/RunDifficulty.d.ts +12 -5
  57. package/dist/esm/models/RunDifficulty.js +29 -42
  58. package/dist/esm/models/RunStatus.d.ts +10 -5
  59. package/dist/esm/models/RunStatus.js +25 -30
  60. package/dist/esm/models/Schedule.d.ts +5 -5
  61. package/dist/esm/models/Schedule.js +3 -4
  62. package/dist/esm/models/SeasonType.d.ts +10 -5
  63. package/dist/esm/models/SeasonType.js +25 -30
  64. package/dist/esm/models/SnowMetrics.d.ts +1 -1
  65. package/dist/esm/models/SnowMetrics.js +1 -1
  66. package/dist/esm/models/SummerTrailDifficulty.d.ts +12 -5
  67. package/dist/esm/models/SummerTrailDifficulty.js +27 -42
  68. package/dist/esm/models/SummerTrailStatus.d.ts +10 -5
  69. package/dist/esm/models/SummerTrailStatus.js +25 -30
  70. package/dist/esm/models/SummerTrailType.d.ts +9 -5
  71. package/dist/esm/models/SummerTrailType.js +24 -24
  72. package/dist/esm/models/SurfaceCondition.d.ts +22 -5
  73. package/dist/esm/models/SurfaceCondition.js +40 -102
  74. package/dist/esm/models/UnitPreference.d.ts +1 -1
  75. package/dist/esm/models/UnitPreference.js +1 -1
  76. package/dist/esm/models/WeatherConditionCode.d.ts +48 -5
  77. package/dist/esm/models/WeatherConditionCode.js +64 -24
  78. package/dist/esm/models/WeatherData.d.ts +3 -3
  79. package/dist/esm/models/WeatherData.js +4 -4
  80. package/dist/esm/models/index.d.ts +0 -3
  81. package/dist/esm/models/index.js +0 -3
  82. package/dist/esm/runtime.d.ts +1 -1
  83. package/dist/esm/runtime.js +1 -1
  84. package/dist/models/ClosureReason.d.ts +1 -1
  85. package/dist/models/ClosureReason.js +1 -1
  86. package/dist/models/CurrentWeather.d.ts +3 -3
  87. package/dist/models/CurrentWeather.js +3 -3
  88. package/dist/models/DailyForecast.d.ts +7 -7
  89. package/dist/models/DailyForecast.js +7 -7
  90. package/dist/models/DailyForecastImperial.d.ts +1 -1
  91. package/dist/models/DailyForecastImperial.js +1 -1
  92. package/dist/models/DailyForecastMetric.d.ts +1 -1
  93. package/dist/models/DailyForecastMetric.js +1 -1
  94. package/dist/models/DayHours.d.ts +1 -1
  95. package/dist/models/DayHours.js +1 -1
  96. package/dist/models/HourlyForecast.d.ts +3 -3
  97. package/dist/models/HourlyForecast.js +3 -3
  98. package/dist/models/HourlyForecastImperial.d.ts +1 -1
  99. package/dist/models/HourlyForecastImperial.js +1 -1
  100. package/dist/models/HourlyForecastMetric.d.ts +1 -1
  101. package/dist/models/HourlyForecastMetric.js +1 -1
  102. package/dist/models/ImperialUnits.d.ts +1 -1
  103. package/dist/models/ImperialUnits.js +1 -1
  104. package/dist/models/LiftStatus.d.ts +11 -5
  105. package/dist/models/LiftStatus.js +28 -36
  106. package/dist/models/LiftType.d.ts +20 -5
  107. package/dist/models/LiftType.js +37 -90
  108. package/dist/models/MetricUnits.d.ts +1 -1
  109. package/dist/models/MetricUnits.js +1 -1
  110. package/dist/models/OperatingHoursResponse.d.ts +1 -1
  111. package/dist/models/OperatingHoursResponse.js +1 -1
  112. package/dist/models/PublicLift.d.ts +1 -1
  113. package/dist/models/PublicLift.js +1 -1
  114. package/dist/models/PublicResortInfo.d.ts +1 -1
  115. package/dist/models/PublicResortInfo.js +1 -1
  116. package/dist/models/PublicResortResponse.d.ts +1 -1
  117. package/dist/models/PublicResortResponse.js +1 -1
  118. package/dist/models/PublicResortStatus.d.ts +1 -1
  119. package/dist/models/PublicResortStatus.js +1 -1
  120. package/dist/models/PublicRun.d.ts +1 -1
  121. package/dist/models/PublicRun.js +1 -1
  122. package/dist/models/PublicSnowReport.d.ts +1 -1
  123. package/dist/models/PublicSnowReport.js +1 -1
  124. package/dist/models/PublicSnowResponse.d.ts +1 -1
  125. package/dist/models/PublicSnowResponse.js +1 -1
  126. package/dist/models/PublicSummerTrail.d.ts +1 -1
  127. package/dist/models/PublicSummerTrail.js +1 -1
  128. package/dist/models/ResortStatusType.d.ts +9 -5
  129. package/dist/models/ResortStatusType.js +29 -24
  130. package/dist/models/RunDifficulty.d.ts +12 -5
  131. package/dist/models/RunDifficulty.js +31 -42
  132. package/dist/models/RunStatus.d.ts +10 -5
  133. package/dist/models/RunStatus.js +27 -30
  134. package/dist/models/Schedule.d.ts +5 -5
  135. package/dist/models/Schedule.js +3 -4
  136. package/dist/models/SeasonType.d.ts +10 -5
  137. package/dist/models/SeasonType.js +27 -30
  138. package/dist/models/SnowMetrics.d.ts +1 -1
  139. package/dist/models/SnowMetrics.js +1 -1
  140. package/dist/models/SummerTrailDifficulty.d.ts +12 -5
  141. package/dist/models/SummerTrailDifficulty.js +29 -42
  142. package/dist/models/SummerTrailStatus.d.ts +10 -5
  143. package/dist/models/SummerTrailStatus.js +27 -30
  144. package/dist/models/SummerTrailType.d.ts +9 -5
  145. package/dist/models/SummerTrailType.js +26 -24
  146. package/dist/models/SurfaceCondition.d.ts +22 -5
  147. package/dist/models/SurfaceCondition.js +42 -102
  148. package/dist/models/UnitPreference.d.ts +1 -1
  149. package/dist/models/UnitPreference.js +1 -1
  150. package/dist/models/WeatherConditionCode.d.ts +48 -5
  151. package/dist/models/WeatherConditionCode.js +66 -24
  152. package/dist/models/WeatherData.d.ts +3 -3
  153. package/dist/models/WeatherData.js +4 -4
  154. package/dist/models/index.d.ts +0 -3
  155. package/dist/models/index.js +0 -3
  156. package/dist/runtime.d.ts +1 -1
  157. package/dist/runtime.js +1 -1
  158. package/package.json +1 -1
  159. package/dist/apis/HoursApi.d.ts +0 -46
  160. package/dist/apis/HoursApi.js +0 -59
  161. package/dist/apis/LiftsApi.d.ts +0 -46
  162. package/dist/apis/LiftsApi.js +0 -59
  163. package/dist/apis/ResortApi.d.ts +0 -66
  164. package/dist/apis/ResortApi.js +0 -85
  165. package/dist/apis/RunsApi.d.ts +0 -46
  166. package/dist/apis/RunsApi.js +0 -59
  167. package/dist/apis/SnowApi.d.ts +0 -46
  168. package/dist/apis/SnowApi.js +0 -59
  169. package/dist/apis/SummerTrailsApi.d.ts +0 -46
  170. package/dist/apis/SummerTrailsApi.js +0 -59
  171. package/dist/esm/apis/HoursApi.d.ts +0 -46
  172. package/dist/esm/apis/HoursApi.js +0 -55
  173. package/dist/esm/apis/LiftsApi.d.ts +0 -46
  174. package/dist/esm/apis/LiftsApi.js +0 -55
  175. package/dist/esm/apis/ResortApi.d.ts +0 -66
  176. package/dist/esm/apis/ResortApi.js +0 -81
  177. package/dist/esm/apis/RunsApi.d.ts +0 -46
  178. package/dist/esm/apis/RunsApi.js +0 -55
  179. package/dist/esm/apis/SnowApi.d.ts +0 -46
  180. package/dist/esm/apis/SnowApi.js +0 -55
  181. package/dist/esm/apis/SummerTrailsApi.d.ts +0 -46
  182. package/dist/esm/apis/SummerTrailsApi.js +0 -55
  183. package/dist/esm/models/RecurrencePattern.d.ts +0 -23
  184. package/dist/esm/models/RecurrencePattern.js +0 -51
  185. package/dist/esm/models/RecurrencePatternOneOf.d.ts +0 -39
  186. package/dist/esm/models/RecurrencePatternOneOf.js +0 -51
  187. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +0 -45
  188. package/dist/esm/models/RecurrencePatternOneOf1.js +0 -55
  189. package/dist/models/RecurrencePattern.d.ts +0 -23
  190. package/dist/models/RecurrencePattern.js +0 -57
  191. package/dist/models/RecurrencePatternOneOf.d.ts +0 -39
  192. package/dist/models/RecurrencePatternOneOf.js +0 -59
  193. package/dist/models/RecurrencePatternOneOf1.d.ts +0 -45
  194. package/dist/models/RecurrencePatternOneOf1.js +0 -63
@@ -3,20 +3,63 @@
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@mtnmanager.com
6
+ * Contact: support@mtnmanager.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * @type WeatherConditionCode
14
13
  * Apple WeatherKit condition codes
15
14
  * Represents all possible weather conditions from the WeatherKit API
16
15
  * @export
17
16
  */
18
- export type WeatherConditionCode = string;
17
+ export declare const WeatherConditionCode: {
18
+ readonly Clear: "Clear";
19
+ readonly MostlyClear: "MostlyClear";
20
+ readonly PartlyCloudy: "PartlyCloudy";
21
+ readonly MostlyCloudy: "MostlyCloudy";
22
+ readonly Cloudy: "Cloudy";
23
+ readonly Dust: "Dust";
24
+ readonly Fog: "Fog";
25
+ readonly Haze: "Haze";
26
+ readonly Smoke: "Smoke";
27
+ readonly Breezy: "Breezy";
28
+ readonly Windy: "Windy";
29
+ readonly Drizzle: "Drizzle";
30
+ readonly Rain: "Rain";
31
+ readonly Showers: "Showers";
32
+ readonly ScatteredShowers: "ScatteredShowers";
33
+ readonly HeavyRain: "HeavyRain";
34
+ readonly Flurries: "Flurries";
35
+ readonly Snow: "Snow";
36
+ readonly SnowShowers: "SnowShowers";
37
+ readonly ScatteredSnowShowers: "ScatteredSnowShowers";
38
+ readonly HeavySnow: "HeavySnow";
39
+ readonly Blizzard: "Blizzard";
40
+ readonly BlowingSnow: "BlowingSnow";
41
+ readonly MixedRainAndSleet: "MixedRainAndSleet";
42
+ readonly MixedRainAndSnow: "MixedRainAndSnow";
43
+ readonly MixedRainfall: "MixedRainfall";
44
+ readonly MixedSnowAndSleet: "MixedSnowAndSleet";
45
+ readonly Sleet: "Sleet";
46
+ readonly FreezingDrizzle: "FreezingDrizzle";
47
+ readonly FreezingRain: "FreezingRain";
48
+ readonly Frigid: "Frigid";
49
+ readonly Hail: "Hail";
50
+ readonly ScatteredThunderstorms: "ScatteredThunderstorms";
51
+ readonly IsolatedThunderstorms: "IsolatedThunderstorms";
52
+ readonly Thunderstorm: "Thunderstorm";
53
+ readonly SevereThunderstorm: "SevereThunderstorm";
54
+ readonly Hurricane: "Hurricane";
55
+ readonly Tornado: "Tornado";
56
+ readonly TropicalStorm: "TropicalStorm";
57
+ readonly Hot: "Hot";
58
+ readonly Unknown: "Unknown";
59
+ };
60
+ export type WeatherConditionCode = typeof WeatherConditionCode[keyof typeof WeatherConditionCode];
61
+ export declare function instanceOfWeatherConditionCode(value: any): boolean;
19
62
  export declare function WeatherConditionCodeFromJSON(json: any): WeatherConditionCode;
20
63
  export declare function WeatherConditionCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WeatherConditionCode;
21
- export declare function WeatherConditionCodeToJSON(json: any): any;
22
- export declare function WeatherConditionCodeToJSONTyped(value?: WeatherConditionCode | null, ignoreDiscriminator?: boolean): any;
64
+ export declare function WeatherConditionCodeToJSON(value?: WeatherConditionCode | null): any;
65
+ export declare function WeatherConditionCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): WeatherConditionCode;
@@ -6,44 +6,86 @@
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@mtnmanager.com
9
+ * Contact: support@mtnmanager.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.WeatherConditionCode = void 0;
17
+ exports.instanceOfWeatherConditionCode = instanceOfWeatherConditionCode;
16
18
  exports.WeatherConditionCodeFromJSON = WeatherConditionCodeFromJSON;
17
19
  exports.WeatherConditionCodeFromJSONTyped = WeatherConditionCodeFromJSONTyped;
18
20
  exports.WeatherConditionCodeToJSON = WeatherConditionCodeToJSON;
19
21
  exports.WeatherConditionCodeToJSONTyped = WeatherConditionCodeToJSONTyped;
22
+ /**
23
+ * Apple WeatherKit condition codes
24
+ * Represents all possible weather conditions from the WeatherKit API
25
+ * @export
26
+ */
27
+ exports.WeatherConditionCode = {
28
+ Clear: 'Clear',
29
+ MostlyClear: 'MostlyClear',
30
+ PartlyCloudy: 'PartlyCloudy',
31
+ MostlyCloudy: 'MostlyCloudy',
32
+ Cloudy: 'Cloudy',
33
+ Dust: 'Dust',
34
+ Fog: 'Fog',
35
+ Haze: 'Haze',
36
+ Smoke: 'Smoke',
37
+ Breezy: 'Breezy',
38
+ Windy: 'Windy',
39
+ Drizzle: 'Drizzle',
40
+ Rain: 'Rain',
41
+ Showers: 'Showers',
42
+ ScatteredShowers: 'ScatteredShowers',
43
+ HeavyRain: 'HeavyRain',
44
+ Flurries: 'Flurries',
45
+ Snow: 'Snow',
46
+ SnowShowers: 'SnowShowers',
47
+ ScatteredSnowShowers: 'ScatteredSnowShowers',
48
+ HeavySnow: 'HeavySnow',
49
+ Blizzard: 'Blizzard',
50
+ BlowingSnow: 'BlowingSnow',
51
+ MixedRainAndSleet: 'MixedRainAndSleet',
52
+ MixedRainAndSnow: 'MixedRainAndSnow',
53
+ MixedRainfall: 'MixedRainfall',
54
+ MixedSnowAndSleet: 'MixedSnowAndSleet',
55
+ Sleet: 'Sleet',
56
+ FreezingDrizzle: 'FreezingDrizzle',
57
+ FreezingRain: 'FreezingRain',
58
+ Frigid: 'Frigid',
59
+ Hail: 'Hail',
60
+ ScatteredThunderstorms: 'ScatteredThunderstorms',
61
+ IsolatedThunderstorms: 'IsolatedThunderstorms',
62
+ Thunderstorm: 'Thunderstorm',
63
+ SevereThunderstorm: 'SevereThunderstorm',
64
+ Hurricane: 'Hurricane',
65
+ Tornado: 'Tornado',
66
+ TropicalStorm: 'TropicalStorm',
67
+ Hot: 'Hot',
68
+ Unknown: 'Unknown'
69
+ };
70
+ function instanceOfWeatherConditionCode(value) {
71
+ for (const key in exports.WeatherConditionCode) {
72
+ if (Object.prototype.hasOwnProperty.call(exports.WeatherConditionCode, key)) {
73
+ if (exports.WeatherConditionCode[key] === value) {
74
+ return true;
75
+ }
76
+ }
77
+ }
78
+ return false;
79
+ }
20
80
  function WeatherConditionCodeFromJSON(json) {
21
81
  return WeatherConditionCodeFromJSONTyped(json, false);
22
82
  }
23
83
  function WeatherConditionCodeFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'Clear' || json === 'MostlyClear' || json === 'PartlyCloudy' || json === 'MostlyCloudy' || json === 'Cloudy' || json === 'Dust' || json === 'Fog' || json === 'Haze' || json === 'Smoke' || json === 'Breezy' || json === 'Windy' || json === 'Drizzle' || json === 'Rain' || json === 'Showers' || json === 'ScatteredShowers' || json === 'HeavyRain' || json === 'Flurries' || json === 'Snow' || json === 'SnowShowers' || json === 'ScatteredSnowShowers' || json === 'HeavySnow' || json === 'Blizzard' || json === 'BlowingSnow' || json === 'MixedRainAndSleet' || json === 'MixedRainAndSnow' || json === 'MixedRainfall' || json === 'MixedSnowAndSleet' || json === 'Sleet' || json === 'FreezingDrizzle' || json === 'FreezingRain' || json === 'Frigid' || json === 'Hail' || json === 'ScatteredThunderstorms' || json === 'IsolatedThunderstorms' || json === 'Thunderstorm' || json === 'SevereThunderstorm' || json === 'Hurricane' || json === 'Tornado' || json === 'TropicalStorm' || json === 'Hot')) {
28
- return json;
29
- }
30
- if (typeof json === 'string' && (json === 'Unknown')) {
31
- return json;
32
- }
33
- return {};
84
+ return json;
34
85
  }
35
- function WeatherConditionCodeToJSON(json) {
36
- return WeatherConditionCodeToJSONTyped(json, false);
86
+ function WeatherConditionCodeToJSON(value) {
87
+ return value;
37
88
  }
38
- function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator = false) {
39
- if (value == null) {
40
- return value;
41
- }
42
- if (typeof value === 'string' && (value === 'Clear' || value === 'MostlyClear' || value === 'PartlyCloudy' || value === 'MostlyCloudy' || value === 'Cloudy' || value === 'Dust' || value === 'Fog' || value === 'Haze' || value === 'Smoke' || value === 'Breezy' || value === 'Windy' || value === 'Drizzle' || value === 'Rain' || value === 'Showers' || value === 'ScatteredShowers' || value === 'HeavyRain' || value === 'Flurries' || value === 'Snow' || value === 'SnowShowers' || value === 'ScatteredSnowShowers' || value === 'HeavySnow' || value === 'Blizzard' || value === 'BlowingSnow' || value === 'MixedRainAndSleet' || value === 'MixedRainAndSnow' || value === 'MixedRainfall' || value === 'MixedSnowAndSleet' || value === 'Sleet' || value === 'FreezingDrizzle' || value === 'FreezingRain' || value === 'Frigid' || value === 'Hail' || value === 'ScatteredThunderstorms' || value === 'IsolatedThunderstorms' || value === 'Thunderstorm' || value === 'SevereThunderstorm' || value === 'Hurricane' || value === 'Tornado' || value === 'TropicalStorm' || value === 'Hot')) {
43
- return value;
44
- }
45
- if (typeof value === 'string' && (value === 'Unknown')) {
46
- return value;
47
- }
48
- return {};
89
+ function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator) {
90
+ return value;
49
91
  }
@@ -3,7 +3,7 @@
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@mtnmanager.com
6
+ * Contact: support@mtnmanager.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -44,10 +44,10 @@ export interface WeatherData {
44
44
  attribution: string;
45
45
  /**
46
46
  * When this data was last updated
47
- * @type {string}
47
+ * @type {Date}
48
48
  * @memberof WeatherData
49
49
  */
50
- lastUpdated: string;
50
+ updatedAt: Date;
51
51
  }
52
52
  /**
53
53
  * Check if a given object implements the WeatherData interface.
@@ -6,7 +6,7 @@
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@mtnmanager.com
9
+ * Contact: support@mtnmanager.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -33,7 +33,7 @@ function instanceOfWeatherData(value) {
33
33
  return false;
34
34
  if (!('attribution' in value) || value['attribution'] === undefined)
35
35
  return false;
36
- if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
37
  return false;
38
38
  return true;
39
39
  }
@@ -49,7 +49,7 @@ function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'hourlyForecast': (json['hourly_forecast'].map(HourlyForecast_1.HourlyForecastFromJSON)),
50
50
  'dailyForecast': (json['daily_forecast'].map(DailyForecast_1.DailyForecastFromJSON)),
51
51
  'attribution': json['attribution'],
52
- 'lastUpdated': json['last_updated'],
52
+ 'updatedAt': (new Date(json['updated_at'])),
53
53
  };
54
54
  }
55
55
  function WeatherDataToJSON(json) {
@@ -64,6 +64,6 @@ function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
64
64
  'hourly_forecast': (value['hourlyForecast'].map(HourlyForecast_1.HourlyForecastToJSON)),
65
65
  'daily_forecast': (value['dailyForecast'].map(DailyForecast_1.DailyForecastToJSON)),
66
66
  'attribution': value['attribution'],
67
- 'last_updated': value['lastUpdated'],
67
+ 'updated_at': value['updatedAt'].toISOString(),
68
68
  };
69
69
  }
@@ -20,9 +20,6 @@ export * from './PublicRun';
20
20
  export * from './PublicSnowReport';
21
21
  export * from './PublicSnowResponse';
22
22
  export * from './PublicSummerTrail';
23
- export * from './RecurrencePattern';
24
- export * from './RecurrencePatternOneOf';
25
- export * from './RecurrencePatternOneOf1';
26
23
  export * from './ResortStatusType';
27
24
  export * from './RunDifficulty';
28
25
  export * from './RunStatus';
@@ -38,9 +38,6 @@ __exportStar(require("./PublicRun"), exports);
38
38
  __exportStar(require("./PublicSnowReport"), exports);
39
39
  __exportStar(require("./PublicSnowResponse"), exports);
40
40
  __exportStar(require("./PublicSummerTrail"), exports);
41
- __exportStar(require("./RecurrencePattern"), exports);
42
- __exportStar(require("./RecurrencePatternOneOf"), exports);
43
- __exportStar(require("./RecurrencePatternOneOf1"), exports);
44
41
  __exportStar(require("./ResortStatusType"), exports);
45
42
  __exportStar(require("./RunDifficulty"), exports);
46
43
  __exportStar(require("./RunStatus"), exports);
package/dist/runtime.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@mtnmanager.com
6
+ * Contact: support@mtnmanager.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/runtime.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@mtnmanager.com
9
+ * Contact: support@mtnmanager.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "OpenAPI client for @mtnmanager/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -1,46 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@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 * as runtime from '../runtime';
13
- import type { OperatingHoursResponse } from '../models/index';
14
- /**
15
- * HoursApi - interface
16
- *
17
- * @export
18
- * @interface HoursApiInterface
19
- */
20
- export interface HoursApiInterface {
21
- /**
22
- *
23
- * @summary Get operating hours
24
- * @param {*} [options] Override http request option.
25
- * @throws {RequiredError}
26
- * @memberof HoursApiInterface
27
- */
28
- getOperatingHoursRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
29
- /**
30
- * Get operating hours
31
- */
32
- getOperatingHours(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
33
- }
34
- /**
35
- *
36
- */
37
- export declare class HoursApi extends runtime.BaseAPI implements HoursApiInterface {
38
- /**
39
- * Get operating hours
40
- */
41
- getOperatingHoursRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
42
- /**
43
- * Get operating hours
44
- */
45
- getOperatingHours(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
46
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * MtnManager API
6
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.HoursApi = void 0;
26
- const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
28
- /**
29
- *
30
- */
31
- class HoursApi extends runtime.BaseAPI {
32
- /**
33
- * Get operating hours
34
- */
35
- getOperatingHoursRaw(initOverrides) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- const queryParameters = {};
38
- const headerParameters = {};
39
- let urlPath = `/api/report/v1/hours`;
40
- const response = yield this.request({
41
- path: urlPath,
42
- method: 'GET',
43
- headers: headerParameters,
44
- query: queryParameters,
45
- }, initOverrides);
46
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OperatingHoursResponseFromJSON)(jsonValue));
47
- });
48
- }
49
- /**
50
- * Get operating hours
51
- */
52
- getOperatingHours(initOverrides) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const response = yield this.getOperatingHoursRaw(initOverrides);
55
- return yield response.value();
56
- });
57
- }
58
- }
59
- exports.HoursApi = HoursApi;
@@ -1,46 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@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 * as runtime from '../runtime';
13
- import type { PublicLift } from '../models/index';
14
- /**
15
- * LiftsApi - interface
16
- *
17
- * @export
18
- * @interface LiftsApiInterface
19
- */
20
- export interface LiftsApiInterface {
21
- /**
22
- *
23
- * @summary List all lifts
24
- * @param {*} [options] Override http request option.
25
- * @throws {RequiredError}
26
- * @memberof LiftsApiInterface
27
- */
28
- listLiftsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
29
- /**
30
- * List all lifts
31
- */
32
- listLifts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
33
- }
34
- /**
35
- *
36
- */
37
- export declare class LiftsApi extends runtime.BaseAPI implements LiftsApiInterface {
38
- /**
39
- * List all lifts
40
- */
41
- listLiftsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
42
- /**
43
- * List all lifts
44
- */
45
- listLifts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
46
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * MtnManager API
6
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.LiftsApi = void 0;
26
- const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
28
- /**
29
- *
30
- */
31
- class LiftsApi extends runtime.BaseAPI {
32
- /**
33
- * List all lifts
34
- */
35
- listLiftsRaw(initOverrides) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- const queryParameters = {};
38
- const headerParameters = {};
39
- let urlPath = `/api/report/v1/lifts`;
40
- const response = yield this.request({
41
- path: urlPath,
42
- method: 'GET',
43
- headers: headerParameters,
44
- query: queryParameters,
45
- }, initOverrides);
46
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.PublicLiftFromJSON));
47
- });
48
- }
49
- /**
50
- * List all lifts
51
- */
52
- listLifts(initOverrides) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const response = yield this.listLiftsRaw(initOverrides);
55
- return yield response.value();
56
- });
57
- }
58
- }
59
- exports.LiftsApi = LiftsApi;
@@ -1,66 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: hello@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 * as runtime from '../runtime';
13
- import type { PublicResortResponse, PublicResortStatus } from '../models/index';
14
- /**
15
- * ResortApi - interface
16
- *
17
- * @export
18
- * @interface ResortApiInterface
19
- */
20
- export interface ResortApiInterface {
21
- /**
22
- *
23
- * @summary Get complete resort information
24
- * @param {*} [options] Override http request option.
25
- * @throws {RequiredError}
26
- * @memberof ResortApiInterface
27
- */
28
- getResortRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
29
- /**
30
- * Get complete resort information
31
- */
32
- getResort(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
33
- /**
34
- *
35
- * @summary Get current resort status
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- * @memberof ResortApiInterface
39
- */
40
- getResortStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
41
- /**
42
- * Get current resort status
43
- */
44
- getResortStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
45
- }
46
- /**
47
- *
48
- */
49
- export declare class ResortApi extends runtime.BaseAPI implements ResortApiInterface {
50
- /**
51
- * Get complete resort information
52
- */
53
- getResortRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
54
- /**
55
- * Get complete resort information
56
- */
57
- getResort(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
58
- /**
59
- * Get current resort status
60
- */
61
- getResortStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
62
- /**
63
- * Get current resort status
64
- */
65
- getResortStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
66
- }
@@ -1,85 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * MtnManager API
6
- * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ResortApi = void 0;
26
- const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
28
- /**
29
- *
30
- */
31
- class ResortApi extends runtime.BaseAPI {
32
- /**
33
- * Get complete resort information
34
- */
35
- getResortRaw(initOverrides) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- const queryParameters = {};
38
- const headerParameters = {};
39
- let urlPath = `/api/report/v1/all`;
40
- const response = yield this.request({
41
- path: urlPath,
42
- method: 'GET',
43
- headers: headerParameters,
44
- query: queryParameters,
45
- }, initOverrides);
46
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublicResortResponseFromJSON)(jsonValue));
47
- });
48
- }
49
- /**
50
- * Get complete resort information
51
- */
52
- getResort(initOverrides) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const response = yield this.getResortRaw(initOverrides);
55
- return yield response.value();
56
- });
57
- }
58
- /**
59
- * Get current resort status
60
- */
61
- getResortStatusRaw(initOverrides) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- const queryParameters = {};
64
- const headerParameters = {};
65
- let urlPath = `/api/report/v1/status`;
66
- const response = yield this.request({
67
- path: urlPath,
68
- method: 'GET',
69
- headers: headerParameters,
70
- query: queryParameters,
71
- }, initOverrides);
72
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PublicResortStatusFromJSON)(jsonValue));
73
- });
74
- }
75
- /**
76
- * Get current resort status
77
- */
78
- getResortStatus(initOverrides) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- const response = yield this.getResortStatusRaw(initOverrides);
81
- return yield response.value();
82
- });
83
- }
84
- }
85
- exports.ResortApi = ResortApi;