@mtnmanager/sdk 0.0.11 → 0.0.13
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 +4 -5
- 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 +16 -16
- package/dist/esm/models/PublicSnowReport.js +10 -10
- 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/esm/runtime.js +1 -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 +16 -16
- package/dist/models/PublicSnowReport.js +10 -10
- 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/dist/runtime.js +1 -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
|
@@ -22,18 +22,18 @@ exports.DailyForecastImperialToJSONTyped = DailyForecastImperialToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the DailyForecastImperial interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfDailyForecastImperial(value) {
|
|
25
|
-
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
28
|
-
return false;
|
|
29
25
|
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
30
26
|
return false;
|
|
31
27
|
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
32
28
|
return false;
|
|
33
|
-
if (!('
|
|
29
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function DailyForecastImperialFromJSON(json) {
|
|
@@ -44,12 +44,12 @@ function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'precipitationTotal': json['precipitation_total'],
|
|
48
|
-
'snowfallTotal': json['snowfall_total'],
|
|
49
47
|
'temperatureHigh': json['temperature_high'],
|
|
50
48
|
'temperatureLow': json['temperature_low'],
|
|
51
|
-
'
|
|
49
|
+
'snowfallTotal': json['snowfall_total'],
|
|
50
|
+
'precipitationTotal': json['precipitation_total'],
|
|
52
51
|
'windSpeedMax': json['wind_speed_max'],
|
|
52
|
+
'windGustMax': json['wind_gust_max'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function DailyForecastImperialToJSON(json) {
|
|
@@ -60,11 +60,11 @@ function DailyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'precipitation_total': value['precipitationTotal'],
|
|
64
|
-
'snowfall_total': value['snowfallTotal'],
|
|
65
63
|
'temperature_high': value['temperatureHigh'],
|
|
66
64
|
'temperature_low': value['temperatureLow'],
|
|
67
|
-
'
|
|
65
|
+
'snowfall_total': value['snowfallTotal'],
|
|
66
|
+
'precipitation_total': value['precipitationTotal'],
|
|
68
67
|
'wind_speed_max': value['windSpeedMax'],
|
|
68
|
+
'wind_gust_max': value['windGustMax'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -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.
|
|
@@ -22,18 +22,18 @@ exports.DailyForecastMetricToJSONTyped = DailyForecastMetricToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the DailyForecastMetric interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfDailyForecastMetric(value) {
|
|
25
|
-
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
28
|
-
return false;
|
|
29
25
|
if (!('temperatureHigh' in value) || value['temperatureHigh'] === undefined)
|
|
30
26
|
return false;
|
|
31
27
|
if (!('temperatureLow' in value) || value['temperatureLow'] === undefined)
|
|
32
28
|
return false;
|
|
33
|
-
if (!('
|
|
29
|
+
if (!('snowfallTotal' in value) || value['snowfallTotal'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('precipitationTotal' in value) || value['precipitationTotal'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeedMax' in value) || value['windSpeedMax'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGustMax' in value) || value['windGustMax'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function DailyForecastMetricFromJSON(json) {
|
|
@@ -44,12 +44,12 @@ function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'precipitationTotal': json['precipitation_total'],
|
|
48
|
-
'snowfallTotal': json['snowfall_total'],
|
|
49
47
|
'temperatureHigh': json['temperature_high'],
|
|
50
48
|
'temperatureLow': json['temperature_low'],
|
|
51
|
-
'
|
|
49
|
+
'snowfallTotal': json['snowfall_total'],
|
|
50
|
+
'precipitationTotal': json['precipitation_total'],
|
|
52
51
|
'windSpeedMax': json['wind_speed_max'],
|
|
52
|
+
'windGustMax': json['wind_gust_max'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function DailyForecastMetricToJSON(json) {
|
|
@@ -60,11 +60,11 @@ function DailyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'precipitation_total': value['precipitationTotal'],
|
|
64
|
-
'snowfall_total': value['snowfallTotal'],
|
|
65
63
|
'temperature_high': value['temperatureHigh'],
|
|
66
64
|
'temperature_low': value['temperatureLow'],
|
|
67
|
-
'
|
|
65
|
+
'snowfall_total': value['snowfallTotal'],
|
|
66
|
+
'precipitation_total': value['precipitationTotal'],
|
|
68
67
|
'wind_speed_max': value['windSpeedMax'],
|
|
68
|
+
'wind_gust_max': value['windGustMax'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -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.
|
package/dist/models/DayHours.js
CHANGED
|
@@ -36,10 +36,10 @@ function DayHoursFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
40
39
|
'date': json['date'],
|
|
41
40
|
'dayOfWeek': json['day_of_week'],
|
|
42
41
|
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
42
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
function DayHoursToJSON(json) {
|
|
@@ -50,9 +50,9 @@ function DayHoursToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'closes_at': value['closesAt'],
|
|
54
53
|
'date': value['date'],
|
|
55
54
|
'day_of_week': value['dayOfWeek'],
|
|
56
55
|
'opens_at': value['opensAt'],
|
|
56
|
+
'closes_at': value['closesAt'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -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.
|
|
@@ -24,19 +24,19 @@ const HourlyForecastImperial_1 = require("./HourlyForecastImperial");
|
|
|
24
24
|
* Check if a given object implements the HourlyForecast interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfHourlyForecast(value) {
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('condition' in value) || value['condition'] === undefined)
|
|
27
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('metric' in value) || value['metric'] === undefined)
|
|
34
32
|
return false;
|
|
35
|
-
if (!('
|
|
33
|
+
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
36
34
|
return false;
|
|
37
|
-
if (!('
|
|
35
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
38
36
|
return false;
|
|
39
|
-
if (!('
|
|
37
|
+
if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('cloudCover' in value) || value['cloudCover'] === undefined)
|
|
40
40
|
return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
@@ -48,13 +48,13 @@ function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
return json;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'
|
|
52
|
-
'condition': json['condition'],
|
|
51
|
+
'timestamp': json['timestamp'],
|
|
53
52
|
'imperial': (0, HourlyForecastImperial_1.HourlyForecastImperialFromJSON)(json['imperial']),
|
|
54
53
|
'metric': (0, HourlyForecastMetric_1.HourlyForecastMetricFromJSON)(json['metric']),
|
|
55
|
-
'precipitationProbability': json['precipitation_probability'],
|
|
56
|
-
'timestamp': json['timestamp'],
|
|
57
54
|
'weatherCode': json['weather_code'],
|
|
55
|
+
'condition': json['condition'],
|
|
56
|
+
'precipitationProbability': json['precipitation_probability'],
|
|
57
|
+
'cloudCover': json['cloud_cover'],
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
function HourlyForecastToJSON(json) {
|
|
@@ -65,12 +65,12 @@ function HourlyForecastToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
65
|
return value;
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
|
-
'
|
|
69
|
-
'condition': value['condition'],
|
|
68
|
+
'timestamp': value['timestamp'],
|
|
70
69
|
'imperial': (0, HourlyForecastImperial_1.HourlyForecastImperialToJSON)(value['imperial']),
|
|
71
70
|
'metric': (0, HourlyForecastMetric_1.HourlyForecastMetricToJSON)(value['metric']),
|
|
72
|
-
'precipitation_probability': value['precipitationProbability'],
|
|
73
|
-
'timestamp': value['timestamp'],
|
|
74
71
|
'weather_code': value['weatherCode'],
|
|
72
|
+
'condition': value['condition'],
|
|
73
|
+
'precipitation_probability': value['precipitationProbability'],
|
|
74
|
+
'cloud_cover': value['cloudCover'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface HourlyForecastImperial {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Temperature in Fahrenheit
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof HourlyForecastImperial
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperature: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Feels like temperature in Fahrenheit
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof HourlyForecastImperial
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
feelsLike: number;
|
|
30
30
|
/**
|
|
31
31
|
* Snowfall amount expected this hour in inches
|
|
32
32
|
* @type {number}
|
|
@@ -34,23 +34,23 @@ export interface HourlyForecastImperial {
|
|
|
34
34
|
*/
|
|
35
35
|
snowfall: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Precipitation amount expected this hour in inches
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof HourlyForecastImperial
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitation: number;
|
|
42
42
|
/**
|
|
43
|
-
* Wind
|
|
43
|
+
* Wind speed in mph
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof HourlyForecastImperial
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeed: number;
|
|
48
48
|
/**
|
|
49
|
-
* Wind
|
|
49
|
+
* Wind gust in mph
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof HourlyForecastImperial
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
windGust: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the HourlyForecastImperial interface.
|
|
@@ -22,18 +22,18 @@ exports.HourlyForecastImperialToJSONTyped = HourlyForecastImperialToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the HourlyForecastImperial interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfHourlyForecastImperial(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
31
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function HourlyForecastImperialFromJSON(json) {
|
|
@@ -44,12 +44,12 @@ function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'temperature': json['temperature'],
|
|
47
48
|
'feelsLike': json['feels_like'],
|
|
48
|
-
'precipitation': json['precipitation'],
|
|
49
49
|
'snowfall': json['snowfall'],
|
|
50
|
-
'
|
|
51
|
-
'windGust': json['wind_gust'],
|
|
50
|
+
'precipitation': json['precipitation'],
|
|
52
51
|
'windSpeed': json['wind_speed'],
|
|
52
|
+
'windGust': json['wind_gust'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function HourlyForecastImperialToJSON(json) {
|
|
@@ -60,11 +60,11 @@ function HourlyForecastImperialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
+
'temperature': value['temperature'],
|
|
63
64
|
'feels_like': value['feelsLike'],
|
|
64
|
-
'precipitation': value['precipitation'],
|
|
65
65
|
'snowfall': value['snowfall'],
|
|
66
|
-
'
|
|
67
|
-
'wind_gust': value['windGust'],
|
|
66
|
+
'precipitation': value['precipitation'],
|
|
68
67
|
'wind_speed': value['windSpeed'],
|
|
68
|
+
'wind_gust': value['windGust'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface HourlyForecastMetric {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Temperature in Celsius
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof HourlyForecastMetric
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperature: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Feels like temperature in Celsius
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof HourlyForecastMetric
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
feelsLike: number;
|
|
30
30
|
/**
|
|
31
31
|
* Snowfall amount expected this hour in centimeters
|
|
32
32
|
* @type {number}
|
|
@@ -34,23 +34,23 @@ export interface HourlyForecastMetric {
|
|
|
34
34
|
*/
|
|
35
35
|
snowfall: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Precipitation amount expected this hour in millimeters
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof HourlyForecastMetric
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitation: number;
|
|
42
42
|
/**
|
|
43
|
-
* Wind
|
|
43
|
+
* Wind speed in km/h
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof HourlyForecastMetric
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeed: number;
|
|
48
48
|
/**
|
|
49
|
-
* Wind
|
|
49
|
+
* Wind gust in km/h
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof HourlyForecastMetric
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
windGust: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the HourlyForecastMetric interface.
|
|
@@ -22,18 +22,18 @@ exports.HourlyForecastMetricToJSONTyped = HourlyForecastMetricToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the HourlyForecastMetric interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfHourlyForecastMetric(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
31
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function HourlyForecastMetricFromJSON(json) {
|
|
@@ -44,12 +44,12 @@ function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'temperature': json['temperature'],
|
|
47
48
|
'feelsLike': json['feels_like'],
|
|
48
|
-
'precipitation': json['precipitation'],
|
|
49
49
|
'snowfall': json['snowfall'],
|
|
50
|
-
'
|
|
51
|
-
'windGust': json['wind_gust'],
|
|
50
|
+
'precipitation': json['precipitation'],
|
|
52
51
|
'windSpeed': json['wind_speed'],
|
|
52
|
+
'windGust': json['wind_gust'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function HourlyForecastMetricToJSON(json) {
|
|
@@ -60,11 +60,11 @@ function HourlyForecastMetricToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
+
'temperature': value['temperature'],
|
|
63
64
|
'feels_like': value['feelsLike'],
|
|
64
|
-
'precipitation': value['precipitation'],
|
|
65
65
|
'snowfall': value['snowfall'],
|
|
66
|
-
'
|
|
67
|
-
'wind_gust': value['windGust'],
|
|
66
|
+
'precipitation': value['precipitation'],
|
|
68
67
|
'wind_speed': value['windSpeed'],
|
|
68
|
+
'wind_gust': value['windGust'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImperialUnits {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Temperature in Fahrenheit
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ImperialUnits
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperature: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Feels like temperature in Fahrenheit
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof ImperialUnits
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
feelsLike: number;
|
|
30
30
|
/**
|
|
31
31
|
* Snowfall in inches
|
|
32
32
|
* @type {number}
|
|
@@ -34,17 +34,17 @@ export interface ImperialUnits {
|
|
|
34
34
|
*/
|
|
35
35
|
snowfall: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Precipitation in inches
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof ImperialUnits
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitation: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Wind speed in mph
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof ImperialUnits
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeed: number;
|
|
48
48
|
/**
|
|
49
49
|
* Wind gust in mph
|
|
50
50
|
* @type {number}
|
|
@@ -52,11 +52,11 @@ export interface ImperialUnits {
|
|
|
52
52
|
*/
|
|
53
53
|
windGust: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Visibility in miles (optional)
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof ImperialUnits
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
visibility?: number | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the ImperialUnits interface.
|
|
@@ -22,18 +22,18 @@ exports.ImperialUnitsToJSONTyped = ImperialUnitsToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the ImperialUnits interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfImperialUnits(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
31
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function ImperialUnitsFromJSON(json) {
|
|
@@ -44,13 +44,13 @@ function ImperialUnitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'temperature': json['temperature'],
|
|
47
48
|
'feelsLike': json['feels_like'],
|
|
48
|
-
'precipitation': json['precipitation'],
|
|
49
49
|
'snowfall': json['snowfall'],
|
|
50
|
-
'
|
|
51
|
-
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
52
|
-
'windGust': json['wind_gust'],
|
|
50
|
+
'precipitation': json['precipitation'],
|
|
53
51
|
'windSpeed': json['wind_speed'],
|
|
52
|
+
'windGust': json['wind_gust'],
|
|
53
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function ImperialUnitsToJSON(json) {
|
|
@@ -61,12 +61,12 @@ function ImperialUnitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
61
|
return value;
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
+
'temperature': value['temperature'],
|
|
64
65
|
'feels_like': value['feelsLike'],
|
|
65
|
-
'precipitation': value['precipitation'],
|
|
66
66
|
'snowfall': value['snowfall'],
|
|
67
|
-
'
|
|
68
|
-
'visibility': value['visibility'],
|
|
69
|
-
'wind_gust': value['windGust'],
|
|
67
|
+
'precipitation': value['precipitation'],
|
|
70
68
|
'wind_speed': value['windSpeed'],
|
|
69
|
+
'wind_gust': value['windGust'],
|
|
70
|
+
'visibility': value['visibility'],
|
|
71
71
|
};
|
|
72
72
|
}
|