@mtnmanager/sdk 0.0.4 → 0.0.7

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 (156) hide show
  1. package/README.md +17 -15
  2. package/dist/apis/ReportApi.d.ts +146 -0
  3. package/dist/apis/{PublicApi.js → ReportApi.js} +35 -52
  4. package/dist/apis/index.d.ts +1 -1
  5. package/dist/apis/index.js +1 -1
  6. package/dist/esm/apis/ReportApi.d.ts +146 -0
  7. package/dist/esm/apis/{PublicApi.js → ReportApi.js} +34 -51
  8. package/dist/esm/apis/index.d.ts +1 -1
  9. package/dist/esm/apis/index.js +1 -1
  10. package/dist/esm/models/CurrentWeather.d.ts +6 -6
  11. package/dist/esm/models/CurrentWeather.js +3 -3
  12. package/dist/esm/models/DailyForecast.d.ts +5 -5
  13. package/dist/esm/models/DailyForecast.js +5 -5
  14. package/dist/esm/models/DailyForecastImperial.d.ts +1 -1
  15. package/dist/esm/models/DailyForecastImperial.js +1 -1
  16. package/dist/esm/models/DailyForecastMetric.d.ts +1 -1
  17. package/dist/esm/models/DailyForecastMetric.js +1 -1
  18. package/dist/esm/models/DayHours.d.ts +1 -1
  19. package/dist/esm/models/DayHours.js +1 -1
  20. package/dist/esm/models/HourlyForecast.d.ts +3 -3
  21. package/dist/esm/models/HourlyForecast.js +3 -3
  22. package/dist/esm/models/HourlyForecastImperial.d.ts +1 -1
  23. package/dist/esm/models/HourlyForecastImperial.js +1 -1
  24. package/dist/esm/models/HourlyForecastMetric.d.ts +1 -1
  25. package/dist/esm/models/HourlyForecastMetric.js +1 -1
  26. package/dist/esm/models/ImperialUnits.d.ts +1 -1
  27. package/dist/esm/models/ImperialUnits.js +1 -1
  28. package/dist/esm/models/LiftStatus.d.ts +1 -1
  29. package/dist/esm/models/LiftStatus.js +1 -1
  30. package/dist/esm/models/LiftType.d.ts +1 -1
  31. package/dist/esm/models/LiftType.js +1 -1
  32. package/dist/esm/models/MetricUnits.d.ts +1 -1
  33. package/dist/esm/models/MetricUnits.js +1 -1
  34. package/dist/esm/models/OperatingHoursResponse.d.ts +1 -1
  35. package/dist/esm/models/OperatingHoursResponse.js +1 -1
  36. package/dist/esm/models/PathSlug.d.ts +32 -0
  37. package/dist/esm/models/PathSlug.js +43 -0
  38. package/dist/esm/models/PublicLift.d.ts +1 -1
  39. package/dist/esm/models/PublicLift.js +1 -1
  40. package/dist/esm/models/PublicResortInfo.d.ts +1 -1
  41. package/dist/esm/models/PublicResortInfo.js +1 -1
  42. package/dist/esm/models/PublicResortResponse.d.ts +4 -4
  43. package/dist/esm/models/PublicResortResponse.js +13 -7
  44. package/dist/esm/models/PublicResortStatus.d.ts +11 -4
  45. package/dist/esm/models/PublicResortStatus.js +11 -4
  46. package/dist/esm/models/PublicRun.d.ts +4 -4
  47. package/dist/esm/models/PublicRun.js +6 -4
  48. package/dist/esm/models/PublicSnowReport.d.ts +4 -4
  49. package/dist/esm/models/PublicSnowReport.js +6 -4
  50. package/dist/esm/models/PublicSnowResponse.d.ts +1 -1
  51. package/dist/esm/models/PublicSnowResponse.js +1 -1
  52. package/dist/esm/models/RecurrencePattern.d.ts +1 -1
  53. package/dist/esm/models/RecurrencePattern.js +1 -1
  54. package/dist/esm/models/RecurrencePatternOneOf.d.ts +1 -1
  55. package/dist/esm/models/RecurrencePatternOneOf.js +1 -1
  56. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +1 -1
  57. package/dist/esm/models/RecurrencePatternOneOf1.js +1 -1
  58. package/dist/esm/models/RecurrencePatternOneOf2.d.ts +5 -5
  59. package/dist/esm/models/RecurrencePatternOneOf2.js +5 -5
  60. package/dist/esm/models/ResortStatusType.d.ts +1 -2
  61. package/dist/esm/models/ResortStatusType.js +2 -3
  62. package/dist/esm/models/RunDifficulty.d.ts +1 -1
  63. package/dist/esm/models/RunDifficulty.js +1 -1
  64. package/dist/esm/models/RunStatus.d.ts +1 -1
  65. package/dist/esm/models/RunStatus.js +1 -1
  66. package/dist/esm/models/Schedule.d.ts +1 -1
  67. package/dist/esm/models/Schedule.js +1 -1
  68. package/dist/esm/models/SeasonType.d.ts +26 -0
  69. package/dist/esm/models/SeasonType.js +44 -0
  70. package/dist/esm/models/SnowMetrics.d.ts +1 -1
  71. package/dist/esm/models/SnowMetrics.js +1 -1
  72. package/dist/esm/models/SurfaceCondition.d.ts +1 -1
  73. package/dist/esm/models/SurfaceCondition.js +1 -1
  74. package/dist/esm/models/UnitPreference.d.ts +1 -1
  75. package/dist/esm/models/UnitPreference.js +1 -1
  76. package/dist/esm/models/WeatherData.d.ts +3 -3
  77. package/dist/esm/models/WeatherData.js +3 -3
  78. package/dist/esm/models/index.d.ts +2 -0
  79. package/dist/esm/models/index.js +2 -0
  80. package/dist/esm/runtime.d.ts +1 -1
  81. package/dist/esm/runtime.js +1 -1
  82. package/dist/models/CurrentWeather.d.ts +6 -6
  83. package/dist/models/CurrentWeather.js +3 -3
  84. package/dist/models/DailyForecast.d.ts +5 -5
  85. package/dist/models/DailyForecast.js +5 -5
  86. package/dist/models/DailyForecastImperial.d.ts +1 -1
  87. package/dist/models/DailyForecastImperial.js +1 -1
  88. package/dist/models/DailyForecastMetric.d.ts +1 -1
  89. package/dist/models/DailyForecastMetric.js +1 -1
  90. package/dist/models/DayHours.d.ts +1 -1
  91. package/dist/models/DayHours.js +1 -1
  92. package/dist/models/HourlyForecast.d.ts +3 -3
  93. package/dist/models/HourlyForecast.js +3 -3
  94. package/dist/models/HourlyForecastImperial.d.ts +1 -1
  95. package/dist/models/HourlyForecastImperial.js +1 -1
  96. package/dist/models/HourlyForecastMetric.d.ts +1 -1
  97. package/dist/models/HourlyForecastMetric.js +1 -1
  98. package/dist/models/ImperialUnits.d.ts +1 -1
  99. package/dist/models/ImperialUnits.js +1 -1
  100. package/dist/models/LiftStatus.d.ts +1 -1
  101. package/dist/models/LiftStatus.js +1 -1
  102. package/dist/models/LiftType.d.ts +1 -1
  103. package/dist/models/LiftType.js +1 -1
  104. package/dist/models/MetricUnits.d.ts +1 -1
  105. package/dist/models/MetricUnits.js +1 -1
  106. package/dist/models/OperatingHoursResponse.d.ts +1 -1
  107. package/dist/models/OperatingHoursResponse.js +1 -1
  108. package/dist/models/PathSlug.d.ts +32 -0
  109. package/dist/models/PathSlug.js +50 -0
  110. package/dist/models/PublicLift.d.ts +1 -1
  111. package/dist/models/PublicLift.js +1 -1
  112. package/dist/models/PublicResortInfo.d.ts +1 -1
  113. package/dist/models/PublicResortInfo.js +1 -1
  114. package/dist/models/PublicResortResponse.d.ts +4 -4
  115. package/dist/models/PublicResortResponse.js +13 -7
  116. package/dist/models/PublicResortStatus.d.ts +11 -4
  117. package/dist/models/PublicResortStatus.js +11 -4
  118. package/dist/models/PublicRun.d.ts +4 -4
  119. package/dist/models/PublicRun.js +6 -4
  120. package/dist/models/PublicSnowReport.d.ts +4 -4
  121. package/dist/models/PublicSnowReport.js +6 -4
  122. package/dist/models/PublicSnowResponse.d.ts +1 -1
  123. package/dist/models/PublicSnowResponse.js +1 -1
  124. package/dist/models/RecurrencePattern.d.ts +1 -1
  125. package/dist/models/RecurrencePattern.js +1 -1
  126. package/dist/models/RecurrencePatternOneOf.d.ts +1 -1
  127. package/dist/models/RecurrencePatternOneOf.js +1 -1
  128. package/dist/models/RecurrencePatternOneOf1.d.ts +1 -1
  129. package/dist/models/RecurrencePatternOneOf1.js +1 -1
  130. package/dist/models/RecurrencePatternOneOf2.d.ts +5 -5
  131. package/dist/models/RecurrencePatternOneOf2.js +5 -5
  132. package/dist/models/ResortStatusType.d.ts +1 -2
  133. package/dist/models/ResortStatusType.js +2 -3
  134. package/dist/models/RunDifficulty.d.ts +1 -1
  135. package/dist/models/RunDifficulty.js +1 -1
  136. package/dist/models/RunStatus.d.ts +1 -1
  137. package/dist/models/RunStatus.js +1 -1
  138. package/dist/models/Schedule.d.ts +1 -1
  139. package/dist/models/Schedule.js +1 -1
  140. package/dist/models/SeasonType.d.ts +26 -0
  141. package/dist/models/SeasonType.js +52 -0
  142. package/dist/models/SnowMetrics.d.ts +1 -1
  143. package/dist/models/SnowMetrics.js +1 -1
  144. package/dist/models/SurfaceCondition.d.ts +1 -1
  145. package/dist/models/SurfaceCondition.js +1 -1
  146. package/dist/models/UnitPreference.d.ts +1 -1
  147. package/dist/models/UnitPreference.js +1 -1
  148. package/dist/models/WeatherData.d.ts +3 -3
  149. package/dist/models/WeatherData.js +3 -3
  150. package/dist/models/index.d.ts +2 -0
  151. package/dist/models/index.js +2 -0
  152. package/dist/runtime.d.ts +1 -1
  153. package/dist/runtime.js +1 -1
  154. package/package.json +1 -1
  155. package/dist/apis/PublicApi.d.ts +0 -174
  156. package/dist/esm/apis/PublicApi.d.ts +0 -174
