@mtnmanager/sdk 0.0.1 → 0.0.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.
Files changed (98) hide show
  1. package/README.md +19 -5
  2. package/dist/esm/models/CurrentWeather.d.ts +85 -0
  3. package/dist/esm/models/CurrentWeather.js +77 -0
  4. package/dist/esm/models/DailyForecast.d.ts +76 -0
  5. package/dist/esm/models/DailyForecast.js +73 -0
  6. package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
  7. package/dist/esm/models/DailyForecastImperial.js +63 -0
  8. package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
  9. package/dist/esm/models/DailyForecastMetric.js +63 -0
  10. package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  11. package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
  12. package/dist/esm/models/HourlyForecast.d.ts +70 -0
  13. package/dist/esm/models/HourlyForecast.js +69 -0
  14. package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
  15. package/dist/esm/models/HourlyForecastImperial.js +63 -0
  16. package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
  17. package/dist/esm/models/HourlyForecastMetric.js +63 -0
  18. package/dist/esm/models/ImperialUnits.d.ts +68 -0
  19. package/dist/esm/models/ImperialUnits.js +65 -0
  20. package/dist/esm/models/MetricUnits.d.ts +68 -0
  21. package/dist/esm/models/MetricUnits.js +65 -0
  22. package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
  23. package/dist/esm/models/OperatingHoursResponse.js +7 -11
  24. package/dist/esm/models/PublicResortResponse.d.ts +7 -0
  25. package/dist/esm/models/PublicResortResponse.js +3 -0
  26. package/dist/esm/models/PublicResortStatus.d.ts +43 -1
  27. package/dist/esm/models/PublicResortStatus.js +24 -0
  28. package/dist/esm/models/PublicRun.d.ts +6 -0
  29. package/dist/esm/models/PublicRun.js +2 -0
  30. package/dist/esm/models/PublicSnowReport.d.ts +12 -0
  31. package/dist/esm/models/PublicSnowReport.js +4 -0
  32. package/dist/esm/models/RecurrencePattern.d.ts +24 -0
  33. package/dist/esm/models/RecurrencePattern.js +58 -0
  34. package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
  35. package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
  36. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
  37. package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
  38. package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
  39. package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
  40. package/dist/esm/models/Schedule.d.ts +81 -0
  41. package/dist/esm/models/Schedule.js +76 -0
  42. package/dist/esm/models/SurfaceCondition.d.ts +16 -7
  43. package/dist/esm/models/SurfaceCondition.js +16 -7
  44. package/dist/esm/models/WeatherData.d.ts +59 -0
  45. package/dist/esm/models/WeatherData.js +62 -0
  46. package/dist/esm/models/index.d.ts +16 -2
  47. package/dist/esm/models/index.js +16 -2
  48. package/dist/models/CurrentWeather.d.ts +85 -0
  49. package/dist/models/CurrentWeather.js +84 -0
  50. package/dist/models/DailyForecast.d.ts +76 -0
  51. package/dist/models/DailyForecast.js +80 -0
  52. package/dist/models/DailyForecastImperial.d.ts +62 -0
  53. package/dist/models/DailyForecastImperial.js +70 -0
  54. package/dist/models/DailyForecastMetric.d.ts +62 -0
  55. package/dist/models/DailyForecastMetric.js +70 -0
  56. package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  57. package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
  58. package/dist/models/HourlyForecast.d.ts +70 -0
  59. package/dist/models/HourlyForecast.js +76 -0
  60. package/dist/models/HourlyForecastImperial.d.ts +62 -0
  61. package/dist/models/HourlyForecastImperial.js +70 -0
  62. package/dist/models/HourlyForecastMetric.d.ts +62 -0
  63. package/dist/models/HourlyForecastMetric.js +70 -0
  64. package/dist/models/ImperialUnits.d.ts +68 -0
  65. package/dist/models/ImperialUnits.js +72 -0
  66. package/dist/models/MetricUnits.d.ts +68 -0
  67. package/dist/models/MetricUnits.js +72 -0
  68. package/dist/models/OperatingHoursResponse.d.ts +6 -12
  69. package/dist/models/OperatingHoursResponse.js +7 -11
  70. package/dist/models/PublicResortResponse.d.ts +7 -0
  71. package/dist/models/PublicResortResponse.js +3 -0
  72. package/dist/models/PublicResortStatus.d.ts +43 -1
  73. package/dist/models/PublicResortStatus.js +24 -0
  74. package/dist/models/PublicRun.d.ts +6 -0
  75. package/dist/models/PublicRun.js +2 -0
  76. package/dist/models/PublicSnowReport.d.ts +12 -0
  77. package/dist/models/PublicSnowReport.js +4 -0
  78. package/dist/models/RecurrencePattern.d.ts +24 -0
  79. package/dist/models/RecurrencePattern.js +64 -0
  80. package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
  81. package/dist/models/RecurrencePatternOneOf.js +57 -0
  82. package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
  83. package/dist/models/RecurrencePatternOneOf1.js +57 -0
  84. package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
  85. package/dist/models/RecurrencePatternOneOf2.js +61 -0
  86. package/dist/models/Schedule.d.ts +81 -0
  87. package/dist/models/Schedule.js +83 -0
  88. package/dist/models/SurfaceCondition.d.ts +16 -7
  89. package/dist/models/SurfaceCondition.js +16 -7
  90. package/dist/models/WeatherData.d.ts +59 -0
  91. package/dist/models/WeatherData.js +69 -0
  92. package/dist/models/index.d.ts +16 -2
  93. package/dist/models/index.js +16 -2
  94. package/package.json +7 -10
  95. package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
  96. package/dist/esm/models/RegularHoursDescription.js +0 -55
  97. package/dist/models/RegularHoursDescription.d.ts +0 -50
  98. package/dist/models/RegularHoursDescription.js +0 -62
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the MetricUnits interface.
16
+ */
17
+ export function instanceOfMetricUnits(value) {
18
+ if (!('feelsLike' in value) || value['feelsLike'] === undefined)
19
+ return false;
20
+ if (!('precipitation' in value) || value['precipitation'] === undefined)
21
+ return false;
22
+ if (!('snowfall' in value) || value['snowfall'] === undefined)
23
+ return false;
24
+ if (!('temperature' in value) || value['temperature'] === undefined)
25
+ return false;
26
+ if (!('windGust' in value) || value['windGust'] === undefined)
27
+ return false;
28
+ if (!('windSpeed' in value) || value['windSpeed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function MetricUnitsFromJSON(json) {
33
+ return MetricUnitsFromJSONTyped(json, false);
34
+ }
35
+ export function MetricUnitsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feelsLike': json['feels_like'],
41
+ 'precipitation': json['precipitation'],
42
+ 'snowfall': json['snowfall'],
43
+ 'temperature': json['temperature'],
44
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
45
+ 'windGust': json['wind_gust'],
46
+ 'windSpeed': json['wind_speed'],
47
+ };
48
+ }
49
+ export function MetricUnitsToJSON(json) {
50
+ return MetricUnitsToJSONTyped(json, false);
51
+ }
52
+ export function MetricUnitsToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'feels_like': value['feelsLike'],
58
+ 'precipitation': value['precipitation'],
59
+ 'snowfall': value['snowfall'],
60
+ 'temperature': value['temperature'],
61
+ 'visibility': value['visibility'],
62
+ 'wind_gust': value['windGust'],
63
+ 'wind_speed': value['windSpeed'],
64
+ };
65
+ }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { HoursInfo } from './HoursInfo';
13
- import type { RegularHoursDescription } from './RegularHoursDescription';
12
+ import type { DayHours } from './DayHours';
13
+ import type { Schedule } from './Schedule';
14
14
  /**
15
15
  * Calculated operating hours response
16
16
  * @export
@@ -19,22 +19,16 @@ import type { RegularHoursDescription } from './RegularHoursDescription';
19
19
  export interface OperatingHoursResponse {
20
20
  /**
21
21
  *
22
- * @type {Array<HoursInfo>}
22
+ * @type {Array<DayHours>}
23
23
  * @memberof OperatingHoursResponse
24
24
  */
