@mtnmanager/sdk 0.0.5 → 0.0.8

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 +16 -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 +3 -3
  45. package/dist/esm/models/PublicResortStatus.js +3 -3
  46. package/dist/esm/models/PublicRun.d.ts +3 -3
  47. package/dist/esm/models/PublicRun.js +3 -3
  48. package/dist/esm/models/PublicSnowReport.d.ts +3 -3
  49. package/dist/esm/models/PublicSnowReport.js +3 -3
  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 -1
  61. package/dist/esm/models/ResortStatusType.js +1 -1
  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 +1 -1
  69. package/dist/esm/models/SeasonType.js +1 -1
  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 +1 -0
  79. package/dist/esm/models/index.js +1 -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 +3 -3
  117. package/dist/models/PublicResortStatus.js +3 -3
  118. package/dist/models/PublicRun.d.ts +3 -3
  119. package/dist/models/PublicRun.js +3 -3
  120. package/dist/models/PublicSnowReport.d.ts +3 -3
  121. package/dist/models/PublicSnowReport.js +3 -3
  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 -1
  133. package/dist/models/ResortStatusType.js +1 -1
  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 +1 -1
  141. package/dist/models/SeasonType.js +1 -1
  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 +1 -0
  151. package/dist/models/index.js +1 -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
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,22 +21,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { PublicLiftFromJSON, PublicResortResponseFromJSON, PublicResortStatusFromJSON, PublicRunFromJSON, PublicSnowResponseFromJSON, } from '../models/index';
24
+ import { OperatingHoursResponseFromJSON, PublicLiftFromJSON, PublicResortResponseFromJSON, PublicResortStatusFromJSON, PublicRunFromJSON, PublicSnowResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
- export class PublicApi extends runtime.BaseAPI {
28
+ export class ReportApi extends runtime.BaseAPI {
29
29
  /**
30
- * GET /report/v1/:slug/hours Get operating hours (calculated for today + 3 months)
31
30
  */
32
- getHoursPublicRaw(requestParameters, initOverrides) {
31
+ reportV1SlugGetRaw(requestParameters, initOverrides) {
33
32
  return __awaiter(this, void 0, void 0, function* () {
34
33
  if (requestParameters['slug'] == null) {
35
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getHoursPublic().');
34
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugGet().');
36
35
  }
37
36
  const queryParameters = {};
38
37
  const headerParameters = {};
39
- let urlPath = `/report/v1/{slug}/hours`;
38
+ let urlPath = `/report/v1/{slug}`;
40
39
  urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
41
40
  const response = yield this.request({
42
41
  path: urlPath,
@@ -44,31 +43,27 @@ export class PublicApi extends runtime.BaseAPI {
44
43
  headers: headerParameters,
45
44
  query: queryParameters,
46
45
  }, initOverrides);
47
- return new runtime.VoidApiResponse(response);
46
+ return new runtime.JSONApiResponse(response, (jsonValue) => PublicResortResponseFromJSON(jsonValue));
48
47
  });
49
48
  }
50
49
  /**
51
- * GET /report/v1/:slug/hours Get operating hours (calculated for today + 3 months)
52
50
  */
53
- getHoursPublic(requestParameters, initOverrides) {
51
+ reportV1SlugGet(requestParameters, initOverrides) {
54
52
  return __awaiter(this, void 0, void 0, function* () {
55
- yield this.getHoursPublicRaw(requestParameters, initOverrides);
53
+ const response = yield this.reportV1SlugGetRaw(requestParameters, initOverrides);
54
+ return yield response.value();
56
55
  });
57
56
  }
58
57
  /**
59
- * GET /report/v1/:slug/lifts Get all lifts with optional status filter
60
58
  */
61
- getLiftsPublicRaw(requestParameters, initOverrides) {
59
+ reportV1SlugHoursGetRaw(requestParameters, initOverrides) {
62
60
  return __awaiter(this, void 0, void 0, function* () {
63
61
  if (requestParameters['slug'] == null) {
64
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getLiftsPublic().');
62
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugHoursGet().');
65
63
  }
66
64
  const queryParameters = {};
67
- if (requestParameters['status'] != null) {
68
- queryParameters['status'] = requestParameters['status'];
69
- }
70
65
  const headerParameters = {};
71
- let urlPath = `/report/v1/{slug}/lifts`;
66
+ let urlPath = `/report/v1/{slug}/hours`;
72
67
  urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
73
68
  const response = yield this.request({
74
69
  path: urlPath,
@@ -76,29 +71,27 @@ export class PublicApi extends runtime.BaseAPI {
76
71
  headers: headerParameters,
77
72
  query: queryParameters,
78
73
  }, initOverrides);
79
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicLiftFromJSON));
74
+ return new runtime.JSONApiResponse(response, (jsonValue) => OperatingHoursResponseFromJSON(jsonValue));
80
75
  });
81
76
  }
82
77
  /**
83
- * GET /report/v1/:slug/lifts Get all lifts with optional status filter
84
78
  */
85
- getLiftsPublic(requestParameters, initOverrides) {
79
+ reportV1SlugHoursGet(requestParameters, initOverrides) {
86
80
  return __awaiter(this, void 0, void 0, function* () {
87
- const response = yield this.getLiftsPublicRaw(requestParameters, initOverrides);
81
+ const response = yield this.reportV1SlugHoursGetRaw(requestParameters, initOverrides);
88
82
  return yield response.value();
89
83
  });
90
84
  }
91
85
  /**
92
- * GET /report/v1/:slug Get complete resort information for public display
93
86
  */
94
- getResortPublicRaw(requestParameters, initOverrides) {
87
+ reportV1SlugLiftsGetRaw(requestParameters, initOverrides) {
95
88
  return __awaiter(this, void 0, void 0, function* () {
96
89
  if (requestParameters['slug'] == null) {
97
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getResortPublic().');
90
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugLiftsGet().');
98
91
  }
99
92
  const queryParameters = {};
100
93
  const headerParameters = {};
101
- let urlPath = `/report/v1/{slug}`;
94
+ let urlPath = `/report/v1/{slug}/lifts`;
102
95
  urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
103
96
  const response = yield this.request({
104
97
  path: urlPath,
@@ -106,30 +99,25 @@ export class PublicApi extends runtime.BaseAPI {
106
99
  headers: headerParameters,
107
100
  query: queryParameters,
108
101
  }, initOverrides);
109
- return new runtime.JSONApiResponse(response, (jsonValue) => PublicResortResponseFromJSON(jsonValue));
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PublicLiftFromJSON));
110
103
  });
111
104
  }
112
105
  /**
113
- * GET /report/v1/:slug Get complete resort information for public display
114
106
  */
115
- getResortPublic(requestParameters, initOverrides) {
107
+ reportV1SlugLiftsGet(requestParameters, initOverrides) {
116
108
  return __awaiter(this, void 0, void 0, function* () {
117
- const response = yield this.getResortPublicRaw(requestParameters, initOverrides);
109
+ const response = yield this.reportV1SlugLiftsGetRaw(requestParameters, initOverrides);
118
110
  return yield response.value();
119
111
  });
120
112
  }
121
113
  /**
122
- * GET /report/v1/:slug/runs Get all runs with optional status filter
123
114
  */
124
- getRunsPublicRaw(requestParameters, initOverrides) {
115
+ reportV1SlugRunsGetRaw(requestParameters, initOverrides) {
125
116
  return __awaiter(this, void 0, void 0, function* () {
126
117
  if (requestParameters['slug'] == null) {
127
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getRunsPublic().');
118
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugRunsGet().');
128
119
  }
129
120
  const queryParameters = {};
130
- if (requestParameters['status'] != null) {
131
- queryParameters['status'] = requestParameters['status'];
132
- }
133
121
  const headerParameters = {};
134
122
  let urlPath = `/report/v1/{slug}/runs`;
135
123
  urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
@@ -143,21 +131,19 @@ export class PublicApi extends runtime.BaseAPI {
143
131
  });
144
132
  }
145
133
  /**
146
- * GET /report/v1/:slug/runs Get all runs with optional status filter
147
134
  */
148
- getRunsPublic(requestParameters, initOverrides) {
135
+ reportV1SlugRunsGet(requestParameters, initOverrides) {
149
136
  return __awaiter(this, void 0, void 0, function* () {
150
- const response = yield this.getRunsPublicRaw(requestParameters, initOverrides);
137
+ const response = yield this.reportV1SlugRunsGetRaw(requestParameters, initOverrides);
151
138
  return yield response.value();
152
139
  });
153
140
  }
154
141
  /**
155
- * GET /report/v1/:slug/snow Get current snow conditions and reports with metrics
156
142
  */
157
- getSnowPublicRaw(requestParameters, initOverrides) {
143
+ reportV1SlugSnowGetRaw(requestParameters, initOverrides) {
158
144
  return __awaiter(this, void 0, void 0, function* () {
159
145
  if (requestParameters['slug'] == null) {
160
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getSnowPublic().');
146
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugSnowGet().');
161
147
  }
162
148
  const queryParameters = {};
163
149
  const headerParameters = {};
@@ -173,21 +159,19 @@ export class PublicApi extends runtime.BaseAPI {
173
159
  });
174
160
  }
175
161
  /**
176
- * GET /report/v1/:slug/snow Get current snow conditions and reports with metrics
177
162
  */
178
- getSnowPublic(requestParameters, initOverrides) {
163
+ reportV1SlugSnowGet(requestParameters, initOverrides) {
179
164
  return __awaiter(this, void 0, void 0, function* () {
180
- const response = yield this.getSnowPublicRaw(requestParameters, initOverrides);
165
+ const response = yield this.reportV1SlugSnowGetRaw(requestParameters, initOverrides);
181
166
  return yield response.value();
182
167
  });
183
168
  }
184
169
  /**
185
- * GET /report/v1/:slug/status Get just the resort status
186
170
  */
187
- getStatusPublicRaw(requestParameters, initOverrides) {
171
+ reportV1SlugStatusGetRaw(requestParameters, initOverrides) {
188
172
  return __awaiter(this, void 0, void 0, function* () {
189
173
  if (requestParameters['slug'] == null) {
190
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getStatusPublic().');
174
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling reportV1SlugStatusGet().');
191
175
  }
192
176
  const queryParameters = {};
193
177
  const headerParameters = {};
@@ -203,11 +187,10 @@ export class PublicApi extends runtime.BaseAPI {
203
187
  });
204
188
  }
205
189
  /**
206
- * GET /report/v1/:slug/status Get just the resort status
207
190
  */
208
- getStatusPublic(requestParameters, initOverrides) {
191
+ reportV1SlugStatusGet(requestParameters, initOverrides) {
209
192
  return __awaiter(this, void 0, void 0, function* () {
210
- const response = yield this.getStatusPublicRaw(requestParameters, initOverrides);
193
+ const response = yield this.reportV1SlugStatusGetRaw(requestParameters, initOverrides);
211
194
  return yield response.value();
212
195
  });
213
196
  }
@@ -1 +1 @@
1
- export * from './PublicApi';
1
+ export * from './ReportApi';
@@ -1,3 +1,3 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './PublicApi';
3
+ export * from './ReportApi';
@@ -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).
@@ -49,15 +49,15 @@ export interface CurrentWeather {
49
49
  metric: MetricUnits;
50
50
  /**
51
51
  * Timestamp of observation
52
- * @type {Date}
52
+ * @type {string}
53
53
  * @memberof CurrentWeather
54
54
  */
55
- timestamp: Date;
55
+ timestamp: string;
56
56
  /**
57
57
  * Weather condition code (unit-independent)
58
- * 0=clear, 1=mainly clear, 2=partly cloudy, 3=overcast,
59
- * 45/48=fog, 51-55=drizzle, 61-65=rain, 71-77=snow,
60
- * 80-82=rain showers, 85-86=snow showers, 95-99=thunderstorm
58
+ * 0=clear, 1=mainly clear, 2=partly cloudy, 3=overcast,
59
+ * 45/48=fog, 51-55=drizzle, 61-65=rain, 71-77=snow,
60
+ * 80-82=rain showers, 85-86=snow showers, 95-99=thunderstorm
61
61
  * @type {number}
62
62
  * @memberof CurrentWeather
63
63
  */
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -50,7 +50,7 @@ export function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'humidity': json['humidity'],
51
51
  'imperial': ImperialUnitsFromJSON(json['imperial']),
52
52
  'metric': MetricUnitsFromJSON(json['metric']),
53
- 'timestamp': (new Date(json['timestamp'])),
53
+ 'timestamp': json['timestamp'],
54
54
  'weatherCode': json['weather_code'],
55
55
  'windDirection': json['wind_direction'],
56
56
  'windDirectionCardinal': json['wind_direction_cardinal'],
@@ -69,7 +69,7 @@ export function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
69
69
  'humidity': value['humidity'],
70
70
  'imperial': ImperialUnitsToJSON(value['imperial']),
71
71
  'metric': MetricUnitsToJSON(value['metric']),
72
- 'timestamp': value['timestamp'].toISOString(),
72
+ 'timestamp': value['timestamp'],
73
73
  'weather_code': value['weatherCode'],
74
74
  'wind_direction': value['windDirection'],
75
75
  'wind_direction_cardinal': value['windDirectionCardinal'],
@@ -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).
@@ -49,16 +49,16 @@ export interface DailyForecast {
49
49
  precipitationProbability: number;
50
50
  /**
51
51
  * Sunrise time
52
- * @type {Date}
52
+ * @type {string}
53
53
  * @memberof DailyForecast
54
54
  */
55
- sunrise: Date;
55
+ sunrise: string;
56
56
  /**
57
57
  * Sunset time
58
- * @type {Date}
58
+ * @type {string}
59
59
  * @memberof DailyForecast
60
60
  */
61
- sunset: Date;
61
+ sunset: string;
62
62
  /**
63
63
  * Weather condition code (most severe/relevant for the day)
64
64
  * @type {number}
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,8 +48,8 @@ export function DailyForecastFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'imperial': DailyForecastImperialFromJSON(json['imperial']),
49
49
  'metric': DailyForecastMetricFromJSON(json['metric']),
50
50
  'precipitationProbability': json['precipitation_probability'],
51
- 'sunrise': (new Date(json['sunrise'])),
52
- 'sunset': (new Date(json['sunset'])),
51
+ 'sunrise': json['sunrise'],
52
+ 'sunset': json['sunset'],
53
53
  'weatherCode': json['weather_code'],
54
54
  };
55
55
  }
@@ -66,8 +66,8 @@ export function DailyForecastToJSONTyped(value, ignoreDiscriminator = false) {
66
66
  'imperial': DailyForecastImperialToJSON(value['imperial']),
67
67
  'metric': DailyForecastMetricToJSON(value['metric']),
68
68
  'precipitation_probability': value['precipitationProbability'],
69
- 'sunrise': value['sunrise'].toISOString(),
70
- 'sunset': value['sunset'].toISOString(),
69
+ 'sunrise': value['sunrise'],
70
+ 'sunset': value['sunset'],
71
71
  'weather_code': value['weatherCode'],
72
72
  };
73
73
  }
@@ -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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -49,10 +49,10 @@ export interface HourlyForecast {
49
49
  precipitationProbability: number;
50
50
  /**
51
51
  * Forecast timestamp
52
- * @type {Date}
52
+ * @type {string}
53
53
  * @memberof HourlyForecast
54
54
  */
55
- timestamp: Date;
55
+ timestamp: string;
56
56
  /**
57
57
  * Weather condition code
58
58
  * @type {number}
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,7 +46,7 @@ export function HourlyForecastFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'imperial': HourlyForecastImperialFromJSON(json['imperial']),
47
47
  'metric': HourlyForecastMetricFromJSON(json['metric']),
48
48
  'precipitationProbability': json['precipitation_probability'],
49
- 'timestamp': (new Date(json['timestamp'])),
49
+ 'timestamp': json['timestamp'],
50
50
  'weatherCode': json['weather_code'],
51
51
  };
52
52
  }
@@ -63,7 +63,7 @@ export function HourlyForecastToJSONTyped(value, ignoreDiscriminator = false) {
63
63
  'imperial': HourlyForecastImperialToJSON(value['imperial']),
64
64
  'metric': HourlyForecastMetricToJSON(value['metric']),
65
65
  'precipitation_probability': value['precipitationProbability'],
66
- 'timestamp': value['timestamp'].toISOString(),
66
+ 'timestamp': value['timestamp'],
67
67
  'weather_code': value['weatherCode'],
68
68
  };
69
69
  }
@@ -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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * 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).
@@ -4,7 +4,7 @@
4
4
  * MtnManager API
5
5
  * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.0
7
+ * The version of the OpenAPI document: 1.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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;