@mtnmanager/sdk 1.7.2 → 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.
Files changed (79) hide show
  1. package/dist/esm/models/Amenity.js +2 -2
  2. package/dist/esm/models/AmenityCalendarEntry.js +2 -2
  3. package/dist/esm/models/CalendarDay.js +4 -4
  4. package/dist/esm/models/CurrentWeather.js +2 -2
  5. package/dist/esm/models/CurrentWeatherImperial.js +3 -3
  6. package/dist/esm/models/CurrentWeatherMetric.js +3 -3
  7. package/dist/esm/models/DailyForecast.js +1 -1
  8. package/dist/esm/models/DailyForecastImperial.js +4 -4
  9. package/dist/esm/models/DailyForecastMetric.js +4 -4
  10. package/dist/esm/models/HourlyForecast.js +1 -1
  11. package/dist/esm/models/HourlyForecastImperial.js +4 -4
  12. package/dist/esm/models/HourlyForecastMetric.js +4 -4
  13. package/dist/esm/models/Lift.js +12 -12
  14. package/dist/esm/models/Overview.js +2 -2
  15. package/dist/esm/models/OverviewLifts.js +1 -1
  16. package/dist/esm/models/OverviewRuns.js +4 -4
  17. package/dist/esm/models/OverviewSummerTrails.js +1 -1
  18. package/dist/esm/models/OverviewTerrainParks.js +1 -1
  19. package/dist/esm/models/ParkingLot.js +1 -1
  20. package/dist/esm/models/ResortInfo.js +1 -1
  21. package/dist/esm/models/Run.js +5 -5
  22. package/dist/esm/models/SnowReport.js +7 -7
  23. package/dist/esm/models/SummerTrail.js +5 -5
  24. package/dist/esm/models/TerrainPark.js +4 -4
  25. package/dist/esm/models/TerrainParkFeature.js +2 -2
  26. package/dist/esm/models/TrailMapElementOneOf.js +2 -2
  27. package/dist/esm/models/TrailMapElementOneOf1.js +2 -2
  28. package/dist/esm/models/TrailMapElementOneOf2.js +3 -3
  29. package/dist/esm/models/TrailMapElementOneOf3.js +2 -2
  30. package/dist/esm/models/TrailMapElementOneOf4.js +4 -4
  31. package/dist/esm/models/TrailMapElementOneOf5.js +4 -4
  32. package/dist/esm/models/TrailMapElementOneOf6.js +4 -4
  33. package/dist/esm/models/TrailMapElementOneOf7.js +4 -4
  34. package/dist/esm/models/TrailMapSummary.js +1 -1
  35. package/dist/esm/models/Weather.js +3 -3
  36. package/dist/esm/models/Webcam.js +6 -6
  37. package/dist/esm/models/WebcamHistoryQuery.js +2 -2
  38. package/dist/esm/runtime.d.ts +1 -0
  39. package/dist/esm/runtime.js +6 -1
  40. package/dist/models/Amenity.js +2 -2
  41. package/dist/models/AmenityCalendarEntry.js +2 -2
  42. package/dist/models/CalendarDay.js +4 -4
  43. package/dist/models/CurrentWeather.js +2 -2
  44. package/dist/models/CurrentWeatherImperial.js +3 -3
  45. package/dist/models/CurrentWeatherMetric.js +3 -3
  46. package/dist/models/DailyForecast.js +1 -1
  47. package/dist/models/DailyForecastImperial.js +4 -4
  48. package/dist/models/DailyForecastMetric.js +4 -4
  49. package/dist/models/HourlyForecast.js +1 -1
  50. package/dist/models/HourlyForecastImperial.js +4 -4
  51. package/dist/models/HourlyForecastMetric.js +4 -4
  52. package/dist/models/Lift.js +12 -12
  53. package/dist/models/Overview.js +2 -2
  54. package/dist/models/OverviewLifts.js +1 -1
  55. package/dist/models/OverviewRuns.js +4 -4
  56. package/dist/models/OverviewSummerTrails.js +1 -1
  57. package/dist/models/OverviewTerrainParks.js +1 -1
  58. package/dist/models/ParkingLot.js +1 -1
  59. package/dist/models/ResortInfo.js +1 -1
  60. package/dist/models/Run.js +5 -5
  61. package/dist/models/SnowReport.js +7 -7
  62. package/dist/models/SummerTrail.js +5 -5
  63. package/dist/models/TerrainPark.js +4 -4
  64. package/dist/models/TerrainParkFeature.js +2 -2
  65. package/dist/models/TrailMapElementOneOf.js +2 -2
  66. package/dist/models/TrailMapElementOneOf1.js +2 -2
  67. package/dist/models/TrailMapElementOneOf2.js +3 -3
  68. package/dist/models/TrailMapElementOneOf3.js +2 -2
  69. package/dist/models/TrailMapElementOneOf4.js +4 -4
  70. package/dist/models/TrailMapElementOneOf5.js +4 -4
  71. package/dist/models/TrailMapElementOneOf6.js +4 -4
  72. package/dist/models/TrailMapElementOneOf7.js +4 -4
  73. package/dist/models/TrailMapSummary.js +1 -1
  74. package/dist/models/Weather.js +3 -3
  75. package/dist/models/Webcam.js +6 -6
  76. package/dist/models/WebcamHistoryQuery.js +2 -2
  77. package/dist/runtime.d.ts +1 -0
  78. package/dist/runtime.js +7 -1
  79. package/package.json +1 -1
