@mtnmanager/sdk 0.0.1 → 0.0.5

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 (106) hide show
  1. package/README.md +20 -5
  2. package/dist/esm/models/CurrentWeather.d.ts +85 -0
  3. package/dist/esm/models/CurrentWeather.js +77 -0
  4. package/dist/esm/models/DailyForecast.d.ts +76 -0
  5. package/dist/esm/models/DailyForecast.js +73 -0
  6. package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
  7. package/dist/esm/models/DailyForecastImperial.js +63 -0
  8. package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
  9. package/dist/esm/models/DailyForecastMetric.js +63 -0
  10. package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  11. package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
  12. package/dist/esm/models/HourlyForecast.d.ts +70 -0
  13. package/dist/esm/models/HourlyForecast.js +69 -0
  14. package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
  15. package/dist/esm/models/HourlyForecastImperial.js +63 -0
  16. package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
  17. package/dist/esm/models/HourlyForecastMetric.js +63 -0
  18. package/dist/esm/models/ImperialUnits.d.ts +68 -0
  19. package/dist/esm/models/ImperialUnits.js +65 -0
  20. package/dist/esm/models/MetricUnits.d.ts +68 -0
  21. package/dist/esm/models/MetricUnits.js +65 -0
  22. package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
  23. package/dist/esm/models/OperatingHoursResponse.js +7 -11
  24. package/dist/esm/models/PublicResortResponse.d.ts +7 -0
  25. package/dist/esm/models/PublicResortResponse.js +3 -0
  26. package/dist/esm/models/PublicResortStatus.d.ts +51 -2
  27. package/dist/esm/models/PublicResortStatus.js +32 -1
  28. package/dist/esm/models/PublicRun.d.ts +7 -1
  29. package/dist/esm/models/PublicRun.js +5 -1
  30. package/dist/esm/models/PublicSnowReport.d.ts +12 -0
  31. package/dist/esm/models/PublicSnowReport.js +6 -0
  32. package/dist/esm/models/RecurrencePattern.d.ts +24 -0
  33. package/dist/esm/models/RecurrencePattern.js +58 -0
  34. package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
  35. package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
  36. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
  37. package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
  38. package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
  39. package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
  40. package/dist/esm/models/ResortStatusType.d.ts +0 -1
  41. package/dist/esm/models/ResortStatusType.js +1 -2
  42. package/dist/esm/models/Schedule.d.ts +81 -0
  43. package/dist/esm/models/Schedule.js +76 -0
  44. package/dist/esm/models/SeasonType.d.ts +26 -0
  45. package/dist/esm/models/SeasonType.js +44 -0
  46. package/dist/esm/models/SurfaceCondition.d.ts +16 -7
  47. package/dist/esm/models/SurfaceCondition.js +16 -7
  48. package/dist/esm/models/WeatherData.d.ts +59 -0
  49. package/dist/esm/models/WeatherData.js +62 -0
  50. package/dist/esm/models/index.d.ts +17 -2
  51. package/dist/esm/models/index.js +17 -2
  52. package/dist/models/CurrentWeather.d.ts +85 -0
  53. package/dist/models/CurrentWeather.js +84 -0
  54. package/dist/models/DailyForecast.d.ts +76 -0
  55. package/dist/models/DailyForecast.js +80 -0
  56. package/dist/models/DailyForecastImperial.d.ts +62 -0
  57. package/dist/models/DailyForecastImperial.js +70 -0
  58. package/dist/models/DailyForecastMetric.d.ts +62 -0
  59. package/dist/models/DailyForecastMetric.js +70 -0
  60. package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  61. package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
  62. package/dist/models/HourlyForecast.d.ts +70 -0
  63. package/dist/models/HourlyForecast.js +76 -0
  64. package/dist/models/HourlyForecastImperial.d.ts +62 -0
  65. package/dist/models/HourlyForecastImperial.js +70 -0
  66. package/dist/models/HourlyForecastMetric.d.ts +62 -0
  67. package/dist/models/HourlyForecastMetric.js +70 -0
  68. package/dist/models/ImperialUnits.d.ts +68 -0
  69. package/dist/models/ImperialUnits.js +72 -0
  70. package/dist/models/MetricUnits.d.ts +68 -0
  71. package/dist/models/MetricUnits.js +72 -0
  72. package/dist/models/OperatingHoursResponse.d.ts +6 -12
  73. package/dist/models/OperatingHoursResponse.js +7 -11
  74. package/dist/models/PublicResortResponse.d.ts +7 -0
  75. package/dist/models/PublicResortResponse.js +3 -0
  76. package/dist/models/PublicResortStatus.d.ts +51 -2
  77. package/dist/models/PublicResortStatus.js +32 -1
  78. package/dist/models/PublicRun.d.ts +7 -1
  79. package/dist/models/PublicRun.js +5 -1
  80. package/dist/models/PublicSnowReport.d.ts +12 -0
  81. package/dist/models/PublicSnowReport.js +6 -0
  82. package/dist/models/RecurrencePattern.d.ts +24 -0
  83. package/dist/models/RecurrencePattern.js +64 -0
  84. package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
  85. package/dist/models/RecurrencePatternOneOf.js +57 -0
  86. package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
  87. package/dist/models/RecurrencePatternOneOf1.js +57 -0
  88. package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
  89. package/dist/models/RecurrencePatternOneOf2.js +61 -0
  90. package/dist/models/ResortStatusType.d.ts +0 -1
  91. package/dist/models/ResortStatusType.js +1 -2
  92. package/dist/models/Schedule.d.ts +81 -0
  93. package/dist/models/Schedule.js +83 -0
  94. package/dist/models/SeasonType.d.ts +26 -0
  95. package/dist/models/SeasonType.js +52 -0
  96. package/dist/models/SurfaceCondition.d.ts +16 -7
  97. package/dist/models/SurfaceCondition.js +16 -7
  98. package/dist/models/WeatherData.d.ts +59 -0
  99. package/dist/models/WeatherData.js +69 -0
  100. package/dist/models/index.d.ts +17 -2
  101. package/dist/models/index.js +17 -2
  102. package/package.json +7 -10
  103. package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
  104. package/dist/esm/models/RegularHoursDescription.js +0 -55
  105. package/dist/models/RegularHoursDescription.d.ts +0 -50
  106. package/dist/models/RegularHoursDescription.js +0 -62
