@mtnmanager/sdk 1.7.2 → 1.7.4
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/AmenityCategory.d.ts +1 -0
- package/dist/esm/models/AmenityCategory.js +2 -1
- package/dist/esm/models/CalendarDay.js +4 -4
- package/dist/esm/models/ClosureReason.d.ts +1 -0
- package/dist/esm/models/ClosureReason.js +2 -1
- 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/DayOfWeek.d.ts +1 -0
- package/dist/esm/models/DayOfWeek.js +2 -1
- package/dist/esm/models/FeatureSize.d.ts +1 -0
- package/dist/esm/models/FeatureSize.js +2 -1
- package/dist/esm/models/FeatureType.d.ts +1 -0
- package/dist/esm/models/FeatureType.js +2 -1
- 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/LiftStatus.d.ts +1 -0
- package/dist/esm/models/LiftStatus.js +2 -1
- package/dist/esm/models/LiftType.d.ts +1 -0
- package/dist/esm/models/LiftType.js +2 -1
- package/dist/esm/models/MarkerIcon.d.ts +1 -0
- package/dist/esm/models/MarkerIcon.js +2 -1
- 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/ParkingLotStatus.d.ts +1 -0
- package/dist/esm/models/ParkingLotStatus.js +2 -1
- package/dist/esm/models/Region.d.ts +1 -0
- package/dist/esm/models/Region.js +2 -1
- package/dist/esm/models/ResortInfo.js +1 -1
- package/dist/esm/models/ResortStatus.d.ts +1 -0
- package/dist/esm/models/ResortStatus.js +2 -1
- package/dist/esm/models/Run.js +5 -5
- package/dist/esm/models/RunDifficulty.d.ts +1 -0
- package/dist/esm/models/RunDifficulty.js +2 -1
- package/dist/esm/models/RunStatus.d.ts +1 -0
- package/dist/esm/models/RunStatus.js +2 -1
- package/dist/esm/models/SeasonType.d.ts +1 -0
- package/dist/esm/models/SeasonType.js +2 -1
- package/dist/esm/models/SnowReport.js +7 -7
- package/dist/esm/models/SummerTrail.js +5 -5
- package/dist/esm/models/SummerTrailDifficulty.d.ts +1 -0
- package/dist/esm/models/SummerTrailDifficulty.js +2 -1
- package/dist/esm/models/SummerTrailStatus.d.ts +1 -0
- package/dist/esm/models/SummerTrailStatus.js +2 -1
- package/dist/esm/models/SummerTrailType.d.ts +1 -0
- package/dist/esm/models/SummerTrailType.js +2 -1
- package/dist/esm/models/SurfaceCondition.d.ts +1 -0
- package/dist/esm/models/SurfaceCondition.js +2 -1
- package/dist/esm/models/TerrainPark.js +4 -4
- package/dist/esm/models/TerrainParkFeature.js +2 -2
- package/dist/esm/models/TerrainParkFeatureStatus.d.ts +1 -0
- package/dist/esm/models/TerrainParkFeatureStatus.js +2 -1
- package/dist/esm/models/TerrainParkStatus.d.ts +1 -0
- package/dist/esm/models/TerrainParkStatus.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf.js +4 -3
- package/dist/esm/models/TrailMapElementOneOf1.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf1.js +4 -3
- package/dist/esm/models/TrailMapElementOneOf2.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf2.js +5 -4
- package/dist/esm/models/TrailMapElementOneOf3.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf3.js +4 -3
- package/dist/esm/models/TrailMapElementOneOf4.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf4.js +6 -5
- package/dist/esm/models/TrailMapElementOneOf5.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf5.js +6 -5
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf6.js +6 -5
- package/dist/esm/models/TrailMapElementOneOf7.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf7.js +6 -5
- package/dist/esm/models/TrailMapSummary.js +1 -1
- package/dist/esm/models/UnitPreference.d.ts +1 -0
- package/dist/esm/models/UnitPreference.js +2 -1
- package/dist/esm/models/Weather.js +3 -3
- package/dist/esm/models/WeatherConditionCode.d.ts +1 -0
- package/dist/esm/models/WeatherConditionCode.js +2 -1
- 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/AmenityCategory.d.ts +1 -0
- package/dist/models/AmenityCategory.js +2 -1
- package/dist/models/CalendarDay.js +4 -4
- package/dist/models/ClosureReason.d.ts +1 -0
- package/dist/models/ClosureReason.js +2 -1
- 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/DayOfWeek.d.ts +1 -0
- package/dist/models/DayOfWeek.js +2 -1
- package/dist/models/FeatureSize.d.ts +1 -0
- package/dist/models/FeatureSize.js +2 -1
- package/dist/models/FeatureType.d.ts +1 -0
- package/dist/models/FeatureType.js +2 -1
- 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/LiftStatus.d.ts +1 -0
- package/dist/models/LiftStatus.js +2 -1
- package/dist/models/LiftType.d.ts +1 -0
- package/dist/models/LiftType.js +2 -1
- package/dist/models/MarkerIcon.d.ts +1 -0
- package/dist/models/MarkerIcon.js +2 -1
- 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/ParkingLotStatus.d.ts +1 -0
- package/dist/models/ParkingLotStatus.js +2 -1
- package/dist/models/Region.d.ts +1 -0
- package/dist/models/Region.js +2 -1
- package/dist/models/ResortInfo.js +1 -1
- package/dist/models/ResortStatus.d.ts +1 -0
- package/dist/models/ResortStatus.js +2 -1
- package/dist/models/Run.js +5 -5
- package/dist/models/RunDifficulty.d.ts +1 -0
- package/dist/models/RunDifficulty.js +2 -1
- package/dist/models/RunStatus.d.ts +1 -0
- package/dist/models/RunStatus.js +2 -1
- package/dist/models/SeasonType.d.ts +1 -0
- package/dist/models/SeasonType.js +2 -1
- package/dist/models/SnowReport.js +7 -7
- package/dist/models/SummerTrail.js +5 -5
- package/dist/models/SummerTrailDifficulty.d.ts +1 -0
- package/dist/models/SummerTrailDifficulty.js +2 -1
- package/dist/models/SummerTrailStatus.d.ts +1 -0
- package/dist/models/SummerTrailStatus.js +2 -1
- package/dist/models/SummerTrailType.d.ts +1 -0
- package/dist/models/SummerTrailType.js +2 -1
- package/dist/models/SurfaceCondition.d.ts +1 -0
- package/dist/models/SurfaceCondition.js +2 -1
- package/dist/models/TerrainPark.js +4 -4
- package/dist/models/TerrainParkFeature.js +2 -2
- package/dist/models/TerrainParkFeatureStatus.d.ts +1 -0
- package/dist/models/TerrainParkFeatureStatus.js +2 -1
- package/dist/models/TerrainParkStatus.d.ts +1 -0
- package/dist/models/TerrainParkStatus.js +2 -1
- package/dist/models/TrailMapElementOneOf.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf.js +4 -3
- package/dist/models/TrailMapElementOneOf1.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf1.js +4 -3
- package/dist/models/TrailMapElementOneOf2.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf2.js +5 -4
- package/dist/models/TrailMapElementOneOf3.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf3.js +4 -3
- package/dist/models/TrailMapElementOneOf4.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf4.js +6 -5
- package/dist/models/TrailMapElementOneOf5.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf5.js +6 -5
- package/dist/models/TrailMapElementOneOf6.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf6.js +6 -5
- package/dist/models/TrailMapElementOneOf7.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf7.js +6 -5
- package/dist/models/TrailMapSummary.js +1 -1
- package/dist/models/UnitPreference.d.ts +1 -0
- package/dist/models/UnitPreference.js +2 -1
- package/dist/models/Weather.js +3 -3
- package/dist/models/WeatherConditionCode.d.ts +1 -0
- package/dist/models/WeatherConditionCode.js +2 -1
- 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) {
|
|
@@ -27,6 +27,7 @@ export declare const AmenityCategory: {
|
|
|
27
27
|
readonly Lockers: "lockers";
|
|
28
28
|
readonly Retail: "retail";
|
|
29
29
|
readonly Other: "other";
|
|
30
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
30
31
|
};
|
|
31
32
|
export type AmenityCategory = typeof AmenityCategory[keyof typeof AmenityCategory];
|
|
32
33
|
export declare function instanceOfAmenityCategory(value: any): boolean;
|
|
@@ -28,7 +28,8 @@ export const AmenityCategory = {
|
|
|
28
28
|
Hotel: 'hotel',
|
|
29
29
|
Lockers: 'lockers',
|
|
30
30
|
Retail: 'retail',
|
|
31
|
-
Other: 'other'
|
|
31
|
+
Other: 'other',
|
|
32
|
+
UnknownDefaultOpenApi: '11184809'
|
|
32
33
|
};
|
|
33
34
|
export function instanceOfAmenityCategory(value) {
|
|
34
35
|
for (const key in AmenityCategory) {
|
|
@@ -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
|
}
|
|
@@ -18,6 +18,7 @@ export declare const ClosureReason: {
|
|
|
18
18
|
readonly HighWinds: "high_winds";
|
|
19
19
|
readonly SnowConditions: "snow_conditions";
|
|
20
20
|
readonly MechanicalIssues: "mechanical_issues";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type ClosureReason = typeof ClosureReason[keyof typeof ClosureReason];
|
|
23
24
|
export declare function instanceOfClosureReason(value: any): boolean;
|
|
@@ -19,7 +19,8 @@ export const ClosureReason = {
|
|
|
19
19
|
ExtremeCold: 'extreme_cold',
|
|
20
20
|
HighWinds: 'high_winds',
|
|
21
21
|
SnowConditions: 'snow_conditions',
|
|
22
|
-
MechanicalIssues: 'mechanical_issues'
|
|
22
|
+
MechanicalIssues: 'mechanical_issues',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
24
|
};
|
|
24
25
|
export function instanceOfClosureReason(value) {
|
|
25
26
|
for (const key in ClosureReason) {
|
|
@@ -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) {
|
|
@@ -21,6 +21,7 @@ export declare const DayOfWeek: {
|
|
|
21
21
|
readonly Thursday: "Thursday";
|
|
22
22
|
readonly Friday: "Friday";
|
|
23
23
|
readonly Saturday: "Saturday";
|
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
24
25
|
};
|
|
25
26
|
export type DayOfWeek = typeof DayOfWeek[keyof typeof DayOfWeek];
|
|
26
27
|
export declare function instanceOfDayOfWeek(value: any): boolean;
|
|
@@ -22,7 +22,8 @@ export const DayOfWeek = {
|
|
|
22
22
|
Wednesday: 'Wednesday',
|
|
23
23
|
Thursday: 'Thursday',
|
|
24
24
|
Friday: 'Friday',
|
|
25
|
-
Saturday: 'Saturday'
|
|
25
|
+
Saturday: 'Saturday',
|
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
|
26
27
|
};
|
|
27
28
|
export function instanceOfDayOfWeek(value) {
|
|
28
29
|
for (const key in DayOfWeek) {
|
|
@@ -18,6 +18,7 @@ export declare const FeatureSize: {
|
|
|
18
18
|
readonly M: "m";
|
|
19
19
|
readonly L: "l";
|
|
20
20
|
readonly Xl: "xl";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type FeatureSize = typeof FeatureSize[keyof typeof FeatureSize];
|
|
23
24
|
export declare function instanceOfFeatureSize(value: any): boolean;
|
|
@@ -18,6 +18,7 @@ export declare const FeatureType: {
|
|
|
18
18
|
readonly Box: "box";
|
|
19
19
|
readonly Rail: "rail";
|
|
20
20
|
readonly Other: "other";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type FeatureType = typeof FeatureType[keyof typeof FeatureType];
|
|
23
24
|
export declare function instanceOfFeatureType(value: any): boolean;
|
|
@@ -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
|
};
|
|
@@ -18,6 +18,7 @@ export declare const LiftStatus: {
|
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly OnHold: "on_hold";
|
|
20
20
|
readonly Unknown: "unknown";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type LiftStatus = typeof LiftStatus[keyof typeof LiftStatus];
|
|
23
24
|
export declare function instanceOfLiftStatus(value: any): boolean;
|
|
@@ -19,7 +19,8 @@ export const LiftStatus = {
|
|
|
19
19
|
Open: 'open',
|
|
20
20
|
Closed: 'closed',
|
|
21
21
|
OnHold: 'on_hold',
|
|
22
|
-
Unknown: 'unknown'
|
|
22
|
+
Unknown: 'unknown',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
24
|
};
|
|
24
25
|
export function instanceOfLiftStatus(value) {
|
|
25
26
|
for (const key in LiftStatus) {
|
|
@@ -27,6 +27,7 @@ export declare const LiftType: {
|
|
|
27
27
|
readonly RopeTow: "rope_tow";
|
|
28
28
|
readonly Funicular: "funicular";
|
|
29
29
|
readonly Other: "other";
|
|
30
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
30
31
|
};
|
|
31
32
|
export type LiftType = typeof LiftType[keyof typeof LiftType];
|
|
32
33
|
export declare function instanceOfLiftType(value: any): boolean;
|
|
@@ -28,7 +28,8 @@ export const LiftType = {
|
|
|
28
28
|
Platter: 'platter',
|
|
29
29
|
RopeTow: 'rope_tow',
|
|
30
30
|
Funicular: 'funicular',
|
|
31
|
-
Other: 'other'
|
|
31
|
+
Other: 'other',
|
|
32
|
+
UnknownDefaultOpenApi: '11184809'
|
|
32
33
|
};
|
|
33
34
|
export function instanceOfLiftType(value) {
|
|
34
35
|
for (const key in LiftType) {
|
|
@@ -37,6 +37,7 @@ export declare const MarkerIcon: {
|
|
|
37
37
|
readonly Atm: "atm";
|
|
38
38
|
readonly Star: "star";
|
|
39
39
|
readonly Webcam: "webcam";
|
|
40
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
40
41
|
};
|
|
41
42
|
export type MarkerIcon = typeof MarkerIcon[keyof typeof MarkerIcon];
|
|
42
43
|
export declare function instanceOfMarkerIcon(value: any): boolean;
|
|
@@ -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'],
|
|
@@ -17,6 +17,7 @@ export declare const ParkingLotStatus: {
|
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly Full: "full";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type ParkingLotStatus = typeof ParkingLotStatus[keyof typeof ParkingLotStatus];
|
|
22
23
|
export declare function instanceOfParkingLotStatus(value: any): boolean;
|
|
@@ -45,7 +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']
|
|
48
|
+
'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export function ResortInfoToJSON(json) {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const ResortStatus: {
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
19
20
|
};
|
|
20
21
|
export type ResortStatus = typeof ResortStatus[keyof typeof ResortStatus];
|
|
21
22
|
export declare function instanceOfResortStatus(value: any): boolean;
|
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
|
};
|
|
@@ -19,6 +19,7 @@ export declare const RunDifficulty: {
|
|
|
19
19
|
readonly Advanced: "advanced";
|
|
20
20
|
readonly Expert: "expert";
|
|
21
21
|
readonly TerrainPark: "terrain_park";
|
|
22
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
22
23
|
};
|
|
23
24
|
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
24
25
|
export declare function instanceOfRunDifficulty(value: any): boolean;
|
|
@@ -20,7 +20,8 @@ export const RunDifficulty = {
|
|
|
20
20
|
Intermediate: 'intermediate',
|
|
21
21
|
Advanced: 'advanced',
|
|
22
22
|
Expert: 'expert',
|
|
23
|
-
TerrainPark: 'terrain_park'
|
|
23
|
+
TerrainPark: 'terrain_park',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
25
|
};
|
|
25
26
|
export function instanceOfRunDifficulty(value) {
|
|
26
27
|
for (const key in RunDifficulty) {
|
|
@@ -17,6 +17,7 @@ export declare const RunStatus: {
|
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly Unknown: "unknown";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type RunStatus = typeof RunStatus[keyof typeof RunStatus];
|
|
22
23
|
export declare function instanceOfRunStatus(value: any): boolean;
|
|
@@ -17,6 +17,7 @@ export declare const SeasonType: {
|
|
|
17
17
|
readonly Winter: "winter";
|
|
18
18
|
readonly Summer: "summer";
|
|
19
19
|
readonly Closed: "closed";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
23
|
export declare function instanceOfSeasonType(value: any): boolean;
|