@mtnmanager/sdk 0.0.25 → 0.0.27

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 (50) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/models/LiftStatus.d.ts +10 -4
  3. package/dist/esm/models/LiftStatus.js +25 -35
  4. package/dist/esm/models/LiftType.d.ts +19 -4
  5. package/dist/esm/models/LiftType.js +34 -89
  6. package/dist/esm/models/PublicResortStatus.d.ts +19 -0
  7. package/dist/esm/models/PublicResortStatus.js +6 -0
  8. package/dist/esm/models/ResortStatusType.d.ts +8 -4
  9. package/dist/esm/models/ResortStatusType.js +26 -23
  10. package/dist/esm/models/RunDifficulty.d.ts +11 -4
  11. package/dist/esm/models/RunDifficulty.js +28 -41
  12. package/dist/esm/models/RunStatus.d.ts +9 -4
  13. package/dist/esm/models/RunStatus.js +24 -29
  14. package/dist/esm/models/SeasonType.d.ts +9 -4
  15. package/dist/esm/models/SeasonType.js +24 -29
  16. package/dist/esm/models/SummerTrailDifficulty.d.ts +11 -4
  17. package/dist/esm/models/SummerTrailDifficulty.js +26 -41
  18. package/dist/esm/models/SummerTrailStatus.d.ts +9 -4
  19. package/dist/esm/models/SummerTrailStatus.js +24 -29
  20. package/dist/esm/models/SummerTrailType.d.ts +8 -4
  21. package/dist/esm/models/SummerTrailType.js +23 -23
  22. package/dist/esm/models/SurfaceCondition.d.ts +21 -4
  23. package/dist/esm/models/SurfaceCondition.js +39 -101
  24. package/dist/esm/models/WeatherConditionCode.d.ts +47 -4
  25. package/dist/esm/models/WeatherConditionCode.js +63 -23
  26. package/dist/models/LiftStatus.d.ts +10 -4
  27. package/dist/models/LiftStatus.js +27 -35
  28. package/dist/models/LiftType.d.ts +19 -4
  29. package/dist/models/LiftType.js +36 -89
  30. package/dist/models/PublicResortStatus.d.ts +19 -0
  31. package/dist/models/PublicResortStatus.js +6 -0
  32. package/dist/models/ResortStatusType.d.ts +8 -4
  33. package/dist/models/ResortStatusType.js +28 -23
  34. package/dist/models/RunDifficulty.d.ts +11 -4
  35. package/dist/models/RunDifficulty.js +30 -41
  36. package/dist/models/RunStatus.d.ts +9 -4
  37. package/dist/models/RunStatus.js +26 -29
  38. package/dist/models/SeasonType.d.ts +9 -4
  39. package/dist/models/SeasonType.js +26 -29
  40. package/dist/models/SummerTrailDifficulty.d.ts +11 -4
  41. package/dist/models/SummerTrailDifficulty.js +28 -41
  42. package/dist/models/SummerTrailStatus.d.ts +9 -4
  43. package/dist/models/SummerTrailStatus.js +26 -29
  44. package/dist/models/SummerTrailType.d.ts +8 -4
  45. package/dist/models/SummerTrailType.js +25 -23
  46. package/dist/models/SurfaceCondition.d.ts +21 -4
  47. package/dist/models/SurfaceCondition.js +41 -101
  48. package/dist/models/WeatherConditionCode.d.ts +47 -4
  49. package/dist/models/WeatherConditionCode.js +65 -23
  50. package/package.json +1 -1
@@ -13,37 +13,79 @@
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "OpenAPI client for @mtnmanager/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",