25
- openDays: Array<HoursInfo>;
25
+ openDays: Array<DayHours>;
26
26
  /**
27
27
  *
28
- * @type {Array<RegularHoursDescription>}
28
+ * @type {Array<Schedule>}
29
29
  * @memberof OperatingHoursResponse
30
30
  */
31
- regularHours: Array<RegularHoursDescription>;
32
- /**
33
- *
34
- * @type {HoursInfo}
35
- * @memberof OperatingHoursResponse
36
- */
37
- today: HoursInfo;
31
+ schedules: Array<Schedule>;
38
32
  }
39
33
  /**
40
34
  * Check if a given object implements the OperatingHoursResponse interface.
@@ -11,17 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { HoursInfoFromJSON, HoursInfoToJSON, } from './HoursInfo';
15
- import { RegularHoursDescriptionFromJSON, RegularHoursDescriptionToJSON, } from './RegularHoursDescription';
14
+ import { DayHoursFromJSON, DayHoursToJSON, } from './DayHours';
15
+ import { ScheduleFromJSON, ScheduleToJSON, } from './Schedule';
16
16
  /**
17
17
  * Check if a given object implements the OperatingHoursResponse interface.
18
18
  */
19
19
  export function instanceOfOperatingHoursResponse(value) {
20
20
  if (!('openDays' in value) || value['openDays'] === undefined)
21
21
  return false;
22
- if (!('regularHours' in value) || value['regularHours'] === undefined)
23
- return false;
24
- if (!('today' in value) || value['today'] === undefined)
22
+ if (!('schedules' in value) || value['schedules'] === undefined)
25
23
  return false;
26
24
  return true;
27
25
  }