@@ -13,25 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfHoursInfo = instanceOfHoursInfo;
17
- exports.HoursInfoFromJSON = HoursInfoFromJSON;
18
- exports.HoursInfoFromJSONTyped = HoursInfoFromJSONTyped;
19
- exports.HoursInfoToJSON = HoursInfoToJSON;
20
- exports.HoursInfoToJSONTyped = HoursInfoToJSONTyped;
16
+ exports.instanceOfDayHours = instanceOfDayHours;
17
+ exports.DayHoursFromJSON = DayHoursFromJSON;
18
+ exports.DayHoursFromJSONTyped = DayHoursFromJSONTyped;
19
+ exports.DayHoursToJSON = DayHoursToJSON;
20
+ exports.DayHoursToJSONTyped = DayHoursToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the HoursInfo interface.
22
+ * Check if a given object implements the DayHours interface.
23
23
  */
24
- function instanceOfHoursInfo(value) {
24
+ function instanceOfDayHours(value) {
25
25
  if (!('date' in value) || value['date'] === undefined)
26
26
  return false;
27
27
  if (!('dayOfWeek' in value) || value['dayOfWeek'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
31
- function HoursInfoFromJSON(json) {
32
- return HoursInfoFromJSONTyped(json, false);
31
+ function DayHoursFromJSON(json) {
32
+ return DayHoursFromJSONTyped(json, false);
33
33
  }
34
- function HoursInfoFromJSONTyped(json, ignoreDiscriminator) {
34
+ function DayHoursFromJSONTyped(json, ignoreDiscriminator) {
35
35
  if (json == null) {
36
36
  return json;
37
37
  }
@@ -42,10 +42,10 @@ function HoursInfoFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
43
43
  };
44
44
  }
45
- function HoursInfoToJSON(json) {
46
- return HoursInfoToJSONTyped(json, false);
45
+ function DayHoursToJSON(json) {
46
+ return DayHoursToJSONTyped(json, false);
47
47
  }
48
- function HoursInfoToJSONTyped(value, ignoreDiscriminator = false) {
48
+ function DayHoursToJSONTyped(value, ignoreDiscriminator = false) {
49
49
  if (value == null) {
50
50
  return value;
51
51
  }
@@ -0,0 +1,70 @@
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: 0.1.0
6
+ *
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 { HourlyForecastMetric } from './HourlyForecastMetric';
13
+ import type { HourlyForecastImperial } from './HourlyForecastImperial';
14
+ /**
15
+ * Hourly weather forecast entry with both unit systems
16
+ * @export
17
+ * @interface HourlyForecast
18
+ */
19
+ export interface HourlyForecast {
20
+ /**
21
+ * Cloud cover percentage (0-100)
22
+ * @type {number}
23
+ * @memberof HourlyForecast
24
+ */
25
+ cloudCover: number;
26
+ /**
27
+ * Human-readable condition
28
+ * @type {string}
29
+ * @memberof HourlyForecast
30
+ */
31
+ condition: string;
32
+ /**
33
+ * Measurements in imperial units
34
+ * @type {HourlyForecastImperial}
35
+ * @memberof HourlyForecast
36
+ */
37
+ imperial: HourlyForecastImperial;
38
+ /**
39
+ * Measurements in metric units
40
+ * @type {HourlyForecastMetric}
41
+ * @memberof HourlyForecast
42
+ */
43
+ metric: HourlyForecastMetric;
44
+ /**
45
+ * Probability of precipitation (0-100%)
46
+ * @type {number}
47
+ * @memberof HourlyForecast
48
+ */
49
+ precipitationProbability: number;
50
+ /**
51
+ * Forecast timestamp
52
+ * @type {Date}
53
+ * @memberof HourlyForecast
54
+ */
55
+ timestamp: Date;
56
+ /**
57
+ * Weather condition code
58
+ * @type {number}
59
+ * @memberof HourlyForecast
60
+ */
61
+ weatherCode: number;
62
+ }
63
+ /**
64
+ * Check if a given object implements the HourlyForecast interface.
65
+ */
66
+ export declare function instanceOfHourlyForecast(value: object): value is HourlyForecast;
67
+ export declare function HourlyForecastFromJSON(json: any): HourlyForecast;
68
+ export declare function HourlyForecastFromJSONTyped(json: any, ignoreDiscriminator: boolean): HourlyForecast;
69
+ export declare function HourlyForecastToJSON(json: any): HourlyForecast;
70
+ export declare function HourlyForecastToJSONTyped(value?: HourlyForecast | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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: 0.1.0
9
+ *
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.instanceOfHourlyForecast = instanceOfHourlyForecast;
17
+ exports.HourlyForecastFromJSON = HourlyForecastFromJSON;
18
+ exports.HourlyForecastFromJSONTyped = HourlyForecastFromJSONTyped;
19
+ exports.HourlyForecastToJSON = HourlyForecastToJSON;
20
+ exports.HourlyForecastToJSONTyped = HourlyForecastToJSONTyped;
21
+ const HourlyForecastMetric_1 = require("./HourlyForecastMetric");
22
+ const HourlyForecastImperial_1 = require("./HourlyForecastImperial");
23
+ /**
24
+ * Check if a given object implements the HourlyForecast interface.
25
+ */
26
+ function instanceOfHourlyForecast(value) {
27
+ if (!('cloudCover' in value) || value['cloudCover'] === undefined)
28
+ return false;
29
+ if (!('condition' in value) || value['condition'] === undefined)
30
+ return false;
31
+ if (!('imperial' in value) || value['imperial'] === undefined)
32
+ return false;
33
+ if (!('metric' in value) || value['metric'] === undefined)
34
+ return false;
35
+ if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
36
+ return false;
37
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
38
+ return false;
39
+ if (!('weatherCode' in value) || value['weatherCode'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function HourlyForecastFromJSON(json) {
44
+ return HourlyForecastFromJSONTyped(json, false);
45
+ }
46
+ function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'cloudCover': json['cloud_cover'],
52
+ 'condition': json['condition'],
53
+ 'imperial': (0, HourlyForecastImperial_1.HourlyForecastImperialFromJSON)(json['imperial']),
54
+ 'metric': (0, HourlyForecastMetric_1.HourlyForecastMetricFromJSON)(json['metric']),
55
+ 'precipitationProbability': json['precipitation_probability'],
56
+ 'timestamp': (new Date(json['timestamp'])),
57
+ 'weatherCode': json['weather_code'],
58
+ };
59
+ }
60
+ function HourlyForecastToJSON(json) {
61
+ return HourlyForecastToJSONTyped(json, false);
62
+ }
63
+ function HourlyForecastToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'cloud_cover': value['cloudCover'],
69
+ 'condition': value['condition'],
70
+ 'imperial': (0, HourlyForecastImperial_1.HourlyForecastImperialToJSON)(value['imperial']),
71
+ 'metric': (0, HourlyForecastMetric_1.HourlyForecastMetricToJSON)(value['metric']),
72
+ 'precipitation_probability': value['precipitationProbability'],
73
+ 'timestamp': value['timestamp'].toISOString(),
74
+ 'weather_code': value['weatherCode'],
75
+ };
76
+ }
@@ -0,0 +1,62 @@
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: 0.1.0
6
+ *
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
+ /**
13
+ * Hourly forecast measurements in imperial units
14
+ * @export
15
+ * @interface HourlyForecastImperial
16
+ */
17
+ export interface HourlyForecastImperial {
18
+ /**
19
+ * Feels like temperature in Fahrenheit
20
+ * @type {number}
21
+ * @memberof HourlyForecastImperial
22
+ */
23
+ feelsLike: number;
24
+ /**
25
+ * Precipitation amount expected this hour in inches
26
+ * @type {number}
27
+ * @memberof HourlyForecastImperial
28
+ */
29
+ precipitation: number;
30
+ /**
31
+ * Snowfall amount expected this hour in inches
32
+ * @type {number}
33
+ * @memberof HourlyForecastImperial
34
+ */
35
+ snowfall: number;
36
+ /**
37
+ * Temperature in Fahrenheit
38
+ * @type {number}
39
+ * @memberof HourlyForecastImperial
40
+ */
41
+ temperature: number;
42
+ /**
43
+ * Wind gust in mph
44
+ * @type {number}
45
+ * @memberof HourlyForecastImperial
46
+ */
47
+ windGust: number;
48
+ /**
49
+ * Wind speed in mph
50
+ * @type {number}
51
+ * @memberof HourlyForecastImperial
52
+ */
53
+ windSpeed: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the HourlyForecastImperial interface.
57
+ */
58
+ export declare function instanceOfHourlyForecastImperial(value: object): value is HourlyForecastImperial;
59
+ export declare function HourlyForecastImperialFromJSON(json: any): HourlyForecastImperial;
60
+ export declare function HourlyForecastImperialFromJSONTyped(json: any, ignoreDiscriminator: boolean): HourlyForecastImperial;
61
+ export declare function HourlyForecastImperialToJSON(json: any): HourlyForecastImperial;
62
+ export declare function HourlyForecastImperialToJSONTyped(value?: HourlyForecastImperial | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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: 0.1.0
9
+ *
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.instanceOfHourlyForecastImperial = instanceOfHourlyForecastImperial;
17
+ exports.HourlyForecastImperialFromJSON = HourlyForecastImperialFromJSON;
18
+ exports.HourlyForecastImperialFromJSONTyped = HourlyForecastImperialFromJSONTyped;
19
+ exports.HourlyForecastImperialToJSON = HourlyForecastImperialToJSON;
20
+ exports.HourlyForecastImperialToJSONTyped = HourlyForecastImperialToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HourlyForecastImperial interface.
23
+ */
24
+ function instanceOfHourlyForecastImperial(value) {
25
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
26
+ return false;
27
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
28
+ return false;
29
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
30
+ return false;
31
+ if (!('temperature' in value) || value['temperature'] === undefined)
32
+ return false;
33
+ if (!('windGust' in value) || value['windGust'] === undefined)
34
+ return false;
35
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function HourlyForecastImperialFromJSON(json) {
40
+ return HourlyForecastImperialFromJSONTyped(json, false);
41
+ }
42
+ function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'feelsLike': json['feels_like'],
48
+ 'precipitation': json['precipitation'],
49
+ 'snowfall': json['snowfall'],
50
+ 'temperature': json['temperature'],
51
+ 'windGust': json['wind_gust'],
52
+ 'windSpeed': json['wind_speed'],
53
+ };
54
+ }
55
+ function HourlyForecastImperialToJSON(json) {
56
+ return HourlyForecastImperialToJSONTyped(json, false);
57
+ }
58
+ function HourlyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'feels_like': value['feelsLike'],
64
+ 'precipitation': value['precipitation'],
65
+ 'snowfall': value['snowfall'],
66
+ 'temperature': value['temperature'],
67
+ 'wind_gust': value['windGust'],
68
+ 'wind_speed': value['windSpeed'],
69
+ };
70
+ }
@@ -0,0 +1,62 @@
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: 0.1.0
6
+ *
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
+ /**
13
+ * Hourly forecast measurements in metric units
14
+ * @export
15
+ * @interface HourlyForecastMetric
16
+ */
17
+ export interface HourlyForecastMetric {
18
+ /**
19
+ * Feels like temperature in Celsius
20
+ * @type {number}
21
+ * @memberof HourlyForecastMetric
22
+ */
23
+ feelsLike: number;
24
+ /**
25
+ * Precipitation amount expected this hour in millimeters
26
+ * @type {number}
27
+ * @memberof HourlyForecastMetric
28
+ */
29
+ precipitation: number;
30
+ /**
31
+ * Snowfall amount expected this hour in centimeters
32
+ * @type {number}
33
+ * @memberof HourlyForecastMetric
34
+ */
35
+ snowfall: number;
36
+ /**
37
+ * Temperature in Celsius
38
+ * @type {number}
39
+ * @memberof HourlyForecastMetric
40
+ */
41
+ temperature: number;
42
+ /**
43
+ * Wind gust in km/h
44
+ * @type {number}
45
+ * @memberof HourlyForecastMetric
46
+ */
47
+ windGust: number;
48
+ /**
49
+ * Wind speed in km/h
50
+ * @type {number}
51
+ * @memberof HourlyForecastMetric
52
+ */
53
+ windSpeed: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the HourlyForecastMetric interface.
57
+ */
58
+ export declare function instanceOfHourlyForecastMetric(value: object): value is HourlyForecastMetric;
59
+ export declare function HourlyForecastMetricFromJSON(json: any): HourlyForecastMetric;
60
+ export declare function HourlyForecastMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): HourlyForecastMetric;
61
+ export declare function HourlyForecastMetricToJSON(json: any): HourlyForecastMetric;
62
+ export declare function HourlyForecastMetricToJSONTyped(value?: HourlyForecastMetric | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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: 0.1.0
9
+ *
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.instanceOfHourlyForecastMetric = instanceOfHourlyForecastMetric;
17
+ exports.HourlyForecastMetricFromJSON = HourlyForecastMetricFromJSON;
18
+ exports.HourlyForecastMetricFromJSONTyped = HourlyForecastMetricFromJSONTyped;
19
+ exports.HourlyForecastMetricToJSON = HourlyForecastMetricToJSON;
20
+ exports.HourlyForecastMetricToJSONTyped = HourlyForecastMetricToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HourlyForecastMetric interface.
23
+ */
24
+ function instanceOfHourlyForecastMetric(value) {
25
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
26
+ return false;
27
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
28
+ return false;
29
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
30
+ return false;
31
+ if (!('temperature' in value) || value['temperature'] === undefined)
32
+ return false;
33
+ if (!('windGust' in value) || value['windGust'] === undefined)
34
+ return false;
35
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function HourlyForecastMetricFromJSON(json) {
40
+ return HourlyForecastMetricFromJSONTyped(json, false);
41
+ }
42
+ function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'feelsLike': json['feels_like'],
48
+ 'precipitation': json['precipitation'],
49
+ 'snowfall': json['snowfall'],
50
+ 'temperature': json['temperature'],
51
+ 'windGust': json['wind_gust'],
52
+ 'windSpeed': json['wind_speed'],
53
+ };
54
+ }
55
+ function HourlyForecastMetricToJSON(json) {
56
+ return HourlyForecastMetricToJSONTyped(json, false);
57
+ }
58
+ function HourlyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'feels_like': value['feelsLike'],
64
+ 'precipitation': value['precipitation'],
65
+ 'snowfall': value['snowfall'],
66
+ 'temperature': value['temperature'],
67
+ 'wind_gust': value['windGust'],
68
+ 'wind_speed': value['windSpeed'],
69
+ };
70
+ }
@@ -0,0 +1,68 @@
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: 0.1.0
6
+ *
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
+ /**
13
+ * Temperature and precipitation measurements in imperial units
14
+ * @export
15
+ * @interface ImperialUnits
16
+ */
17
+ export interface ImperialUnits {
18
+ /**
19
+ * Feels like temperature in Fahrenheit
20
+ * @type {number}
21
+ * @memberof ImperialUnits
22
+ */
23
+ feelsLike: number;
24
+ /**
25
+ * Precipitation in inches
26
+ * @type {number}
27
+ * @memberof ImperialUnits
28
+ */
29
+ precipitation: number;
30
+ /**
31
+ * Snowfall in inches
32
+ * @type {number}
33
+ * @memberof ImperialUnits
34
+ */
35
+ snowfall: number;
36
+ /**
37
+ * Temperature in Fahrenheit
38
+ * @type {number}
39
+ * @memberof ImperialUnits
40
+ */
41
+ temperature: number;
42
+ /**
43
+ * Visibility in miles (optional)
44
+ * @type {number}
45
+ * @memberof ImperialUnits
46
+ */
47
+ visibility?: number | null;
48
+ /**
49
+ * Wind gust in mph
50
+ * @type {number}
51
+ * @memberof ImperialUnits
52
+ */
53
+ windGust: number;
54
+ /**
55
+ * Wind speed in mph
56
+ * @type {number}
57
+ * @memberof ImperialUnits
58
+ */
59
+ windSpeed: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ImperialUnits interface.
63
+ */
64
+ export declare function instanceOfImperialUnits(value: object): value is ImperialUnits;
65
+ export declare function ImperialUnitsFromJSON(json: any): ImperialUnits;
66
+ export declare function ImperialUnitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImperialUnits;
67
+ export declare function ImperialUnitsToJSON(json: any): ImperialUnits;
68
+ export declare function ImperialUnitsToJSONTyped(value?: ImperialUnits | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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: 0.1.0
9
+ *
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.instanceOfImperialUnits = instanceOfImperialUnits;
17
+ exports.ImperialUnitsFromJSON = ImperialUnitsFromJSON;
18
+ exports.ImperialUnitsFromJSONTyped = ImperialUnitsFromJSONTyped;
19
+ exports.ImperialUnitsToJSON = ImperialUnitsToJSON;
20
+ exports.ImperialUnitsToJSONTyped = ImperialUnitsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ImperialUnits interface.
23
+ */
24
+ function instanceOfImperialUnits(value) {
25
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
26
+ return false;
27
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
28
+ return false;
29
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
30
+ return false;
31
+ if (!('temperature' in value) || value['temperature'] === undefined)
32
+ return false;
33
+ if (!('windGust' in value) || value['windGust'] === undefined)
34
+ return false;
35
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ImperialUnitsFromJSON(json) {
40
+ return ImperialUnitsFromJSONTyped(json, false);
41
+ }
42
+ function ImperialUnitsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'feelsLike': json['feels_like'],
48
+ 'precipitation': json['precipitation'],
49
+ 'snowfall': json['snowfall'],
50
+ 'temperature': json['temperature'],
51
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
52
+ 'windGust': json['wind_gust'],
53
+ 'windSpeed': json['wind_speed'],
54
+ };
55
+ }
56
+ function ImperialUnitsToJSON(json) {
57
+ return ImperialUnitsToJSONTyped(json, false);
58
+ }
59
+ function ImperialUnitsToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'feels_like': value['feelsLike'],
65
+ 'precipitation': value['precipitation'],
66
+ 'snowfall': value['snowfall'],
67
+ 'temperature': value['temperature'],
68
+ 'visibility': value['visibility'],
69
+ 'wind_gust': value['windGust'],
70
+ 'wind_speed': value['windSpeed'],
71
+ };
72
+ }
@@ -0,0 +1,68 @@
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: 0.1.0
6
+ *
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
+ /**
13
+ * Temperature and precipitation measurements in metric units
14
+ * @export
15
+ * @interface MetricUnits
16
+ */
17
+ export interface MetricUnits {
18
+ /**
19
+ * Feels like temperature in Celsius
20
+ * @type {number}
21
+ * @memberof MetricUnits
22
+ */
23
+ feelsLike: number;
24
+ /**
25
+ * Precipitation in millimeters
26
+ * @type {number}
27
+ * @memberof MetricUnits
28
+ */
29
+ precipitation: number;
30
+ /**
31
+ * Snowfall in centimeters
32
+ * @type {number}
33
+ * @memberof MetricUnits
34
+ */
35
+ snowfall: number;
36
+ /**
37
+ * Temperature in Celsius
38
+ * @type {number}
39
+ * @memberof MetricUnits
40
+ */
41
+ temperature: number;
42
+ /**
43
+ * Visibility in kilometers (optional)
44
+ * @type {number}
45
+ * @memberof MetricUnits
46
+ */
47
+ visibility?: number | null;
48
+ /**
49
+ * Wind gust in km/h
50
+ * @type {number}
51
+ * @memberof MetricUnits
52
+ */
53
+ windGust: number;
54
+ /**
55
+ * Wind speed in km/h
56
+ * @type {number}
57
+ * @memberof MetricUnits
58
+ */
59
+ windSpeed: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the MetricUnits interface.
63
+ */
64
+ export declare function instanceOfMetricUnits(value: object): value is MetricUnits;
65
+ export declare function MetricUnitsFromJSON(json: any): MetricUnits;
66
+ export declare function MetricUnitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricUnits;
67
+ export declare function MetricUnitsToJSON(json: any): MetricUnits;
68
+ export declare function MetricUnitsToJSONTyped(value?: MetricUnits | null, ignoreDiscriminator?: boolean): any;