@@ -25,8 +25,8 @@ export function WebcamHistoryQueryFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'from': json['from'] == null ? undefined : json['from'],
29
- 'to': json['to'] == null ? undefined : json['to'],
28
+ 'from': json['from'] === undefined ? undefined : json['from'] === null ? null : json['from'],
29
+ 'to': json['to'] === undefined ? undefined : json['to'] === null ? null : json['to'],
30
30
  };
31
31
  }
32
32
  export function WebcamHistoryQueryToJSON(json) {
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
127
127
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
128
  [key: string]: any;
129
129
  };
130
+ export declare function anyToJSON(value: any): any;
130
131
  export declare function canConsumeForm(consumes: Consume[]): boolean;
131
132
  export interface Consume {
132
133
  contentType: string;
@@ -296,9 +296,14 @@ export function mapValues(data, fn) {
296
296
  }
297
297
  return result;
298
298
  }
299
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
300
+ export function anyToJSON(value) {
301
+ return value;
302
+ }
299
303
  export function canConsumeForm(consumes) {
304
+ var _a;
300
305
  for (const consume of consumes) {
301
- if ('multipart/form-data' === consume.contentType) {
306
+ if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
302
307
  return true;
303
308
  }
304
309
  }
@@ -55,8 +55,8 @@ function AmenityFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
56
56
  'website': json['website'],
57
57
  'hasOperatingHours': json['has_operating_hours'],
58
- 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
59
- 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
58
+ 'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
59
+ 'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
60
60
  'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
61
61
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
62
62
  };
@@ -42,8 +42,8 @@ function AmenityCalendarEntryFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'uuid': json['uuid'],
43
43
  'name': json['name'],
44
44
  'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
45
- 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
46
- 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
45
+ 'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
46
+ 'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
47
47
  };
48
48
  }
49
49
  function AmenityCalendarEntryToJSON(json) {
@@ -44,10 +44,10 @@ function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'date': (new Date(json['date'])),
45
45
  'dayOfWeek': (0, DayOfWeek_1.DayOfWeekFromJSON)(json['day_of_week']),
46
46
  'isOpen': json['is_open'],
47
- 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
48
- 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
49
- 'closureReason': json['closure_reason'] == null ? undefined : (0, ClosureReason_1.ClosureReasonFromJSON)(json['closure_reason']),
50
- 'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
47
+ 'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
48
+ 'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
49
+ 'closureReason': json['closure_reason'] === undefined ? undefined : json['closure_reason'] === null ? null : (0, ClosureReason_1.ClosureReasonFromJSON)(json['closure_reason']),
50
+ 'specialEvent': json['special_event'] === undefined ? undefined : json['special_event'] === null ? null : json['special_event'],
51
51
  'amenities': json['amenities'] == null ? undefined : (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
52
52
  };
53
53
  }