@@ -33,9 +31,8 @@ export function OperatingHoursResponseFromJSONTyped(json, ignoreDiscriminator) {
33
31
  return json;
34
32
  }
35
33
  return {
36
- 'openDays': (json['open_days'].map(HoursInfoFromJSON)),
37
- 'regularHours': (json['regular_hours'].map(RegularHoursDescriptionFromJSON)),
38
- 'today': HoursInfoFromJSON(json['today']),
34
+ 'openDays': (json['open_days'].map(DayHoursFromJSON)),
35
+ 'schedules': (json['schedules'].map(ScheduleFromJSON)),
39
36
  };
40
37
  }
41
38
  export function OperatingHoursResponseToJSON(json) {
@@ -46,8 +43,7 @@ export function OperatingHoursResponseToJSONTyped(value, ignoreDiscriminator = f
46
43
  return value;
47
44
  }
48
45
  return {
49
- 'open_days': (value['openDays'].map(HoursInfoToJSON)),
50
- 'regular_hours': (value['regularHours'].map(RegularHoursDescriptionToJSON)),
51
- 'today': HoursInfoToJSON(value['today']),
46
+ 'open_days': (value['openDays'].map(DayHoursToJSON)),
47
+ 'schedules': (value['schedules'].map(ScheduleToJSON)),
52
48
  };
53
49
  }
@@ -15,6 +15,7 @@ import type { PublicLift } from './PublicLift';
15
15
  import type { PublicResortStatus } from './PublicResortStatus';
16
16
  import type { PublicSnowReport } from './PublicSnowReport';
17
17
  import type { PublicResortInfo } from './PublicResortInfo';
18
+ import type { WeatherData } from './WeatherData';
18
19
  /**
19
20
  * Comprehensive resort response (all-in-one)
20
21
  * @export
@@ -57,6 +58,12 @@ export interface PublicResortResponse {
57
58
  * @memberof PublicResortResponse
58
59
  */
59
60
  status?: PublicResortStatus | null;
61
+ /**
62
+ *
63
+ * @type {WeatherData}
64
+ * @memberof PublicResortResponse
65
+ */
66
+ weather?: WeatherData | null;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the PublicResortResponse interface.
@@ -17,6 +17,7 @@ import { PublicLiftFromJSON, PublicLiftToJSON, } from './PublicLift';
17
17
  import { PublicResortStatusFromJSON, PublicResortStatusToJSON, } from './PublicResortStatus';
18
18
  import { PublicSnowReportFromJSON, PublicSnowReportToJSON, } from './PublicSnowReport';
19
19
  import { PublicResortInfoFromJSON, PublicResortInfoToJSON, } from './PublicResortInfo';
20
+ import { WeatherDataFromJSON, WeatherDataToJSON, } from './WeatherData';
20
21
  /**
21
22
  * Check if a given object implements the PublicResortResponse interface.
22
23
  */
@@ -39,6 +40,7 @@ export function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRunFromJSON)),
40
41
  'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReportFromJSON)),
41
42
  'status': json['status'] == null ? undefined : PublicResortStatusFromJSON(json['status']),
43
+ 'weather': json['weather'] == null ? undefined : WeatherDataFromJSON(json['weather']),
42
44
  };
43
45
  }
44
46
  export function PublicResortResponseToJSON(json) {
@@ -55,5 +57,6 @@ export function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = fal
55
57
  'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRunToJSON)),
56
58
  'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReportToJSON)),
57
59
  'status': PublicResortStatusToJSON(value['status']),
60
+ 'weather': WeatherDataToJSON(value['weather']),
58
61
  };
