@mtnmanager/sdk 0.0.12 → 0.0.14
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 +2 -3
- package/dist/esm/models/CurrentWeather.d.ts +24 -24
- package/dist/esm/models/CurrentWeather.js +16 -16
- package/dist/esm/models/DailyForecast.d.ts +12 -12
- package/dist/esm/models/DailyForecast.js +8 -8
- package/dist/esm/models/DailyForecastImperial.d.ts +12 -12
- package/dist/esm/models/DailyForecastImperial.js +11 -11
- package/dist/esm/models/DailyForecastMetric.d.ts +12 -12
- package/dist/esm/models/DailyForecastMetric.js +11 -11
- package/dist/esm/models/DayHours.d.ts +4 -4
- package/dist/esm/models/DayHours.js +2 -2
- package/dist/esm/models/HourlyForecast.d.ts +14 -14
- package/dist/esm/models/HourlyForecast.js +14 -14
- package/dist/esm/models/HourlyForecastImperial.d.ts +10 -10
- package/dist/esm/models/HourlyForecastImperial.js +11 -11
- package/dist/esm/models/HourlyForecastMetric.d.ts +10 -10
- package/dist/esm/models/HourlyForecastMetric.js +11 -11
- package/dist/esm/models/ImperialUnits.d.ts +10 -10
- package/dist/esm/models/ImperialUnits.js +13 -13
- package/dist/esm/models/MetricUnits.d.ts +10 -10
- package/dist/esm/models/MetricUnits.js +13 -13
- package/dist/esm/models/PublicLift.d.ts +22 -16
- package/dist/esm/models/PublicLift.js +18 -16
- package/dist/esm/models/PublicResortInfo.d.ts +6 -6
- package/dist/esm/models/PublicResortInfo.js +4 -4
- package/dist/esm/models/PublicResortResponse.d.ts +10 -10
- package/dist/esm/models/PublicResortResponse.js +8 -8
- package/dist/esm/models/PublicResortStatus.d.ts +18 -18
- package/dist/esm/models/PublicResortStatus.js +23 -23
- package/dist/esm/models/PublicRun.d.ts +20 -14
- package/dist/esm/models/PublicRun.js +24 -22
- package/dist/esm/models/PublicSnowReport.d.ts +21 -15
- package/dist/esm/models/PublicSnowReport.js +18 -12
- package/dist/esm/models/RecurrencePattern.d.ts +1 -2
- package/dist/esm/models/RecurrencePattern.js +0 -7
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +7 -1
- package/dist/esm/models/RecurrencePatternOneOf1.js +5 -1
- package/dist/esm/models/Schedule.d.ts +10 -10
- package/dist/esm/models/Schedule.js +20 -20
- package/dist/esm/models/SnowMetrics.d.ts +4 -4
- package/dist/esm/models/SnowMetrics.js +4 -4
- package/dist/esm/models/WeatherData.d.ts +9 -9
- package/dist/esm/models/WeatherData.js +7 -7
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/CurrentWeather.d.ts +24 -24
- package/dist/models/CurrentWeather.js +16 -16
- package/dist/models/DailyForecast.d.ts +12 -12
- package/dist/models/DailyForecast.js +8 -8
- package/dist/models/DailyForecastImperial.d.ts +12 -12
- package/dist/models/DailyForecastImperial.js +11 -11
- package/dist/models/DailyForecastMetric.d.ts +12 -12
- package/dist/models/DailyForecastMetric.js +11 -11
- package/dist/models/DayHours.d.ts +4 -4
- package/dist/models/DayHours.js +2 -2
- package/dist/models/HourlyForecast.d.ts +14 -14
- package/dist/models/HourlyForecast.js +14 -14
- package/dist/models/HourlyForecastImperial.d.ts +10 -10
- package/dist/models/HourlyForecastImperial.js +11 -11
- package/dist/models/HourlyForecastMetric.d.ts +10 -10
- package/dist/models/HourlyForecastMetric.js +11 -11
- package/dist/models/ImperialUnits.d.ts +10 -10
- package/dist/models/ImperialUnits.js +13 -13
- package/dist/models/MetricUnits.d.ts +10 -10
- package/dist/models/MetricUnits.js +13 -13
- package/dist/models/PublicLift.d.ts +22 -16
- package/dist/models/PublicLift.js +18 -16
- package/dist/models/PublicResortInfo.d.ts +6 -6
- package/dist/models/PublicResortInfo.js +4 -4
- package/dist/models/PublicResortResponse.d.ts +10 -10
- package/dist/models/PublicResortResponse.js +8 -8
- package/dist/models/PublicResortStatus.d.ts +18 -18
- package/dist/models/PublicResortStatus.js +23 -23
- package/dist/models/PublicRun.d.ts +20 -14
- package/dist/models/PublicRun.js +24 -22
- package/dist/models/PublicSnowReport.d.ts +21 -15
- package/dist/models/PublicSnowReport.js +18 -12
- package/dist/models/RecurrencePattern.d.ts +1 -2
- package/dist/models/RecurrencePattern.js +0 -7
- package/dist/models/RecurrencePatternOneOf1.d.ts +7 -1
- package/dist/models/RecurrencePatternOneOf1.js +5 -1
- package/dist/models/Schedule.d.ts +10 -10
- package/dist/models/Schedule.js +20 -20
- package/dist/models/SnowMetrics.d.ts +4 -4
- package/dist/models/SnowMetrics.js +4 -4
- package/dist/models/WeatherData.d.ts +9 -9
- package/dist/models/WeatherData.js +7 -7
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +0 -45
- package/dist/esm/models/RecurrencePatternOneOf2.js +0 -53
- package/dist/models/RecurrencePatternOneOf2.d.ts +0 -45
- package/dist/models/RecurrencePatternOneOf2.js +0 -61
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.14
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-resort.mtnmanager.com API.
|
|
4
4
|
|
|
@@ -78,7 +78,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
78
78
|
- [RecurrencePattern](docs/RecurrencePattern.md)
|
|
79
79
|
- [RecurrencePatternOneOf](docs/RecurrencePatternOneOf.md)
|
|
80
80
|
- [RecurrencePatternOneOf1](docs/RecurrencePatternOneOf1.md)
|
|
81
|
-
- [RecurrencePatternOneOf2](docs/RecurrencePatternOneOf2.md)
|
|
82
81
|
- [ResortStatusType](docs/ResortStatusType.md)
|
|
83
82
|
- [RunDifficulty](docs/RunDifficulty.md)
|
|
84
83
|
- [RunStatus](docs/RunStatus.md)
|
|
@@ -101,7 +100,7 @@ and is automatically generated by the
|
|
|
101
100
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
102
101
|
|
|
103
102
|
- API version: `1.0.0`
|
|
104
|
-
- Package version: `0.0.
|
|
103
|
+
- Package version: `0.0.14`
|
|
105
104
|
- Generator version: `7.17.0`
|
|
106
105
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
107
106
|
|
|
@@ -17,24 +17,6 @@ import type { MetricUnits } from './MetricUnits';
|
|
|
17
17
|
* @interface CurrentWeather
|
|
18
18
|
*/
|
|
19
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
20
|
/**
|
|
39
21
|
* Measurements in imperial units
|
|
40
22
|
* @type {ImperialUnits}
|
|
@@ -47,12 +29,6 @@ export interface CurrentWeather {
|
|
|
47
29
|
* @memberof CurrentWeather
|
|
48
30
|
*/
|
|
49
31
|
metric: MetricUnits;
|
|
50
|
-
/**
|
|
51
|
-
* Timestamp of observation
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof CurrentWeather
|
|
54
|
-
*/
|
|
55
|
-
timestamp: string;
|
|
56
32
|
/**
|
|
57
33
|
* Weather condition code (unit-independent)
|
|
58
34
|
* 0=clear, 1=mainly clear, 2=partly cloudy, 3=overcast,
|
|
@@ -62,6 +38,12 @@ export interface CurrentWeather {
|
|
|
62
38
|
* @memberof CurrentWeather
|
|
63
39
|
*/
|
|
64
40
|
weatherCode: number;
|
|
41
|
+
/**
|
|
42
|
+
* Human-readable weather condition
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CurrentWeather
|
|
45
|
+
*/
|
|
46
|
+
condition: string;
|
|
65
47
|
/**
|
|
66
48
|
* Wind direction in degrees (0-360)
|
|
67
49
|
* @type {number}
|
|
@@ -74,6 +56,24 @@ export interface CurrentWeather {
|
|
|
74
56
|
* @memberof CurrentWeather
|
|
75
57
|
*/
|
|
76
58
|
windDirectionCardinal: string;
|
|
59
|
+
/**
|
|
60
|
+
* Cloud cover percentage (0-100)
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof CurrentWeather
|
|
63
|
+
*/
|
|
64
|
+
cloudCover: number;
|
|
65
|
+
/**
|
|
66
|
+
* Relative humidity percentage (0-100)
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CurrentWeather
|
|
69
|
+
*/
|
|
70
|
+
humidity: number;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp of observation
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CurrentWeather
|
|
75
|
+
*/
|
|
76
|
+
timestamp: string;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Check if a given object implements the CurrentWeather interface.
|
|
@@ -17,24 +17,24 @@ import { MetricUnitsFromJSON, MetricUnitsToJSON, } from './MetricUnits';
|
|
|
17
17
|
* Check if a given object implements the CurrentWeather interface.
|
|
18
18
|
*/
|
|
19
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
20
|
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
27
21
|
return false;
|
|
28
22
|
if (!('metric' in value) || value['metric'] === undefined)
|
|
29
23
|
return false;
|
|
30
|
-
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
31
|
-
return false;
|
|
32
24
|
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
33
25
|
return false;
|
|
26
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
27
|
+
return false;
|
|
34
28
|
if (!('windDirection' in value) || value['windDirection'] === undefined)
|
|
35
29
|
return false;
|
|
36
30
|
if (!('windDirectionCardinal' in value) || value['windDirectionCardinal'] === undefined)
|
|
37
31
|
return false;
|
|
32
|
+
if (!('cloudCover' in value) || value['cloudCover'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('humidity' in value) || value['humidity'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
37
|
+
return false;
|
|
38
38
|
return true;
|
|
39
39
|
}
|
|
40
40
|
export function CurrentWeatherFromJSON(json) {
|
|
@@ -45,15 +45,15 @@ export function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return json;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'cloudCover': json['cloud_cover'],
|
|
49
|
-
'condition': json['condition'],
|
|
50
|
-
'humidity': json['humidity'],
|
|
51
48
|
'imperial': ImperialUnitsFromJSON(json['imperial']),
|
|
52
49
|
'metric': MetricUnitsFromJSON(json['metric']),
|
|
53
|
-
'timestamp': json['timestamp'],
|
|
54
50
|
'weatherCode': json['weather_code'],
|
|
51
|
+
'condition': json['condition'],
|
|
55
52
|
'windDirection': json['wind_direction'],
|
|
56
53
|
'windDirectionCardinal': json['wind_direction_cardinal'],
|
|
54
|
+
'cloudCover': json['cloud_cover'],
|
|
55
|
+
'humidity': json['humidity'],
|
|
56
|
+
'timestamp': json['timestamp'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
export function CurrentWeatherToJSON(json) {
|
|
@@ -64,14 +64,14 @@ export function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
64
|
return value;
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
|
-
'cloud_cover': value['cloudCover'],
|
|
68
|
-
'condition': value['condition'],
|
|
69
|
-
'humidity': value['humidity'],
|
|
70
67
|
'imperial': ImperialUnitsToJSON(value['imperial']),
|
|
71
68
|
'metric': MetricUnitsToJSON(value['metric']),
|
|
72
|
-
'timestamp': value['timestamp'],
|
|
73
69
|
'weather_code': value['weatherCode'],
|
|
70
|
+
'condition': value['condition'],
|
|
74
71
|
'wind_direction': value['windDirection'],
|
|
75
72
|
'wind_direction_cardinal': value['windDirectionCardinal'],
|
|
73
|
+
'cloud_cover': value['cloudCover'],
|
|
74
|
+
'humidity': value['humidity'],
|
|
75
|
+
'timestamp': value['timestamp'],
|
|
76
76
|
};
|
|
77
77
|
}
|
|
@@ -17,12 +17,6 @@ import type { DailyForecastImperial } from './DailyForecastImperial';
|
|
|
17
17
|
* @interface DailyForecast
|
|
18
18
|
*/
|
|
19
19
|
export interface DailyForecast {
|
|
20
|
-
/**
|
|
21
|
-
* Human-readable condition
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof DailyForecast
|
|
24
|
-
*/
|
|
25
|
-
condition: string;
|
|
26
20
|
/**
|
|
27
21
|
* Date of forecast (YYYY-MM-DD format)
|
|
28
22
|
* @type {string}
|
|
@@ -41,6 +35,18 @@ export interface DailyForecast {
|
|
|
41
35
|
* @memberof DailyForecast
|
|
42
36
|
*/
|
|
43
37
|
metric: DailyForecastMetric;
|
|
38
|
+
/**
|
|
39
|
+
* Weather condition code (most severe/relevant for the day)
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof DailyForecast
|
|
42
|
+
*/
|
|
43
|
+
weatherCode: number;
|
|
44
|
+
/**
|
|
45
|
+
* Human-readable condition
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DailyForecast
|
|
48
|
+
*/
|
|
49
|
+
condition: string;
|
|
44
50
|
/**
|
|
45
51
|
* Probability of precipitation (0-100%)
|
|
46
52
|
* @type {number}
|
|
@@ -59,12 +65,6 @@ export interface DailyForecast {
|
|
|
59
65
|
* @memberof DailyForecast
|
|
60
66
|
*/
|
|
61
67
|
sunset: string;
|
|
62
|
-
/**
|
|
63
|
-
* Weather condition code (most severe/relevant for the day)
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof DailyForecast
|
|
66
|
-
*/
|
|
67
|
-
weatherCode: number;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Check if a given object implements the DailyForecast interface.
|
|
@@ -17,22 +17,22 @@ import { DailyForecastImperialFromJSON, DailyForecastImperialToJSON, } from './D
|
|
|
17
17
|
* Check if a given object implements the DailyForecast interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfDailyForecast(value) {
|
|
20
|
-
if (!('condition' in value) || value['condition'] === undefined)
|
|
21
|
-
return false;
|
|
22
20
|
if (!('date' in value) || value['date'] === undefined)
|
|
23
21
|
return false;
|
|
24
22
|
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
25
23
|
return false;
|
|
26
24
|
if (!('metric' in value) || value['metric'] === undefined)
|
|
27
25
|
return false;
|
|
26
|
+
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('sunrise' in value) || value['sunrise'] === undefined)
|
|
31
33
|
return false;
|
|
32
34
|
if (!('sunset' in value) || value['sunset'] === undefined)
|
|
33
35
|
return false;
|
|
34
|
-
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
35
|
-
return false;
|
|
36
36
|
return true;
|
|
37
37
|
}
|
|
38
38
|
export function DailyForecastFromJSON(json) {
|
|
@@ -43,14 +43,14 @@ export function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
-
'condition': json['condition'],
|
|
47
46
|
'date': json['date'],
|
|
48
47
|
'imperial': DailyForecastImperialFromJSON(json['imperial']),
|
|
49
48
|
'metric': DailyForecastMetricFromJSON(json['metric']),
|
|
49
|
+
'weatherCode': json['weather_code'],
|
|
50
|
+
'condition': json['condition'],
|
|
50
51
|
'precipitationProbability': json['precipitation_probability'],
|
|
51
52
|
'sunrise': json['sunrise'],
|
|
52
53
|
'sunset': json['sunset'],
|
|
53
|
-
'weatherCode': json['weather_code'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export function DailyForecastToJSON(json) {
|
|
@@ -61,13 +61,13 @@ export function DailyForecastToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
61
|
return value;
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
-
'condition': value['condition'],
|
|
65
64
|
'date': value['date'],
|
|
66
65
|
'imperial': DailyForecastImperialToJSON(value['imperial']),
|
|
67
66
|
'metric': DailyForecastMetricToJSON(value['metric']),
|
|
67
|
+
'weather_code': value['weatherCode'],
|
|
68
|
+
'condition': value['condition'],
|
|
68
69
|
'precipitation_probability': value['precipitationProbability'],
|
|
69
70
|
'sunrise': value['sunrise'],
|
|
70
71
|
'sunset': value['sunset'],
|
|
71
|
-
'weather_code': value['weatherCode'],
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface DailyForecastImperial {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* High temperature in Fahrenheit
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof DailyForecastImperial
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperatureHigh: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Low temperature in Fahrenheit
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof DailyForecastImperial
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
temperatureLow: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Total snowfall expected in inches
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof DailyForecastImperial
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
snowfallTotal: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Total precipitation expected in inches
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof DailyForecastImperial
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitationTotal: number;
|
|
42
42
|
/**
|
|
43
|
-
* Maximum wind
|
|
43
|
+
* Maximum wind speed in mph
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof DailyForecastImperial
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeedMax: number;
|
|
48
48
|
/**
|
|
49
|
-
* Maximum wind
|
|
49
|
+
* Maximum wind gust in mph
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof DailyForecastImperial
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
windGustMax: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the DailyForecastImperial interface.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the DailyForecastImperial interface.
|
|
16
16
|
*/
|
|
17
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
18
|
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
23
19
|
return false;
|
|
24
20
|
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
25
21
|
return false;
|
|
26
|
-
if (!('
|
|
22
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function DailyForecastImperialFromJSON(json) {
|
|
@@ -37,12 +37,12 @@ export function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'precipitationTotal': json['precipitation_total'],
|
|
41
|
-
'snowfallTotal': json['snowfall_total'],
|
|
42
40
|
'temperatureHigh': json['temperature_high'],
|
|
43
41
|
'temperatureLow': json['temperature_low'],
|
|
44
|
-
'
|
|
42
|
+
'snowfallTotal': json['snowfall_total'],
|
|
43
|
+
'precipitationTotal': json['precipitation_total'],
|
|
45
44
|
'windSpeedMax': json['wind_speed_max'],
|
|
45
|
+
'windGustMax': json['wind_gust_max'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export function DailyForecastImperialToJSON(json) {
|
|
@@ -53,11 +53,11 @@ export function DailyForecastImperialToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'precipitation_total': value['precipitationTotal'],
|
|
57
|
-
'snowfall_total': value['snowfallTotal'],
|
|
58
56
|
'temperature_high': value['temperatureHigh'],
|
|
59
57
|
'temperature_low': value['temperatureLow'],
|
|
60
|
-
'
|
|
58
|
+
'snowfall_total': value['snowfallTotal'],
|
|
59
|
+
'precipitation_total': value['precipitationTotal'],
|
|
61
60
|
'wind_speed_max': value['windSpeedMax'],
|
|
61
|
+
'wind_gust_max': value['windGustMax'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface DailyForecastMetric {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* High temperature in Celsius
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof DailyForecastMetric
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperatureHigh: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Low temperature in Celsius
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof DailyForecastMetric
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
temperatureLow: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Total snowfall expected in centimeters
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof DailyForecastMetric
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
snowfallTotal: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Total precipitation expected in millimeters
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof DailyForecastMetric
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitationTotal: number;
|
|
42
42
|
/**
|
|
43
|
-
* Maximum wind
|
|
43
|
+
* Maximum wind speed in km/h
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof DailyForecastMetric
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeedMax: number;
|
|
48
48
|
/**
|
|
49
|
-
* Maximum wind
|
|
49
|
+
* Maximum wind gust in km/h
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof DailyForecastMetric
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
windGustMax: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the DailyForecastMetric interface.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the DailyForecastMetric interface.
|
|
16
16
|
*/
|
|
17
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
18
|
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
23
19
|
return false;
|
|
24
20
|
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
25
21
|
return false;
|
|
26
|
-
if (!('
|
|
22
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function DailyForecastMetricFromJSON(json) {
|
|
@@ -37,12 +37,12 @@ export function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'precipitationTotal': json['precipitation_total'],
|
|
41
|
-
'snowfallTotal': json['snowfall_total'],
|
|
42
40
|
'temperatureHigh': json['temperature_high'],
|
|
43
41
|
'temperatureLow': json['temperature_low'],
|
|
44
|
-
'
|
|
42
|
+
'snowfallTotal': json['snowfall_total'],
|
|
43
|
+
'precipitationTotal': json['precipitation_total'],
|
|
45
44
|
'windSpeedMax': json['wind_speed_max'],
|
|
45
|
+
'windGustMax': json['wind_gust_max'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export function DailyForecastMetricToJSON(json) {
|
|
@@ -53,11 +53,11 @@ export function DailyForecastMetricToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'precipitation_total': value['precipitationTotal'],
|
|
57
|
-
'snowfall_total': value['snowfallTotal'],
|
|
58
56
|
'temperature_high': value['temperatureHigh'],
|
|
59
57
|
'temperature_low': value['temperatureLow'],
|
|
60
|
-
'
|
|
58
|
+
'snowfall_total': value['snowfallTotal'],
|
|
59
|
+
'precipitation_total': value['precipitationTotal'],
|
|
61
60
|
'wind_speed_max': value['windSpeedMax'],
|
|
61
|
+
'wind_gust_max': value['windGustMax'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -20,25 +20,25 @@ export interface DayHours {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof DayHours
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
date: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof DayHours
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
dayOfWeek: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof DayHours
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
opensAt?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DayHours
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
closesAt?: string | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the DayHours interface.
|
|
@@ -29,10 +29,10 @@ export function DayHoursFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
33
32
|
'date': json['date'],
|
|
34
33
|
'dayOfWeek': json['day_of_week'],
|
|
35
34
|
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
35
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export function DayHoursToJSON(json) {
|
|
@@ -43,9 +43,9 @@ export function DayHoursToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
43
|
return value;
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
-
'closes_at': value['closesAt'],
|
|
47
46
|
'date': value['date'],
|
|
48
47
|
'day_of_week': value['dayOfWeek'],
|
|
49
48
|
'opens_at': value['opensAt'],
|
|
49
|
+
'closes_at': value['closesAt'],
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -18,17 +18,11 @@ import type { HourlyForecastImperial } from './HourlyForecastImperial';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface HourlyForecast {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof HourlyForecast
|
|
24
|
-
*/
|
|
25
|
-
cloudCover: number;
|
|
26
|
-
/**
|
|
27
|
-
* Human-readable condition
|
|
21
|
+
* Forecast timestamp
|
|
28
22
|
* @type {string}
|
|
29
23
|
* @memberof HourlyForecast
|
|
30
24
|
*/
|
|
31
|
-
|
|
25
|
+
timestamp: string;
|
|
32
26
|
/**
|
|
33
27
|
* Measurements in imperial units
|
|
34
28
|
* @type {HourlyForecastImperial}
|
|
@@ -42,23 +36,29 @@ export interface HourlyForecast {
|
|
|
42
36
|
*/
|
|
43
37
|
metric: HourlyForecastMetric;
|
|
44
38
|
/**
|
|
45
|
-
*
|
|
39
|
+
* Weather condition code
|
|
46
40
|
* @type {number}
|
|
47
41
|
* @memberof HourlyForecast
|
|
48
42
|
*/
|
|
49
|
-
|
|
43
|
+
weatherCode: number;
|
|
50
44
|
/**
|
|
51
|
-
*
|
|
45
|
+
* Human-readable condition
|
|
52
46
|
* @type {string}
|
|
53
47
|
* @memberof HourlyForecast
|
|
54
48
|
*/
|
|
55
|
-
|
|
49
|
+
condition: string;
|
|
56
50
|
/**
|
|
57
|
-
*
|
|
51
|
+
* Probability of precipitation (0-100%)
|
|
58
52
|
* @type {number}
|
|
59
53
|
* @memberof HourlyForecast
|
|
60
54
|
*/
|
|
61
|
-
|
|
55
|
+
precipitationProbability: number;
|
|
56
|
+
/**
|
|
57
|
+
* Cloud cover percentage (0-100)
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof HourlyForecast
|
|
60
|
+
*/
|
|
61
|
+
cloudCover: number;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Check if a given object implements the HourlyForecast interface.
|
|
@@ -17,19 +17,19 @@ import { HourlyForecastImperialFromJSON, HourlyForecastImperialToJSON, } from '.
|
|
|
17
17
|
* Check if a given object implements the HourlyForecast interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfHourlyForecast(value) {
|
|
20
|
-
if (!('
|
|
21
|
-
return false;
|
|
22
|
-
if (!('condition' in value) || value['condition'] === undefined)
|
|
20
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
23
21
|
return false;
|
|
24
22
|
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
25
23
|
return false;
|
|
26
24
|
if (!('metric' in value) || value['metric'] === undefined)
|
|
27
25
|
return false;
|
|
28
|
-
if (!('
|
|
26
|
+
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
29
27
|
return false;
|
|
30
|
-
if (!('
|
|
28
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
31
29
|
return false;
|
|
32
|
-
if (!('
|
|
30
|
+
if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('cloudCover' in value) || value['cloudCover'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
@@ -41,13 +41,13 @@ export function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'
|
|
45
|
-
'condition': json['condition'],
|
|
44
|
+
'timestamp': json['timestamp'],
|
|
46
45
|
'imperial': HourlyForecastImperialFromJSON(json['imperial']),
|
|
47
46
|
'metric': HourlyForecastMetricFromJSON(json['metric']),
|
|
48
|
-
'precipitationProbability': json['precipitation_probability'],
|
|
49
|
-
'timestamp': json['timestamp'],
|
|
50
47
|
'weatherCode': json['weather_code'],
|
|
48
|
+
'condition': json['condition'],
|
|
49
|
+
'precipitationProbability': json['precipitation_probability'],
|
|
50
|
+
'cloudCover': json['cloud_cover'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
export function HourlyForecastToJSON(json) {
|
|
@@ -58,12 +58,12 @@ export function HourlyForecastToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return value;
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
|
-
'
|
|
62
|
-
'condition': value['condition'],
|
|
61
|
+
'timestamp': value['timestamp'],
|
|
63
62
|
'imperial': HourlyForecastImperialToJSON(value['imperial']),
|
|
64
63
|
'metric': HourlyForecastMetricToJSON(value['metric']),
|
|
65
|
-
'precipitation_probability': value['precipitationProbability'],
|
|
66
|
-
'timestamp': value['timestamp'],
|
|
67
64
|
'weather_code': value['weatherCode'],
|
|
65
|
+
'condition': value['condition'],
|
|
66
|
+
'precipitation_probability': value['precipitationProbability'],
|
|
67
|
+
'cloud_cover': value['cloudCover'],
|
|
68
68
|
};
|
|
69
69
|
}
|