@@ -49,8 +49,8 @@ function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'metric': (0, CurrentWeatherMetric_1.CurrentWeatherMetricFromJSON)(json['metric']),
50
50
  'condition': json['condition'],
51
51
  'conditionCode': (0, WeatherConditionCode_1.WeatherConditionCodeFromJSON)(json['condition_code']),
52
- 'windDirection': json['wind_direction'] == null ? undefined : json['wind_direction'],
53
- 'windDirectionCardinal': json['wind_direction_cardinal'] == null ? undefined : json['wind_direction_cardinal'],
52
+ 'windDirection': json['wind_direction'] === undefined ? undefined : json['wind_direction'] === null ? null : json['wind_direction'],
53
+ 'windDirectionCardinal': json['wind_direction_cardinal'] === undefined ? undefined : json['wind_direction_cardinal'] === null ? null : json['wind_direction_cardinal'],
54
54
  'timestamp': (new Date(json['timestamp'])),
55
55
  };
56
56
  }
@@ -40,10 +40,10 @@ function CurrentWeatherImperialFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'temperature': json['temperature'],
42
42
  'feelsLike': json['feels_like'],
43
- 'snowfall': json['snowfall'] == null ? undefined : json['snowfall'],
44
- 'precipitation': json['precipitation'] == null ? undefined : json['precipitation'],
43
+ 'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
44
+ 'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
45
45
  'windSpeed': json['wind_speed'],
46
- 'windGust': json['wind_gust'] == null ? undefined : json['wind_gust'],
46
+ 'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
47
47
  };
48
48
  }
49
49
  function CurrentWeatherImperialToJSON(json) {
@@ -40,10 +40,10 @@ function CurrentWeatherMetricFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'temperature': json['temperature'],
42
42
  'feelsLike': json['feels_like'],
43
- 'snowfall': json['snowfall'] == null ? undefined : json['snowfall'],
44
- 'precipitation': json['precipitation'] == null ? undefined : json['precipitation'],
43
+ 'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
44
+ 'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
45
45
  'windSpeed': json['wind_speed'],
46
- 'windGust': json['wind_gust'] == null ? undefined : json['wind_gust'],
46
+ 'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
47
47
  };
48
48
  }
49
49
  function CurrentWeatherMetricToJSON(json) {
@@ -54,7 +54,7 @@ function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'metric': (0, DailyForecastMetric_1.DailyForecastMetricFromJSON)(json['metric']),
55
55
  'condition': json['condition'],
56
56
  'conditionCode': (0, WeatherConditionCode_1.WeatherConditionCodeFromJSON)(json['condition_code']),
57
- 'precipitationProbability': json['precipitation_probability'] == null ? undefined : json['precipitation_probability'],
57
+ 'precipitationProbability': json['precipitation_probability'] === undefined ? undefined : json['precipitation_probability'] === null ? null : json['precipitation_probability'],
58
58
  'sunrise': (new Date(json['sunrise'])),
59
59
  'sunset': (new Date(json['sunset'])),
60
60
  };
@@ -38,10 +38,10 @@ function DailyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'temperatureHigh': json['temperature_high'],
40
40
  'temperatureLow': json['temperature_low'],
41
- 'snowfallTotal': json['snowfall_total'] == null ? undefined : json['snowfall_total'],
42
- 'precipitationTotal': json['precipitation_total'] == null ? undefined : json['precipitation_total'],
43
- 'windSpeedMax': json['wind_speed_max'] == null ? undefined : json['wind_speed_max'],
44
- 'windGustMax': json['wind_gust_max'] == null ? undefined : json['wind_gust_max'],
41
+ 'snowfallTotal': json['snowfall_total'] === undefined ? undefined : json['snowfall_total'] === null ? null : json['snowfall_total'],
42
+ 'precipitationTotal': json['precipitation_total'] === undefined ? undefined : json['precipitation_total'] === null ? null : json['precipitation_total'],
43
+ 'windSpeedMax': json['wind_speed_max'] === undefined ? undefined : json['wind_speed_max'] === null ? null : json['wind_speed_max'],
44
+ 'windGustMax': json['wind_gust_max'] === undefined ? undefined : json['wind_gust_max'] === null ? null : json['wind_gust_max'],
45
45
  };
