@mtnmanager/sdk 0.0.1 → 0.0.5
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 +20 -5
- package/dist/esm/models/CurrentWeather.d.ts +85 -0
- package/dist/esm/models/CurrentWeather.js +77 -0
- package/dist/esm/models/DailyForecast.d.ts +76 -0
- package/dist/esm/models/DailyForecast.js +73 -0
- package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
- package/dist/esm/models/DailyForecastImperial.js +63 -0
- package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
- package/dist/esm/models/DailyForecastMetric.js +63 -0
- package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
- package/dist/esm/models/HourlyForecast.d.ts +70 -0
- package/dist/esm/models/HourlyForecast.js +69 -0
- package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/esm/models/HourlyForecastImperial.js +63 -0
- package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/esm/models/HourlyForecastMetric.js +63 -0
- package/dist/esm/models/ImperialUnits.d.ts +68 -0
- package/dist/esm/models/ImperialUnits.js +65 -0
- package/dist/esm/models/MetricUnits.d.ts +68 -0
- package/dist/esm/models/MetricUnits.js +65 -0
- package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/esm/models/OperatingHoursResponse.js +7 -11
- package/dist/esm/models/PublicResortResponse.d.ts +7 -0
- package/dist/esm/models/PublicResortResponse.js +3 -0
- package/dist/esm/models/PublicResortStatus.d.ts +51 -2
- package/dist/esm/models/PublicResortStatus.js +32 -1
- package/dist/esm/models/PublicRun.d.ts +7 -1
- package/dist/esm/models/PublicRun.js +5 -1
- package/dist/esm/models/PublicSnowReport.d.ts +12 -0
- package/dist/esm/models/PublicSnowReport.js +6 -0
- package/dist/esm/models/RecurrencePattern.d.ts +24 -0
- package/dist/esm/models/RecurrencePattern.js +58 -0
- package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
- package/dist/esm/models/ResortStatusType.d.ts +0 -1
- package/dist/esm/models/ResortStatusType.js +1 -2
- package/dist/esm/models/Schedule.d.ts +81 -0
- package/dist/esm/models/Schedule.js +76 -0
- package/dist/esm/models/SeasonType.d.ts +26 -0
- package/dist/esm/models/SeasonType.js +44 -0
- package/dist/esm/models/SurfaceCondition.d.ts +16 -7
- package/dist/esm/models/SurfaceCondition.js +16 -7
- package/dist/esm/models/WeatherData.d.ts +59 -0
- package/dist/esm/models/WeatherData.js +62 -0
- package/dist/esm/models/index.d.ts +17 -2
- package/dist/esm/models/index.js +17 -2
- package/dist/models/CurrentWeather.d.ts +85 -0
- package/dist/models/CurrentWeather.js +84 -0
- package/dist/models/DailyForecast.d.ts +76 -0
- package/dist/models/DailyForecast.js +80 -0
- package/dist/models/DailyForecastImperial.d.ts +62 -0
- package/dist/models/DailyForecastImperial.js +70 -0
- package/dist/models/DailyForecastMetric.d.ts +62 -0
- package/dist/models/DailyForecastMetric.js +70 -0
- package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
- package/dist/models/HourlyForecast.d.ts +70 -0
- package/dist/models/HourlyForecast.js +76 -0
- package/dist/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/models/HourlyForecastImperial.js +70 -0
- package/dist/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/models/HourlyForecastMetric.js +70 -0
- package/dist/models/ImperialUnits.d.ts +68 -0
- package/dist/models/ImperialUnits.js +72 -0
- package/dist/models/MetricUnits.d.ts +68 -0
- package/dist/models/MetricUnits.js +72 -0
- package/dist/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/models/OperatingHoursResponse.js +7 -11
- package/dist/models/PublicResortResponse.d.ts +7 -0
- package/dist/models/PublicResortResponse.js +3 -0
- package/dist/models/PublicResortStatus.d.ts +51 -2
- package/dist/models/PublicResortStatus.js +32 -1
- package/dist/models/PublicRun.d.ts +7 -1
- package/dist/models/PublicRun.js +5 -1
- package/dist/models/PublicSnowReport.d.ts +12 -0
- package/dist/models/PublicSnowReport.js +6 -0
- package/dist/models/RecurrencePattern.d.ts +24 -0
- package/dist/models/RecurrencePattern.js +64 -0
- package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf.js +57 -0
- package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf1.js +57 -0
- package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/models/RecurrencePatternOneOf2.js +61 -0
- package/dist/models/ResortStatusType.d.ts +0 -1
- package/dist/models/ResortStatusType.js +1 -2
- package/dist/models/Schedule.d.ts +81 -0
- package/dist/models/Schedule.js +83 -0
- package/dist/models/SeasonType.d.ts +26 -0
- package/dist/models/SeasonType.js +52 -0
- package/dist/models/SurfaceCondition.d.ts +16 -7
- package/dist/models/SurfaceCondition.js +16 -7
- package/dist/models/WeatherData.d.ts +59 -0
- package/dist/models/WeatherData.js +69 -0
- package/dist/models/index.d.ts +17 -2
- package/dist/models/index.js +17 -2
- package/package.json +7 -10
- package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
- package/dist/esm/models/RegularHoursDescription.js +0 -55
- package/dist/models/RegularHoursDescription.d.ts +0 -50
- package/dist/models/RegularHoursDescription.js +0 -62
|
@@ -0,0 +1,65 @@
|
|
|
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: 0.1.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 MetricUnits interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMetricUnits(value) {
|
|
18
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function MetricUnitsFromJSON(json) {
|
|
33
|
+
return MetricUnitsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function MetricUnitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'feelsLike': json['feels_like'],
|
|
41
|
+
'precipitation': json['precipitation'],
|
|
42
|
+
'snowfall': json['snowfall'],
|
|
43
|
+
'temperature': json['temperature'],
|
|
44
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
45
|
+
'windGust': json['wind_gust'],
|
|
46
|
+
'windSpeed': json['wind_speed'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function MetricUnitsToJSON(json) {
|
|
50
|
+
return MetricUnitsToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function MetricUnitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'feels_like': value['feelsLike'],
|
|
58
|
+
'precipitation': value['precipitation'],
|
|
59
|
+
'snowfall': value['snowfall'],
|
|
60
|
+
'temperature': value['temperature'],
|
|
61
|
+
'visibility': value['visibility'],
|
|
62
|
+
'wind_gust': value['windGust'],
|
|
63
|
+
'wind_speed': value['windSpeed'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
12
|
+
import type { DayHours } from './DayHours';
|
|
13
|
+
import type { Schedule } from './Schedule';
|
|
14
14
|
/**
|
|
15
15
|
* Calculated operating hours response
|
|
16
16
|
* @export
|
|
@@ -19,22 +19,16 @@ import type { RegularHoursDescription } from './RegularHoursDescription';
|
|
|
19
19
|
export interface OperatingHoursResponse {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<DayHours>}
|
|
23
23
|
* @memberof OperatingHoursResponse
|
|
24
24
|
*/
|
|
25
|
-
openDays: Array<
|
|
25
|
+
openDays: Array<DayHours>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {Array<
|
|
28
|
+
* @type {Array<Schedule>}
|
|
29
29
|
* @memberof OperatingHoursResponse
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {HoursInfo}
|
|
35
|
-
* @memberof OperatingHoursResponse
|
|
36
|
-
*/
|
|
37
|
-
today: HoursInfo;
|
|
31
|
+
schedules: Array<Schedule>;
|
|
38
32
|
}
|
|
39
33
|
/**
|
|
40
34
|
* Check if a given object implements the OperatingHoursResponse interface.
|
|
@@ -11,17 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { DayHoursFromJSON, DayHoursToJSON, } from './DayHours';
|
|
15
|
+
import { ScheduleFromJSON, ScheduleToJSON, } from './Schedule';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the OperatingHoursResponse interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfOperatingHoursResponse(value) {
|
|
20
20
|
if (!('openDays' in value) || value['openDays'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
23
|
-
return false;
|
|
24
|
-
if (!('today' in value) || value['today'] === undefined)
|
|
22
|
+
if (!('schedules' in value) || value['schedules'] === undefined)
|
|
25
23
|
return false;
|
|
26
24
|
return true;
|
|
27
25
|
}
|
|
@@ -33,9 +31,8 @@ export function OperatingHoursResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'openDays': (json['open_days'].map(
|
|
37
|
-
'
|
|
38
|
-
'today': HoursInfoFromJSON(json['today']),
|
|
34
|
+
'openDays': (json['open_days'].map(DayHoursFromJSON)),
|
|
35
|
+
'schedules': (json['schedules'].map(ScheduleFromJSON)),
|
|
39
36
|
};
|
|
40
37
|
}
|
|
41
38
|
export function OperatingHoursResponseToJSON(json) {
|
|
@@ -46,8 +43,7 @@ export function OperatingHoursResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
46
43
|
return value;
|
|
47
44
|
}
|
|
48
45
|
return {
|
|
49
|
-
'open_days': (value['openDays'].map(
|
|
50
|
-
'
|
|
51
|
-
'today': HoursInfoToJSON(value['today']),
|
|
46
|
+
'open_days': (value['openDays'].map(DayHoursToJSON)),
|
|
47
|
+
'schedules': (value['schedules'].map(ScheduleToJSON)),
|
|
52
48
|
};
|
|
53
49
|
}
|
|
@@ -15,6 +15,7 @@ import type { PublicLift } from './PublicLift';
|
|
|
15
15
|
import type { PublicResortStatus } from './PublicResortStatus';
|
|
16
16
|
import type { PublicSnowReport } from './PublicSnowReport';
|
|
17
17
|
import type { PublicResortInfo } from './PublicResortInfo';
|
|
18
|
+
import type { WeatherData } from './WeatherData';
|
|
18
19
|
/**
|
|
19
20
|
* Comprehensive resort response (all-in-one)
|
|
20
21
|
* @export
|
|
@@ -57,6 +58,12 @@ export interface PublicResortResponse {
|
|
|
57
58
|
* @memberof PublicResortResponse
|
|
58
59
|
*/
|
|
59
60
|
status?: PublicResortStatus | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {WeatherData}
|
|
64
|
+
* @memberof PublicResortResponse
|
|
65
|
+
*/
|
|
66
|
+
weather?: WeatherData | null;
|
|
60
67
|
}
|
|
61
68
|
/**
|
|
62
69
|
* Check if a given object implements the PublicResortResponse interface.
|
|
@@ -17,6 +17,7 @@ import { PublicLiftFromJSON, PublicLiftToJSON, } from './PublicLift';
|
|
|
17
17
|
import { PublicResortStatusFromJSON, PublicResortStatusToJSON, } from './PublicResortStatus';
|
|
18
18
|
import { PublicSnowReportFromJSON, PublicSnowReportToJSON, } from './PublicSnowReport';
|
|
19
19
|
import { PublicResortInfoFromJSON, PublicResortInfoToJSON, } from './PublicResortInfo';
|
|
20
|
+
import { WeatherDataFromJSON, WeatherDataToJSON, } from './WeatherData';
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the PublicResortResponse interface.
|
|
22
23
|
*/
|
|
@@ -39,6 +40,7 @@ export function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRunFromJSON)),
|
|
40
41
|
'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReportFromJSON)),
|
|
41
42
|
'status': json['status'] == null ? undefined : PublicResortStatusFromJSON(json['status']),
|
|
43
|
+
'weather': json['weather'] == null ? undefined : WeatherDataFromJSON(json['weather']),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export function PublicResortResponseToJSON(json) {
|
|
@@ -55,5 +57,6 @@ export function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
55
57
|
'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRunToJSON)),
|
|
56
58
|
'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReportToJSON)),
|
|
57
59
|
'status': PublicResortStatusToJSON(value['status']),
|
|
60
|
+
'weather': WeatherDataToJSON(value['weather']),
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -9,25 +9,74 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SeasonType } from './SeasonType';
|
|
12
13
|
import type { ResortStatusType } from './ResortStatusType';
|
|
13
14
|
/**
|
|
14
|
-
* Resort status with optional metadata
|
|
15
|
+
* Resort status with optional metadata and today's scheduled hours
|
|
15
16
|
* @export
|
|
16
17
|
* @interface PublicResortStatus
|
|
17
18
|
*/
|
|
18
19
|
export interface PublicResortStatus {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PublicResortStatus
|
|
24
|
+
*/
|
|
25
|
+
groomedRuns: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PublicResortStatus
|
|
30
|
+
*/
|
|
31
|
+
notes: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PublicResortStatus
|
|
36
|
+
*/
|
|
37
|
+
openLifts: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PublicResortStatus
|
|
42
|
+
*/
|
|
43
|
+
openRuns: number;
|
|
19
44
|
/**
|
|
20
45
|
*
|
|
21
46
|
* @type {string}
|
|
22
47
|
* @memberof PublicResortStatus
|
|
23
48
|
*/
|
|
24
|
-
|
|
49
|
+
scheduledClosesAt?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PublicResortStatus
|
|
54
|
+
*/
|
|
55
|
+
scheduledOpensAt?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SeasonType}
|
|
59
|
+
* @memberof PublicResortStatus
|
|
60
|
+
*/
|
|
61
|
+
season: SeasonType;
|
|
25
62
|
/**
|
|
26
63
|
*
|
|
27
64
|
* @type {ResortStatusType}
|
|
28
65
|
* @memberof PublicResortStatus
|
|
29
66
|
*/
|
|
30
67
|
status: ResortStatusType;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof PublicResortStatus
|
|
72
|
+
*/
|
|
73
|
+
totalLifts: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof PublicResortStatus
|
|
78
|
+
*/
|
|
79
|
+
totalRuns: number;
|
|
31
80
|
/**
|
|
32
81
|
*
|
|
33
82
|
* @type {Date}
|
|
@@ -11,13 +11,28 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
|
|
14
15
|
import { ResortStatusTypeFromJSON, ResortStatusTypeToJSON, } from './ResortStatusType';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PublicResortStatus interface.
|
|
17
18
|
*/
|
|
18
19
|
export function instanceOfPublicResortStatus(value) {
|
|
20
|
+
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('season' in value) || value['season'] === undefined)
|
|
29
|
+
return false;
|
|
19
30
|
if (!('status' in value) || value['status'] === undefined)
|
|
20
31
|
return false;
|
|
32
|
+
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
35
|
+
return false;
|
|
21
36
|
return true;
|
|
22
37
|
}
|
|
23
38
|
export function PublicResortStatusFromJSON(json) {
|
|
@@ -28,8 +43,16 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
43
|
return json;
|
|
29
44
|
}
|
|
30
45
|
return {
|
|
31
|
-
'
|
|
46
|
+
'groomedRuns': json['groomed_runs'],
|
|
47
|
+
'notes': json['notes'],
|
|
48
|
+
'openLifts': json['open_lifts'],
|
|
49
|
+
'openRuns': json['open_runs'],
|
|
50
|
+
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
51
|
+
'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
|
|
52
|
+
'season': SeasonTypeFromJSON(json['season']),
|
|
32
53
|
'status': ResortStatusTypeFromJSON(json['status']),
|
|
54
|
+
'totalLifts': json['total_lifts'],
|
|
55
|
+
'totalRuns': json['total_runs'],
|
|
33
56
|
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
34
57
|
};
|
|
35
58
|
}
|
|
@@ -41,8 +64,16 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
41
64
|
return value;
|
|
42
65
|
}
|
|
43
66
|
return {
|
|
67
|
+
'groomed_runs': value['groomedRuns'],
|
|
44
68
|
'notes': value['notes'],
|
|
69
|
+
'open_lifts': value['openLifts'],
|
|
70
|
+
'open_runs': value['openRuns'],
|
|
71
|
+
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
72
|
+
'scheduled_opens_at': value['scheduledOpensAt'],
|
|
73
|
+
'season': SeasonTypeToJSON(value['season']),
|
|
45
74
|
'status': ResortStatusTypeToJSON(value['status']),
|
|
75
|
+
'total_lifts': value['totalLifts'],
|
|
76
|
+
'total_runs': value['totalRuns'],
|
|
46
77
|
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
47
78
|
};
|
|
48
79
|
}
|
|
@@ -34,7 +34,7 @@ export interface PublicRun {
|
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof PublicRun
|
|
36
36
|
*/
|
|
37
|
-
conditionNotes
|
|
37
|
+
conditionNotes: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {RunDifficulty}
|
|
@@ -59,6 +59,12 @@ export interface PublicRun {
|
|
|
59
59
|
* @memberof PublicRun
|
|
60
60
|
*/
|
|
61
61
|
name: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof PublicRun
|
|
66
|
+
*/
|
|
67
|
+
number?: number | null;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {string}
|
|
@@ -17,6 +17,8 @@ import { RunDifficultyFromJSON, RunDifficultyToJSON, } from './RunDifficulty';
|
|
|
17
17
|
* Check if a given object implements the PublicRun interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfPublicRun(value) {
|
|
20
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
if (!('difficulty' in value) || value['difficulty'] === undefined)
|
|
21
23
|
return false;
|
|
22
24
|
if (!('groomedToday' in value) || value['groomedToday'] === undefined)
|
|
@@ -41,11 +43,12 @@ export function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
return {
|
|
42
44
|
'areaId': json['area_id'] == null ? undefined : json['area_id'],
|
|
43
45
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
44
|
-
'conditionNotes': json['condition_notes']
|
|
46
|
+
'conditionNotes': json['condition_notes'],
|
|
45
47
|
'difficulty': RunDifficultyFromJSON(json['difficulty']),
|
|
46
48
|
'groomedToday': json['groomed_today'],
|
|
47
49
|
'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
|
|
48
50
|
'name': json['name'],
|
|
51
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
49
52
|
'slug': json['slug'],
|
|
50
53
|
'status': RunStatusFromJSON(json['status']),
|
|
51
54
|
'uuid': json['uuid'],
|
|
@@ -66,6 +69,7 @@ export function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
69
|
'groomed_today': value['groomedToday'],
|
|
67
70
|
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
68
71
|
'name': value['name'],
|
|
72
|
+
'number': value['number'],
|
|
69
73
|
'slug': value['slug'],
|
|
70
74
|
'status': RunStatusToJSON(value['status']),
|
|
71
75
|
'uuid': value['uuid'],
|
|
@@ -41,12 +41,24 @@ export interface PublicSnowReport {
|
|
|
41
41
|
* @memberof PublicSnowReport
|
|
42
42
|
*/
|
|
43
43
|
baseDepthIn?: number | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PublicSnowReport
|
|
48
|
+
*/
|
|
49
|
+
conditionNotes: string;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {Date}
|
|
47
53
|
* @memberof PublicSnowReport
|
|
48
54
|
*/
|
|
49
55
|
reportedAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SurfaceCondition}
|
|
59
|
+
* @memberof PublicSnowReport
|
|
60
|
+
*/
|
|
61
|
+
secondarySurfaceCondition?: SurfaceCondition | null;
|
|
50
62
|
/**
|
|
51
63
|
*
|
|
52
64
|
* @type {SnowMetrics}
|
|
@@ -17,6 +17,8 @@ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCond
|
|
|
17
17
|
* Check if a given object implements the PublicSnowReport interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfPublicSnowReport(value) {
|
|
20
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
if (!('reportedAt' in value) || value['reportedAt'] === undefined)
|
|
21
23
|
return false;
|
|
22
24
|
if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
|
|
@@ -39,7 +41,9 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
40
42
|
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
41
43
|
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
44
|
+
'conditionNotes': json['condition_notes'],
|
|
42
45
|
'reportedAt': (new Date(json['reported_at'])),
|
|
46
|
+
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
43
47
|
'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
|
|
44
48
|
'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
|
|
45
49
|
'surfaceCondition': json['surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['surface_condition']),
|
|
@@ -58,7 +62,9 @@ export function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
58
62
|
'area_name': value['areaName'],
|
|
59
63
|
'base_depth_cm': value['baseDepthCm'],
|
|
60
64
|
'base_depth_in': value['baseDepthIn'],
|
|
65
|
+
'condition_notes': value['conditionNotes'],
|
|
61
66
|
'reported_at': value['reportedAt'].toISOString(),
|
|
67
|
+
'secondary_surface_condition': SurfaceConditionToJSON(value['secondarySurfaceCondition']),
|
|
62
68
|
'snowfall_cm': SnowMetricsToJSON(value['snowfallCm']),
|
|
63
69
|
'snowfall_in': SnowMetricsToJSON(value['snowfallIn']),
|
|
64
70
|
'surface_condition': SurfaceConditionToJSON(value['surfaceCondition']),
|
|
@@ -0,0 +1,24 @@
|
|
|
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: 0.1.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
|
+
import type { RecurrencePatternOneOf } from './RecurrencePatternOneOf';
|
|
13
|
+
import type { RecurrencePatternOneOf1 } from './RecurrencePatternOneOf1';
|
|
14
|
+
import type { RecurrencePatternOneOf2 } from './RecurrencePatternOneOf2';
|
|
15
|
+
/**
|
|
16
|
+
* @type RecurrencePattern
|
|
17
|
+
* Recurrence pattern for operating hours rules
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type RecurrencePattern = RecurrencePatternOneOf | RecurrencePatternOneOf1 | RecurrencePatternOneOf2;
|
|
21
|
+
export declare function RecurrencePatternFromJSON(json: any): RecurrencePattern;
|
|
22
|
+
export declare function RecurrencePatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePattern;
|
|
23
|
+
export declare function RecurrencePatternToJSON(json: any): any;
|
|
24
|
+
export declare function RecurrencePatternToJSONTyped(value?: RecurrencePattern | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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: 0.1.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
|
+
import { instanceOfRecurrencePatternOneOf, RecurrencePatternOneOfFromJSONTyped, RecurrencePatternOneOfToJSON, } from './RecurrencePatternOneOf';
|
|
15
|
+
import { instanceOfRecurrencePatternOneOf1, RecurrencePatternOneOf1FromJSONTyped, RecurrencePatternOneOf1ToJSON, } from './RecurrencePatternOneOf1';
|
|
16
|
+
import { instanceOfRecurrencePatternOneOf2, RecurrencePatternOneOf2FromJSONTyped, RecurrencePatternOneOf2ToJSON, } from './RecurrencePatternOneOf2';
|
|
17
|
+
export function RecurrencePatternFromJSON(json) {
|
|
18
|
+
return RecurrencePatternFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function RecurrencePatternFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
if (typeof json !== 'object') {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
if (instanceOfRecurrencePatternOneOf(json)) {
|
|
28
|
+
return RecurrencePatternOneOfFromJSONTyped(json, true);
|
|
29
|
+
}
|
|
30
|
+
if (instanceOfRecurrencePatternOneOf1(json)) {
|
|
31
|
+
return RecurrencePatternOneOf1FromJSONTyped(json, true);
|
|
32
|
+
}
|
|
33
|
+
if (instanceOfRecurrencePatternOneOf2(json)) {
|
|
34
|
+
return RecurrencePatternOneOf2FromJSONTyped(json, true);
|
|
35
|
+
}
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
export function RecurrencePatternToJSON(json) {
|
|
39
|
+
return RecurrencePatternToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function RecurrencePatternToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
if (typeof value !== 'object') {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
if (instanceOfRecurrencePatternOneOf(value)) {
|
|
49
|
+
return RecurrencePatternOneOfToJSON(value);
|
|
50
|
+
}
|
|
51
|
+
if (instanceOfRecurrencePatternOneOf1(value)) {
|
|
52
|
+
return RecurrencePatternOneOf1ToJSON(value);
|
|
53
|
+
}
|
|
54
|
+
if (instanceOfRecurrencePatternOneOf2(value)) {
|
|
55
|
+
return RecurrencePatternOneOf2ToJSON(value);
|
|
56
|
+
}
|
|
57
|
+
return {};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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: 0.1.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 RecurrencePatternOneOf
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecurrencePatternOneOf
|
|
22
|
+
*/
|
|
23
|
+
type: RecurrencePatternOneOfTypeEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const RecurrencePatternOneOfTypeEnum: {
|
|
29
|
+
readonly None: "none";
|
|
30
|
+
};
|
|
31
|
+
export type RecurrencePatternOneOfTypeEnum = typeof RecurrencePatternOneOfTypeEnum[keyof typeof RecurrencePatternOneOfTypeEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RecurrencePatternOneOf interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRecurrencePatternOneOf(value: object): value is RecurrencePatternOneOf;
|
|
36
|
+
export declare function RecurrencePatternOneOfFromJSON(json: any): RecurrencePatternOneOf;
|
|
37
|
+
export declare function RecurrencePatternOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf;
|
|
38
|
+
export declare function RecurrencePatternOneOfToJSON(json: any): RecurrencePatternOneOf;
|
|
39
|
+
export declare function RecurrencePatternOneOfToJSONTyped(value?: RecurrencePatternOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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: 0.1.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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const RecurrencePatternOneOfTypeEnum = {
|
|
18
|
+
None: 'none'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RecurrencePatternOneOf interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfRecurrencePatternOneOf(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function RecurrencePatternOneOfFromJSON(json) {
|
|
29
|
+
return RecurrencePatternOneOfFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function RecurrencePatternOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'type': json['type'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function RecurrencePatternOneOfToJSON(json) {
|
|
40
|
+
return RecurrencePatternOneOfToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function RecurrencePatternOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value['type'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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: 0.1.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 RecurrencePatternOneOf1
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecurrencePatternOneOf1
|
|
22
|
+
*/
|
|
23
|
+
type: RecurrencePatternOneOf1TypeEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const RecurrencePatternOneOf1TypeEnum: {
|
|
29
|
+
readonly Daily: "daily";
|
|
30
|
+
};
|
|
31
|
+
export type RecurrencePatternOneOf1TypeEnum = typeof RecurrencePatternOneOf1TypeEnum[keyof typeof RecurrencePatternOneOf1TypeEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRecurrencePatternOneOf1(value: object): value is RecurrencePatternOneOf1;
|
|
36
|
+
export declare function RecurrencePatternOneOf1FromJSON(json: any): RecurrencePatternOneOf1;
|
|
37
|
+
export declare function RecurrencePatternOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf1;
|
|
38
|
+
export declare function RecurrencePatternOneOf1ToJSON(json: any): RecurrencePatternOneOf1;
|
|
39
|
+
export declare function RecurrencePatternOneOf1ToJSONTyped(value?: RecurrencePatternOneOf1 | null, ignoreDiscriminator?: boolean): any;
|