59
62
  }
@@ -11,23 +11,65 @@
11
11
  */
12
12
  import type { ResortStatusType } from './ResortStatusType';
13
13
  /**
14
- * Resort status with optional metadata
14
+ * Resort status with optional metadata and today's scheduled hours
15
15
  * @export
16
16
  * @interface PublicResortStatus
17
17
  */
18
18
  export interface PublicResortStatus {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PublicResortStatus
23
+ */
24
+ groomedRuns: number;
19
25
  /**
20
26
  *
21
27
  * @type {string}
22
28
  * @memberof PublicResortStatus
23
29
  */
24
30
  notes?: string | null;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PublicResortStatus
35
+ */
36
+ openLifts: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PublicResortStatus
41
+ */
42
+ openRuns: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PublicResortStatus
47
+ */
48
+ scheduledClosesAt?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PublicResortStatus
53
+ */
54
+ scheduledOpensAt?: string | null;
25
55
  /**
26
56
  *
27
57
  * @type {ResortStatusType}
28
58
  * @memberof PublicResortStatus
29
59
  */
30
60
  status: ResortStatusType;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof PublicResortStatus
65
+ */
66
+ totalLifts: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof PublicResortStatus
71
+ */
72
+ totalRuns: number;
31
73
  /**
32
74
  *
33
75
  * @type {Date}
@@ -16,8 +16,18 @@ import { ResortStatusTypeFromJSON, ResortStatusTypeToJSON, } from './ResortStatu
16
16
  * Check if a given object implements the PublicResortStatus interface.
17
17
  */
18
18
  export function instanceOfPublicResortStatus(value) {
19
+ if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
20
+ return false;
21
+ if (!('openLifts' in value) || value['openLifts'] === undefined)
22
+ return false;
23
+ if (!('openRuns' in value) || value['openRuns'] === undefined)
24
+ return false;
19
25
  if (!('status' in value) || value['status'] === undefined)
20
26
  return false;
27
+ if (!('totalLifts' in value) || value['totalLifts'] === undefined)
28
+ return false;
29
+ if (!('totalRuns' in value) || value['totalRuns'] === undefined)
30
+ return false;
21
31
  return true;
22
32
  }
23
33
  export function PublicResortStatusFromJSON(json) {
@@ -28,8 +38,15 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
28
38
  return json;
29
39
  }
30
40
  return {
41
+ 'groomedRuns': json['groomed_runs'],
31
42
  'notes': json['notes'] == null ? undefined : json['notes'],
43
+ 'openLifts': json['open_lifts'],
44
+ 'openRuns': json['open_runs'],
45
+ 'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
46
+ 'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
32
47
  'status': ResortStatusTypeFromJSON(json['status']),
48
+ 'totalLifts': json['total_lifts'],
49
+ 'totalRuns': json['total_runs'],
33
50
  'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
34
51
  };
35
52
  }
@@ -41,8 +58,15 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
41
58
  return value;
42
59
  }
43
60
  return {
61
+ 'groomed_runs': value['groomedRuns'],
44
62
  'notes': value['notes'],
63
+ 'open_lifts': value['openLifts'],
64
+ 'open_runs': value['openRuns'],
65
+ 'scheduled_closes_at': value['scheduledClosesAt'],
66
+ 'scheduled_opens_at': value['scheduledOpensAt'],
45
67
  'status': ResortStatusTypeToJSON(value['status']),
68
+ 'total_lifts': value['totalLifts'],
69
+ 'total_runs': value['totalRuns'],
46
70
  'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
47
71
  };
48
72
  }
