@mtnmanager/sdk 0.0.26 → 0.0.28
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 +14 -16
- package/dist/apis/ReportApi.d.ts +186 -0
- package/dist/apis/ReportApi.js +241 -0
- package/dist/apis/index.d.ts +1 -6
- package/dist/apis/index.js +1 -6
- package/dist/esm/apis/ReportApi.d.ts +186 -0
- package/dist/esm/apis/ReportApi.js +237 -0
- package/dist/esm/apis/index.d.ts +1 -6
- package/dist/esm/apis/index.js +1 -6
- package/dist/esm/models/ClosureReason.d.ts +1 -1
- package/dist/esm/models/ClosureReason.js +1 -1
- package/dist/esm/models/CurrentWeather.d.ts +3 -3
- package/dist/esm/models/CurrentWeather.js +3 -3
- package/dist/esm/models/DailyForecast.d.ts +7 -7
- package/dist/esm/models/DailyForecast.js +7 -7
- 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 +11 -5
- package/dist/esm/models/LiftStatus.js +26 -36
- package/dist/esm/models/LiftType.d.ts +20 -5
- package/dist/esm/models/LiftType.js +35 -90
- 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/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 +1 -1
- package/dist/esm/models/PublicResortResponse.js +1 -1
- package/dist/esm/models/PublicResortStatus.d.ts +1 -1
- package/dist/esm/models/PublicResortStatus.js +1 -1
- package/dist/esm/models/PublicRun.d.ts +1 -1
- package/dist/esm/models/PublicRun.js +1 -1
- package/dist/esm/models/PublicSnowReport.d.ts +1 -1
- package/dist/esm/models/PublicSnowReport.js +1 -1
- package/dist/esm/models/PublicSnowResponse.d.ts +1 -1
- package/dist/esm/models/PublicSnowResponse.js +1 -1
- package/dist/esm/models/PublicSummerTrail.d.ts +1 -1
- package/dist/esm/models/PublicSummerTrail.js +1 -1
- package/dist/esm/models/ResortStatusType.d.ts +9 -5
- package/dist/esm/models/ResortStatusType.js +27 -24
- package/dist/esm/models/RunDifficulty.d.ts +12 -5
- package/dist/esm/models/RunDifficulty.js +29 -42
- package/dist/esm/models/RunStatus.d.ts +10 -5
- package/dist/esm/models/RunStatus.js +25 -30
- package/dist/esm/models/Schedule.d.ts +5 -5
- package/dist/esm/models/Schedule.js +3 -4
- package/dist/esm/models/SeasonType.d.ts +10 -5
- package/dist/esm/models/SeasonType.js +25 -30
- package/dist/esm/models/SnowMetrics.d.ts +1 -1
- package/dist/esm/models/SnowMetrics.js +1 -1
- package/dist/esm/models/SummerTrailDifficulty.d.ts +12 -5
- package/dist/esm/models/SummerTrailDifficulty.js +27 -42
- package/dist/esm/models/SummerTrailStatus.d.ts +10 -5
- package/dist/esm/models/SummerTrailStatus.js +25 -30
- package/dist/esm/models/SummerTrailType.d.ts +9 -5
- package/dist/esm/models/SummerTrailType.js +24 -24
- package/dist/esm/models/SurfaceCondition.d.ts +22 -5
- package/dist/esm/models/SurfaceCondition.js +40 -102
- package/dist/esm/models/UnitPreference.d.ts +1 -1
- package/dist/esm/models/UnitPreference.js +1 -1
- package/dist/esm/models/WeatherConditionCode.d.ts +48 -5
- package/dist/esm/models/WeatherConditionCode.js +64 -24
- package/dist/esm/models/WeatherData.d.ts +3 -3
- package/dist/esm/models/WeatherData.js +4 -4
- package/dist/esm/models/index.d.ts +0 -3
- package/dist/esm/models/index.js +0 -3
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ClosureReason.d.ts +1 -1
- package/dist/models/ClosureReason.js +1 -1
- package/dist/models/CurrentWeather.d.ts +3 -3
- package/dist/models/CurrentWeather.js +3 -3
- package/dist/models/DailyForecast.d.ts +7 -7
- package/dist/models/DailyForecast.js +7 -7
- 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 +11 -5
- package/dist/models/LiftStatus.js +28 -36
- package/dist/models/LiftType.d.ts +20 -5
- package/dist/models/LiftType.js +37 -90
- 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/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 +1 -1
- package/dist/models/PublicResortResponse.js +1 -1
- package/dist/models/PublicResortStatus.d.ts +1 -1
- package/dist/models/PublicResortStatus.js +1 -1
- package/dist/models/PublicRun.d.ts +1 -1
- package/dist/models/PublicRun.js +1 -1
- package/dist/models/PublicSnowReport.d.ts +1 -1
- package/dist/models/PublicSnowReport.js +1 -1
- package/dist/models/PublicSnowResponse.d.ts +1 -1
- package/dist/models/PublicSnowResponse.js +1 -1
- package/dist/models/PublicSummerTrail.d.ts +1 -1
- package/dist/models/PublicSummerTrail.js +1 -1
- package/dist/models/ResortStatusType.d.ts +9 -5
- package/dist/models/ResortStatusType.js +29 -24
- package/dist/models/RunDifficulty.d.ts +12 -5
- package/dist/models/RunDifficulty.js +31 -42
- package/dist/models/RunStatus.d.ts +10 -5
- package/dist/models/RunStatus.js +27 -30
- package/dist/models/Schedule.d.ts +5 -5
- package/dist/models/Schedule.js +3 -4
- package/dist/models/SeasonType.d.ts +10 -5
- package/dist/models/SeasonType.js +27 -30
- package/dist/models/SnowMetrics.d.ts +1 -1
- package/dist/models/SnowMetrics.js +1 -1
- package/dist/models/SummerTrailDifficulty.d.ts +12 -5
- package/dist/models/SummerTrailDifficulty.js +29 -42
- package/dist/models/SummerTrailStatus.d.ts +10 -5
- package/dist/models/SummerTrailStatus.js +27 -30
- package/dist/models/SummerTrailType.d.ts +9 -5
- package/dist/models/SummerTrailType.js +26 -24
- package/dist/models/SurfaceCondition.d.ts +22 -5
- package/dist/models/SurfaceCondition.js +42 -102
- package/dist/models/UnitPreference.d.ts +1 -1
- package/dist/models/UnitPreference.js +1 -1
- package/dist/models/WeatherConditionCode.d.ts +48 -5
- package/dist/models/WeatherConditionCode.js +66 -24
- package/dist/models/WeatherData.d.ts +3 -3
- package/dist/models/WeatherData.js +4 -4
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/apis/HoursApi.d.ts +0 -46
- package/dist/apis/HoursApi.js +0 -59
- package/dist/apis/LiftsApi.d.ts +0 -46
- package/dist/apis/LiftsApi.js +0 -59
- package/dist/apis/ResortApi.d.ts +0 -66
- package/dist/apis/ResortApi.js +0 -85
- package/dist/apis/RunsApi.d.ts +0 -46
- package/dist/apis/RunsApi.js +0 -59
- package/dist/apis/SnowApi.d.ts +0 -46
- package/dist/apis/SnowApi.js +0 -59
- package/dist/apis/SummerTrailsApi.d.ts +0 -46
- package/dist/apis/SummerTrailsApi.js +0 -59
- package/dist/esm/apis/HoursApi.d.ts +0 -46
- package/dist/esm/apis/HoursApi.js +0 -55
- package/dist/esm/apis/LiftsApi.d.ts +0 -46
- package/dist/esm/apis/LiftsApi.js +0 -55
- package/dist/esm/apis/ResortApi.d.ts +0 -66
- package/dist/esm/apis/ResortApi.js +0 -81
- package/dist/esm/apis/RunsApi.d.ts +0 -46
- package/dist/esm/apis/RunsApi.js +0 -55
- package/dist/esm/apis/SnowApi.d.ts +0 -46
- package/dist/esm/apis/SnowApi.js +0 -55
- package/dist/esm/apis/SummerTrailsApi.d.ts +0 -46
- package/dist/esm/apis/SummerTrailsApi.js +0 -55
- package/dist/esm/models/RecurrencePattern.d.ts +0 -23
- package/dist/esm/models/RecurrencePattern.js +0 -51
- package/dist/esm/models/RecurrencePatternOneOf.d.ts +0 -39
- package/dist/esm/models/RecurrencePatternOneOf.js +0 -51
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +0 -45
- package/dist/esm/models/RecurrencePatternOneOf1.js +0 -55
- package/dist/models/RecurrencePattern.d.ts +0 -23
- package/dist/models/RecurrencePattern.js +0 -57
- package/dist/models/RecurrencePatternOneOf.d.ts +0 -39
- package/dist/models/RecurrencePatternOneOf.js +0 -59
- package/dist/models/RecurrencePatternOneOf1.d.ts +0 -45
- package/dist/models/RecurrencePatternOneOf1.js +0 -63
|
@@ -5,39 +5,42 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Current operational status of the resort.
|
|
16
|
+
*
|
|
17
|
+
* Calculated automatically based on the current time relative to
|
|
18
|
+
* the resort's scheduled operating hours.
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const ResortStatusType = {
|
|
22
|
+
Open: 'open',
|
|
23
|
+
Closed: 'closed'
|
|
24
|
+
};
|
|
25
|
+
export function instanceOfResortStatusType(value) {
|
|
26
|
+
for (const key in ResortStatusType) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(ResortStatusType, key)) {
|
|
28
|
+
if (ResortStatusType[key] === value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
14
35
|
export function ResortStatusTypeFromJSON(json) {
|
|
15
36
|
return ResortStatusTypeFromJSONTyped(json, false);
|
|
16
37
|
}
|
|
17
38
|
export function ResortStatusTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'open')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {};
|
|
39
|
+
return json;
|
|
28
40
|
}
|
|
29
|
-
export function ResortStatusTypeToJSON(
|
|
30
|
-
return
|
|
41
|
+
export function ResortStatusTypeToJSON(value) {
|
|
42
|
+
return value;
|
|
31
43
|
}
|
|
32
|
-
export function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator
|
|
33
|
-
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
if (typeof value === 'string' && (value === 'open')) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
44
|
+
export function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
return value;
|
|
43
46
|
}
|
|
@@ -3,21 +3,28 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type RunDifficulty
|
|
14
13
|
* Difficulty rating for a ski run or trail.
|
|
15
14
|
*
|
|
16
15
|
* Based on the standard North American ski trail rating system.
|
|
17
16
|
* @export
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
18
|
+
export declare const RunDifficulty: {
|
|
19
|
+
readonly Beginner: "beginner";
|
|
20
|
+
readonly Intermediate: "intermediate";
|
|
21
|
+
readonly Advanced: "advanced";
|
|
22
|
+
readonly Expert: "expert";
|
|
23
|
+
readonly TerrainPark: "terrain_park";
|
|
24
|
+
};
|
|
25
|
+
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
26
|
+
export declare function instanceOfRunDifficulty(value: any): boolean;
|
|
20
27
|
export declare function RunDifficultyFromJSON(json: any): RunDifficulty;
|
|
21
28
|
export declare function RunDifficultyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunDifficulty;
|
|
22
|
-
export declare function RunDifficultyToJSON(
|
|
23
|
-
export declare function RunDifficultyToJSONTyped(value
|
|
29
|
+
export declare function RunDifficultyToJSON(value?: RunDifficulty | null): any;
|
|
30
|
+
export declare function RunDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): RunDifficulty;
|
|
@@ -5,57 +5,44 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Difficulty rating for a ski run or trail.
|
|
16
|
+
*
|
|
17
|
+
* Based on the standard North American ski trail rating system.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const RunDifficulty = {
|
|
21
|
+
Beginner: 'beginner',
|
|
22
|
+
Intermediate: 'intermediate',
|
|
23
|
+
Advanced: 'advanced',
|
|
24
|
+
Expert: 'expert',
|
|
25
|
+
TerrainPark: 'terrain_park'
|
|
26
|
+
};
|
|
27
|
+
export function instanceOfRunDifficulty(value) {
|
|
28
|
+
for (const key in RunDifficulty) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(RunDifficulty, key)) {
|
|
30
|
+
if (RunDifficulty[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
14
37
|
export function RunDifficultyFromJSON(json) {
|
|
15
38
|
return RunDifficultyFromJSONTyped(json, false);
|
|
16
39
|
}
|
|
17
40
|
export function RunDifficultyFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'expert')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'beginner')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'advanced')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'terrain_park')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'intermediate')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {};
|
|
41
|
+
return json;
|
|
37
42
|
}
|
|
38
|
-
export function RunDifficultyToJSON(
|
|
39
|
-
return
|
|
43
|
+
export function RunDifficultyToJSON(value) {
|
|
44
|
+
return value;
|
|
40
45
|
}
|
|
41
|
-
export function RunDifficultyToJSONTyped(value, ignoreDiscriminator
|
|
42
|
-
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'expert')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string' && (value === 'beginner')) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'advanced')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
if (typeof value === 'string' && (value === 'terrain_park')) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
if (typeof value === 'string' && (value === 'intermediate')) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {};
|
|
46
|
+
export function RunDifficultyToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
return value;
|
|
61
48
|
}
|
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type RunStatus
|
|
14
13
|
* Operational status of a ski run.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const RunStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type RunStatus = typeof RunStatus[keyof typeof RunStatus];
|
|
22
|
+
export declare function instanceOfRunStatus(value: any): boolean;
|
|
18
23
|
export declare function RunStatusFromJSON(json: any): RunStatus;
|
|
19
24
|
export declare function RunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunStatus;
|
|
20
|
-
export declare function RunStatusToJSON(
|
|
21
|
-
export declare function RunStatusToJSONTyped(value
|
|
25
|
+
export declare function RunStatusToJSON(value?: RunStatus | null): any;
|
|
26
|
+
export declare function RunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RunStatus;
|
|
@@ -5,45 +5,40 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Operational status of a ski run.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const RunStatus = {
|
|
19
|
+
Open: 'open',
|
|
20
|
+
Closed: 'closed',
|
|
21
|
+
Unknown: 'unknown'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfRunStatus(value) {
|
|
24
|
+
for (const key in RunStatus) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(RunStatus, key)) {
|
|
26
|
+
if (RunStatus[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
14
33
|
export function RunStatusFromJSON(json) {
|
|
15
34
|
return RunStatusFromJSONTyped(json, false);
|
|
16
35
|
}
|
|
17
36
|
export function RunStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'unknown')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'open')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {};
|
|
37
|
+
return json;
|
|
31
38
|
}
|
|
32
|
-
export function RunStatusToJSON(
|
|
33
|
-
return
|
|
39
|
+
export function RunStatusToJSON(value) {
|
|
40
|
+
return value;
|
|
34
41
|
}
|
|
35
|
-
export function RunStatusToJSONTyped(value, ignoreDiscriminator
|
|
36
|
-
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'unknown')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'open')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
42
|
+
export function RunStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
49
44
|
}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { RecurrencePattern } from './RecurrencePattern';
|
|
13
12
|
/**
|
|
14
13
|
* Recurring schedule pattern with human-readable and machine-readable formats.
|
|
15
14
|
*
|
|
@@ -27,11 +26,12 @@ export interface Schedule {
|
|
|
27
26
|
*/
|
|
28
27
|
daysString: string;
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* Array of day numbers this weekly schedule applies to (0 = Sunday, 1 = Monday, ..., 6 = Saturday).
|
|
30
|
+
* For programmatic use.
|
|
31
|
+
* @type {Array<number>}
|
|
32
32
|
* @memberof Schedule
|
|
33
33
|
*/
|
|
34
|
-
daysRecurrence:
|
|
34
|
+
daysRecurrence: Array<number>;
|
|
35
35
|
/**
|
|
36
36
|
* Human-readable time range.
|
|
37
37
|
* Example: "9:00 a.m. to 4:00 p.m."
|
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { RecurrencePatternFromJSON, RecurrencePatternToJSON, } from './RecurrencePattern';
|
|
15
14
|
/**
|
|
16
15
|
* Check if a given object implements the Schedule interface.
|
|
17
16
|
*/
|
|
@@ -45,7 +44,7 @@ export function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
44
|
}
|
|
46
45
|
return {
|
|
47
46
|
'daysString': json['days_string'],
|
|
48
|
-
'daysRecurrence':
|
|
47
|
+
'daysRecurrence': json['days_recurrence'],
|
|
49
48
|
'timeString': json['time_string'],
|
|
50
49
|
'opensAt': json['opens_at'],
|
|
51
50
|
'closesAt': json['closes_at'],
|
|
@@ -64,7 +63,7 @@ export function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
63
|
}
|
|
65
64
|
return {
|
|
66
65
|
'days_string': value['daysString'],
|
|
67
|
-
'days_recurrence':
|
|
66
|
+
'days_recurrence': value['daysRecurrence'],
|
|
68
67
|
'time_string': value['timeString'],
|
|
69
68
|
'opens_at': value['opensAt'],
|
|
70
69
|
'closes_at': value['closesAt'],
|
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SeasonType
|
|
14
13
|
* Current operating season of the resort.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SeasonType: {
|
|
17
|
+
readonly Winter: "winter";
|
|
18
|
+
readonly Summer: "summer";
|
|
19
|
+
readonly Closed: "closed";
|
|
20
|
+
};
|
|
21
|
+
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
|
+
export declare function instanceOfSeasonType(value: any): boolean;
|
|
18
23
|
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
19
24
|
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
20
|
-
export declare function SeasonTypeToJSON(
|
|
21
|
-
export declare function SeasonTypeToJSONTyped(value
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -5,45 +5,40 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Current operating season of the resort.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SeasonType = {
|
|
19
|
+
Winter: 'winter',
|
|
20
|
+
Summer: 'summer',
|
|
21
|
+
Closed: 'closed'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSeasonType(value) {
|
|
24
|
+
for (const key in SeasonType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SeasonType, key)) {
|
|
26
|
+
if (SeasonType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
14
33
|
export function SeasonTypeFromJSON(json) {
|
|
15
34
|
return SeasonTypeFromJSONTyped(json, false);
|
|
16
35
|
}
|
|
17
36
|
export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'winter')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'summer')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {};
|
|
37
|
+
return json;
|
|
31
38
|
}
|
|
32
|
-
export function SeasonTypeToJSON(
|
|
33
|
-
return
|
|
39
|
+
export function SeasonTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
34
41
|
}
|
|
35
|
-
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator
|
|
36
|
-
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'winter')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'summer')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
42
|
+
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
49
44
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -3,19 +3,26 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SummerTrailDifficulty
|
|
14
13
|
* Difficulty rating for a summer trail.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SummerTrailDifficulty: {
|
|
17
|
+
readonly Beginner: "beginner";
|
|
18
|
+
readonly Intermediate: "intermediate";
|
|
19
|
+
readonly Advanced: "advanced";
|
|
20
|
+
readonly Expert: "expert";
|
|
21
|
+
readonly TerrainPark: "terrain_park";
|
|
22
|
+
};
|
|
23
|
+
export type SummerTrailDifficulty = typeof SummerTrailDifficulty[keyof typeof SummerTrailDifficulty];
|
|
24
|
+
export declare function instanceOfSummerTrailDifficulty(value: any): boolean;
|
|
18
25
|
export declare function SummerTrailDifficultyFromJSON(json: any): SummerTrailDifficulty;
|
|
19
26
|
export declare function SummerTrailDifficultyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailDifficulty;
|
|
20
|
-
export declare function SummerTrailDifficultyToJSON(
|
|
21
|
-
export declare function SummerTrailDifficultyToJSONTyped(value
|
|
27
|
+
export declare function SummerTrailDifficultyToJSON(value?: SummerTrailDifficulty | null): any;
|
|
28
|
+
export declare function SummerTrailDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailDifficulty;
|
|
@@ -5,57 +5,42 @@
|
|
|
5
5
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Difficulty rating for a summer trail.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SummerTrailDifficulty = {
|
|
19
|
+
Beginner: 'beginner',
|
|
20
|
+
Intermediate: 'intermediate',
|
|
21
|
+
Advanced: 'advanced',
|
|
22
|
+
Expert: 'expert',
|
|
23
|
+
TerrainPark: 'terrain_park'
|
|
24
|
+
};
|
|
25
|
+
export function instanceOfSummerTrailDifficulty(value) {
|
|
26
|
+
for (const key in SummerTrailDifficulty) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailDifficulty, key)) {
|
|
28
|
+
if (SummerTrailDifficulty[key] === value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
14
35
|
export function SummerTrailDifficultyFromJSON(json) {
|
|
15
36
|
return SummerTrailDifficultyFromJSONTyped(json, false);
|
|
16
37
|
}
|
|
17
38
|
export function SummerTrailDifficultyFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'expert')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'beginner')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'advanced')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'terrain_park')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'intermediate')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {};
|
|
39
|
+
return json;
|
|
37
40
|
}
|
|
38
|
-
export function SummerTrailDifficultyToJSON(
|
|
39
|
-
return
|
|
41
|
+
export function SummerTrailDifficultyToJSON(value) {
|
|
42
|
+
return value;
|
|
40
43
|
}
|
|
41
|
-
export function SummerTrailDifficultyToJSONTyped(value, ignoreDiscriminator
|
|
42
|
-
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'expert')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string' && (value === 'beginner')) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'advanced')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
if (typeof value === 'string' && (value === 'terrain_park')) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
if (typeof value === 'string' && (value === 'intermediate')) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {};
|
|
44
|
+
export function SummerTrailDifficultyToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
return value;
|
|
61
46
|
}
|
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SummerTrailStatus
|
|
14
13
|
* Operational status of a summer trail.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SummerTrailStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type SummerTrailStatus = typeof SummerTrailStatus[keyof typeof SummerTrailStatus];
|
|
22
|
+
export declare function instanceOfSummerTrailStatus(value: any): boolean;
|
|
18
23
|
export declare function SummerTrailStatusFromJSON(json: any): SummerTrailStatus;
|
|
19
24
|
export declare function SummerTrailStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailStatus;
|
|
20
|
-
export declare function SummerTrailStatusToJSON(
|
|
21
|
-
export declare function SummerTrailStatusToJSONTyped(value
|
|
25
|
+
export declare function SummerTrailStatusToJSON(value?: SummerTrailStatus | null): any;
|
|
26
|
+
export declare function SummerTrailStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailStatus;
|