46
46
  }
47
47
  function DailyForecastImperialToJSON(json) {
@@ -38,10 +38,10 @@ function DailyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'temperatureHigh': json['temperature_high'],
40
40
  'temperatureLow': json['temperature_low'],
41
- 'snowfallTotal': json['snowfall_total'] == null ? undefined : json['snowfall_total'],
42
- 'precipitationTotal': json['precipitation_total'] == null ? undefined : json['precipitation_total'],
43
- 'windSpeedMax': json['wind_speed_max'] == null ? undefined : json['wind_speed_max'],
44
- 'windGustMax': json['wind_gust_max'] == null ? undefined : json['wind_gust_max'],
41
+ 'snowfallTotal': json['snowfall_total'] === undefined ? undefined : json['snowfall_total'] === null ? null : json['snowfall_total'],
42
+ 'precipitationTotal': json['precipitation_total'] === undefined ? undefined : json['precipitation_total'] === null ? null : json['precipitation_total'],
43
+ 'windSpeedMax': json['wind_speed_max'] === undefined ? undefined : json['wind_speed_max'] === null ? null : json['wind_speed_max'],
44
+ 'windGustMax': json['wind_gust_max'] === undefined ? undefined : json['wind_gust_max'] === null ? null : json['wind_gust_max'],
45
45
  };
46
46
  }
47
47
  function DailyForecastMetricToJSON(json) {
@@ -50,7 +50,7 @@ function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'metric': (0, HourlyForecastMetric_1.HourlyForecastMetricFromJSON)(json['metric']),
51
51
  'condition': json['condition'],
52
52
  'conditionCode': (0, WeatherConditionCode_1.WeatherConditionCodeFromJSON)(json['condition_code']),
53
- 'precipitationProbability': json['precipitation_probability'] == null ? undefined : json['precipitation_probability'],
53
+ 'precipitationProbability': json['precipitation_probability'] === undefined ? undefined : json['precipitation_probability'] === null ? null : json['precipitation_probability'],
54
54
  };
55
55
  }
56
56
  function HourlyForecastToJSON(json) {
@@ -37,11 +37,11 @@ function HourlyForecastImperialFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  return {
39
39
  'temperature': json['temperature'],
40
- 'feelsLike': json['feels_like'] == null ? undefined : json['feels_like'],
41
- 'snowfall': json['snowfall'] == null ? undefined : json['snowfall'],
42
- 'precipitation': json['precipitation'] == null ? undefined : json['precipitation'],
40
+ 'feelsLike': json['feels_like'] === undefined ? undefined : json['feels_like'] === null ? null : json['feels_like'],
41
+ 'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
42
+ 'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
43
43
  'windSpeed': json['wind_speed'],
44
- 'windGust': json['wind_gust'] == null ? undefined : json['wind_gust'],
44
+ 'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
45
45
  };
46
46
  }
47
47
  function HourlyForecastImperialToJSON(json) {
@@ -37,11 +37,11 @@ function HourlyForecastMetricFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  return {
39
39
  'temperature': json['temperature'],
40
- 'feelsLike': json['feels_like'] == null ? undefined : json['feels_like'],
41
- 'snowfall': json['snowfall'] == null ? undefined : json['snowfall'],
42
- 'precipitation': json['precipitation'] == null ? undefined : json['precipitation'],
40
+ 'feelsLike': json['feels_like'] === undefined ? undefined : json['feels_like'] === null ? null : json['feels_like'],
41
+ 'snowfall': json['snowfall'] === undefined ? undefined : json['snowfall'] === null ? null : json['snowfall'],
42
+ 'precipitation': json['precipitation'] === undefined ? undefined : json['precipitation'] === null ? null : json['precipitation'],
43
43
  'windSpeed': json['wind_speed'],
44
- 'windGust': json['wind_gust'] == null ? undefined : json['wind_gust'],
44
+ 'windGust': json['wind_gust'] === undefined ? undefined : json['wind_gust'] === null ? null : json['wind_gust'],
45
45
  };
46
46
  }
