@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
@@ -12,19 +12,19 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the HoursInfo interface.
15
+ * Check if a given object implements the DayHours interface.
16
16
  */
17
- export function instanceOfHoursInfo(value) {
17
+ export function instanceOfDayHours(value) {
18
18
  if (!('date' in value) || value['date'] === undefined)
19
19
  return false;
20
20
  if (!('dayOfWeek' in value) || value['dayOfWeek'] === undefined)
21
21
  return false;
22
22
  return true;
23
23
  }
24
- export function HoursInfoFromJSON(json) {
25
- return HoursInfoFromJSONTyped(json, false);
24
+ export function DayHoursFromJSON(json) {
25
+ return DayHoursFromJSONTyped(json, false);
26
26
  }
27
- export function HoursInfoFromJSONTyped(json, ignoreDiscriminator) {
27
+ export function DayHoursFromJSONTyped(json, ignoreDiscriminator) {
28
28
  if (json == null) {
29
29
  return json;
30
30
  }
@@ -35,10 +35,10 @@ export function HoursInfoFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
36
36
  };
37
37
  }
38
- export function HoursInfoToJSON(json) {
39
- return HoursInfoToJSONTyped(json, false);
38
+ export function DayHoursToJSON(json) {
39
+ return DayHoursToJSONTyped(json, false);
40
40
  }
41
- export function HoursInfoToJSONTyped(value, ignoreDiscriminator = false) {
41
+ export function DayHoursToJSONTyped(value, ignoreDiscriminator = false) {
42
42
  if (value == null) {
43
43
  return value;
44
44
  }
@@ -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,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { HourlyForecastMetricFromJSON, HourlyForecastMetricToJSON, } from './HourlyForecastMetric';
15
+ import { HourlyForecastImperialFromJSON, HourlyForecastImperialToJSON, } from './HourlyForecastImperial';
16
+ /**
17
+ * Check if a given object implements the HourlyForecast interface.
18
+ */
19
+ export function instanceOfHourlyForecast(value) {
20
+ if (!('cloudCover' in value) || value['cloudCover'] === undefined)
21
+ return false;
22
+ if (!('condition' in value) || value['condition'] === undefined)
23
+ return false;
24
+ if (!('imperial' in value) || value['imperial'] === undefined)
25
+ return false;
26
+ if (!('metric' in value) || value['metric'] === undefined)
27
+ return false;
28
+ if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
29
+ return false;
30
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
31
+ return false;
32
+ if (!('weatherCode' in value) || value['weatherCode'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function HourlyForecastFromJSON(json) {
37
+ return HourlyForecastFromJSONTyped(json, false);
38
+ }
39
+ export function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'cloudCover': json['cloud_cover'],
45
+ 'condition': json['condition'],
46
+ 'imperial': HourlyForecastImperialFromJSON(json['imperial']),
47
+ 'metric': HourlyForecastMetricFromJSON(json['metric']),
48
+ 'precipitationProbability': json['precipitation_probability'],
49
+ 'timestamp': (new Date(json['timestamp'])),
50
+ 'weatherCode': json['weather_code'],
51
+ };
52
+ }
53
+ export function HourlyForecastToJSON(json) {
54
+ return HourlyForecastToJSONTyped(json, false);
55
+ }
56
+ export function HourlyForecastToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'cloud_cover': value['cloudCover'],
62
+ 'condition': value['condition'],
63
+ 'imperial': HourlyForecastImperialToJSON(value['imperial']),
64
+ 'metric': HourlyForecastMetricToJSON(value['metric']),
65
+ 'precipitation_probability': value['precipitationProbability'],
66
+ 'timestamp': value['timestamp'].toISOString(),
67
+ 'weather_code': value['weatherCode'],
68
+ };
69
+ }
@@ -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,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the HourlyForecastImperial interface.
16
+ */
17
+ export function instanceOfHourlyForecastImperial(value) {
18
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
19
+ return false;
20
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
21
+ return false;
22
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
23
+ return false;
24
+ if (!('temperature' in value) || value['temperature'] === undefined)
25
+ return false;
26
+ if (!('windGust' in value) || value['windGust'] === undefined)
27
+ return false;
28
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function HourlyForecastImperialFromJSON(json) {
33
+ return HourlyForecastImperialFromJSONTyped(json, false);
34
+ }
35
+ export function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feelsLike': json['feels_like'],
41
+ 'precipitation': json['precipitation'],
42
+ 'snowfall': json['snowfall'],
43
+ 'temperature': json['temperature'],
44
+ 'windGust': json['wind_gust'],
45
+ 'windSpeed': json['wind_speed'],
46
+ };
47
+ }
48
+ export function HourlyForecastImperialToJSON(json) {
49
+ return HourlyForecastImperialToJSONTyped(json, false);
50
+ }
51
+ export function HourlyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'feels_like': value['feelsLike'],
57
+ 'precipitation': value['precipitation'],
58
+ 'snowfall': value['snowfall'],
59
+ 'temperature': value['temperature'],
60
+ 'wind_gust': value['windGust'],
61
+ 'wind_speed': value['windSpeed'],
62
+ };
63
+ }
@@ -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,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the HourlyForecastMetric interface.
16
+ */
17
+ export function instanceOfHourlyForecastMetric(value) {
18
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
19
+ return false;
20
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
21
+ return false;
22
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
23
+ return false;
24
+ if (!('temperature' in value) || value['temperature'] === undefined)
25
+ return false;
26
+ if (!('windGust' in value) || value['windGust'] === undefined)
27
+ return false;
28
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function HourlyForecastMetricFromJSON(json) {
33
+ return HourlyForecastMetricFromJSONTyped(json, false);
34
+ }
35
+ export function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feelsLike': json['feels_like'],
41
+ 'precipitation': json['precipitation'],
42
+ 'snowfall': json['snowfall'],
43
+ 'temperature': json['temperature'],
44
+ 'windGust': json['wind_gust'],
45
+ 'windSpeed': json['wind_speed'],
46
+ };
47
+ }
48
+ export function HourlyForecastMetricToJSON(json) {
49
+ return HourlyForecastMetricToJSONTyped(json, false);
50
+ }
51
+ export function HourlyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'feels_like': value['feelsLike'],
57
+ 'precipitation': value['precipitation'],
58
+ 'snowfall': value['snowfall'],
59
+ 'temperature': value['temperature'],
60
+ 'wind_gust': value['windGust'],
61
+ 'wind_speed': value['windSpeed'],
62
+ };
63
+ }
@@ -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,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ImperialUnits interface.
16
+ */
17
+ export function instanceOfImperialUnits(value) {
18
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
19
+ return false;
20
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
21
+ return false;
22
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
23
+ return false;
24
+ if (!('temperature' in value) || value['temperature'] === undefined)
25
+ return false;
26
+ if (!('windGust' in value) || value['windGust'] === undefined)
27
+ return false;
28
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ImperialUnitsFromJSON(json) {
33
+ return ImperialUnitsFromJSONTyped(json, false);
34
+ }
35
+ export function ImperialUnitsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feelsLike': json['feels_like'],
41
+ 'precipitation': json['precipitation'],
42
+ 'snowfall': json['snowfall'],
43
+ 'temperature': json['temperature'],
44
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
45
+ 'windGust': json['wind_gust'],
46
+ 'windSpeed': json['wind_speed'],
47
+ };
48
+ }
49
+ export function ImperialUnitsToJSON(json) {
50
+ return ImperialUnitsToJSONTyped(json, false);
51
+ }
52
+ export function ImperialUnitsToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'feels_like': value['feelsLike'],
58
+ 'precipitation': value['precipitation'],
59
+ 'snowfall': value['snowfall'],
60
+ 'temperature': value['temperature'],
61
+ 'visibility': value['visibility'],
62
+ 'wind_gust': value['windGust'],
63
+ 'wind_speed': value['windSpeed'],
64
+ };
65
+ }
@@ -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;