@@ -0,0 +1,32 @@
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: 1.0.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 PathSlug
16
+ */
17
+ export interface PathSlug {
18
+ /**
19
+ * Account slug
20
+ * @type {string}
21
+ * @memberof PathSlug
22
+ */
23
+ slug: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PathSlug interface.
27
+ */
28
+ export declare function instanceOfPathSlug(value: object): value is PathSlug;
29
+ export declare function PathSlugFromJSON(json: any): PathSlug;
30
+ export declare function PathSlugFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSlug;
31
+ export declare function PathSlugToJSON(json: any): PathSlug;
32
+ export declare function PathSlugToJSONTyped(value?: PathSlug | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPathSlug = instanceOfPathSlug;
17
+ exports.PathSlugFromJSON = PathSlugFromJSON;
18
+ exports.PathSlugFromJSONTyped = PathSlugFromJSONTyped;
19
+ exports.PathSlugToJSON = PathSlugToJSON;
20
+ exports.PathSlugToJSONTyped = PathSlugToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PathSlug interface.
23
+ */
24
+ function instanceOfPathSlug(value) {
25
+ if (!('slug' in value) || value['slug'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PathSlugFromJSON(json) {
30
+ return PathSlugFromJSONTyped(json, false);
31
+ }
32
+ function PathSlugFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'slug': json['slug'],
38
+ };
39
+ }
40
+ function PathSlugToJSON(json) {
41
+ return PathSlugToJSONTyped(json, false);
42
+ }
43
+ function PathSlugToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'slug': value['slug'],
49
+ };
50
+ }
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,7 +33,7 @@ export interface PublicResortResponse {
33
33
  * @type {Array<PublicLift>}
34
34
  * @memberof PublicResortResponse
35
35
  */
36
- lifts?: Array<PublicLift>;
36
+ lifts: Array<PublicLift>;
37
37
  /**
38
38
  *
39
39
  * @type {PublicResortInfo}
@@ -45,13 +45,13 @@ export interface PublicResortResponse {
45
45
  * @type {Array<PublicRun>}
46
46
  * @memberof PublicResortResponse
47
47
  */
48
- runs?: Array<PublicRun>;
48
+ runs: Array<PublicRun>;
49
49
  /**
50
50
  *
51
51
  * @type {Array<PublicSnowReport>}
52
52
  * @memberof PublicResortResponse
53
53
  */
54
- snow?: Array<PublicSnowReport>;
54
+ snow: Array<PublicSnowReport>;
55
55
  /**
56
56
  *
57
57
  * @type {PublicResortStatus}
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,8 +29,14 @@ const WeatherData_1 = require("./WeatherData");
29
29
  * Check if a given object implements the PublicResortResponse interface.
30
30
  */
31
31
  function instanceOfPublicResortResponse(value) {
32
+ if (!('lifts' in value) || value['lifts'] === undefined)
33
+ return false;
32
34
  if (!('resort' in value) || value['resort'] === undefined)
33
35
  return false;
36
+ if (!('runs' in value) || value['runs'] === undefined)
37
+ return false;
38
+ if (!('snow' in value) || value['snow'] === undefined)
39
+ return false;
34
40
  return true;
35
41
  }
36
42
  function PublicResortResponseFromJSON(json) {
@@ -42,10 +48,10 @@ function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
42
48
  }
43
49
  return {
44
50
  'hours': json['hours'] == null ? undefined : (0, OperatingHoursResponse_1.OperatingHoursResponseFromJSON)(json['hours']),
45
- 'lifts': json['lifts'] == null ? undefined : (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
51
+ 'lifts': (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
46
52
  'resort': (0, PublicResortInfo_1.PublicResortInfoFromJSON)(json['resort']),
47
- 'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
48
- 'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
53
+ 'runs': (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
54
+ 'snow': (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
49
55
  'status': json['status'] == null ? undefined : (0, PublicResortStatus_1.PublicResortStatusFromJSON)(json['status']),
50
56
  'weather': json['weather'] == null ? undefined : (0, WeatherData_1.WeatherDataFromJSON)(json['weather']),
51
57
  };
@@ -59,10 +65,10 @@ function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
59
65
  }
60
66
  return {
61
67
  'hours': (0, OperatingHoursResponse_1.OperatingHoursResponseToJSON)(value['hours']),
62
- 'lifts': value['lifts'] == null ? undefined : (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
68
+ 'lifts': (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
63
69
  'resort': (0, PublicResortInfo_1.PublicResortInfoToJSON)(value['resort']),
64
- 'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRun_1.PublicRunToJSON)),
65
- 'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
70
+ 'runs': (value['runs'].map(PublicRun_1.PublicRunToJSON)),
71
+ 'snow': (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
66
72
  'status': (0, PublicResortStatus_1.PublicResortStatusToJSON)(value['status']),
67
73
  'weather': (0, WeatherData_1.WeatherDataToJSON)(value['weather']),
68
74
  };
@@ -2,13 +2,14 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SeasonType } from './SeasonType';
12
13
  import type { ResortStatusType } from './ResortStatusType';
13
14
  /**
14
15
  * Resort status with optional metadata and today's scheduled hours
@@ -27,7 +28,7 @@ export interface PublicResortStatus {
27
28
  * @type {string}
28
29
  * @memberof PublicResortStatus
29
30
  */
30
- notes?: string | null;
31
+ notes: string;
31
32
  /**
32
33
  *
33
34
  * @type {number}
@@ -52,6 +53,12 @@ export interface PublicResortStatus {
52
53
  * @memberof PublicResortStatus
53
54
  */
54
55
  scheduledOpensAt?: string | null;
56
+ /**
57
+ *
58
+ * @type {SeasonType}
59
+ * @memberof PublicResortStatus
60
+ */
61
+ season: SeasonType;
55
62
  /**
56
63
  *
57
64
  * @type {ResortStatusType}
@@ -72,10 +79,10 @@ export interface PublicResortStatus {
72
79
  totalRuns: number;
73
80
  /**
74
81
  *
75
- * @type {Date}
82
+ * @type {string}
76
83
  * @memberof PublicResortStatus
77
84
  */
78
- updatedAt?: Date | null;
85
+ updatedAt?: string | null;
79
86
  }
80
87
  /**
81
88
  * Check if a given object implements the PublicResortStatus interface.
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ exports.PublicResortStatusFromJSON = PublicResortStatusFromJSON;
18
18
  exports.PublicResortStatusFromJSONTyped = PublicResortStatusFromJSONTyped;
19
19
  exports.PublicResortStatusToJSON = PublicResortStatusToJSON;
20
20
  exports.PublicResortStatusToJSONTyped = PublicResortStatusToJSONTyped;
21
+ const SeasonType_1 = require("./SeasonType");
21
22
  const ResortStatusType_1 = require("./ResortStatusType");
22
23
  /**
23
24
  * Check if a given object implements the PublicResortStatus interface.
@@ -25,10 +26,14 @@ const ResortStatusType_1 = require("./ResortStatusType");
25
26
  function instanceOfPublicResortStatus(value) {
26
27
  if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
27
28
  return false;
29
+ if (!('notes' in value) || value['notes'] === undefined)
30
+ return false;
28
31
  if (!('openLifts' in value) || value['openLifts'] === undefined)
29
32
  return false;
30
33
  if (!('openRuns' in value) || value['openRuns'] === undefined)
31
34
  return false;
35
+ if (!('season' in value) || value['season'] === undefined)
36
+ return false;
32
37
  if (!('status' in value) || value['status'] === undefined)
33
38
  return false;
34
39
  if (!('totalLifts' in value) || value['totalLifts'] === undefined)
@@ -46,15 +51,16 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
46
51
  }
47
52
  return {
48
53
  'groomedRuns': json['groomed_runs'],
49
- 'notes': json['notes'] == null ? undefined : json['notes'],
54
+ 'notes': json['notes'],
50
55
  'openLifts': json['open_lifts'],
51
56
  'openRuns': json['open_runs'],
52
57
  'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
53
58
  'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
59
+ 'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
54
60
  'status': (0, ResortStatusType_1.ResortStatusTypeFromJSON)(json['status']),
55
61
  'totalLifts': json['total_lifts'],
56
62
  'totalRuns': json['total_runs'],
57
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
63
+ 'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
58
64
  };
59
65
  }
60
66
  function PublicResortStatusToJSON(json) {
@@ -71,9 +77,10 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
71
77
  'open_runs': value['openRuns'],
72
78
  'scheduled_closes_at': value['scheduledClosesAt'],
73
79
  'scheduled_opens_at': value['scheduledOpensAt'],
80
+ 'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
74
81
  'status': (0, ResortStatusType_1.ResortStatusTypeToJSON)(value['status']),
75
82
  'total_lifts': value['totalLifts'],
76
83
  'total_runs': value['totalRuns'],
77
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
+ 'updated_at': value['updatedAt'],
78
85
  };
79
86
  }
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export interface PublicRun {
34
34
  * @type {string}
35
35
  * @memberof PublicRun
36
36
  */
37
- conditionNotes?: string | null;
37
+ conditionNotes: string;
38
38
  /**
39
39
  *
40
40
  * @type {RunDifficulty}
@@ -49,10 +49,10 @@ export interface PublicRun {
49
49
  groomedToday: boolean;
50
50
  /**
51
51
  *
52
- * @type {Date}
52
+ * @type {string}
53
53
  * @memberof PublicRun
54
54
  */
55
- lastGroomed?: Date | null;
55
+ lastGroomed?: string | null;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,8 @@ const RunDifficulty_1 = require("./RunDifficulty");
24
24
  * Check if a given object implements the PublicRun interface.
25
25
  */
26
26
  function instanceOfPublicRun(value) {
27
+ if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
28
+ return false;
27
29
  if (!('difficulty' in value) || value['difficulty'] === undefined)
28
30
  return false;
29
31
  if (!('groomedToday' in value) || value['groomedToday'] === undefined)
@@ -48,10 +50,10 @@ function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'areaId': json['area_id'] == null ? undefined : json['area_id'],
50
52
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
51
- 'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
53
+ 'conditionNotes': json['condition_notes'],
52
54
  'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
53
55
  'groomedToday': json['groomed_today'],
54
- 'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
56
+ 'lastGroomed': json['last_groomed'] == null ? undefined : json['last_groomed'],
55
57
  'name': json['name'],
56
58
  'number': json['number'] == null ? undefined : json['number'],
57
59
  'slug': json['slug'],
@@ -72,7 +74,7 @@ function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
72
74
  'condition_notes': value['conditionNotes'],
73
75
  'difficulty': (0, RunDifficulty_1.RunDifficultyToJSON)(value['difficulty']),
74
76
  'groomed_today': value['groomedToday'],
75
- 'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
77
+ 'last_groomed': value['lastGroomed'],
76
78
  'name': value['name'],
77
79
  'number': value['number'],
78
80
  'slug': value['slug'],
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,13 +46,13 @@ export interface PublicSnowReport {
46
46
  * @type {string}
47
47
  * @memberof PublicSnowReport
48
48
  */
49
- conditionNotes?: string | null;
49
+ conditionNotes: string;
50
50
  /**
51
51
  *
52
- * @type {Date}
52
+ * @type {string}
53
53
  * @memberof PublicSnowReport
54
54
  */
55
- reportedAt: Date;
55
+ reportedAt: string;
56
56
  /**
57
57
  *
58
58
  * @type {SurfaceCondition}
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,8 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
24
24
  * Check if a given object implements the PublicSnowReport interface.
25
25
  */
26
26
  function instanceOfPublicSnowReport(value) {
27
+ if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
28
+ return false;
27
29
  if (!('reportedAt' in value) || value['reportedAt'] === undefined)
28
30
  return false;
29
31
  if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
@@ -46,8 +48,8 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
46
48
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
47
49
  'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
48
50
  'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
49
- 'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
50
- 'reportedAt': (new Date(json['reported_at'])),
51
+ 'conditionNotes': json['condition_notes'],
52
+ 'reportedAt': json['reported_at'],
51
53
  'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
52
54
  'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
53
55
  'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
@@ -68,7 +70,7 @@ function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false) {
68
70
  'base_depth_cm': value['baseDepthCm'],
69
71
  'base_depth_in': value['baseDepthIn'],
70
72
  'condition_notes': value['conditionNotes'],
71
- 'reported_at': value['reportedAt'].toISOString(),
73
+ 'reported_at': value['reportedAt'],
72
74
  'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
73
75
  'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
74
76
  'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,16 +17,16 @@
17
17
  export interface RecurrencePatternOneOf2 {
18
18
  /**
19
19
  *
20
- * @type {Array<number>}
20
+ * @type {string}
21
21
  * @memberof RecurrencePatternOneOf2
22
22
  */
23
- days: Array<number>;
23
+ type: RecurrencePatternOneOf2TypeEnum;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {Array<number>}
27
27
  * @memberof RecurrencePatternOneOf2
28
28
  */
29
- type: RecurrencePatternOneOf2TypeEnum;
29
+ days: Array<number>;
30
30
  }
31
31
  /**
32
32
  * @export
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,10 +29,10 @@ exports.RecurrencePatternOneOf2TypeEnum = {
29
29
  * Check if a given object implements the RecurrencePatternOneOf2 interface.
30
30
  */
31
31
  function instanceOfRecurrencePatternOneOf2(value) {
32
- if (!('days' in value) || value['days'] === undefined)
33
- return false;
34
32
  if (!('type' in value) || value['type'] === undefined)
35
33
  return false;
34
+ if (!('days' in value) || value['days'] === undefined)
35
+ return false;
36
36
  return true;
37
37
  }
38
38
  function RecurrencePatternOneOf2FromJSON(json) {
@@ -43,8 +43,8 @@ function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator) {
43
43
  return json;
44
44
  }
45
45
  return {
46
- 'days': json['days'],
47
46
  'type': json['type'],
47
+ 'days': json['days'],
48
48
  };
49
49
  }
50
50
  function RecurrencePatternOneOf2ToJSON(json) {
@@ -55,7 +55,7 @@ function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator = false)
55
55
  return value;
56
56
  }
57
57
  return {
58
- 'days': value['days'],
59
58
  'type': value['type'],
59
+ 'days': value['days'],
60
60
  };
61
61
  }
@@ -2,7 +2,7 @@
2
2
  * MtnManager API
3
3
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,6 @@
16
16
  export declare const ResortStatusType: {
17
17
  readonly Open: "open";
18
18
  readonly Closed: "closed";
19
- readonly ClosedForSeason: "closed_for_season";
20
19
  };
21
20
  export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
22
21
  export declare function instanceOfResortStatusType(value: any): boolean;
@@ -5,7 +5,7 @@
5
5
  * MtnManager API
6
6
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,8 +25,7 @@ exports.ResortStatusTypeToJSONTyped = ResortStatusTypeToJSONTyped;
25
25
  */
26
26
  exports.ResortStatusType = {
27
27
  Open: 'open',
28
- Closed: 'closed',
29
- ClosedForSeason: 'closed_for_season'
28
+ Closed: 'closed'
30
29
  };
31
30
  function instanceOfResortStatusType(value) {
32
31
  for (const key in exports.ResortStatusType) {