@mtnmanager/sdk 0.0.1 → 0.0.4

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 (98) hide show
  1. package/README.md +19 -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 +43 -1
  27. package/dist/esm/models/PublicResortStatus.js +24 -0
  28. package/dist/esm/models/PublicRun.d.ts +6 -0
  29. package/dist/esm/models/PublicRun.js +2 -0
  30. package/dist/esm/models/PublicSnowReport.d.ts +12 -0
  31. package/dist/esm/models/PublicSnowReport.js +4 -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/Schedule.d.ts +81 -0
  41. package/dist/esm/models/Schedule.js +76 -0
  42. package/dist/esm/models/SurfaceCondition.d.ts +16 -7
  43. package/dist/esm/models/SurfaceCondition.js +16 -7
  44. package/dist/esm/models/WeatherData.d.ts +59 -0
  45. package/dist/esm/models/WeatherData.js +62 -0
  46. package/dist/esm/models/index.d.ts +16 -2
  47. package/dist/esm/models/index.js +16 -2
  48. package/dist/models/CurrentWeather.d.ts +85 -0
  49. package/dist/models/CurrentWeather.js +84 -0
  50. package/dist/models/DailyForecast.d.ts +76 -0
  51. package/dist/models/DailyForecast.js +80 -0
  52. package/dist/models/DailyForecastImperial.d.ts +62 -0
  53. package/dist/models/DailyForecastImperial.js +70 -0
  54. package/dist/models/DailyForecastMetric.d.ts +62 -0
  55. package/dist/models/DailyForecastMetric.js +70 -0
  56. package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  57. package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
  58. package/dist/models/HourlyForecast.d.ts +70 -0
  59. package/dist/models/HourlyForecast.js +76 -0
  60. package/dist/models/HourlyForecastImperial.d.ts +62 -0
  61. package/dist/models/HourlyForecastImperial.js +70 -0
  62. package/dist/models/HourlyForecastMetric.d.ts +62 -0
  63. package/dist/models/HourlyForecastMetric.js +70 -0
  64. package/dist/models/ImperialUnits.d.ts +68 -0
  65. package/dist/models/ImperialUnits.js +72 -0
  66. package/dist/models/MetricUnits.d.ts +68 -0
  67. package/dist/models/MetricUnits.js +72 -0
  68. package/dist/models/OperatingHoursResponse.d.ts +6 -12
  69. package/dist/models/OperatingHoursResponse.js +7 -11
  70. package/dist/models/PublicResortResponse.d.ts +7 -0
  71. package/dist/models/PublicResortResponse.js +3 -0
  72. package/dist/models/PublicResortStatus.d.ts +43 -1
  73. package/dist/models/PublicResortStatus.js +24 -0
  74. package/dist/models/PublicRun.d.ts +6 -0
  75. package/dist/models/PublicRun.js +2 -0
  76. package/dist/models/PublicSnowReport.d.ts +12 -0
  77. package/dist/models/PublicSnowReport.js +4 -0
  78. package/dist/models/RecurrencePattern.d.ts +24 -0
  79. package/dist/models/RecurrencePattern.js +64 -0
  80. package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
  81. package/dist/models/RecurrencePatternOneOf.js +57 -0
  82. package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
  83. package/dist/models/RecurrencePatternOneOf1.js +57 -0
  84. package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
  85. package/dist/models/RecurrencePatternOneOf2.js +61 -0
  86. package/dist/models/Schedule.d.ts +81 -0
  87. package/dist/models/Schedule.js +83 -0
  88. package/dist/models/SurfaceCondition.d.ts +16 -7
  89. package/dist/models/SurfaceCondition.js +16 -7
  90. package/dist/models/WeatherData.d.ts +59 -0
  91. package/dist/models/WeatherData.js +69 -0
  92. package/dist/models/index.d.ts +16 -2
  93. package/dist/models/index.js +16 -2
  94. package/package.json +7 -10
  95. package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
  96. package/dist/esm/models/RegularHoursDescription.js +0 -55
  97. package/dist/models/RegularHoursDescription.d.ts +0 -50
  98. package/dist/models/RegularHoursDescription.js +0 -62
@@ -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;
@@ -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
+ }