@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,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;
@@ -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.instanceOfMetricUnits = instanceOfMetricUnits;
17
+ exports.MetricUnitsFromJSON = MetricUnitsFromJSON;
18
+ exports.MetricUnitsFromJSONTyped = MetricUnitsFromJSONTyped;
19
+ exports.MetricUnitsToJSON = MetricUnitsToJSON;
20
+ exports.MetricUnitsToJSONTyped = MetricUnitsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricUnits interface.
23
+ */
24
+ function instanceOfMetricUnits(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 MetricUnitsFromJSON(json) {
40
+ return MetricUnitsFromJSONTyped(json, false);
41
+ }
42
+ function MetricUnitsFromJSONTyped(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 MetricUnitsToJSON(json) {
57
+ return MetricUnitsToJSONTyped(json, false);
58
+ }
59
+ function MetricUnitsToJSONTyped(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
+ }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { HoursInfo } from './HoursInfo';
13
- import type { RegularHoursDescription } from './RegularHoursDescription';
12
+ import type { DayHours } from './DayHours';
13
+ import type { Schedule } from './Schedule';
14
14
  /**
15
15
  * Calculated operating hours response
16
16
  * @export
@@ -19,22 +19,16 @@ import type { RegularHoursDescription } from './RegularHoursDescription';
19
19
  export interface OperatingHoursResponse {
20
20
  /**
21
21
  *
22
- * @type {Array<HoursInfo>}
22
+ * @type {Array<DayHours>}
23
23
  * @memberof OperatingHoursResponse
24
24
  */
25
- openDays: Array<HoursInfo>;
25
+ openDays: Array<DayHours>;
26
26
  /**
27
27
  *
28
- * @type {Array<RegularHoursDescription>}
28
+ * @type {Array<Schedule>}
29
29
  * @memberof OperatingHoursResponse
30
30
  */
31
- regularHours: Array<RegularHoursDescription>;
32
- /**
33
- *
34
- * @type {HoursInfo}
35
- * @memberof OperatingHoursResponse
36
- */
37
- today: HoursInfo;
31
+ schedules: Array<Schedule>;
38
32
  }
39
33
  /**
40
34
  * Check if a given object implements the OperatingHoursResponse interface.
@@ -18,17 +18,15 @@ exports.OperatingHoursResponseFromJSON = OperatingHoursResponseFromJSON;
18
18
  exports.OperatingHoursResponseFromJSONTyped = OperatingHoursResponseFromJSONTyped;
19
19
  exports.OperatingHoursResponseToJSON = OperatingHoursResponseToJSON;
20
20
  exports.OperatingHoursResponseToJSONTyped = OperatingHoursResponseToJSONTyped;
21
- const HoursInfo_1 = require("./HoursInfo");
22
- const RegularHoursDescription_1 = require("./RegularHoursDescription");
21
+ const DayHours_1 = require("./DayHours");
22
+ const Schedule_1 = require("./Schedule");
23
23
  /**
24
24
  * Check if a given object implements the OperatingHoursResponse interface.
25
25
  */
26
26
  function instanceOfOperatingHoursResponse(value) {
27
27
  if (!('openDays' in value) || value['openDays'] === undefined)
28
28
  return false;
29
- if (!('regularHours' in value) || value['regularHours'] === undefined)
30
- return false;
31
- if (!('today' in value) || value['today'] === undefined)
29
+ if (!('schedules' in value) || value['schedules'] === undefined)
32
30
  return false;
33
31
  return true;
34
32
  }
@@ -40,9 +38,8 @@ function OperatingHoursResponseFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return json;
41
39
  }
42
40
  return {
43
- 'openDays': (json['open_days'].map(HoursInfo_1.HoursInfoFromJSON)),
44
- 'regularHours': (json['regular_hours'].map(RegularHoursDescription_1.RegularHoursDescriptionFromJSON)),
45
- 'today': (0, HoursInfo_1.HoursInfoFromJSON)(json['today']),
41
+ 'openDays': (json['open_days'].map(DayHours_1.DayHoursFromJSON)),
42
+ 'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
46
43
  };
47
44
  }
48
45
  function OperatingHoursResponseToJSON(json) {
@@ -53,8 +50,7 @@ function OperatingHoursResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
50
  return value;
54
51
  }
55
52
  return {
56
- 'open_days': (value['openDays'].map(HoursInfo_1.HoursInfoToJSON)),
57
- 'regular_hours': (value['regularHours'].map(RegularHoursDescription_1.RegularHoursDescriptionToJSON)),
58
- 'today': (0, HoursInfo_1.HoursInfoToJSON)(value['today']),
53
+ 'open_days': (value['openDays'].map(DayHours_1.DayHoursToJSON)),
54
+ 'schedules': (value['schedules'].map(Schedule_1.ScheduleToJSON)),
59
55
  };
60
56
  }
@@ -15,6 +15,7 @@ import type { PublicLift } from './PublicLift';
15
15
  import type { PublicResortStatus } from './PublicResortStatus';
16
16
  import type { PublicSnowReport } from './PublicSnowReport';
17
17
  import type { PublicResortInfo } from './PublicResortInfo';
18
+ import type { WeatherData } from './WeatherData';
18
19
  /**
19
20
  * Comprehensive resort response (all-in-one)
20
21
  * @export
@@ -57,6 +58,12 @@ export interface PublicResortResponse {
57
58
  * @memberof PublicResortResponse
58
59
  */
59
60
  status?: PublicResortStatus | null;
61
+ /**
62
+ *
63
+ * @type {WeatherData}
64
+ * @memberof PublicResortResponse
65
+ */
66
+ weather?: WeatherData | null;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the PublicResortResponse interface.
@@ -24,6 +24,7 @@ const PublicLift_1 = require("./PublicLift");
24
24
  const PublicResortStatus_1 = require("./PublicResortStatus");
25
25
  const PublicSnowReport_1 = require("./PublicSnowReport");
26
26
  const PublicResortInfo_1 = require("./PublicResortInfo");
27
+ const WeatherData_1 = require("./WeatherData");
27
28
  /**
28
29
  * Check if a given object implements the PublicResortResponse interface.
29
30
  */
@@ -46,6 +47,7 @@ function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
46
47
  'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
47
48
  'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
48
49
  'status': json['status'] == null ? undefined : (0, PublicResortStatus_1.PublicResortStatusFromJSON)(json['status']),
50
+ 'weather': json['weather'] == null ? undefined : (0, WeatherData_1.WeatherDataFromJSON)(json['weather']),
49
51
  };
50
52
  }
51
53
  function PublicResortResponseToJSON(json) {
@@ -62,5 +64,6 @@ function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
62
64
  'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRun_1.PublicRunToJSON)),
63
65
  'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
64
66
  'status': (0, PublicResortStatus_1.PublicResortStatusToJSON)(value['status']),
67
+ 'weather': (0, WeatherData_1.WeatherDataToJSON)(value['weather']),
65
68
  };
66
69
  }