@@ -59,6 +59,12 @@ export interface PublicRun {
59
59
  * @memberof PublicRun
60
60
  */
61
61
  name: string;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof PublicRun
66
+ */
67
+ number?: number | null;
62
68
  /**
63
69
  *
64
70
  * @type {string}
@@ -46,6 +46,7 @@ export function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'groomedToday': json['groomed_today'],
47
47
  'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
48
48
  'name': json['name'],
49
+ 'number': json['number'] == null ? undefined : json['number'],
49
50
  'slug': json['slug'],
50
51
  'status': RunStatusFromJSON(json['status']),
51
52
  'uuid': json['uuid'],
@@ -66,6 +67,7 @@ export function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
66
67
  'groomed_today': value['groomedToday'],
67
68
  'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
68
69
  'name': value['name'],
70
+ 'number': value['number'],
69
71
  'slug': value['slug'],
70
72
  'status': RunStatusToJSON(value['status']),
71
73
  'uuid': value['uuid'],
@@ -41,12 +41,24 @@ export interface PublicSnowReport {
41
41
  * @memberof PublicSnowReport
42
42
  */
43
43
  baseDepthIn?: number | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PublicSnowReport
48
+ */
49
+ conditionNotes?: string | null;
44
50
  /**
45
51
  *
46
52
  * @type {Date}
47
53
  * @memberof PublicSnowReport
48
54
  */
49
55
  reportedAt: Date;
56
+ /**
57
+ *
58
+ * @type {SurfaceCondition}
59
+ * @memberof PublicSnowReport
60
+ */
61
+ secondarySurfaceCondition?: SurfaceCondition | null;
50
62
  /**
51
63
  *
52
64
  * @type {SnowMetrics}
@@ -39,7 +39,9 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
40
40
  'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
41
41
  'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
42
+ 'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
42
43
  'reportedAt': (new Date(json['reported_at'])),
44
+ 'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
43
45
  'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
44
46
  'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
45
47
  'surfaceCondition': json['surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['surface_condition']),
@@ -58,7 +60,9 @@ export function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false)
58
60
  'area_name': value['areaName'],
59
61
  'base_depth_cm': value['baseDepthCm'],
60
62
  'base_depth_in': value['baseDepthIn'],
63
+ 'condition_notes': value['conditionNotes'],
61
64
  'reported_at': value['reportedAt'].toISOString(),
65
+ 'secondary_surface_condition': SurfaceConditionToJSON(value['secondarySurfaceCondition']),
62
66
  'snowfall_cm': SnowMetricsToJSON(value['snowfallCm']),
63
67
  'snowfall_in': SnowMetricsToJSON(value['snowfallIn']),
64
68
  'surface_condition': SurfaceConditionToJSON(value['surfaceCondition']),
@@ -0,0 +1,24 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RecurrencePatternOneOf } from './RecurrencePatternOneOf';
13
+ import type { RecurrencePatternOneOf1 } from './RecurrencePatternOneOf1';
14
+ import type { RecurrencePatternOneOf2 } from './RecurrencePatternOneOf2';
15
+ /**
16
+ * @type RecurrencePattern
17
+ * Recurrence pattern for operating hours rules
18
+ * @export
19
+ */
20
+ export type RecurrencePattern = RecurrencePatternOneOf | RecurrencePatternOneOf1 | RecurrencePatternOneOf2;
21
+ export declare function RecurrencePatternFromJSON(json: any): RecurrencePattern;
22
+ export declare function RecurrencePatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePattern;
23
+ export declare function RecurrencePatternToJSON(json: any): any;
24
+ export declare function RecurrencePatternToJSONTyped(value?: RecurrencePattern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { instanceOfRecurrencePatternOneOf, RecurrencePatternOneOfFromJSONTyped, RecurrencePatternOneOfToJSON, } from './RecurrencePatternOneOf';
15
+ import { instanceOfRecurrencePatternOneOf1, RecurrencePatternOneOf1FromJSONTyped, RecurrencePatternOneOf1ToJSON, } from './RecurrencePatternOneOf1';
16
+ import { instanceOfRecurrencePatternOneOf2, RecurrencePatternOneOf2FromJSONTyped, RecurrencePatternOneOf2ToJSON, } from './RecurrencePatternOneOf2';
17
+ export function RecurrencePatternFromJSON(json) {
18
+ return RecurrencePatternFromJSONTyped(json, false);
19
+ }
20
+ export function RecurrencePatternFromJSONTyped(json, ignoreDiscriminator) {
21
+ if (json == null) {
22
+ return json;
23
+ }
24
+ if (typeof json !== 'object') {
25
+ return json;
26
+ }
27
+ if (instanceOfRecurrencePatternOneOf(json)) {
28
+ return RecurrencePatternOneOfFromJSONTyped(json, true);
29
+ }
30
+ if (instanceOfRecurrencePatternOneOf1(json)) {
31
+ return RecurrencePatternOneOf1FromJSONTyped(json, true);
32
+ }
33
+ if (instanceOfRecurrencePatternOneOf2(json)) {
34
+ return RecurrencePatternOneOf2FromJSONTyped(json, true);
35
+ }
36
+ return {};
37
+ }
38
+ export function RecurrencePatternToJSON(json) {
39
+ return RecurrencePatternToJSONTyped(json, false);
40
+ }
41
+ export function RecurrencePatternToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ if (typeof value !== 'object') {
46
+ return value;
47
+ }
48
+ if (instanceOfRecurrencePatternOneOf(value)) {
49
+ return RecurrencePatternOneOfToJSON(value);
50
+ }
51
+ if (instanceOfRecurrencePatternOneOf1(value)) {
52
+ return RecurrencePatternOneOf1ToJSON(value);
53
+ }
54
+ if (instanceOfRecurrencePatternOneOf2(value)) {
55
+ return RecurrencePatternOneOf2ToJSON(value);
56
+ }
57
+ return {};
58
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RecurrencePatternOneOf
16
+ */
17
+ export interface RecurrencePatternOneOf {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RecurrencePatternOneOf
22
+ */
23
+ type: RecurrencePatternOneOfTypeEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const RecurrencePatternOneOfTypeEnum: {
29
+ readonly None: "none";
30
+ };
31
+ export type RecurrencePatternOneOfTypeEnum = typeof RecurrencePatternOneOfTypeEnum[keyof typeof RecurrencePatternOneOfTypeEnum];
32
+ /**
33
+ * Check if a given object implements the RecurrencePatternOneOf interface.
34
+ */
35
+ export declare function instanceOfRecurrencePatternOneOf(value: object): value is RecurrencePatternOneOf;
36
+ export declare function RecurrencePatternOneOfFromJSON(json: any): RecurrencePatternOneOf;
37
+ export declare function RecurrencePatternOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf;
38
+ export declare function RecurrencePatternOneOfToJSON(json: any): RecurrencePatternOneOf;
39
+ export declare function RecurrencePatternOneOfToJSONTyped(value?: RecurrencePatternOneOf | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const RecurrencePatternOneOfTypeEnum = {
18
+ None: 'none'
19
+ };
20
+ /**
21
+ * Check if a given object implements the RecurrencePatternOneOf interface.
22
+ */
23
+ export function instanceOfRecurrencePatternOneOf(value) {
24
+ if (!('type' in value) || value['type'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function RecurrencePatternOneOfFromJSON(json) {
29
+ return RecurrencePatternOneOfFromJSONTyped(json, false);
30
+ }
31
+ export function RecurrencePatternOneOfFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': json['type'],
37
+ };
38
+ }
39
+ export function RecurrencePatternOneOfToJSON(json) {
40
+ return RecurrencePatternOneOfToJSONTyped(json, false);
41
+ }
42
+ export function RecurrencePatternOneOfToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'type': value['type'],
48
+ };
49
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RecurrencePatternOneOf1
16
+ */
17
+ export interface RecurrencePatternOneOf1 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RecurrencePatternOneOf1
22
+ */
23
+ type: RecurrencePatternOneOf1TypeEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const RecurrencePatternOneOf1TypeEnum: {
29
+ readonly Daily: "daily";
30
+ };
31
+ export type RecurrencePatternOneOf1TypeEnum = typeof RecurrencePatternOneOf1TypeEnum[keyof typeof RecurrencePatternOneOf1TypeEnum];
32
+ /**
33
+ * Check if a given object implements the RecurrencePatternOneOf1 interface.
34
+ */
35
+ export declare function instanceOfRecurrencePatternOneOf1(value: object): value is RecurrencePatternOneOf1;
36
+ export declare function RecurrencePatternOneOf1FromJSON(json: any): RecurrencePatternOneOf1;
37
+ export declare function RecurrencePatternOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf1;
38
+ export declare function RecurrencePatternOneOf1ToJSON(json: any): RecurrencePatternOneOf1;
39
+ export declare function RecurrencePatternOneOf1ToJSONTyped(value?: RecurrencePatternOneOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const RecurrencePatternOneOf1TypeEnum = {
18
+ Daily: 'daily'
19
+ };
20
+ /**
21
+ * Check if a given object implements the RecurrencePatternOneOf1 interface.
22
+ */
23
+ export function instanceOfRecurrencePatternOneOf1(value) {
24
+ if (!('type' in value) || value['type'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function RecurrencePatternOneOf1FromJSON(json) {
29
+ return RecurrencePatternOneOf1FromJSONTyped(json, false);
30
+ }
31
+ export function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': json['type'],
37
+ };
38
+ }
39
+ export function RecurrencePatternOneOf1ToJSON(json) {
40
+ return RecurrencePatternOneOf1ToJSONTyped(json, false);
41
+ }
42
+ export function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'type': value['type'],
48
+ };
49
+ }