47
47
  function HourlyForecastMetricToJSON(json) {
@@ -56,23 +56,23 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'uuid': json['uuid'],
57
57
  'name': json['name'],
58
58
  'slug': json['slug'],
59
- 'number': json['number'] == null ? undefined : json['number'],
59
+ 'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
60
60
  'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
61
61
  'highSpeed': json['high_speed'],
62
62
  'bubble': json['bubble'],
63
63
  'heated': json['heated'],
64
- 'travelTime': json['travel_time'] == null ? undefined : json['travel_time'],
65
- 'lengthFt': json['length_ft'] == null ? undefined : json['length_ft'],
66
- 'lengthM': json['length_m'] == null ? undefined : json['length_m'],
67
- 'verticalRiseFt': json['vertical_rise_ft'] == null ? undefined : json['vertical_rise_ft'],
68
- 'verticalRiseM': json['vertical_rise_m'] == null ? undefined : json['vertical_rise_m'],
64
+ 'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
65
+ 'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
66
+ 'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
67
+ 'verticalRiseFt': json['vertical_rise_ft'] === undefined ? undefined : json['vertical_rise_ft'] === null ? null : json['vertical_rise_ft'],
68
+ 'verticalRiseM': json['vertical_rise_m'] === undefined ? undefined : json['vertical_rise_m'] === null ? null : json['vertical_rise_m'],
69
69
  'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
70
- 'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
71
- 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
72
- 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
73
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
74
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
75
- 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
70
+ 'waitTimeMinutes': json['wait_time_minutes'] === undefined ? undefined : json['wait_time_minutes'] === null ? null : json['wait_time_minutes'],
71
+ 'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
72
+ 'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
73
+ 'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
74
+ 'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
75
+ 'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
76
76
  'updatedAt': (new Date(json['updated_at'])),
77
77
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
78
78
  };
@@ -54,8 +54,8 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
54
54
  }
55
55
  return {
56
56
  'status': (0, ResortStatus_1.ResortStatusFromJSON)(json['status']),
57
- 'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
58
- 'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
57
+ 'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
58
+ 'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
59
59
  'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
60
60
  'news': (0, OverviewNews_1.OverviewNewsFromJSON)(json['news']),
61
61
  'runs': (0, OverviewRuns_1.OverviewRunsFromJSON)(json['runs']),
@@ -36,7 +36,7 @@ function OverviewLiftsFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'open': json['open'] == null ? undefined : json['open'],
39
+ 'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
40
40
  'total': json['total'],
41
41
  'updatedAt': (new Date(json['updated_at'])),
42
42
  };
@@ -36,11 +36,11 @@ function OverviewRunsFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'open': json['open'] == null ? undefined : json['open'],
40
- 'groomed': json['groomed'] == null ? undefined : json['groomed'],
39
+ 'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
40
+ 'groomed': json['groomed'] === undefined ? undefined : json['groomed'] === null ? null : json['groomed'],
41
41
  'total': json['total'],
42
- 'openAcres': json['open_acres'] == null ? undefined : json['open_acres'],
43
- 'totalAcres': json['total_acres'] == null ? undefined : json['total_acres'],
42
+ 'openAcres': json['open_acres'] === undefined ? undefined : json['open_acres'] === null ? null : json['open_acres'],
43
+ 'totalAcres': json['total_acres'] === undefined ? undefined : json['total_acres'] === null ? null : json['total_acres'],
44
44
  'updatedAt': (new Date(json['updated_at'])),
45
45
  };
46
46
  }
@@ -36,7 +36,7 @@ function OverviewSummerTrailsFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'open': json['open'] == null ? undefined : json['open'],
39
+ 'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
40
40
  'total': json['total'],
41
41
  'updatedAt': (new Date(json['updated_at'])),
42
42
  };
@@ -36,7 +36,7 @@ function OverviewTerrainParksFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'open': json['open'] == null ? undefined : json['open'],
39
+ 'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
40
40
  'total': json['total'],
41
41
  'updatedAt': (new Date(json['updated_at'])),
