@mtnmanager/sdk 0.0.5 → 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.
- package/README.md +16 -15
- package/dist/apis/ReportApi.d.ts +146 -0
- package/dist/apis/{PublicApi.js → ReportApi.js} +35 -52
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/esm/apis/ReportApi.d.ts +146 -0
- package/dist/esm/apis/{PublicApi.js → ReportApi.js} +34 -51
- package/dist/esm/apis/index.d.ts +1 -1
- package/dist/esm/apis/index.js +1 -1
- package/dist/esm/models/CurrentWeather.d.ts +6 -6
- package/dist/esm/models/CurrentWeather.js +3 -3
- package/dist/esm/models/DailyForecast.d.ts +5 -5
- package/dist/esm/models/DailyForecast.js +5 -5
- package/dist/esm/models/DailyForecastImperial.d.ts +1 -1
- package/dist/esm/models/DailyForecastImperial.js +1 -1
- package/dist/esm/models/DailyForecastMetric.d.ts +1 -1
- package/dist/esm/models/DailyForecastMetric.js +1 -1
- package/dist/esm/models/DayHours.d.ts +1 -1
- package/dist/esm/models/DayHours.js +1 -1
- package/dist/esm/models/HourlyForecast.d.ts +3 -3
- package/dist/esm/models/HourlyForecast.js +3 -3
- package/dist/esm/models/HourlyForecastImperial.d.ts +1 -1
- package/dist/esm/models/HourlyForecastImperial.js +1 -1
- package/dist/esm/models/HourlyForecastMetric.d.ts +1 -1
- package/dist/esm/models/HourlyForecastMetric.js +1 -1
- package/dist/esm/models/ImperialUnits.d.ts +1 -1
- package/dist/esm/models/ImperialUnits.js +1 -1
- package/dist/esm/models/LiftStatus.d.ts +1 -1
- package/dist/esm/models/LiftStatus.js +1 -1
- package/dist/esm/models/LiftType.d.ts +1 -1
- package/dist/esm/models/LiftType.js +1 -1
- package/dist/esm/models/MetricUnits.d.ts +1 -1
- package/dist/esm/models/MetricUnits.js +1 -1
- package/dist/esm/models/OperatingHoursResponse.d.ts +1 -1
- package/dist/esm/models/OperatingHoursResponse.js +1 -1
- package/dist/esm/models/PathSlug.d.ts +32 -0
- package/dist/esm/models/PathSlug.js +43 -0
- package/dist/esm/models/PublicLift.d.ts +1 -1
- package/dist/esm/models/PublicLift.js +1 -1
- package/dist/esm/models/PublicResortInfo.d.ts +1 -1
- package/dist/esm/models/PublicResortInfo.js +1 -1
- package/dist/esm/models/PublicResortResponse.d.ts +4 -4
- package/dist/esm/models/PublicResortResponse.js +13 -7
- package/dist/esm/models/PublicResortStatus.d.ts +3 -3
- package/dist/esm/models/PublicResortStatus.js +3 -3
- package/dist/esm/models/PublicRun.d.ts +3 -3
- package/dist/esm/models/PublicRun.js +3 -3
- package/dist/esm/models/PublicSnowReport.d.ts +3 -3
- package/dist/esm/models/PublicSnowReport.js +3 -3
- package/dist/esm/models/PublicSnowResponse.d.ts +1 -1
- package/dist/esm/models/PublicSnowResponse.js +1 -1
- package/dist/esm/models/RecurrencePattern.d.ts +1 -1
- package/dist/esm/models/RecurrencePattern.js +1 -1
- package/dist/esm/models/RecurrencePatternOneOf.d.ts +1 -1
- package/dist/esm/models/RecurrencePatternOneOf.js +1 -1
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +1 -1
- package/dist/esm/models/RecurrencePatternOneOf1.js +1 -1
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +5 -5
- package/dist/esm/models/RecurrencePatternOneOf2.js +5 -5
- package/dist/esm/models/ResortStatusType.d.ts +1 -1
- package/dist/esm/models/ResortStatusType.js +1 -1
- package/dist/esm/models/RunDifficulty.d.ts +1 -1
- package/dist/esm/models/RunDifficulty.js +1 -1
- package/dist/esm/models/RunStatus.d.ts +1 -1
- package/dist/esm/models/RunStatus.js +1 -1
- package/dist/esm/models/Schedule.d.ts +1 -1
- package/dist/esm/models/Schedule.js +1 -1
- package/dist/esm/models/SeasonType.d.ts +1 -1
- package/dist/esm/models/SeasonType.js +1 -1
- package/dist/esm/models/SnowMetrics.d.ts +1 -1
- package/dist/esm/models/SnowMetrics.js +1 -1
- package/dist/esm/models/SurfaceCondition.d.ts +1 -1
- package/dist/esm/models/SurfaceCondition.js +1 -1
- package/dist/esm/models/UnitPreference.d.ts +1 -1
- package/dist/esm/models/UnitPreference.js +1 -1
- package/dist/esm/models/WeatherData.d.ts +3 -3
- package/dist/esm/models/WeatherData.js +3 -3
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/CurrentWeather.d.ts +6 -6
- package/dist/models/CurrentWeather.js +3 -3
- package/dist/models/DailyForecast.d.ts +5 -5
- package/dist/models/DailyForecast.js +5 -5
- package/dist/models/DailyForecastImperial.d.ts +1 -1
- package/dist/models/DailyForecastImperial.js +1 -1
- package/dist/models/DailyForecastMetric.d.ts +1 -1
- package/dist/models/DailyForecastMetric.js +1 -1
- package/dist/models/DayHours.d.ts +1 -1
- package/dist/models/DayHours.js +1 -1
- package/dist/models/HourlyForecast.d.ts +3 -3
- package/dist/models/HourlyForecast.js +3 -3
- package/dist/models/HourlyForecastImperial.d.ts +1 -1
- package/dist/models/HourlyForecastImperial.js +1 -1
- package/dist/models/HourlyForecastMetric.d.ts +1 -1
- package/dist/models/HourlyForecastMetric.js +1 -1
- package/dist/models/ImperialUnits.d.ts +1 -1
- package/dist/models/ImperialUnits.js +1 -1
- package/dist/models/LiftStatus.d.ts +1 -1
- package/dist/models/LiftStatus.js +1 -1
- package/dist/models/LiftType.d.ts +1 -1
- package/dist/models/LiftType.js +1 -1
- package/dist/models/MetricUnits.d.ts +1 -1
- package/dist/models/MetricUnits.js +1 -1
- package/dist/models/OperatingHoursResponse.d.ts +1 -1
- package/dist/models/OperatingHoursResponse.js +1 -1
- package/dist/models/PathSlug.d.ts +32 -0
- package/dist/models/PathSlug.js +50 -0
- package/dist/models/PublicLift.d.ts +1 -1
- package/dist/models/PublicLift.js +1 -1
- package/dist/models/PublicResortInfo.d.ts +1 -1
- package/dist/models/PublicResortInfo.js +1 -1
- package/dist/models/PublicResortResponse.d.ts +4 -4
- package/dist/models/PublicResortResponse.js +13 -7
- package/dist/models/PublicResortStatus.d.ts +3 -3
- package/dist/models/PublicResortStatus.js +3 -3
- package/dist/models/PublicRun.d.ts +3 -3
- package/dist/models/PublicRun.js +3 -3
- package/dist/models/PublicSnowReport.d.ts +3 -3
- package/dist/models/PublicSnowReport.js +3 -3
- package/dist/models/PublicSnowResponse.d.ts +1 -1
- package/dist/models/PublicSnowResponse.js +1 -1
- package/dist/models/RecurrencePattern.d.ts +1 -1
- package/dist/models/RecurrencePattern.js +1 -1
- package/dist/models/RecurrencePatternOneOf.d.ts +1 -1
- package/dist/models/RecurrencePatternOneOf.js +1 -1
- package/dist/models/RecurrencePatternOneOf1.d.ts +1 -1
- package/dist/models/RecurrencePatternOneOf1.js +1 -1
- package/dist/models/RecurrencePatternOneOf2.d.ts +5 -5
- package/dist/models/RecurrencePatternOneOf2.js +5 -5
- package/dist/models/ResortStatusType.d.ts +1 -1
- package/dist/models/ResortStatusType.js +1 -1
- package/dist/models/RunDifficulty.d.ts +1 -1
- package/dist/models/RunDifficulty.js +1 -1
- package/dist/models/RunStatus.d.ts +1 -1
- package/dist/models/RunStatus.js +1 -1
- package/dist/models/Schedule.d.ts +1 -1
- package/dist/models/Schedule.js +1 -1
- package/dist/models/SeasonType.d.ts +1 -1
- package/dist/models/SeasonType.js +1 -1
- package/dist/models/SnowMetrics.d.ts +1 -1
- package/dist/models/SnowMetrics.js +1 -1
- package/dist/models/SurfaceCondition.d.ts +1 -1
- package/dist/models/SurfaceCondition.js +1 -1
- package/dist/models/UnitPreference.d.ts +1 -1
- package/dist/models/UnitPreference.js +1 -1
- package/dist/models/WeatherData.d.ts +3 -3
- package/dist/models/WeatherData.js +3 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/apis/PublicApi.d.ts +0 -174
- 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:
|
|
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
|
|
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
|
-
|
|
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
|
|
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}
|
|
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.
|
|
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
|
-
|
|
51
|
+
reportV1SlugGet(requestParameters, initOverrides) {
|
|
54
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
yield this.
|
|
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
|
-
|
|
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
|
|
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}/
|
|
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
|
|
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
|
-
|
|
79
|
+
reportV1SlugHoursGet(requestParameters, initOverrides) {
|
|
86
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
const response = yield this.
|
|
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
|
-
|
|
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
|
|
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) =>
|
|
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
|
-
|
|
107
|
+
reportV1SlugLiftsGet(requestParameters, initOverrides) {
|
|
116
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
const response = yield this.
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
135
|
+
reportV1SlugRunsGet(requestParameters, initOverrides) {
|
|
149
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
-
const response = yield this.
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
163
|
+
reportV1SlugSnowGet(requestParameters, initOverrides) {
|
|
179
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
const response = yield this.
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
191
|
+
reportV1SlugStatusGet(requestParameters, initOverrides) {
|
|
209
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
const response = yield this.
|
|
193
|
+
const response = yield this.reportV1SlugStatusGetRaw(requestParameters, initOverrides);
|
|
211
194
|
return yield response.value();
|
|
212
195
|
});
|
|
213
196
|
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ReportApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -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:
|
|
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 {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof CurrentWeather
|
|
54
54
|
*/
|
|
55
|
-
timestamp:
|
|
55
|
+
timestamp: string;
|
|
56
56
|
/**
|
|
57
57
|
* Weather condition code (unit-independent)
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
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:
|
|
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':
|
|
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']
|
|
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:
|
|
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 {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof DailyForecast
|
|
54
54
|
*/
|
|
55
|
-
sunrise:
|
|
55
|
+
sunrise: string;
|
|
56
56
|
/**
|
|
57
57
|
* Sunset time
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {string}
|
|
59
59
|
* @memberof DailyForecast
|
|
60
60
|
*/
|
|
61
|
-
sunset:
|
|
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:
|
|
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':
|
|
52
|
-
'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']
|
|
70
|
-
'sunset': value['sunset']
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof HourlyForecast
|
|
54
54
|
*/
|
|
55
|
-
timestamp:
|
|
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:
|
|
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':
|
|
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']
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|