@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
|
@@ -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.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the HourlyForecastImperial interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfHourlyForecastImperial(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
25
|
-
return false;
|
|
26
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
24
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function HourlyForecastImperialFromJSON(json) {
|
|
@@ -37,12 +37,12 @@ export function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'temperature': json['temperature'],
|
|
40
41
|
'feelsLike': json['feels_like'],
|
|
41
|
-
'precipitation': json['precipitation'],
|
|
42
42
|
'snowfall': json['snowfall'],
|
|
43
|
-
'
|
|
44
|
-
'windGust': json['wind_gust'],
|
|
43
|
+
'precipitation': json['precipitation'],
|
|
45
44
|
'windSpeed': json['wind_speed'],
|
|
45
|
+
'windGust': json['wind_gust'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export function HourlyForecastImperialToJSON(json) {
|
|
@@ -53,11 +53,11 @@ export function HourlyForecastImperialToJSONTyped(value, ignoreDiscriminator = f
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
+
'temperature': value['temperature'],
|
|
56
57
|
'feels_like': value['feelsLike'],
|
|
57
|
-
'precipitation': value['precipitation'],
|
|
58
58
|
'snowfall': value['snowfall'],
|
|
59
|
-
'
|
|
60
|
-
'wind_gust': value['windGust'],
|
|
59
|
+
'precipitation': value['precipitation'],
|
|
61
60
|
'wind_speed': value['windSpeed'],
|
|
61
|
+
'wind_gust': value['windGust'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -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.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the HourlyForecastMetric interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfHourlyForecastMetric(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
25
|
-
return false;
|
|
26
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
24
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function HourlyForecastMetricFromJSON(json) {
|
|
@@ -37,12 +37,12 @@ export function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'temperature': json['temperature'],
|
|
40
41
|
'feelsLike': json['feels_like'],
|
|
41
|
-
'precipitation': json['precipitation'],
|
|
42
42
|
'snowfall': json['snowfall'],
|
|
43
|
-
'
|
|
44
|
-
'windGust': json['wind_gust'],
|
|
43
|
+
'precipitation': json['precipitation'],
|
|
45
44
|
'windSpeed': json['wind_speed'],
|
|
45
|
+
'windGust': json['wind_gust'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export function HourlyForecastMetricToJSON(json) {
|
|
@@ -53,11 +53,11 @@ export function HourlyForecastMetricToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
|
+
'temperature': value['temperature'],
|
|
56
57
|
'feels_like': value['feelsLike'],
|
|
57
|
-
'precipitation': value['precipitation'],
|
|
58
58
|
'snowfall': value['snowfall'],
|
|
59
|
-
'
|
|
60
|
-
'wind_gust': value['windGust'],
|
|
59
|
+
'precipitation': value['precipitation'],
|
|
61
60
|
'wind_speed': value['windSpeed'],
|
|
61
|
+
'wind_gust': value['windGust'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -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.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the ImperialUnits interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfImperialUnits(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
25
|
-
return false;
|
|
26
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
24
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function ImperialUnitsFromJSON(json) {
|
|
@@ -37,13 +37,13 @@ export function ImperialUnitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'temperature': json['temperature'],
|
|
40
41
|
'feelsLike': json['feels_like'],
|
|
41
|
-
'precipitation': json['precipitation'],
|
|
42
42
|
'snowfall': json['snowfall'],
|
|
43
|
-
'
|
|
44
|
-
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
45
|
-
'windGust': json['wind_gust'],
|
|
43
|
+
'precipitation': json['precipitation'],
|
|
46
44
|
'windSpeed': json['wind_speed'],
|
|
45
|
+
'windGust': json['wind_gust'],
|
|
46
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export function ImperialUnitsToJSON(json) {
|
|
@@ -54,12 +54,12 @@ export function ImperialUnitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
+
'temperature': value['temperature'],
|
|
57
58
|
'feels_like': value['feelsLike'],
|
|
58
|
-
'precipitation': value['precipitation'],
|
|
59
59
|
'snowfall': value['snowfall'],
|
|
60
|
-
'
|
|
61
|
-
'visibility': value['visibility'],
|
|
62
|
-
'wind_gust': value['windGust'],
|
|
60
|
+
'precipitation': value['precipitation'],
|
|
63
61
|
'wind_speed': value['windSpeed'],
|
|
62
|
+
'wind_gust': value['windGust'],
|
|
63
|
+
'visibility': value['visibility'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MetricUnits {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Temperature in Celsius
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof MetricUnits
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperature: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Feels like temperature in Celsius
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof MetricUnits
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
feelsLike: number;
|
|
30
30
|
/**
|
|
31
31
|
* Snowfall in centimeters
|
|
32
32
|
* @type {number}
|
|
@@ -34,17 +34,17 @@ export interface MetricUnits {
|
|
|
34
34
|
*/
|
|
35
35
|
snowfall: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Precipitation in millimeters
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof MetricUnits
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitation: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Wind speed in km/h
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof MetricUnits
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeed: number;
|
|
48
48
|
/**
|
|
49
49
|
* Wind gust in km/h
|
|
50
50
|
* @type {number}
|
|
@@ -52,11 +52,11 @@ export interface MetricUnits {
|
|
|
52
52
|
*/
|
|
53
53
|
windGust: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Visibility in kilometers (optional)
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof MetricUnits
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
visibility?: number | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the MetricUnits interface.
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
* Check if a given object implements the MetricUnits interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfMetricUnits(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
25
|
-
return false;
|
|
26
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
24
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
27
25
|
return false;
|
|
28
26
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
29
27
|
return false;
|
|
28
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
29
|
+
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
export function MetricUnitsFromJSON(json) {
|
|
@@ -37,13 +37,13 @@ export function MetricUnitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'temperature': json['temperature'],
|
|
40
41
|
'feelsLike': json['feels_like'],
|
|
41
|
-
'precipitation': json['precipitation'],
|
|
42
42
|
'snowfall': json['snowfall'],
|
|
43
|
-
'
|
|
44
|
-
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
45
|
-
'windGust': json['wind_gust'],
|
|
43
|
+
'precipitation': json['precipitation'],
|
|
46
44
|
'windSpeed': json['wind_speed'],
|
|
45
|
+
'windGust': json['wind_gust'],
|
|
46
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export function MetricUnitsToJSON(json) {
|
|
@@ -54,12 +54,12 @@ export function MetricUnitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
+
'temperature': value['temperature'],
|
|
57
58
|
'feels_like': value['feelsLike'],
|
|
58
|
-
'precipitation': value['precipitation'],
|
|
59
59
|
'snowfall': value['snowfall'],
|
|
60
|
-
'
|
|
61
|
-
'visibility': value['visibility'],
|
|
62
|
-
'wind_gust': value['windGust'],
|
|
60
|
+
'precipitation': value['precipitation'],
|
|
63
61
|
'wind_speed': value['windSpeed'],
|
|
62
|
+
'wind_gust': value['windGust'],
|
|
63
|
+
'visibility': value['visibility'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -22,61 +22,67 @@ export interface PublicLift {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PublicLift
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
uuid: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof PublicLift
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
name: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {string}
|
|
35
35
|
* @memberof PublicLift
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
slug: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {LiftType}
|
|
41
41
|
* @memberof PublicLift
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
liftType: LiftType;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {LiftStatus}
|
|
47
47
|
* @memberof PublicLift
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
status: LiftStatus;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {number}
|
|
53
53
|
* @memberof PublicLift
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
waitTimeMinutes?: number | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {boolean}
|
|
59
59
|
* @memberof PublicLift
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
highSpeed: boolean;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {number}
|
|
65
65
|
* @memberof PublicLift
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
capacityPerHour?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof PublicLift
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
areaUuid?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof PublicLift
|
|
78
|
+
*/
|
|
79
|
+
areaName?: string | null;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {number}
|
|
77
83
|
* @memberof PublicLift
|
|
78
84
|
*/
|
|
79
|
-
|
|
85
|
+
areaDisplayOrder?: number | null;
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Check if a given object implements the PublicLift interface.
|
|
@@ -17,17 +17,17 @@ import { LiftTypeFromJSON, LiftTypeToJSON, } from './LiftType';
|
|
|
17
17
|
* Check if a given object implements the PublicLift interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfPublicLift(value) {
|
|
20
|
-
if (!('
|
|
21
|
-
return false;
|
|
22
|
-
if (!('liftType' in value) || value['liftType'] === undefined)
|
|
20
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
23
21
|
return false;
|
|
24
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
25
23
|
return false;
|
|
26
24
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
27
25
|
return false;
|
|
26
|
+
if (!('liftType' in value) || value['liftType'] === undefined)
|
|
27
|
+
return false;
|
|
28
28
|
if (!('status' in value) || value['status'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('highSpeed' in value) || value['highSpeed'] === undefined)
|
|
31
31
|
return false;
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
@@ -39,16 +39,17 @@ export function PublicLiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
return json;
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
'
|
|
43
|
-
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
44
|
-
'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
|
|
45
|
-
'highSpeed': json['high_speed'],
|
|
46
|
-
'liftType': LiftTypeFromJSON(json['lift_type']),
|
|
42
|
+
'uuid': json['uuid'],
|
|
47
43
|
'name': json['name'],
|
|
48
44
|
'slug': json['slug'],
|
|
45
|
+
'liftType': LiftTypeFromJSON(json['lift_type']),
|
|
49
46
|
'status': LiftStatusFromJSON(json['status']),
|
|
50
|
-
'uuid': json['uuid'],
|
|
51
47
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
48
|
+
'highSpeed': json['high_speed'],
|
|
49
|
+
'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
|
|
50
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
51
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
52
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export function PublicLiftToJSON(json) {
|
|
@@ -59,15 +60,16 @@ export function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
60
|
return value;
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
|
-
'
|
|
63
|
-
'area_uuid': value['areaUuid'],
|
|
64
|
-
'capacity_per_hour': value['capacityPerHour'],
|
|
65
|
-
'high_speed': value['highSpeed'],
|
|
66
|
-
'lift_type': LiftTypeToJSON(value['liftType']),
|
|
63
|
+
'uuid': value['uuid'],
|
|
67
64
|
'name': value['name'],
|
|
68
65
|
'slug': value['slug'],
|
|
66
|
+
'lift_type': LiftTypeToJSON(value['liftType']),
|
|
69
67
|
'status': LiftStatusToJSON(value['status']),
|
|
70
|
-
'uuid': value['uuid'],
|
|
71
68
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
69
|
+
'high_speed': value['highSpeed'],
|
|
70
|
+
'capacity_per_hour': value['capacityPerHour'],
|
|
71
|
+
'area_uuid': value['areaUuid'],
|
|
72
|
+
'area_name': value['areaName'],
|
|
73
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
72
74
|
};
|
|
73
75
|
}
|
|
@@ -16,6 +16,12 @@ import type { UnitPreference } from './UnitPreference';
|
|
|
16
16
|
* @interface PublicResortInfo
|
|
17
17
|
*/
|
|
18
18
|
export interface PublicResortInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicResortInfo
|
|
23
|
+
*/
|
|
24
|
+
uuid: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -40,12 +46,6 @@ export interface PublicResortInfo {
|
|
|
40
46
|
* @memberof PublicResortInfo
|
|
41
47
|
*/
|
|
42
48
|
unitPreference: UnitPreference;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof PublicResortInfo
|
|
47
|
-
*/
|
|
48
|
-
uuid: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the PublicResortInfo interface.
|
|
@@ -16,6 +16,8 @@ import { UnitPreferenceFromJSON, UnitPreferenceToJSON, } from './UnitPreference'
|
|
|
16
16
|
* Check if a given object implements the PublicResortInfo interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfPublicResortInfo(value) {
|
|
19
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
20
|
+
return false;
|
|
19
21
|
if (!('name' in value) || value['name'] === undefined)
|
|
20
22
|
return false;
|
|
21
23
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
@@ -24,8 +26,6 @@ export function instanceOfPublicResortInfo(value) {
|
|
|
24
26
|
return false;
|
|
25
27
|
if (!('unitPreference' in value) || value['unitPreference'] === undefined)
|
|
26
28
|
return false;
|
|
27
|
-
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
28
|
-
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
31
|
export function PublicResortInfoFromJSON(json) {
|
|
@@ -36,11 +36,11 @@ export function PublicResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
+
'uuid': json['uuid'],
|
|
39
40
|
'name': json['name'],
|
|
40
41
|
'slug': json['slug'],
|
|
41
42
|
'timezone': json['timezone'],
|
|
42
43
|
'unitPreference': UnitPreferenceFromJSON(json['unit_preference']),
|
|
43
|
-
'uuid': json['uuid'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
export function PublicResortInfoToJSON(json) {
|
|
@@ -51,10 +51,10 @@ export function PublicResortInfoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
+
'uuid': value['uuid'],
|
|
54
55
|
'name': value['name'],
|
|
55
56
|
'slug': value['slug'],
|
|
56
57
|
'timezone': value['timezone'],
|
|
57
58
|
'unit_preference': UnitPreferenceToJSON(value['unitPreference']),
|
|
58
|
-
'uuid': value['uuid'],
|
|
59
59
|
};
|
|
60
60
|
}
|