@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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export const RecurrencePatternOneOf1TypeEnum = {
|
|
18
|
-
|
|
18
|
+
Weekly: 'weekly'
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
@@ -23,6 +23,8 @@ export const RecurrencePatternOneOf1TypeEnum = {
|
|
|
23
23
|
export function instanceOfRecurrencePatternOneOf1(value) {
|
|
24
24
|
if (!('type' in value) || value['type'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('days' in value) || value['days'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
export function RecurrencePatternOneOf1FromJSON(json) {
|
|
@@ -34,6 +36,7 @@ export function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator)
|
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
36
38
|
'type': json['type'],
|
|
39
|
+
'days': json['days'],
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
export function RecurrencePatternOneOf1ToJSON(json) {
|
|
@@ -45,5 +48,6 @@ export function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator =
|
|
|
45
48
|
}
|
|
46
49
|
return {
|
|
47
50
|
'type': value['type'],
|
|
51
|
+
'days': value['days'],
|
|
48
52
|
};
|
|
49
53
|
}
|
|
@@ -21,7 +21,7 @@ export interface Schedule {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Schedule
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
daysString: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {RecurrencePattern}
|
|
@@ -33,43 +33,43 @@ export interface Schedule {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof Schedule
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
timeString: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof Schedule
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
opensAt: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof Schedule
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
closesAt: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {boolean}
|
|
52
52
|
* @memberof Schedule
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
inEffect: boolean;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
58
58
|
* @memberof Schedule
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
effectiveString: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof Schedule
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
effectiveFrom: string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof Schedule
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
effectiveTo: string;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Check if a given object implements the Schedule interface.
|
|
@@ -16,23 +16,23 @@ import { RecurrencePatternFromJSON, RecurrencePatternToJSON, } from './Recurrenc
|
|
|
16
16
|
* Check if a given object implements the Schedule interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfSchedule(value) {
|
|
19
|
-
if (!('
|
|
19
|
+
if (!('daysString' in value) || value['daysString'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('daysRecurrence' in value) || value['daysRecurrence'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('
|
|
24
|
-
return false;
|
|
25
|
-
if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
|
|
23
|
+
if (!('timeString' in value) || value['timeString'] === undefined)
|
|
26
24
|
return false;
|
|
27
|
-
if (!('
|
|
25
|
+
if (!('opensAt' in value) || value['opensAt'] === undefined)
|
|
28
26
|
return false;
|
|
29
|
-
if (!('
|
|
27
|
+
if (!('closesAt' in value) || value['closesAt'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('inEffect' in value) || value['inEffect'] === undefined)
|
|
32
30
|
return false;
|
|
33
|
-
if (!('
|
|
31
|
+
if (!('effectiveString' in value) || value['effectiveString'] === undefined)
|
|
34
32
|
return false;
|
|
35
|
-
if (!('
|
|
33
|
+
if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
@@ -44,15 +44,15 @@ export function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'closesAt': json['closes_at'],
|
|
48
|
-
'daysRecurrence': RecurrencePatternFromJSON(json['days_recurrence']),
|
|
49
47
|
'daysString': json['days_string'],
|
|
50
|
-
'
|
|
48
|
+
'daysRecurrence': RecurrencePatternFromJSON(json['days_recurrence']),
|
|
49
|
+
'timeString': json['time_string'],
|
|
50
|
+
'opensAt': json['opens_at'],
|
|
51
|
+
'closesAt': json['closes_at'],
|
|
52
|
+
'inEffect': json['in_effect'],
|
|
51
53
|
'effectiveString': json['effective_string'],
|
|
54
|
+
'effectiveFrom': json['effective_from'],
|
|
52
55
|
'effectiveTo': json['effective_to'],
|
|
53
|
-
'inEffect': json['in_effect'],
|
|
54
|
-
'opensAt': json['opens_at'],
|
|
55
|
-
'timeString': json['time_string'],
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export function ScheduleToJSON(json) {
|
|
@@ -63,14 +63,14 @@ export function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
63
|
return value;
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
|
-
'closes_at': value['closesAt'],
|
|
67
|
-
'days_recurrence': RecurrencePatternToJSON(value['daysRecurrence']),
|
|
68
66
|
'days_string': value['daysString'],
|
|
69
|
-
'
|
|
67
|
+
'days_recurrence': RecurrencePatternToJSON(value['daysRecurrence']),
|
|
68
|
+
'time_string': value['timeString'],
|
|
69
|
+
'opens_at': value['opensAt'],
|
|
70
|
+
'closes_at': value['closesAt'],
|
|
71
|
+
'in_effect': value['inEffect'],
|
|
70
72
|
'effective_string': value['effectiveString'],
|
|
73
|
+
'effective_from': value['effectiveFrom'],
|
|
71
74
|
'effective_to': value['effectiveTo'],
|
|
72
|
-
'in_effect': value['inEffect'],
|
|
73
|
-
'opens_at': value['opensAt'],
|
|
74
|
-
'time_string': value['timeString'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
@@ -20,25 +20,25 @@ export interface SnowMetrics {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof SnowMetrics
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
overnight: number;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof SnowMetrics
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
last24h: number;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SnowMetrics
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
last48h: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof SnowMetrics
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
last7days: number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
* Check if a given object implements the SnowMetrics interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfSnowMetrics(value) {
|
|
18
|
+
if (!('overnight' in value) || value['overnight'] === undefined)
|
|
19
|
+
return false;
|
|
18
20
|
if (!('last24h' in value) || value['last24h'] === undefined)
|
|
19
21
|
return false;
|
|
20
22
|
if (!('last48h' in value) || value['last48h'] === undefined)
|
|
21
23
|
return false;
|
|
22
24
|
if (!('last7days' in value) || value['last7days'] === undefined)
|
|
23
25
|
return false;
|
|
24
|
-
if (!('overnight' in value) || value['overnight'] === undefined)
|
|
25
|
-
return false;
|
|
26
26
|
if (!('seasonTotal' in value) || value['seasonTotal'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
return true;
|
|
@@ -35,10 +35,10 @@ export function SnowMetricsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
+
'overnight': json['overnight'],
|
|
38
39
|
'last24h': json['last_24h'],
|
|
39
40
|
'last48h': json['last_48h'],
|
|
40
41
|
'last7days': json['last_7days'],
|
|
41
|
-
'overnight': json['overnight'],
|
|
42
42
|
'seasonTotal': json['season_total'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -50,10 +50,10 @@ export function SnowMetricsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
+
'overnight': value['overnight'],
|
|
53
54
|
'last_24h': value['last24h'],
|
|
54
55
|
'last_48h': value['last48h'],
|
|
55
56
|
'last_7days': value['last7days'],
|
|
56
|
-
'overnight': value['overnight'],
|
|
57
57
|
'season_total': value['seasonTotal'],
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -18,18 +18,18 @@ import type { DailyForecast } from './DailyForecast';
|
|
|
18
18
|
* @interface WeatherData
|
|
19
19
|
*/
|
|
20
20
|
export interface WeatherData {
|
|
21
|
-
/**
|
|
22
|
-
* Data source attribution
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof WeatherData
|
|
25
|
-
*/
|
|
26
|
-
attribution: string;
|
|
27
21
|
/**
|
|
28
22
|
* Current weather conditions
|
|
29
23
|
* @type {CurrentWeather}
|
|
30
24
|
* @memberof WeatherData
|
|
31
25
|
*/
|
|
32
26
|
current: CurrentWeather;
|
|
27
|
+
/**
|
|
28
|
+
* Hourly forecast for next 24 hours
|
|
29
|
+
* @type {Array<HourlyForecast>}
|
|
30
|
+
* @memberof WeatherData
|
|
31
|
+
*/
|
|
32
|
+
hourlyForecast: Array<HourlyForecast>;
|
|
33
33
|
/**
|
|
34
34
|
* Daily forecast for next 5 days
|
|
35
35
|
* @type {Array<DailyForecast>}
|
|
@@ -37,11 +37,11 @@ export interface WeatherData {
|
|
|
37
37
|
*/
|
|
38
38
|
dailyForecast: Array<DailyForecast>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {
|
|
40
|
+
* Data source attribution
|
|
41
|
+
* @type {string}
|
|
42
42
|
* @memberof WeatherData
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
attribution: string;
|
|
45
45
|
/**
|
|
46
46
|
* When this data was last updated
|
|
47
47
|
* @type {string}
|
|
@@ -18,13 +18,13 @@ import { DailyForecastFromJSON, DailyForecastToJSON, } from './DailyForecast';
|
|
|
18
18
|
* Check if a given object implements the WeatherData interface.
|
|
19
19
|
*/
|
|
20
20
|
export function instanceOfWeatherData(value) {
|
|
21
|
-
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
22
|
-
return false;
|
|
23
21
|
if (!('current' in value) || value['current'] === undefined)
|
|
24
22
|
return false;
|
|
23
|
+
if (!('hourlyForecast' in value) || value['hourlyForecast'] === undefined)
|
|
24
|
+
return false;
|
|
25
25
|
if (!('dailyForecast' in value) || value['dailyForecast'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -38,10 +38,10 @@ export function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'attribution': json['attribution'],
|
|
42
41
|
'current': CurrentWeatherFromJSON(json['current']),
|
|
43
|
-
'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
|
|
44
42
|
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecastFromJSON)),
|
|
43
|
+
'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
|
|
44
|
+
'attribution': json['attribution'],
|
|
45
45
|
'lastUpdated': json['last_updated'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -53,10 +53,10 @@ export function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
-
'attribution': value['attribution'],
|
|
57
56
|
'current': CurrentWeatherToJSON(value['current']),
|
|
58
|
-
'daily_forecast': (value['dailyForecast'].map(DailyForecastToJSON)),
|
|
59
57
|
'hourly_forecast': (value['hourlyForecast'].map(HourlyForecastToJSON)),
|
|
58
|
+
'daily_forecast': (value['dailyForecast'].map(DailyForecastToJSON)),
|
|
59
|
+
'attribution': value['attribution'],
|
|
60
60
|
'last_updated': value['lastUpdated'],
|
|
61
61
|
};
|
|
62
62
|
}
|
|
@@ -21,7 +21,6 @@ export * from './PublicSnowResponse';
|
|
|
21
21
|
export * from './RecurrencePattern';
|
|
22
22
|
export * from './RecurrencePatternOneOf';
|
|
23
23
|
export * from './RecurrencePatternOneOf1';
|
|
24
|
-
export * from './RecurrencePatternOneOf2';
|
|
25
24
|
export * from './ResortStatusType';
|
|
26
25
|
export * from './RunDifficulty';
|
|
27
26
|
export * from './RunStatus';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -23,7 +23,6 @@ export * from './PublicSnowResponse';
|
|
|
23
23
|
export * from './RecurrencePattern';
|
|
24
24
|
export * from './RecurrencePatternOneOf';
|
|
25
25
|
export * from './RecurrencePatternOneOf1';
|
|
26
|
-
export * from './RecurrencePatternOneOf2';
|
|
27
26
|
export * from './ResortStatusType';
|
|
28
27
|
export * from './RunDifficulty';
|
|
29
28
|
export * from './RunStatus';
|
|
@@ -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.
|
|
@@ -24,24 +24,24 @@ const MetricUnits_1 = require("./MetricUnits");
|
|
|
24
24
|
* Check if a given object implements the CurrentWeather interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfCurrentWeather(value) {
|
|
27
|
-
if (!('cloudCover' in value) || value['cloudCover'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('condition' in value) || value['condition'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('humidity' in value) || value['humidity'] === undefined)
|
|
32
|
-
return false;
|
|
33
27
|
if (!('imperial' in value) || value['imperial'] === undefined)
|
|
34
28
|
return false;
|
|
35
29
|
if (!('metric' in value) || value['metric'] === undefined)
|
|
36
30
|
return false;
|
|
37
|
-
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
38
|
-
return false;
|
|
39
31
|
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
40
32
|
return false;
|
|
33
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
34
|
+
return false;
|
|
41
35
|
if (!('windDirection' in value) || value['windDirection'] === undefined)
|
|
42
36
|
return false;
|
|
43
37
|
if (!('windDirectionCardinal' in value) || value['windDirectionCardinal'] === undefined)
|
|
44
38
|
return false;
|
|
39
|
+
if (!('cloudCover' in value) || value['cloudCover'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('humidity' in value) || value['humidity'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
44
|
+
return false;
|
|
45
45
|
return true;
|
|
46
46
|
}
|
|
47
47
|
function CurrentWeatherFromJSON(json) {
|
|
@@ -52,15 +52,15 @@ function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
'cloudCover': json['cloud_cover'],
|
|
56
|
-
'condition': json['condition'],
|
|
57
|
-
'humidity': json['humidity'],
|
|
58
55
|
'imperial': (0, ImperialUnits_1.ImperialUnitsFromJSON)(json['imperial']),
|
|
59
56
|
'metric': (0, MetricUnits_1.MetricUnitsFromJSON)(json['metric']),
|
|
60
|
-
'timestamp': json['timestamp'],
|
|
61
57
|
'weatherCode': json['weather_code'],
|
|
58
|
+
'condition': json['condition'],
|
|
62
59
|
'windDirection': json['wind_direction'],
|
|
63
60
|
'windDirectionCardinal': json['wind_direction_cardinal'],
|
|
61
|
+
'cloudCover': json['cloud_cover'],
|
|
62
|
+
'humidity': json['humidity'],
|
|
63
|
+
'timestamp': json['timestamp'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
function CurrentWeatherToJSON(json) {
|
|
@@ -71,14 +71,14 @@ function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
71
|
return value;
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
|
-
'cloud_cover': value['cloudCover'],
|
|
75
|
-
'condition': value['condition'],
|
|
76
|
-
'humidity': value['humidity'],
|
|
77
74
|
'imperial': (0, ImperialUnits_1.ImperialUnitsToJSON)(value['imperial']),
|
|
78
75
|
'metric': (0, MetricUnits_1.MetricUnitsToJSON)(value['metric']),
|
|
79
|
-
'timestamp': value['timestamp'],
|
|
80
76
|
'weather_code': value['weatherCode'],
|
|
77
|
+
'condition': value['condition'],
|
|
81
78
|
'wind_direction': value['windDirection'],
|
|
82
79
|
'wind_direction_cardinal': value['windDirectionCardinal'],
|
|
80
|
+
'cloud_cover': value['cloudCover'],
|
|
81
|
+
'humidity': value['humidity'],
|
|
82
|
+
'timestamp': value['timestamp'],
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -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.
|
|
@@ -24,22 +24,22 @@ const DailyForecastImperial_1 = require("./DailyForecastImperial");
|
|
|
24
24
|
* Check if a given object implements the DailyForecast interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfDailyForecast(value) {
|
|
27
|
-
if (!('condition' in value) || value['condition'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('date' in value) || value['date'] === 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;
|
|
33
|
+
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('condition' in value) || value['condition'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('precipitationProbability' in value) || value['precipitationProbability'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
if (!('sunrise' in value) || value['sunrise'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('sunset' in value) || value['sunset'] === undefined)
|
|
40
42
|
return false;
|
|
41
|
-
if (!('weatherCode' in value) || value['weatherCode'] === undefined)
|
|
42
|
-
return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
function DailyForecastFromJSON(json) {
|
|
@@ -50,14 +50,14 @@ function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'condition': json['condition'],
|
|
54
53
|
'date': json['date'],
|
|
55
54
|
'imperial': (0, DailyForecastImperial_1.DailyForecastImperialFromJSON)(json['imperial']),
|
|
56
55
|
'metric': (0, DailyForecastMetric_1.DailyForecastMetricFromJSON)(json['metric']),
|
|
56
|
+
'weatherCode': json['weather_code'],
|
|
57
|
+
'condition': json['condition'],
|
|
57
58
|
'precipitationProbability': json['precipitation_probability'],
|
|
58
59
|
'sunrise': json['sunrise'],
|
|
59
60
|
'sunset': json['sunset'],
|
|
60
|
-
'weatherCode': json['weather_code'],
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
function DailyForecastToJSON(json) {
|
|
@@ -68,13 +68,13 @@ function DailyForecastToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
68
|
return value;
|
|
69
69
|
}
|
|
70
70
|
return {
|
|
71
|
-
'condition': value['condition'],
|
|
72
71
|
'date': value['date'],
|
|
73
72
|
'imperial': (0, DailyForecastImperial_1.DailyForecastImperialToJSON)(value['imperial']),
|
|
74
73
|
'metric': (0, DailyForecastMetric_1.DailyForecastMetricToJSON)(value['metric']),
|
|
74
|
+
'weather_code': value['weatherCode'],
|
|
75
|
+
'condition': value['condition'],
|
|
75
76
|
'precipitation_probability': value['precipitationProbability'],
|
|
76
77
|
'sunrise': value['sunrise'],
|
|
77
78
|
'sunset': value['sunset'],
|
|
78
|
-
'weather_code': value['weatherCode'],
|
|
79
79
|
};
|
|
80
80
|
}
|
|
@@ -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.
|