@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PathSlug interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPathSlug(value) {
|
|
18
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PathSlugFromJSON(json) {
|
|
23
|
+
return PathSlugFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PathSlugFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'slug': json['slug'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PathSlugToJSON(json) {
|
|
34
|
+
return PathSlugToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PathSlugToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'slug': value['slug'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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).
|
|
@@ -33,7 +33,7 @@ export interface PublicResortResponse {
|
|
|
33
33
|
* @type {Array<PublicLift>}
|
|
34
34
|
* @memberof PublicResortResponse
|
|
35
35
|
*/
|
|
36
|
-
lifts
|
|
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
|
|
48
|
+
runs: Array<PublicRun>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {Array<PublicSnowReport>}
|
|
52
52
|
* @memberof PublicResortResponse
|
|
53
53
|
*/
|
|
54
|
-
snow
|
|
54
|
+
snow: Array<PublicSnowReport>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {PublicResortStatus}
|
|
@@ -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).
|
|
@@ -22,8 +22,14 @@ import { WeatherDataFromJSON, WeatherDataToJSON, } from './WeatherData';
|
|
|
22
22
|
* Check if a given object implements the PublicResortResponse interface.
|
|
23
23
|
*/
|
|
24
24
|
export function instanceOfPublicResortResponse(value) {
|
|
25
|
+
if (!('lifts' in value) || value['lifts'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('resort' in value) || value['resort'] === undefined)
|
|
26
28
|
return false;
|
|
29
|
+
if (!('runs' in value) || value['runs'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('snow' in value) || value['snow'] === undefined)
|
|
32
|
+
return false;
|
|
27
33
|
return true;
|
|
28
34
|
}
|
|
29
35
|
export function PublicResortResponseFromJSON(json) {
|
|
@@ -35,10 +41,10 @@ export function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
41
|
}
|
|
36
42
|
return {
|
|
37
43
|
'hours': json['hours'] == null ? undefined : OperatingHoursResponseFromJSON(json['hours']),
|
|
38
|
-
'lifts':
|
|
44
|
+
'lifts': (json['lifts'].map(PublicLiftFromJSON)),
|
|
39
45
|
'resort': PublicResortInfoFromJSON(json['resort']),
|
|
40
|
-
'runs':
|
|
41
|
-
'snow':
|
|
46
|
+
'runs': (json['runs'].map(PublicRunFromJSON)),
|
|
47
|
+
'snow': (json['snow'].map(PublicSnowReportFromJSON)),
|
|
42
48
|
'status': json['status'] == null ? undefined : PublicResortStatusFromJSON(json['status']),
|
|
43
49
|
'weather': json['weather'] == null ? undefined : WeatherDataFromJSON(json['weather']),
|
|
44
50
|
};
|
|
@@ -52,10 +58,10 @@ export function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
52
58
|
}
|
|
53
59
|
return {
|
|
54
60
|
'hours': OperatingHoursResponseToJSON(value['hours']),
|
|
55
|
-
'lifts':
|
|
61
|
+
'lifts': (value['lifts'].map(PublicLiftToJSON)),
|
|
56
62
|
'resort': PublicResortInfoToJSON(value['resort']),
|
|
57
|
-
'runs':
|
|
58
|
-
'snow':
|
|
63
|
+
'runs': (value['runs'].map(PublicRunToJSON)),
|
|
64
|
+
'snow': (value['snow'].map(PublicSnowReportToJSON)),
|
|
59
65
|
'status': PublicResortStatusToJSON(value['status']),
|
|
60
66
|
'weather': WeatherDataToJSON(value['weather']),
|
|
61
67
|
};
|
|
@@ -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).
|
|
@@ -79,10 +79,10 @@ export interface PublicResortStatus {
|
|
|
79
79
|
totalRuns: number;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {string}
|
|
83
83
|
* @memberof PublicResortStatus
|
|
84
84
|
*/
|
|
85
|
-
updatedAt?:
|
|
85
|
+
updatedAt?: string | null;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -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).
|
|
@@ -53,7 +53,7 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'status': ResortStatusTypeFromJSON(json['status']),
|
|
54
54
|
'totalLifts': json['total_lifts'],
|
|
55
55
|
'totalRuns': json['total_runs'],
|
|
56
|
-
'updatedAt': json['updated_at'] == null ? undefined :
|
|
56
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
export function PublicResortStatusToJSON(json) {
|
|
@@ -74,6 +74,6 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
74
74
|
'status': ResortStatusTypeToJSON(value['status']),
|
|
75
75
|
'total_lifts': value['totalLifts'],
|
|
76
76
|
'total_runs': value['totalRuns'],
|
|
77
|
-
'updated_at': value['updatedAt']
|
|
77
|
+
'updated_at': value['updatedAt'],
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -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 PublicRun {
|
|
|
49
49
|
groomedToday: boolean;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof PublicRun
|
|
54
54
|
*/
|
|
55
|
-
lastGroomed?:
|
|
55
|
+
lastGroomed?: string | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {string}
|
|
@@ -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 PublicRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'conditionNotes': json['condition_notes'],
|
|
47
47
|
'difficulty': RunDifficultyFromJSON(json['difficulty']),
|
|
48
48
|
'groomedToday': json['groomed_today'],
|
|
49
|
-
'lastGroomed': json['last_groomed'] == null ? undefined :
|
|
49
|
+
'lastGroomed': json['last_groomed'] == null ? undefined : json['last_groomed'],
|
|
50
50
|
'name': json['name'],
|
|
51
51
|
'number': json['number'] == null ? undefined : json['number'],
|
|
52
52
|
'slug': json['slug'],
|
|
@@ -67,7 +67,7 @@ export function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
67
|
'condition_notes': value['conditionNotes'],
|
|
68
68
|
'difficulty': RunDifficultyToJSON(value['difficulty']),
|
|
69
69
|
'groomed_today': value['groomedToday'],
|
|
70
|
-
'last_groomed': value['lastGroomed']
|
|
70
|
+
'last_groomed': value['lastGroomed'],
|
|
71
71
|
'name': value['name'],
|
|
72
72
|
'number': value['number'],
|
|
73
73
|
'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:
|
|
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 PublicSnowReport {
|
|
|
49
49
|
conditionNotes: string;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof PublicSnowReport
|
|
54
54
|
*/
|
|
55
|
-
reportedAt:
|
|
55
|
+
reportedAt: string;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {SurfaceCondition}
|
|
@@ -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).
|
|
@@ -42,7 +42,7 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
43
43
|
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
44
44
|
'conditionNotes': json['condition_notes'],
|
|
45
|
-
'reportedAt':
|
|
45
|
+
'reportedAt': json['reported_at'],
|
|
46
46
|
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
47
47
|
'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
|
|
48
48
|
'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
|
|
@@ -63,7 +63,7 @@ export function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
63
63
|
'base_depth_cm': value['baseDepthCm'],
|
|
64
64
|
'base_depth_in': value['baseDepthIn'],
|
|
65
65
|
'condition_notes': value['conditionNotes'],
|
|
66
|
-
'reported_at': value['reportedAt']
|
|
66
|
+
'reported_at': value['reportedAt'],
|
|
67
67
|
'secondary_surface_condition': SurfaceConditionToJSON(value['secondarySurfaceCondition']),
|
|
68
68
|
'snowfall_cm': SnowMetricsToJSON(value['snowfallCm']),
|
|
69
69
|
'snowfall_in': 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:
|
|
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).
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
export interface RecurrencePatternOneOf2 {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {string}
|
|
21
21
|
* @memberof RecurrencePatternOneOf2
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
type: RecurrencePatternOneOf2TypeEnum;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {Array<number>}
|
|
27
27
|
* @memberof RecurrencePatternOneOf2
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
days: Array<number>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @export
|
|
@@ -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,10 +21,10 @@ export const RecurrencePatternOneOf2TypeEnum = {
|
|
|
21
21
|
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
22
22
|
*/
|
|
23
23
|
export function instanceOfRecurrencePatternOneOf2(value) {
|
|
24
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
25
|
-
return false;
|
|
26
24
|
if (!('type' in value) || value['type'] === undefined)
|
|
27
25
|
return false;
|
|
26
|
+
if (!('days' in value) || value['days'] === undefined)
|
|
27
|
+
return false;
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
30
|
export function RecurrencePatternOneOf2FromJSON(json) {
|
|
@@ -35,8 +35,8 @@ export function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
-
'days': json['days'],
|
|
39
38
|
'type': json['type'],
|
|
39
|
+
'days': json['days'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function RecurrencePatternOneOf2ToJSON(json) {
|
|
@@ -47,7 +47,7 @@ export function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator =
|
|
|
47
47
|
return value;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'days': value['days'],
|
|
51
50
|
'type': value['type'],
|
|
51
|
+
'days': value['days'],
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -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).
|
|
@@ -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).
|