@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
@@ -0,0 +1,85 @@
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 { ImperialUnits } from './ImperialUnits';
13
+ import type { MetricUnits } from './MetricUnits';
14
+ /**
15
+ * Current weather conditions with both unit systems
16
+ * @export
17
+ * @interface CurrentWeather
18
+ */
19
+ export interface CurrentWeather {
20
+ /**
21
+ * Cloud cover percentage (0-100)
22
+ * @type {number}
23
+ * @memberof CurrentWeather
24
+ */
25
+ cloudCover: number;
26
+ /**
27
+ * Human-readable weather condition
28
+ * @type {string}
29
+ * @memberof CurrentWeather
30
+ */
31
+ condition: string;
32
+ /**
33
+ * Relative humidity percentage (0-100)
34
+ * @type {number}
35
+ * @memberof CurrentWeather
36
+ */
37
+ humidity: number;
38
+ /**
39
+ * Measurements in imperial units
40
+ * @type {ImperialUnits}
41
+ * @memberof CurrentWeather
42
+ */
43
+ imperial: ImperialUnits;
44
+ /**
45
+ * Measurements in metric units
46
+ * @type {MetricUnits}
47
+ * @memberof CurrentWeather
48
+ */
49
+ metric: MetricUnits;
50
+ /**
51
+ * Timestamp of observation
52
+ * @type {Date}
53
+ * @memberof CurrentWeather
54
+ */
55
+ timestamp: Date;
56
+ /**
57
+ * Weather condition code (unit-independent)
58
+ * 0=clear, 1=mainly clear, 2=partly cloudy, 3=overcast,
59
+ * 45/48=fog, 51-55=drizzle, 61-65=rain, 71-77=snow,
60
+ * 80-82=rain showers, 85-86=snow showers, 95-99=thunderstorm
61
+ * @type {number}
62
+ * @memberof CurrentWeather
63
+ */
64
+ weatherCode: number;
65
+ /**
66
+ * Wind direction in degrees (0-360)
67
+ * @type {number}
68
+ * @memberof CurrentWeather
69
+ */
70
+ windDirection: number;
71
+ /**
72
+ * Wind direction as cardinal direction (N, NE, E, SE, S, SW, W, NW)
73
+ * @type {string}
74
+ * @memberof CurrentWeather
75
+ */
76
+ windDirectionCardinal: string;
77
+ }
78
+ /**
79
+ * Check if a given object implements the CurrentWeather interface.
80
+ */
81
+ export declare function instanceOfCurrentWeather(value: object): value is CurrentWeather;
82
+ export declare function CurrentWeatherFromJSON(json: any): CurrentWeather;
83
+ export declare function CurrentWeatherFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentWeather;
84
+ export declare function CurrentWeatherToJSON(json: any): CurrentWeather;
85
+ export declare function CurrentWeatherToJSONTyped(value?: CurrentWeather | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.instanceOfCurrentWeather = instanceOfCurrentWeather;
17
+ exports.CurrentWeatherFromJSON = CurrentWeatherFromJSON;
18
+ exports.CurrentWeatherFromJSONTyped = CurrentWeatherFromJSONTyped;
19
+ exports.CurrentWeatherToJSON = CurrentWeatherToJSON;
20
+ exports.CurrentWeatherToJSONTyped = CurrentWeatherToJSONTyped;
21
+ const ImperialUnits_1 = require("./ImperialUnits");
22
+ const MetricUnits_1 = require("./MetricUnits");
23
+ /**
24
+ * Check if a given object implements the CurrentWeather interface.
25
+ */
26
+ function instanceOfCurrentWeather(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 (!('humidity' in value) || value['humidity'] === undefined)
32
+ return false;
33
+ if (!('imperial' in value) || value['imperial'] === undefined)
34
+ return false;
35
+ if (!('metric' in value) || value['metric'] === 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
+ if (!('windDirection' in value) || value['windDirection'] === undefined)
42
+ return false;
43
+ if (!('windDirectionCardinal' in value) || value['windDirectionCardinal'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function CurrentWeatherFromJSON(json) {
48
+ return CurrentWeatherFromJSONTyped(json, false);
49
+ }
50
+ function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'cloudCover': json['cloud_cover'],
56
+ 'condition': json['condition'],
57
+ 'humidity': json['humidity'],
58
+ 'imperial': (0, ImperialUnits_1.ImperialUnitsFromJSON)(json['imperial']),
59
+ 'metric': (0, MetricUnits_1.MetricUnitsFromJSON)(json['metric']),
60
+ 'timestamp': (new Date(json['timestamp'])),
61
+ 'weatherCode': json['weather_code'],
62
+ 'windDirection': json['wind_direction'],
63
+ 'windDirectionCardinal': json['wind_direction_cardinal'],
64
+ };
65
+ }
66
+ function CurrentWeatherToJSON(json) {
67
+ return CurrentWeatherToJSONTyped(json, false);
68
+ }
69
+ function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'cloud_cover': value['cloudCover'],
75
+ 'condition': value['condition'],
76
+ 'humidity': value['humidity'],
77
+ 'imperial': (0, ImperialUnits_1.ImperialUnitsToJSON)(value['imperial']),
78
+ 'metric': (0, MetricUnits_1.MetricUnitsToJSON)(value['metric']),
79
+ 'timestamp': value['timestamp'].toISOString(),
80
+ 'weather_code': value['weatherCode'],
81
+ 'wind_direction': value['windDirection'],
82
+ 'wind_direction_cardinal': value['windDirectionCardinal'],
83
+ };
84
+ }
@@ -0,0 +1,76 @@
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 { DailyForecastMetric } from './DailyForecastMetric';
13
+ import type { DailyForecastImperial } from './DailyForecastImperial';
14
+ /**
15
+ * Daily weather summary with both unit systems
16
+ * @export
17
+ * @interface DailyForecast
18
+ */
19
+ export interface DailyForecast {
20
+ /**
21
+ * Human-readable condition
22
+ * @type {string}
23
+ * @memberof DailyForecast
24
+ */
25
+ condition: string;
26
+ /**
27
+ * Date of forecast (YYYY-MM-DD format)
28
+ * @type {string}
29
+ * @memberof DailyForecast
30
+ */
31
+ date: string;
32
+ /**
33
+ * Measurements in imperial units
34
+ * @type {DailyForecastImperial}
35
+ * @memberof DailyForecast
36
+ */
37
+ imperial: DailyForecastImperial;
38
+ /**
39
+ * Measurements in metric units
40
+ * @type {DailyForecastMetric}
41
+ * @memberof DailyForecast
42
+ */
43
+ metric: DailyForecastMetric;
44
+ /**
45
+ * Probability of precipitation (0-100%)
46
+ * @type {number}
47
+ * @memberof DailyForecast
48
+ */
49
+ precipitationProbability: number;
50
+ /**
51
+ * Sunrise time
52
+ * @type {Date}
53
+ * @memberof DailyForecast
54
+ */
55
+ sunrise: Date;
56
+ /**
57
+ * Sunset time
58
+ * @type {Date}
59
+ * @memberof DailyForecast
60
+ */
61
+ sunset: Date;
62
+ /**
63
+ * Weather condition code (most severe/relevant for the day)
64
+ * @type {number}
65
+ * @memberof DailyForecast
66
+ */
67
+ weatherCode: number;
68
+ }
69
+ /**
70
+ * Check if a given object implements the DailyForecast interface.
71
+ */
72
+ export declare function instanceOfDailyForecast(value: object): value is DailyForecast;
73
+ export declare function DailyForecastFromJSON(json: any): DailyForecast;
74
+ export declare function DailyForecastFromJSONTyped(json: any, ignoreDiscriminator: boolean): DailyForecast;
75
+ export declare function DailyForecastToJSON(json: any): DailyForecast;
76
+ export declare function DailyForecastToJSONTyped(value?: DailyForecast | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.instanceOfDailyForecast = instanceOfDailyForecast;
17
+ exports.DailyForecastFromJSON = DailyForecastFromJSON;
18
+ exports.DailyForecastFromJSONTyped = DailyForecastFromJSONTyped;
19
+ exports.DailyForecastToJSON = DailyForecastToJSON;
20
+ exports.DailyForecastToJSONTyped = DailyForecastToJSONTyped;
21
+ const DailyForecastMetric_1 = require("./DailyForecastMetric");
22
+ const DailyForecastImperial_1 = require("./DailyForecastImperial");
23
+ /**
24
+ * Check if a given object implements the DailyForecast interface.
25
+ */
26
+ function instanceOfDailyForecast(value) {
27
+ if (!('condition' in value) || value['condition'] === undefined)
28
+ return false;
29
+ if (!('date' in value) || value['date'] === 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 (!('sunrise' in value) || value['sunrise'] === undefined)
38
+ return false;
39
+ if (!('sunset' in value) || value['sunset'] === undefined)
40
+ return false;
41
+ if (!('weatherCode' in value) || value['weatherCode'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function DailyForecastFromJSON(json) {
46
+ return DailyForecastFromJSONTyped(json, false);
47
+ }
48
+ function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'condition': json['condition'],
54
+ 'date': json['date'],
55
+ 'imperial': (0, DailyForecastImperial_1.DailyForecastImperialFromJSON)(json['imperial']),
56
+ 'metric': (0, DailyForecastMetric_1.DailyForecastMetricFromJSON)(json['metric']),
57
+ 'precipitationProbability': json['precipitation_probability'],
58
+ 'sunrise': (new Date(json['sunrise'])),
59
+ 'sunset': (new Date(json['sunset'])),
60
+ 'weatherCode': json['weather_code'],
61
+ };
62
+ }
63
+ function DailyForecastToJSON(json) {
64
+ return DailyForecastToJSONTyped(json, false);
65
+ }
66
+ function DailyForecastToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'condition': value['condition'],
72
+ 'date': value['date'],
73
+ 'imperial': (0, DailyForecastImperial_1.DailyForecastImperialToJSON)(value['imperial']),
74
+ 'metric': (0, DailyForecastMetric_1.DailyForecastMetricToJSON)(value['metric']),
75
+ 'precipitation_probability': value['precipitationProbability'],
76
+ 'sunrise': value['sunrise'].toISOString(),
77
+ 'sunset': value['sunset'].toISOString(),
78
+ 'weather_code': value['weatherCode'],
79
+ };
80
+ }
@@ -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
+ * Daily forecast measurements in imperial units
14
+ * @export
15
+ * @interface DailyForecastImperial
16
+ */
17
+ export interface DailyForecastImperial {
18
+ /**
19
+ * Total precipitation expected in inches
20
+ * @type {number}
21
+ * @memberof DailyForecastImperial
22
+ */
23
+ precipitationTotal: number;
24
+ /**
25
+ * Total snowfall expected in inches
26
+ * @type {number}
27
+ * @memberof DailyForecastImperial
28
+ */
29
+ snowfallTotal: number;
30
+ /**
31
+ * High temperature in Fahrenheit
32
+ * @type {number}
33
+ * @memberof DailyForecastImperial
34
+ */
35
+ temperatureHigh: number;
36
+ /**
37
+ * Low temperature in Fahrenheit
38
+ * @type {number}
39
+ * @memberof DailyForecastImperial
40
+ */
41
+ temperatureLow: number;
42
+ /**
43
+ * Maximum wind gust in mph
44
+ * @type {number}
45
+ * @memberof DailyForecastImperial
46
+ */
47
+ windGustMax: number;
48
+ /**
49
+ * Maximum wind speed in mph
50
+ * @type {number}
51
+ * @memberof DailyForecastImperial
52
+ */
53
+ windSpeedMax: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the DailyForecastImperial interface.
57
+ */
58
+ export declare function instanceOfDailyForecastImperial(value: object): value is DailyForecastImperial;
59
+ export declare function DailyForecastImperialFromJSON(json: any): DailyForecastImperial;
60
+ export declare function DailyForecastImperialFromJSONTyped(json: any, ignoreDiscriminator: boolean): DailyForecastImperial;
61
+ export declare function DailyForecastImperialToJSON(json: any): DailyForecastImperial;
62
+ export declare function DailyForecastImperialToJSONTyped(value?: DailyForecastImperial | 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.instanceOfDailyForecastImperial = instanceOfDailyForecastImperial;
17
+ exports.DailyForecastImperialFromJSON = DailyForecastImperialFromJSON;
18
+ exports.DailyForecastImperialFromJSONTyped = DailyForecastImperialFromJSONTyped;
19
+ exports.DailyForecastImperialToJSON = DailyForecastImperialToJSON;
20
+ exports.DailyForecastImperialToJSONTyped = DailyForecastImperialToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DailyForecastImperial interface.
23
+ */
24
+ function instanceOfDailyForecastImperial(value) {
25
+ if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
26
+ return false;
27
+ if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
28
+ return false;
29
+ if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
30
+ return false;
31
+ if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
32
+ return false;
33
+ if (!('windGustMax' in value) || value['windGustMax'] === undefined)
34
+ return false;
35
+ if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function DailyForecastImperialFromJSON(json) {
40
+ return DailyForecastImperialFromJSONTyped(json, false);
41
+ }
42
+ function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'precipitationTotal': json['precipitation_total'],
48
+ 'snowfallTotal': json['snowfall_total'],
49
+ 'temperatureHigh': json['temperature_high'],
50
+ 'temperatureLow': json['temperature_low'],
51
+ 'windGustMax': json['wind_gust_max'],
52
+ 'windSpeedMax': json['wind_speed_max'],
53
+ };
54
+ }
55
+ function DailyForecastImperialToJSON(json) {
56
+ return DailyForecastImperialToJSONTyped(json, false);
57
+ }
58
+ function DailyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'precipitation_total': value['precipitationTotal'],
64
+ 'snowfall_total': value['snowfallTotal'],
65
+ 'temperature_high': value['temperatureHigh'],
66
+ 'temperature_low': value['temperatureLow'],
67
+ 'wind_gust_max': value['windGustMax'],
68
+ 'wind_speed_max': value['windSpeedMax'],
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
+ * Daily forecast measurements in metric units
14
+ * @export
15
+ * @interface DailyForecastMetric
16
+ */
17
+ export interface DailyForecastMetric {
18
+ /**
19
+ * Total precipitation expected in millimeters
20
+ * @type {number}
21
+ * @memberof DailyForecastMetric
22
+ */
23
+ precipitationTotal: number;
24
+ /**
25
+ * Total snowfall expected in centimeters
26
+ * @type {number}
27
+ * @memberof DailyForecastMetric
28
+ */
29
+ snowfallTotal: number;
30
+ /**
31
+ * High temperature in Celsius
32
+ * @type {number}
33
+ * @memberof DailyForecastMetric
34
+ */
35
+ temperatureHigh: number;
36
+ /**
37
+ * Low temperature in Celsius
38
+ * @type {number}
39
+ * @memberof DailyForecastMetric
40
+ */
41
+ temperatureLow: number;
42
+ /**
43
+ * Maximum wind gust in km/h
44
+ * @type {number}
45
+ * @memberof DailyForecastMetric
46
+ */
47
+ windGustMax: number;
48
+ /**
49
+ * Maximum wind speed in km/h
50
+ * @type {number}
51
+ * @memberof DailyForecastMetric
52
+ */
53
+ windSpeedMax: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the DailyForecastMetric interface.
57
+ */
58
+ export declare function instanceOfDailyForecastMetric(value: object): value is DailyForecastMetric;
59
+ export declare function DailyForecastMetricFromJSON(json: any): DailyForecastMetric;
60
+ export declare function DailyForecastMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): DailyForecastMetric;
61
+ export declare function DailyForecastMetricToJSON(json: any): DailyForecastMetric;
62
+ export declare function DailyForecastMetricToJSONTyped(value?: DailyForecastMetric | 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.instanceOfDailyForecastMetric = instanceOfDailyForecastMetric;
17
+ exports.DailyForecastMetricFromJSON = DailyForecastMetricFromJSON;
18
+ exports.DailyForecastMetricFromJSONTyped = DailyForecastMetricFromJSONTyped;
19
+ exports.DailyForecastMetricToJSON = DailyForecastMetricToJSON;
20
+ exports.DailyForecastMetricToJSONTyped = DailyForecastMetricToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DailyForecastMetric interface.
23
+ */
24
+ function instanceOfDailyForecastMetric(value) {
25
+ if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
26
+ return false;
27
+ if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
28
+ return false;
29
+ if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
30
+ return false;
31
+ if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
32
+ return false;
33
+ if (!('windGustMax' in value) || value['windGustMax'] === undefined)
34
+ return false;
35
+ if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function DailyForecastMetricFromJSON(json) {
40
+ return DailyForecastMetricFromJSONTyped(json, false);
41
+ }
42
+ function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'precipitationTotal': json['precipitation_total'],
48
+ 'snowfallTotal': json['snowfall_total'],
49
+ 'temperatureHigh': json['temperature_high'],
50
+ 'temperatureLow': json['temperature_low'],
51
+ 'windGustMax': json['wind_gust_max'],
52
+ 'windSpeedMax': json['wind_speed_max'],
53
+ };
54
+ }
55
+ function DailyForecastMetricToJSON(json) {
56
+ return DailyForecastMetricToJSONTyped(json, false);
57
+ }
58
+ function DailyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'precipitation_total': value['precipitationTotal'],
64
+ 'snowfall_total': value['snowfallTotal'],
65
+ 'temperature_high': value['temperatureHigh'],
66
+ 'temperature_low': value['temperatureLow'],
67
+ 'wind_gust_max': value['windGustMax'],
68
+ 'wind_speed_max': value['windSpeedMax'],
69
+ };
70
+ }
@@ -12,39 +12,39 @@
12
12
  /**
13
13
  * Operating hours for a specific date (calculated)
14
14
  * @export
15
- * @interface HoursInfo
15
+ * @interface DayHours
16
16
  */
17
- export interface HoursInfo {
17
+ export interface DayHours {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof HoursInfo
21
+ * @memberof DayHours
22
22
  */
23
23
  closesAt?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
- * @memberof HoursInfo
27
+ * @memberof DayHours
28
28
  */
29
29
  date: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
- * @memberof HoursInfo
33
+ * @memberof DayHours
34
34
  */
35
35
  dayOfWeek: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof HoursInfo
39
+ * @memberof DayHours
40
40
  */
41
41
  opensAt?: string | null;
42
42
  }
43
43
  /**
44
- * Check if a given object implements the HoursInfo interface.
44
+ * Check if a given object implements the DayHours interface.
45
45
  */
46
- export declare function instanceOfHoursInfo(value: object): value is HoursInfo;
47
- export declare function HoursInfoFromJSON(json: any): HoursInfo;
48
- export declare function HoursInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): HoursInfo;
49
- export declare function HoursInfoToJSON(json: any): HoursInfo;
50
- export declare function HoursInfoToJSONTyped(value?: HoursInfo | null, ignoreDiscriminator?: boolean): any;
46
+ export declare function instanceOfDayHours(value: object): value is DayHours;
47
+ export declare function DayHoursFromJSON(json: any): DayHours;
48
+ export declare function DayHoursFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayHours;
49
+ export declare function DayHoursToJSON(json: any): DayHours;
50
+ export declare function DayHoursToJSONTyped(value?: DayHours | null, ignoreDiscriminator?: boolean): any;