42
42
  };
@@ -54,7 +54,7 @@ function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'name': json['name'],
55
55
  'slug': json['slug'],
56
56
  'status': (0, ParkingLotStatus_1.ParkingLotStatusFromJSON)(json['status']),
57
- 'capacity': json['capacity'] == null ? undefined : json['capacity'],
57
+ 'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
58
58
  'shuttle': json['shuttle'],
59
59
  'paid': json['paid'],
60
60
  'reservationRequired': json['reservation_required'],
@@ -52,7 +52,7 @@ function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'timezone': json['timezone'],
53
53
  'region': (0, Region_1.RegionFromJSON)(json['region']),
54
54
  'unitPreference': (0, UnitPreference_1.UnitPreferenceFromJSON)(json['unit_preference']),
55
- 'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
55
+ 'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
56
56
  };
57
57
  }
58
58
  function ResortInfoToJSON(json) {
@@ -58,17 +58,17 @@ function RunFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'uuid': json['uuid'],
59
59
  'name': json['name'],
60
60
  'slug': json['slug'],
61
- 'number': json['number'] == null ? undefined : json['number'],
61
+ 'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
62
62
  'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
63
63
  'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
64
- 'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
64
+ 'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
65
65
  'groomedToday': json['groomed_today'],
66
66
  'snowmaking': json['snowmaking'],
67
67
  'nightSkiing': json['night_skiing'],
68
68
  'conditionNotes': json['condition_notes'],
69
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
70
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
71
- 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
69
+ 'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
70
+ 'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
71
+ 'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
72
72
  'updatedAt': (new Date(json['updated_at'])),
73
73
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
74
74
  };
@@ -45,13 +45,13 @@ function SnowReportFromJSONTyped(json, ignoreDiscriminator) {
45
45
  }
46
46
  return {
47
47
  'uuid': json['uuid'],
48
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
49
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
50
- 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
51
- 'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
52
- 'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
53
- 'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
54
- 'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
48
+ 'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
49
+ 'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
50
+ 'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
51
+ 'baseDepthCm': json['base_depth_cm'] === undefined ? undefined : json['base_depth_cm'] === null ? null : json['base_depth_cm'],
52
+ 'baseDepthIn': json['base_depth_in'] === undefined ? undefined : json['base_depth_in'] === null ? null : json['base_depth_in'],
53
+ 'surfaceCondition': json['surface_condition'] === undefined ? undefined : json['surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
54
+ 'secondarySurfaceCondition': json['secondary_surface_condition'] === undefined ? undefined : json['secondary_surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
55
55
  'conditionNotes': json['condition_notes'],
56
56
  'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
57
57
  'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
@@ -53,14 +53,14 @@ function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'uuid': json['uuid'],
54
54
  'name': json['name'],
55
55
  'slug': json['slug'],
56
- 'number': json['number'] == null ? undefined : json['number'],
56
+ 'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
57
57
  'trailType': (json['trail_type'].map(SummerTrailType_1.SummerTrailTypeFromJSON)),
58
- 'difficulty': json['difficulty'] == null ? undefined : (0, SummerTrailDifficulty_1.SummerTrailDifficultyFromJSON)(json['difficulty']),
58
+ 'difficulty': json['difficulty'] === undefined ? undefined : json['difficulty'] === null ? null : (0, SummerTrailDifficulty_1.SummerTrailDifficultyFromJSON)(json['difficulty']),
59
59
  'status': (0, SummerTrailStatus_1.SummerTrailStatusFromJSON)(json['status']),
60
60
  'conditionNotes': json['condition_notes'],
61
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
62
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
63
- 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
61
+ 'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
62
+ 'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
63
+ 'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
64
64
  'updatedAt': (new Date(json['updated_at'])),
65
65
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
66
66
  };
@@ -52,12 +52,12 @@ function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'uuid': json['uuid'],
53
53
  'name': json['name'],
54
54
  'slug': json['slug'],
55
- 'number': json['number'] == null ? undefined : json['number'],
55
+ 'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
56
56
  'status': (0, TerrainParkStatus_1.TerrainParkStatusFromJSON)(json['status']),
57
57
  'conditionNotes': json['condition_notes'],
58
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
59
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
60
- 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
58
+ 'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
59
+ 'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
60
+ 'areaDisplayOrder': json['area_display_order'] === undefined ? undefined : json['area_display_order'] === null ? null : json['area_display_order'],
61
61
  'features': (json['features'].map(TerrainParkFeature_1.TerrainParkFeatureFromJSON)),
62
62
  'updatedAt': (new Date(json['updated_at'])),
63
63
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
@@ -49,9 +49,9 @@ function TerrainParkFeatureFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'uuid': json['uuid'],
50
50
  'name': json['name'],
51
51
  'slug': json['slug'],
52
- 'number': json['number'] == null ? undefined : json['number'],
52
+ 'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
53
53
  'featureType': (0, FeatureType_1.FeatureTypeFromJSON)(json['feature_type']),
54
- 'size': json['size'] == null ? undefined : (0, FeatureSize_1.FeatureSizeFromJSON)(json['size']),
54
+ 'size': json['size'] === undefined ? undefined : json['size'] === null ? null : (0, FeatureSize_1.FeatureSizeFromJSON)(json['size']),
55
55
  'status': (0, TerrainParkFeatureStatus_1.TerrainParkFeatureStatusFromJSON)(json['status']),
56
56
  'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
57
57
  };
@@ -51,8 +51,8 @@ function TrailMapElementOneOfFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'type': json['type'],
52
52
  'uuid': json['uuid'],
53
53
  'points': json['points'],
54
- 'tension': json['tension'] == null ? undefined : json['tension'],
55
- 'lift': json['lift'] == null ? undefined : (0, Lift_1.LiftFromJSON)(json['lift']),
54
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
55
+ 'lift': json['lift'] === undefined ? undefined : json['lift'] === null ? null : (0, Lift_1.LiftFromJSON)(json['lift']),
56
56
  };
