@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.
- package/README.md +19 -5
- package/dist/esm/models/CurrentWeather.d.ts +85 -0
- package/dist/esm/models/CurrentWeather.js +77 -0
- package/dist/esm/models/DailyForecast.d.ts +76 -0
- package/dist/esm/models/DailyForecast.js +73 -0
- package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
- package/dist/esm/models/DailyForecastImperial.js +63 -0
- package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
- package/dist/esm/models/DailyForecastMetric.js +63 -0
- package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
- package/dist/esm/models/HourlyForecast.d.ts +70 -0
- package/dist/esm/models/HourlyForecast.js +69 -0
- package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/esm/models/HourlyForecastImperial.js +63 -0
- package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/esm/models/HourlyForecastMetric.js +63 -0
- package/dist/esm/models/ImperialUnits.d.ts +68 -0
- package/dist/esm/models/ImperialUnits.js +65 -0
- package/dist/esm/models/MetricUnits.d.ts +68 -0
- package/dist/esm/models/MetricUnits.js +65 -0
- package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/esm/models/OperatingHoursResponse.js +7 -11
- package/dist/esm/models/PublicResortResponse.d.ts +7 -0
- package/dist/esm/models/PublicResortResponse.js +3 -0
- package/dist/esm/models/PublicResortStatus.d.ts +43 -1
- package/dist/esm/models/PublicResortStatus.js +24 -0
- package/dist/esm/models/PublicRun.d.ts +6 -0
- package/dist/esm/models/PublicRun.js +2 -0
- package/dist/esm/models/PublicSnowReport.d.ts +12 -0
- package/dist/esm/models/PublicSnowReport.js +4 -0
- package/dist/esm/models/RecurrencePattern.d.ts +24 -0
- package/dist/esm/models/RecurrencePattern.js +58 -0
- package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
- package/dist/esm/models/Schedule.d.ts +81 -0
- package/dist/esm/models/Schedule.js +76 -0
- package/dist/esm/models/SurfaceCondition.d.ts +16 -7
- package/dist/esm/models/SurfaceCondition.js +16 -7
- package/dist/esm/models/WeatherData.d.ts +59 -0
- package/dist/esm/models/WeatherData.js +62 -0
- package/dist/esm/models/index.d.ts +16 -2
- package/dist/esm/models/index.js +16 -2
- package/dist/models/CurrentWeather.d.ts +85 -0
- package/dist/models/CurrentWeather.js +84 -0
- package/dist/models/DailyForecast.d.ts +76 -0
- package/dist/models/DailyForecast.js +80 -0
- package/dist/models/DailyForecastImperial.d.ts +62 -0
- package/dist/models/DailyForecastImperial.js +70 -0
- package/dist/models/DailyForecastMetric.d.ts +62 -0
- package/dist/models/DailyForecastMetric.js +70 -0
- package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
- package/dist/models/HourlyForecast.d.ts +70 -0
- package/dist/models/HourlyForecast.js +76 -0
- package/dist/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/models/HourlyForecastImperial.js +70 -0
- package/dist/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/models/HourlyForecastMetric.js +70 -0
- package/dist/models/ImperialUnits.d.ts +68 -0
- package/dist/models/ImperialUnits.js +72 -0
- package/dist/models/MetricUnits.d.ts +68 -0
- package/dist/models/MetricUnits.js +72 -0
- package/dist/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/models/OperatingHoursResponse.js +7 -11
- package/dist/models/PublicResortResponse.d.ts +7 -0
- package/dist/models/PublicResortResponse.js +3 -0
- package/dist/models/PublicResortStatus.d.ts +43 -1
- package/dist/models/PublicResortStatus.js +24 -0
- package/dist/models/PublicRun.d.ts +6 -0
- package/dist/models/PublicRun.js +2 -0
- package/dist/models/PublicSnowReport.d.ts +12 -0
- package/dist/models/PublicSnowReport.js +4 -0
- package/dist/models/RecurrencePattern.d.ts +24 -0
- package/dist/models/RecurrencePattern.js +64 -0
- package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf.js +57 -0
- package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf1.js +57 -0
- package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/models/RecurrencePatternOneOf2.js +61 -0
- package/dist/models/Schedule.d.ts +81 -0
- package/dist/models/Schedule.js +83 -0
- package/dist/models/SurfaceCondition.d.ts +16 -7
- package/dist/models/SurfaceCondition.js +16 -7
- package/dist/models/WeatherData.d.ts +59 -0
- package/dist/models/WeatherData.js +69 -0
- package/dist/models/index.d.ts +16 -2
- package/dist/models/index.js +16 -2
- package/package.json +7 -10
- package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
- package/dist/esm/models/RegularHoursDescription.js +0 -55
- package/dist/models/RegularHoursDescription.d.ts +0 -50
- package/dist/models/RegularHoursDescription.js +0 -62
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.4
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -60,9 +60,18 @@ All URIs are relative to *http://localhost:8787*
|
|
|
60
60
|
|
|
61
61
|
### Models
|
|
62
62
|
|
|
63
|
-
- [
|
|
63
|
+
- [CurrentWeather](docs/CurrentWeather.md)
|
|
64
|
+
- [DailyForecast](docs/DailyForecast.md)
|
|
65
|
+
- [DailyForecastImperial](docs/DailyForecastImperial.md)
|
|
66
|
+
- [DailyForecastMetric](docs/DailyForecastMetric.md)
|
|
67
|
+
- [DayHours](docs/DayHours.md)
|
|
68
|
+
- [HourlyForecast](docs/HourlyForecast.md)
|
|
69
|
+
- [HourlyForecastImperial](docs/HourlyForecastImperial.md)
|
|
70
|
+
- [HourlyForecastMetric](docs/HourlyForecastMetric.md)
|
|
71
|
+
- [ImperialUnits](docs/ImperialUnits.md)
|
|
64
72
|
- [LiftStatus](docs/LiftStatus.md)
|
|
65
73
|
- [LiftType](docs/LiftType.md)
|
|
74
|
+
- [MetricUnits](docs/MetricUnits.md)
|
|
66
75
|
- [OperatingHoursResponse](docs/OperatingHoursResponse.md)
|
|
67
76
|
- [PublicLift](docs/PublicLift.md)
|
|
68
77
|
- [PublicResortInfo](docs/PublicResortInfo.md)
|
|
@@ -71,13 +80,18 @@ All URIs are relative to *http://localhost:8787*
|
|
|
71
80
|
- [PublicRun](docs/PublicRun.md)
|
|
72
81
|
- [PublicSnowReport](docs/PublicSnowReport.md)
|
|
73
82
|
- [PublicSnowResponse](docs/PublicSnowResponse.md)
|
|
74
|
-
- [
|
|
83
|
+
- [RecurrencePattern](docs/RecurrencePattern.md)
|
|
84
|
+
- [RecurrencePatternOneOf](docs/RecurrencePatternOneOf.md)
|
|
85
|
+
- [RecurrencePatternOneOf1](docs/RecurrencePatternOneOf1.md)
|
|
86
|
+
- [RecurrencePatternOneOf2](docs/RecurrencePatternOneOf2.md)
|
|
75
87
|
- [ResortStatusType](docs/ResortStatusType.md)
|
|
76
88
|
- [RunDifficulty](docs/RunDifficulty.md)
|
|
77
89
|
- [RunStatus](docs/RunStatus.md)
|
|
90
|
+
- [Schedule](docs/Schedule.md)
|
|
78
91
|
- [SnowMetrics](docs/SnowMetrics.md)
|
|
79
92
|
- [SurfaceCondition](docs/SurfaceCondition.md)
|
|
80
93
|
- [UnitPreference](docs/UnitPreference.md)
|
|
94
|
+
- [WeatherData](docs/WeatherData.md)
|
|
81
95
|
|
|
82
96
|
### Authorization
|
|
83
97
|
|
|
@@ -91,8 +105,8 @@ and is automatically generated by the
|
|
|
91
105
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
92
106
|
|
|
93
107
|
- API version: `0.1.0`
|
|
94
|
-
- Package version: `0.0.
|
|
95
|
-
- Generator version: `7.
|
|
108
|
+
- Package version: `0.0.4`
|
|
109
|
+
- Generator version: `7.17.0`
|
|
96
110
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
97
111
|
|
|
98
112
|
The generated npm module supports the following:
|
|
@@ -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,77 @@
|
|
|
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 { ImperialUnitsFromJSON, ImperialUnitsToJSON, } from './ImperialUnits';
|
|
15
|
+
import { MetricUnitsFromJSON, MetricUnitsToJSON, } from './MetricUnits';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CurrentWeather interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCurrentWeather(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 (!('humidity' in value) || value['humidity'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('metric' in value) || value['metric'] === 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
|
+
if (!('windDirection' in value) || value['windDirection'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('windDirectionCardinal' in value) || value['windDirectionCardinal'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function CurrentWeatherFromJSON(json) {
|
|
41
|
+
return CurrentWeatherFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'cloudCover': json['cloud_cover'],
|
|
49
|
+
'condition': json['condition'],
|
|
50
|
+
'humidity': json['humidity'],
|
|
51
|
+
'imperial': ImperialUnitsFromJSON(json['imperial']),
|
|
52
|
+
'metric': MetricUnitsFromJSON(json['metric']),
|
|
53
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
54
|
+
'weatherCode': json['weather_code'],
|
|
55
|
+
'windDirection': json['wind_direction'],
|
|
56
|
+
'windDirectionCardinal': json['wind_direction_cardinal'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function CurrentWeatherToJSON(json) {
|
|
60
|
+
return CurrentWeatherToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'cloud_cover': value['cloudCover'],
|
|
68
|
+
'condition': value['condition'],
|
|
69
|
+
'humidity': value['humidity'],
|
|
70
|
+
'imperial': ImperialUnitsToJSON(value['imperial']),
|
|
71
|
+
'metric': MetricUnitsToJSON(value['metric']),
|
|
72
|
+
'timestamp': value['timestamp'].toISOString(),
|
|
73
|
+
'weather_code': value['weatherCode'],
|
|
74
|
+
'wind_direction': value['windDirection'],
|
|
75
|
+
'wind_direction_cardinal': value['windDirectionCardinal'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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,73 @@
|
|
|
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 { DailyForecastMetricFromJSON, DailyForecastMetricToJSON, } from './DailyForecastMetric';
|
|
15
|
+
import { DailyForecastImperialFromJSON, DailyForecastImperialToJSON, } from './DailyForecastImperial';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the DailyForecast interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfDailyForecast(value) {
|
|
20
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('date' in value) || value['date'] === 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 (!('sunrise' in value) || value['sunrise'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('sunset' in value) || value['sunset'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function DailyForecastFromJSON(json) {
|
|
39
|
+
return DailyForecastFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'condition': json['condition'],
|
|
47
|
+
'date': json['date'],
|
|
48
|
+
'imperial': DailyForecastImperialFromJSON(json['imperial']),
|
|
49
|
+
'metric': DailyForecastMetricFromJSON(json['metric']),
|
|
50
|
+
'precipitationProbability': json['precipitation_probability'],
|
|
51
|
+
'sunrise': (new Date(json['sunrise'])),
|
|
52
|
+
'sunset': (new Date(json['sunset'])),
|
|
53
|
+
'weatherCode': json['weather_code'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function DailyForecastToJSON(json) {
|
|
57
|
+
return DailyForecastToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function DailyForecastToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'condition': value['condition'],
|
|
65
|
+
'date': value['date'],
|
|
66
|
+
'imperial': DailyForecastImperialToJSON(value['imperial']),
|
|
67
|
+
'metric': DailyForecastMetricToJSON(value['metric']),
|
|
68
|
+
'precipitation_probability': value['precipitationProbability'],
|
|
69
|
+
'sunrise': value['sunrise'].toISOString(),
|
|
70
|
+
'sunset': value['sunset'].toISOString(),
|
|
71
|
+
'weather_code': value['weatherCode'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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,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 DailyForecastImperial interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDailyForecastImperial(value) {
|
|
18
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function DailyForecastImperialFromJSON(json) {
|
|
33
|
+
return DailyForecastImperialFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'precipitationTotal': json['precipitation_total'],
|
|
41
|
+
'snowfallTotal': json['snowfall_total'],
|
|
42
|
+
'temperatureHigh': json['temperature_high'],
|
|
43
|
+
'temperatureLow': json['temperature_low'],
|
|
44
|
+
'windGustMax': json['wind_gust_max'],
|
|
45
|
+
'windSpeedMax': json['wind_speed_max'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function DailyForecastImperialToJSON(json) {
|
|
49
|
+
return DailyForecastImperialToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function DailyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'precipitation_total': value['precipitationTotal'],
|
|
57
|
+
'snowfall_total': value['snowfallTotal'],
|
|
58
|
+
'temperature_high': value['temperatureHigh'],
|
|
59
|
+
'temperature_low': value['temperatureLow'],
|
|
60
|
+
'wind_gust_max': value['windGustMax'],
|
|
61
|
+
'wind_speed_max': value['windSpeedMax'],
|
|
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
|
+
* 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,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 DailyForecastMetric interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDailyForecastMetric(value) {
|
|
18
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function DailyForecastMetricFromJSON(json) {
|
|
33
|
+
return DailyForecastMetricFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'precipitationTotal': json['precipitation_total'],
|
|
41
|
+
'snowfallTotal': json['snowfall_total'],
|
|
42
|
+
'temperatureHigh': json['temperature_high'],
|
|
43
|
+
'temperatureLow': json['temperature_low'],
|
|
44
|
+
'windGustMax': json['wind_gust_max'],
|
|
45
|
+
'windSpeedMax': json['wind_speed_max'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function DailyForecastMetricToJSON(json) {
|
|
49
|
+
return DailyForecastMetricToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function DailyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'precipitation_total': value['precipitationTotal'],
|
|
57
|
+
'snowfall_total': value['snowfallTotal'],
|
|
58
|
+
'temperature_high': value['temperatureHigh'],
|
|
59
|
+
'temperature_low': value['temperatureLow'],
|
|
60
|
+
'wind_gust_max': value['windGustMax'],
|
|
61
|
+
'wind_speed_max': value['windSpeedMax'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -12,39 +12,39 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Operating hours for a specific date (calculated)
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface DayHours
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface DayHours {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof DayHours
|
|
22
22
|
*/
|
|
23
23
|
closesAt?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof DayHours
|
|
28
28
|
*/
|
|
29
29
|
date: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof DayHours
|
|
34
34
|
*/
|
|
35
35
|
dayOfWeek: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof DayHours
|
|
40
40
|
*/
|
|
41
41
|
opensAt?: string | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Check if a given object implements the
|
|
44
|
+
* Check if a given object implements the DayHours interface.
|
|
45
45
|
*/
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function
|
|
50
|
-
export declare function
|
|
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;
|