@mtnmanager/sdk 1.7.1 → 1.7.3
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/dist/esm/models/Amenity.js +2 -2
- package/dist/esm/models/AmenityCalendarEntry.js +2 -2
- package/dist/esm/models/CalendarDay.js +4 -4
- package/dist/esm/models/CurrentWeather.js +2 -2
- package/dist/esm/models/CurrentWeatherImperial.js +3 -3
- package/dist/esm/models/CurrentWeatherMetric.js +3 -3
- package/dist/esm/models/DailyForecast.js +1 -1
- package/dist/esm/models/DailyForecastImperial.js +4 -4
- package/dist/esm/models/DailyForecastMetric.js +4 -4
- package/dist/esm/models/HourlyForecast.js +1 -1
- package/dist/esm/models/HourlyForecastImperial.js +4 -4
- package/dist/esm/models/HourlyForecastMetric.js +4 -4
- package/dist/esm/models/Lift.js +12 -12
- package/dist/esm/models/Overview.js +2 -2
- package/dist/esm/models/OverviewLifts.js +1 -1
- package/dist/esm/models/OverviewRuns.js +4 -4
- package/dist/esm/models/OverviewSummerTrails.js +1 -1
- package/dist/esm/models/OverviewTerrainParks.js +1 -1
- package/dist/esm/models/ParkingLot.js +1 -1
- package/dist/esm/models/ResortInfo.d.ts +6 -0
- package/dist/esm/models/ResortInfo.js +2 -0
- package/dist/esm/models/Run.js +5 -5
- package/dist/esm/models/SnowReport.js +7 -7
- package/dist/esm/models/SummerTrail.js +5 -5
- package/dist/esm/models/TerrainPark.js +4 -4
- package/dist/esm/models/TerrainParkFeature.js +2 -2
- package/dist/esm/models/TrailMapElementOneOf.js +2 -2
- package/dist/esm/models/TrailMapElementOneOf1.js +2 -2
- package/dist/esm/models/TrailMapElementOneOf2.js +3 -3
- package/dist/esm/models/TrailMapElementOneOf3.js +2 -2
- package/dist/esm/models/TrailMapElementOneOf4.js +4 -4
- package/dist/esm/models/TrailMapElementOneOf5.js +4 -4
- package/dist/esm/models/TrailMapElementOneOf6.js +4 -4
- package/dist/esm/models/TrailMapElementOneOf7.js +4 -4
- package/dist/esm/models/TrailMapSummary.js +1 -1
- package/dist/esm/models/Weather.js +3 -3
- package/dist/esm/models/Webcam.js +6 -6
- package/dist/esm/models/WebcamHistoryQuery.js +2 -2
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +6 -1
- package/dist/models/Amenity.js +2 -2
- package/dist/models/AmenityCalendarEntry.js +2 -2
- package/dist/models/CalendarDay.js +4 -4
- package/dist/models/CurrentWeather.js +2 -2
- package/dist/models/CurrentWeatherImperial.js +3 -3
- package/dist/models/CurrentWeatherMetric.js +3 -3
- package/dist/models/DailyForecast.js +1 -1
- package/dist/models/DailyForecastImperial.js +4 -4
- package/dist/models/DailyForecastMetric.js +4 -4
- package/dist/models/HourlyForecast.js +1 -1
- package/dist/models/HourlyForecastImperial.js +4 -4
- package/dist/models/HourlyForecastMetric.js +4 -4
- package/dist/models/Lift.js +12 -12
- package/dist/models/Overview.js +2 -2
- package/dist/models/OverviewLifts.js +1 -1
- package/dist/models/OverviewRuns.js +4 -4
- package/dist/models/OverviewSummerTrails.js +1 -1
- package/dist/models/OverviewTerrainParks.js +1 -1
- package/dist/models/ParkingLot.js +1 -1
- package/dist/models/ResortInfo.d.ts +6 -0
- package/dist/models/ResortInfo.js +2 -0
- package/dist/models/Run.js +5 -5
- package/dist/models/SnowReport.js +7 -7
- package/dist/models/SummerTrail.js +5 -5
- package/dist/models/TerrainPark.js +4 -4
- package/dist/models/TerrainParkFeature.js +2 -2
- package/dist/models/TrailMapElementOneOf.js +2 -2
- package/dist/models/TrailMapElementOneOf1.js +2 -2
- package/dist/models/TrailMapElementOneOf2.js +3 -3
- package/dist/models/TrailMapElementOneOf3.js +2 -2
- package/dist/models/TrailMapElementOneOf4.js +4 -4
- package/dist/models/TrailMapElementOneOf5.js +4 -4
- package/dist/models/TrailMapElementOneOf6.js +4 -4
- package/dist/models/TrailMapElementOneOf7.js +4 -4
- package/dist/models/TrailMapSummary.js +1 -1
- package/dist/models/Weather.js +3 -3
- package/dist/models/Webcam.js +6 -6
- package/dist/models/WebcamHistoryQuery.js +2 -2
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +7 -1
- package/package.json +1 -1
|
@@ -48,8 +48,8 @@ export function AmenityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'category': AmenityCategoryFromJSON(json['category']),
|
|
49
49
|
'website': json['website'],
|
|
50
50
|
'hasOperatingHours': json['has_operating_hours'],
|
|
51
|
-
'opensAt': json['opens_at']
|
|
52
|
-
'closesAt': json['closes_at']
|
|
51
|
+
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
52
|
+
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
53
53
|
'schedules': (json['schedules'].map(ScheduleFromJSON)),
|
|
54
54
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
55
55
|
};
|
|
@@ -35,8 +35,8 @@ export function AmenityCalendarEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'uuid': json['uuid'],
|
|
36
36
|
'name': json['name'],
|
|
37
37
|
'category': AmenityCategoryFromJSON(json['category']),
|
|
38
|
-
'opensAt': json['opens_at']
|
|
39
|
-
'closesAt': json['closes_at']
|
|
38
|
+
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
39
|
+
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function AmenityCalendarEntryToJSON(json) {
|
|
@@ -37,10 +37,10 @@ export function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'date': (new Date(json['date'])),
|
|
38
38
|
'dayOfWeek': DayOfWeekFromJSON(json['day_of_week']),
|
|
39
39
|
'isOpen': json['is_open'],
|
|
40
|
-
'opensAt': json['opens_at']
|
|
41
|
-
'closesAt': json['closes_at']
|
|
42
|
-
'closureReason': json['closure_reason']
|
|
43
|
-
'specialEvent': json['special_event']
|
|
40
|
+
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
41
|
+
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
42
|
+
'closureReason': json['closure_reason'] === undefined ? undefined : json['closure_reason'] === null ? null : ClosureReasonFromJSON(json['closure_reason']),
|
|
43
|
+
'specialEvent': json['special_event'] === undefined ? undefined : json['special_event'] === null ? null : json['special_event'],
|
|
44
44
|
'amenities': json['amenities'] == null ? undefined : (json['amenities'].map(AmenityCalendarEntryFromJSON)),
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -42,8 +42,8 @@ export function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'metric': CurrentWeatherMetricFromJSON(json['metric']),
|
|
43
43
|
'condition': json['condition'],
|
|
44
44
|
'conditionCode': WeatherConditionCodeFromJSON(json['condition_code']),
|
|
45
|
-
'windDirection': json['wind_direction']
|
|
46
|
-
'windDirectionCardinal': json['wind_direction_cardinal']
|
|
45
|
+
'windDirection': json['wind_direction'] === undefined ? undefined : json['wind_direction'] === null ? null : json['wind_direction'],
|
|
46
|
+
'windDirectionCardinal': json['wind_direction_cardinal'] === undefined ? undefined : json['wind_direction_cardinal'] === null ? null : json['wind_direction_cardinal'],
|
|
47
47
|
'timestamp': (new Date(json['timestamp'])),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -33,10 +33,10 @@ export function CurrentWeatherImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return {
|
|
34
34
|
'temperature': json['temperature'],
|
|
35
35
|
'feelsLike': json['feels_like'],
|
|
36
|
-
'snowfall': json['snowfall']
|
|
37
|
-
'precipitation': json['precipitation']
|
|
36
|
+
'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
|
|
37
|
+
'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
|
|
38
38
|
'windSpeed': json['wind_speed'],
|
|
39
|
-
'windGust': json['wind_gust']
|
|
39
|
+
'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function CurrentWeatherImperialToJSON(json) {
|
|
@@ -33,10 +33,10 @@ export function CurrentWeatherMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return {
|
|
34
34
|
'temperature': json['temperature'],
|
|
35
35
|
'feelsLike': json['feels_like'],
|
|
36
|
-
'snowfall': json['snowfall']
|
|
37
|
-
'precipitation': json['precipitation']
|
|
36
|
+
'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
|
|
37
|
+
'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
|
|
38
38
|
'windSpeed': json['wind_speed'],
|
|
39
|
-
'windGust': json['wind_gust']
|
|
39
|
+
'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function CurrentWeatherMetricToJSON(json) {
|
|
@@ -47,7 +47,7 @@ export function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'metric': DailyForecastMetricFromJSON(json['metric']),
|
|
48
48
|
'condition': json['condition'],
|
|
49
49
|
'conditionCode': WeatherConditionCodeFromJSON(json['condition_code']),
|
|
50
|
-
'precipitationProbability': json['precipitation_probability']
|
|
50
|
+
'precipitationProbability': json['precipitation_probability'] === undefined ? undefined : json['precipitation_probability'] === null ? null : json['precipitation_probability'],
|
|
51
51
|
'sunrise': (new Date(json['sunrise'])),
|
|
52
52
|
'sunset': (new Date(json['sunset'])),
|
|
53
53
|
};
|
|
@@ -31,10 +31,10 @@ export function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'temperatureHigh': json['temperature_high'],
|
|
33
33
|
'temperatureLow': json['temperature_low'],
|
|
34
|
-
'snowfallTotal': json['snowfall_total']
|
|
35
|
-
'precipitationTotal': json['precipitation_total']
|
|
36
|
-
'windSpeedMax': json['wind_speed_max']
|
|
37
|
-
'windGustMax': json['wind_gust_max']
|
|
34
|
+
'snowfallTotal': json['snowfall_total'] === undefined ? undefined : json['snowfall_total'] === null ? null : json['snowfall_total'],
|
|
35
|
+
'precipitationTotal': json['precipitation_total'] === undefined ? undefined : json['precipitation_total'] === null ? null : json['precipitation_total'],
|
|
36
|
+
'windSpeedMax': json['wind_speed_max'] === undefined ? undefined : json['wind_speed_max'] === null ? null : json['wind_speed_max'],
|
|
37
|
+
'windGustMax': json['wind_gust_max'] === undefined ? undefined : json['wind_gust_max'] === null ? null : json['wind_gust_max'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function DailyForecastImperialToJSON(json) {
|
|
@@ -31,10 +31,10 @@ export function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'temperatureHigh': json['temperature_high'],
|
|
33
33
|
'temperatureLow': json['temperature_low'],
|
|
34
|
-
'snowfallTotal': json['snowfall_total']
|
|
35
|
-
'precipitationTotal': json['precipitation_total']
|
|
36
|
-
'windSpeedMax': json['wind_speed_max']
|
|
37
|
-
'windGustMax': json['wind_gust_max']
|
|
34
|
+
'snowfallTotal': json['snowfall_total'] === undefined ? undefined : json['snowfall_total'] === null ? null : json['snowfall_total'],
|
|
35
|
+
'precipitationTotal': json['precipitation_total'] === undefined ? undefined : json['precipitation_total'] === null ? null : json['precipitation_total'],
|
|
36
|
+
'windSpeedMax': json['wind_speed_max'] === undefined ? undefined : json['wind_speed_max'] === null ? null : json['wind_speed_max'],
|
|
37
|
+
'windGustMax': json['wind_gust_max'] === undefined ? undefined : json['wind_gust_max'] === null ? null : json['wind_gust_max'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function DailyForecastMetricToJSON(json) {
|
|
@@ -43,7 +43,7 @@ export function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'metric': HourlyForecastMetricFromJSON(json['metric']),
|
|
44
44
|
'condition': json['condition'],
|
|
45
45
|
'conditionCode': WeatherConditionCodeFromJSON(json['condition_code']),
|
|
46
|
-
'precipitationProbability': json['precipitation_probability']
|
|
46
|
+
'precipitationProbability': json['precipitation_probability'] === undefined ? undefined : json['precipitation_probability'] === null ? null : json['precipitation_probability'],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export function HourlyForecastToJSON(json) {
|
|
@@ -30,11 +30,11 @@ export function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'temperature': json['temperature'],
|
|
33
|
-
'feelsLike': json['feels_like']
|
|
34
|
-
'snowfall': json['snowfall']
|
|
35
|
-
'precipitation': json['precipitation']
|
|
33
|
+
'feelsLike': json['feels_like'] === undefined ? undefined : json['feels_like'] === null ? null : json['feels_like'],
|
|
34
|
+
'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
|
|
35
|
+
'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
|
|
36
36
|
'windSpeed': json['wind_speed'],
|
|
37
|
-
'windGust': json['wind_gust']
|
|
37
|
+
'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HourlyForecastImperialToJSON(json) {
|
|
@@ -30,11 +30,11 @@ export function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'temperature': json['temperature'],
|
|
33
|
-
'feelsLike': json['feels_like']
|
|
34
|
-
'snowfall': json['snowfall']
|
|
35
|
-
'precipitation': json['precipitation']
|
|
33
|
+
'feelsLike': json['feels_like'] === undefined ? undefined : json['feels_like'] === null ? null : json['feels_like'],
|
|
34
|
+
'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
|
|
35
|
+
'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
|
|
36
36
|
'windSpeed': json['wind_speed'],
|
|
37
|
-
'windGust': json['wind_gust']
|
|
37
|
+
'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HourlyForecastMetricToJSON(json) {
|
package/dist/esm/models/Lift.js
CHANGED
|
@@ -49,23 +49,23 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'uuid': json['uuid'],
|
|
50
50
|
'name': json['name'],
|
|
51
51
|
'slug': json['slug'],
|
|
52
|
-
'number': json['number']
|
|
52
|
+
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
53
53
|
'liftType': LiftTypeFromJSON(json['lift_type']),
|
|
54
54
|
'highSpeed': json['high_speed'],
|
|
55
55
|
'bubble': json['bubble'],
|
|
56
56
|
'heated': json['heated'],
|
|
57
|
-
'travelTime': json['travel_time']
|
|
58
|
-
'lengthFt': json['length_ft']
|
|
59
|
-
'lengthM': json['length_m']
|
|
60
|
-
'verticalRiseFt': json['vertical_rise_ft']
|
|
61
|
-
'verticalRiseM': json['vertical_rise_m']
|
|
57
|
+
'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
|
|
58
|
+
'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
|
|
59
|
+
'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
|
|
60
|
+
'verticalRiseFt': json['vertical_rise_ft'] === undefined ? undefined : json['vertical_rise_ft'] === null ? null : json['vertical_rise_ft'],
|
|
61
|
+
'verticalRiseM': json['vertical_rise_m'] === undefined ? undefined : json['vertical_rise_m'] === null ? null : json['vertical_rise_m'],
|
|
62
62
|
'status': LiftStatusFromJSON(json['status']),
|
|
63
|
-
'waitTimeMinutes': json['wait_time_minutes']
|
|
64
|
-
'opensAt': json['opens_at']
|
|
65
|
-
'closesAt': json['closes_at']
|
|
66
|
-
'areaUuid': json['area_uuid']
|
|
67
|
-
'areaName': json['area_name']
|
|
68
|
-
'areaDisplayOrder': json['area_display_order']
|
|
63
|
+
'waitTimeMinutes': json['wait_time_minutes'] === undefined ? undefined : json['wait_time_minutes'] === null ? null : json['wait_time_minutes'],
|
|
64
|
+
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
65
|
+
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
66
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
67
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
68
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
69
69
|
'updatedAt': (new Date(json['updated_at'])),
|
|
70
70
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
71
71
|
};
|
|
@@ -47,8 +47,8 @@ export function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'status': ResortStatusFromJSON(json['status']),
|
|
50
|
-
'opensAt': json['opens_at']
|
|
51
|
-
'closesAt': json['closes_at']
|
|
50
|
+
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
51
|
+
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
52
52
|
'season': SeasonTypeFromJSON(json['season']),
|
|
53
53
|
'news': OverviewNewsFromJSON(json['news']),
|
|
54
54
|
'runs': OverviewRunsFromJSON(json['runs']),
|
|
@@ -29,7 +29,7 @@ export function OverviewLiftsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'open': json['open']
|
|
32
|
+
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
33
33
|
'total': json['total'],
|
|
34
34
|
'updatedAt': (new Date(json['updated_at'])),
|
|
35
35
|
};
|
|
@@ -29,11 +29,11 @@ export function OverviewRunsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'open': json['open']
|
|
33
|
-
'groomed': json['groomed']
|
|
32
|
+
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
33
|
+
'groomed': json['groomed'] === undefined ? undefined : json['groomed'] === null ? null : json['groomed'],
|
|
34
34
|
'total': json['total'],
|
|
35
|
-
'openAcres': json['open_acres']
|
|
36
|
-
'totalAcres': json['total_acres']
|
|
35
|
+
'openAcres': json['open_acres'] === undefined ? undefined : json['open_acres'] === null ? null : json['open_acres'],
|
|
36
|
+
'totalAcres': json['total_acres'] === undefined ? undefined : json['total_acres'] === null ? null : json['total_acres'],
|
|
37
37
|
'updatedAt': (new Date(json['updated_at'])),
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -29,7 +29,7 @@ export function OverviewSummerTrailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'open': json['open']
|
|
32
|
+
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
33
33
|
'total': json['total'],
|
|
34
34
|
'updatedAt': (new Date(json['updated_at'])),
|
|
35
35
|
};
|
|
@@ -29,7 +29,7 @@ export function OverviewTerrainParksFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'open': json['open']
|
|
32
|
+
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
33
33
|
'total': json['total'],
|
|
34
34
|
'updatedAt': (new Date(json['updated_at'])),
|
|
35
35
|
};
|
|
@@ -47,7 +47,7 @@ export function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'name': json['name'],
|
|
48
48
|
'slug': json['slug'],
|
|
49
49
|
'status': ParkingLotStatusFromJSON(json['status']),
|
|
50
|
-
'capacity': json['capacity']
|
|
50
|
+
'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
|
|
51
51
|
'shuttle': json['shuttle'],
|
|
52
52
|
'paid': json['paid'],
|
|
53
53
|
'reservationRequired': json['reservation_required'],
|
|
@@ -53,6 +53,12 @@ export interface ResortInfo {
|
|
|
53
53
|
* @memberof ResortInfo
|
|
54
54
|
*/
|
|
55
55
|
unitPreference: UnitPreference;
|
|
56
|
+
/**
|
|
57
|
+
* Full public URL to the resort's logo image. `null` if no logo is set.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ResortInfo
|
|
60
|
+
*/
|
|
61
|
+
logoUrl?: string | null;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* Check if a given object implements the ResortInfo interface.
|
|
@@ -45,6 +45,7 @@ export function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'timezone': json['timezone'],
|
|
46
46
|
'region': RegionFromJSON(json['region']),
|
|
47
47
|
'unitPreference': UnitPreferenceFromJSON(json['unit_preference']),
|
|
48
|
+
'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
export function ResortInfoToJSON(json) {
|
|
@@ -61,5 +62,6 @@ export function ResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
62
|
'timezone': value['timezone'],
|
|
62
63
|
'region': RegionToJSON(value['region']),
|
|
63
64
|
'unit_preference': UnitPreferenceToJSON(value['unitPreference']),
|
|
65
|
+
'logo_url': value['logoUrl'],
|
|
64
66
|
};
|
|
65
67
|
}
|
package/dist/esm/models/Run.js
CHANGED
|
@@ -51,17 +51,17 @@ export function RunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'uuid': json['uuid'],
|
|
52
52
|
'name': json['name'],
|
|
53
53
|
'slug': json['slug'],
|
|
54
|
-
'number': json['number']
|
|
54
|
+
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
55
55
|
'difficulty': RunDifficultyFromJSON(json['difficulty']),
|
|
56
56
|
'status': RunStatusFromJSON(json['status']),
|
|
57
|
-
'lastGroomed': json['last_groomed']
|
|
57
|
+
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
58
58
|
'groomedToday': json['groomed_today'],
|
|
59
59
|
'snowmaking': json['snowmaking'],
|
|
60
60
|
'nightSkiing': json['night_skiing'],
|
|
61
61
|
'conditionNotes': json['condition_notes'],
|
|
62
|
-
'areaUuid': json['area_uuid']
|
|
63
|
-
'areaName': json['area_name']
|
|
64
|
-
'areaDisplayOrder': json['area_display_order']
|
|
62
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
63
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
64
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
65
65
|
'updatedAt': (new Date(json['updated_at'])),
|
|
66
66
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
67
67
|
};
|
|
@@ -38,13 +38,13 @@ export function SnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'uuid': json['uuid'],
|
|
41
|
-
'areaUuid': json['area_uuid']
|
|
42
|
-
'areaName': json['area_name']
|
|
43
|
-
'areaDisplayOrder': json['area_display_order']
|
|
44
|
-
'baseDepthCm': json['base_depth_cm']
|
|
45
|
-
'baseDepthIn': json['base_depth_in']
|
|
46
|
-
'surfaceCondition': json['surface_condition']
|
|
47
|
-
'secondarySurfaceCondition': json['secondary_surface_condition']
|
|
41
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
42
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
43
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
44
|
+
'baseDepthCm': json['base_depth_cm'] === undefined ? undefined : json['base_depth_cm'] === null ? null : json['base_depth_cm'],
|
|
45
|
+
'baseDepthIn': json['base_depth_in'] === undefined ? undefined : json['base_depth_in'] === null ? null : json['base_depth_in'],
|
|
46
|
+
'surfaceCondition': json['surface_condition'] === undefined ? undefined : json['surface_condition'] === null ? null : SurfaceConditionFromJSON(json['surface_condition']),
|
|
47
|
+
'secondarySurfaceCondition': json['secondary_surface_condition'] === undefined ? undefined : json['secondary_surface_condition'] === null ? null : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
48
48
|
'conditionNotes': json['condition_notes'],
|
|
49
49
|
'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
|
|
50
50
|
'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
|
|
@@ -46,14 +46,14 @@ export function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'uuid': json['uuid'],
|
|
47
47
|
'name': json['name'],
|
|
48
48
|
'slug': json['slug'],
|
|
49
|
-
'number': json['number']
|
|
49
|
+
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
50
50
|
'trailType': (json['trail_type'].map(SummerTrailTypeFromJSON)),
|
|
51
|
-
'difficulty': json['difficulty']
|
|
51
|
+
'difficulty': json['difficulty'] === undefined ? undefined : json['difficulty'] === null ? null : SummerTrailDifficultyFromJSON(json['difficulty']),
|
|
52
52
|
'status': SummerTrailStatusFromJSON(json['status']),
|
|
53
53
|
'conditionNotes': json['condition_notes'],
|
|
54
|
-
'areaUuid': json['area_uuid']
|
|
55
|
-
'areaName': json['area_name']
|
|
56
|
-
'areaDisplayOrder': json['area_display_order']
|
|
54
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
55
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
56
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
57
57
|
'updatedAt': (new Date(json['updated_at'])),
|
|
58
58
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
59
59
|
};
|
|
@@ -45,12 +45,12 @@ export function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'uuid': json['uuid'],
|
|
46
46
|
'name': json['name'],
|
|
47
47
|
'slug': json['slug'],
|
|
48
|
-
'number': json['number']
|
|
48
|
+
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
49
49
|
'status': TerrainParkStatusFromJSON(json['status']),
|
|
50
50
|
'conditionNotes': json['condition_notes'],
|
|
51
|
-
'areaUuid': json['area_uuid']
|
|
52
|
-
'areaName': json['area_name']
|
|
53
|
-
'areaDisplayOrder': json['area_display_order']
|
|
51
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
52
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
53
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
54
54
|
'features': (json['features'].map(TerrainParkFeatureFromJSON)),
|
|
55
55
|
'updatedAt': (new Date(json['updated_at'])),
|
|
56
56
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
@@ -42,9 +42,9 @@ export function TerrainParkFeatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'uuid': json['uuid'],
|
|
43
43
|
'name': json['name'],
|
|
44
44
|
'slug': json['slug'],
|
|
45
|
-
'number': json['number']
|
|
45
|
+
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
46
46
|
'featureType': FeatureTypeFromJSON(json['feature_type']),
|
|
47
|
-
'size': json['size']
|
|
47
|
+
'size': json['size'] === undefined ? undefined : json['size'] === null ? null : FeatureSizeFromJSON(json['size']),
|
|
48
48
|
'status': TerrainParkFeatureStatusFromJSON(json['status']),
|
|
49
49
|
'images': json['images'] == null ? undefined : (json['images'].map(EntityImageFromJSON)),
|
|
50
50
|
};
|
|
@@ -43,8 +43,8 @@ export function TrailMapElementOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'type': json['type'],
|
|
44
44
|
'uuid': json['uuid'],
|
|
45
45
|
'points': json['points'],
|
|
46
|
-
'tension': json['tension']
|
|
47
|
-
'lift': json['lift']
|
|
46
|
+
'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
|
|
47
|
+
'lift': json['lift'] === undefined ? undefined : json['lift'] === null ? null : LiftFromJSON(json['lift']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export function TrailMapElementOneOfToJSON(json) {
|
|
@@ -43,8 +43,8 @@ export function TrailMapElementOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'type': json['type'],
|
|
44
44
|
'uuid': json['uuid'],
|
|
45
45
|
'points': json['points'],
|
|
46
|
-
'tension': json['tension']
|
|
47
|
-
'run': json['run']
|
|
46
|
+
'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
|
|
47
|
+
'run': json['run'] === undefined ? undefined : json['run'] === null ? null : RunFromJSON(json['run']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export function TrailMapElementOneOf1ToJSON(json) {
|
|
@@ -44,9 +44,9 @@ export function TrailMapElementOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'type': json['type'],
|
|
45
45
|
'uuid': json['uuid'],
|
|
46
46
|
'points': json['points'],
|
|
47
|
-
'tension': json['tension']
|
|
48
|
-
'labelOffset': json['label_offset']
|
|
49
|
-
'terrainPark': json['terrain_park']
|
|
47
|
+
'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
|
|
48
|
+
'labelOffset': json['label_offset'] === undefined ? undefined : json['label_offset'] === null ? null : LabelOffsetFromJSON(json['label_offset']),
|
|
49
|
+
'terrainPark': json['terrain_park'] === undefined ? undefined : json['terrain_park'] === null ? null : TerrainParkFromJSON(json['terrain_park']),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
export function TrailMapElementOneOf2ToJSON(json) {
|
|
@@ -43,8 +43,8 @@ export function TrailMapElementOneOf3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'type': json['type'],
|
|
44
44
|
'uuid': json['uuid'],
|
|
45
45
|
'points': json['points'],
|
|
46
|
-
'tension': json['tension']
|
|
47
|
-
'summerTrail': json['summer_trail']
|
|
46
|
+
'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
|
|
47
|
+
'summerTrail': json['summer_trail'] === undefined ? undefined : json['summer_trail'] === null ? null : SummerTrailFromJSON(json['summer_trail']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export function TrailMapElementOneOf3ToJSON(json) {
|
|
@@ -47,10 +47,10 @@ export function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'uuid': json['uuid'],
|
|
48
48
|
'x': json['x'],
|
|
49
49
|
'y': json['y'],
|
|
50
|
-
'icon': json['icon']
|
|
51
|
-
'color': json['color']
|
|
52
|
-
'amenity': json['amenity']
|
|
53
|
-
'groupLabel': json['group_label']
|
|
50
|
+
'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
|
|
51
|
+
'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
|
|
52
|
+
'amenity': json['amenity'] === undefined ? undefined : json['amenity'] === null ? null : AmenityFromJSON(json['amenity']),
|
|
53
|
+
'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export function TrailMapElementOneOf4ToJSON(json) {
|
|
@@ -47,10 +47,10 @@ export function TrailMapElementOneOf5FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'uuid': json['uuid'],
|
|
48
48
|
'x': json['x'],
|
|
49
49
|
'y': json['y'],
|
|
50
|
-
'icon': json['icon']
|
|
51
|
-
'color': json['color']
|
|
52
|
-
'parkingLot': json['parking_lot']
|
|
53
|
-
'groupLabel': json['group_label']
|
|
50
|
+
'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
|
|
51
|
+
'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
|
|
52
|
+
'parkingLot': json['parking_lot'] === undefined ? undefined : json['parking_lot'] === null ? null : ParkingLotFromJSON(json['parking_lot']),
|
|
53
|
+
'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export function TrailMapElementOneOf5ToJSON(json) {
|
|
@@ -47,10 +47,10 @@ export function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'uuid': json['uuid'],
|
|
48
48
|
'x': json['x'],
|
|
49
49
|
'y': json['y'],
|
|
50
|
-
'icon': json['icon']
|
|
51
|
-
'color': json['color']
|
|
52
|
-
'webcam': json['webcam']
|
|
53
|
-
'groupLabel': json['group_label']
|
|
50
|
+
'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
|
|
51
|
+
'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
|
|
52
|
+
'webcam': json['webcam'] === undefined ? undefined : json['webcam'] === null ? null : WebcamFromJSON(json['webcam']),
|
|
53
|
+
'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
export function TrailMapElementOneOf6ToJSON(json) {
|
|
@@ -48,11 +48,11 @@ export function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'uuid': json['uuid'],
|
|
49
49
|
'x': json['x'],
|
|
50
50
|
'y': json['y'],
|
|
51
|
-
'icon': json['icon']
|
|
52
|
-
'color': json['color']
|
|
51
|
+
'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
|
|
52
|
+
'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
|
|
53
53
|
'label': json['label'],
|
|
54
|
-
'searchable': json['searchable']
|
|
55
|
-
'groupLabel': json['group_label']
|
|
54
|
+
'searchable': json['searchable'] === undefined ? undefined : json['searchable'] === null ? null : json['searchable'],
|
|
55
|
+
'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export function TrailMapElementOneOf7ToJSON(json) {
|
|
@@ -47,7 +47,7 @@ export function TrailMapSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'displayOrder': json['display_order'],
|
|
48
48
|
'version': json['version'],
|
|
49
49
|
'hostedUrl': json['hosted_url'],
|
|
50
|
-
'geoBounds': json['geo_bounds']
|
|
50
|
+
'geoBounds': json['geo_bounds'] === undefined ? undefined : json['geo_bounds'] === null ? null : GeoBoundsFromJSON(json['geo_bounds']),
|
|
51
51
|
'entityUuids': json['entity_uuids'],
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -38,9 +38,9 @@ export function WeatherFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'areaUuid': json['area_uuid']
|
|
42
|
-
'areaName': json['area_name']
|
|
43
|
-
'areaDisplayOrder': json['area_display_order']
|
|
41
|
+
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
42
|
+
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
43
|
+
'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
|
|
44
44
|
'current': CurrentWeatherFromJSON(json['current']),
|
|
45
45
|
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecastFromJSON)),
|
|
46
46
|
'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
|