57
57
  }
58
58
  function TrailMapElementOneOfToJSON(json) {
@@ -51,8 +51,8 @@ function TrailMapElementOneOf1FromJSONTyped(json, ignoreDiscriminator) {
51
51
  'type': json['type'],
52
52
  'uuid': json['uuid'],
53
53
  'points': json['points'],
54
- 'tension': json['tension'] == null ? undefined : json['tension'],
55
- 'run': json['run'] == null ? undefined : (0, Run_1.RunFromJSON)(json['run']),
54
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
55
+ 'run': json['run'] === undefined ? undefined : json['run'] === null ? null : (0, Run_1.RunFromJSON)(json['run']),
56
56
  };
57
57
  }
58
58
  function TrailMapElementOneOf1ToJSON(json) {
@@ -52,9 +52,9 @@ function TrailMapElementOneOf2FromJSONTyped(json, ignoreDiscriminator) {
52
52
  'type': json['type'],
53
53
  'uuid': json['uuid'],
54
54
  'points': json['points'],
55
- 'tension': json['tension'] == null ? undefined : json['tension'],
56
- 'labelOffset': json['label_offset'] == null ? undefined : (0, LabelOffset_1.LabelOffsetFromJSON)(json['label_offset']),
57
- 'terrainPark': json['terrain_park'] == null ? undefined : (0, TerrainPark_1.TerrainParkFromJSON)(json['terrain_park']),
55
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
56
+ 'labelOffset': json['label_offset'] === undefined ? undefined : json['label_offset'] === null ? null : (0, LabelOffset_1.LabelOffsetFromJSON)(json['label_offset']),
57
+ 'terrainPark': json['terrain_park'] === undefined ? undefined : json['terrain_park'] === null ? null : (0, TerrainPark_1.TerrainParkFromJSON)(json['terrain_park']),
58
58
  };
59
59
  }
60
60
  function TrailMapElementOneOf2ToJSON(json) {
@@ -51,8 +51,8 @@ function TrailMapElementOneOf3FromJSONTyped(json, ignoreDiscriminator) {
51
51
  'type': json['type'],
52
52
  'uuid': json['uuid'],
53
53
  'points': json['points'],
54
- 'tension': json['tension'] == null ? undefined : json['tension'],
55
- 'summerTrail': json['summer_trail'] == null ? undefined : (0, SummerTrail_1.SummerTrailFromJSON)(json['summer_trail']),
54
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
55
+ 'summerTrail': json['summer_trail'] === undefined ? undefined : json['summer_trail'] === null ? null : (0, SummerTrail_1.SummerTrailFromJSON)(json['summer_trail']),
56
56
  };
57
57
  }
58
58
  function TrailMapElementOneOf3ToJSON(json) {
@@ -55,10 +55,10 @@ function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
55
55
  'uuid': json['uuid'],
56
56
  'x': json['x'],
57
57
  'y': json['y'],
58
- 'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
- 'color': json['color'] == null ? undefined : json['color'],
60
- 'amenity': json['amenity'] == null ? undefined : (0, Amenity_1.AmenityFromJSON)(json['amenity']),
61
- 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
58
+ 'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
+ 'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
60
+ 'amenity': json['amenity'] === undefined ? undefined : json['amenity'] === null ? null : (0, Amenity_1.AmenityFromJSON)(json['amenity']),
61
+ 'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
62
62
  };
63
63
  }
64
64
  function TrailMapElementOneOf4ToJSON(json) {
@@ -55,10 +55,10 @@ function TrailMapElementOneOf5FromJSONTyped(json, ignoreDiscriminator) {
55
55
  'uuid': json['uuid'],
56
56
  'x': json['x'],
57
57
  'y': json['y'],
58
- 'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
- 'color': json['color'] == null ? undefined : json['color'],
60
- 'parkingLot': json['parking_lot'] == null ? undefined : (0, ParkingLot_1.ParkingLotFromJSON)(json['parking_lot']),
61
- 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
58
+ 'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
+ 'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
60
+ 'parkingLot': json['parking_lot'] === undefined ? undefined : json['parking_lot'] === null ? null : (0, ParkingLot_1.ParkingLotFromJSON)(json['parking_lot']),
61
+ 'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
62
62
  };
63
63
  }
64
64
  function TrailMapElementOneOf5ToJSON(json) {
@@ -55,10 +55,10 @@ function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
55
55
  'uuid': json['uuid'],
56
56
  'x': json['x'],
57
57
  'y': json['y'],
58
- 'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
- 'color': json['color'] == null ? undefined : json['color'],
60
- 'webcam': json['webcam'] == null ? undefined : (0, Webcam_1.WebcamFromJSON)(json['webcam']),
61
- 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
58
+ 'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
+ 'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
60
+ 'webcam': json['webcam'] === undefined ? undefined : json['webcam'] === null ? null : (0, Webcam_1.WebcamFromJSON)(json['webcam']),
61
+ 'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
62
62
  };
63
63
  }
64
64
  function TrailMapElementOneOf6ToJSON(json) {
@@ -56,11 +56,11 @@ function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
56
56
  'uuid': json['uuid'],
57
57
  'x': json['x'],
58
58
  'y': json['y'],
59
- 'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
60
- 'color': json['color'] == null ? undefined : json['color'],
59
+ 'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
60
+ 'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
61
61
  'label': json['label'],
62
- 'searchable': json['searchable'] == null ? undefined : json['searchable'],
63
- 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
62
+ 'searchable': json['searchable'] === undefined ? undefined : json['searchable'] === null ? null : json['searchable'],
63
+ 'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
64
64
  };
65
65
  }
66
66
  function TrailMapElementOneOf7ToJSON(json) {
@@ -54,7 +54,7 @@ function TrailMapSummaryFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'displayOrder': json['display_order'],
55
55
  'version': json['version'],
56
56
  'hostedUrl': json['hosted_url'],
57
- 'geoBounds': json['geo_bounds'] == null ? undefined : (0, GeoBounds_1.GeoBoundsFromJSON)(json['geo_bounds']),
57
+ 'geoBounds': json['geo_bounds'] === undefined ? undefined : json['geo_bounds'] === null ? null : (0, GeoBounds_1.GeoBoundsFromJSON)(json['geo_bounds']),
58
58
  'entityUuids': json['entity_uuids'],
59
59
  };
60
60
  }