@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,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 RecurrencePatternOneOf1TypeEnum = {
|
|
18
|
+
Daily: 'daily'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfRecurrencePatternOneOf1(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function RecurrencePatternOneOf1FromJSON(json) {
|
|
29
|
+
return RecurrencePatternOneOf1FromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'type': json['type'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function RecurrencePatternOneOf1ToJSON(json) {
|
|
40
|
+
return RecurrencePatternOneOf1ToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value['type'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 RecurrencePatternOneOf2
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf2 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof RecurrencePatternOneOf2
|
|
22
|
+
*/
|
|
23
|
+
days: Array<number>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RecurrencePatternOneOf2
|
|
28
|
+
*/
|
|
29
|
+
type: RecurrencePatternOneOf2TypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const RecurrencePatternOneOf2TypeEnum: {
|
|
35
|
+
readonly Weekly: "weekly";
|
|
36
|
+
};
|
|
37
|
+
export type RecurrencePatternOneOf2TypeEnum = typeof RecurrencePatternOneOf2TypeEnum[keyof typeof RecurrencePatternOneOf2TypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfRecurrencePatternOneOf2(value: object): value is RecurrencePatternOneOf2;
|
|
42
|
+
export declare function RecurrencePatternOneOf2FromJSON(json: any): RecurrencePatternOneOf2;
|
|
43
|
+
export declare function RecurrencePatternOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf2;
|
|
44
|
+
export declare function RecurrencePatternOneOf2ToJSON(json: any): RecurrencePatternOneOf2;
|
|
45
|
+
export declare function RecurrencePatternOneOf2ToJSONTyped(value?: RecurrencePatternOneOf2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 RecurrencePatternOneOf2TypeEnum = {
|
|
18
|
+
Weekly: 'weekly'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfRecurrencePatternOneOf2(value) {
|
|
24
|
+
if (!('days' in value) || value['days'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function RecurrencePatternOneOf2FromJSON(json) {
|
|
31
|
+
return RecurrencePatternOneOf2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'days': json['days'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function RecurrencePatternOneOf2ToJSON(json) {
|
|
43
|
+
return RecurrencePatternOneOf2ToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'days': value['days'],
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
export declare const ResortStatusType: {
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
|
-
readonly ClosedForSeason: "closed_for_season";
|
|
20
19
|
};
|
|
21
20
|
export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
|
|
22
21
|
export declare function instanceOfResortStatusType(value: any): boolean;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { RecurrencePattern } from './RecurrencePattern';
|
|
13
|
+
/**
|
|
14
|
+
* Recurring schedule with human-readable and machine-readable values
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Schedule
|
|
17
|
+
*/
|
|
18
|
+
export interface Schedule {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Schedule
|
|
23
|
+
*/
|
|
24
|
+
closesAt: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {RecurrencePattern}
|
|
28
|
+
* @memberof Schedule
|
|
29
|
+
*/
|
|
30
|
+
daysRecurrence: RecurrencePattern;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Schedule
|
|
35
|
+
*/
|
|
36
|
+
daysString: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Schedule
|
|
41
|
+
*/
|
|
42
|
+
effectiveFrom: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Schedule
|
|
47
|
+
*/
|
|
48
|
+
effectiveString: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Schedule
|
|
53
|
+
*/
|
|
54
|
+
effectiveTo: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof Schedule
|
|
59
|
+
*/
|
|
60
|
+
inEffect: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Schedule
|
|
65
|
+
*/
|
|
66
|
+
opensAt: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Schedule
|
|
71
|
+
*/
|
|
72
|
+
timeString: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the Schedule interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfSchedule(value: object): value is Schedule;
|
|
78
|
+
export declare function ScheduleFromJSON(json: any): Schedule;
|
|
79
|
+
export declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
80
|
+
export declare function ScheduleToJSON(json: any): Schedule;
|
|
81
|
+
export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { RecurrencePatternFromJSON, RecurrencePatternToJSON, } from './RecurrencePattern';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Schedule interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSchedule(value) {
|
|
19
|
+
if (!('closesAt' in value) || value['closesAt'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('daysRecurrence' in value) || value['daysRecurrence'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('daysString' in value) || value['daysString'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('effectiveString' in value) || value['effectiveString'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('inEffect' in value) || value['inEffect'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('opensAt' in value) || value['opensAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('timeString' in value) || value['timeString'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function ScheduleFromJSON(json) {
|
|
40
|
+
return ScheduleFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'closesAt': json['closes_at'],
|
|
48
|
+
'daysRecurrence': RecurrencePatternFromJSON(json['days_recurrence']),
|
|
49
|
+
'daysString': json['days_string'],
|
|
50
|
+
'effectiveFrom': json['effective_from'],
|
|
51
|
+
'effectiveString': json['effective_string'],
|
|
52
|
+
'effectiveTo': json['effective_to'],
|
|
53
|
+
'inEffect': json['in_effect'],
|
|
54
|
+
'opensAt': json['opens_at'],
|
|
55
|
+
'timeString': json['time_string'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function ScheduleToJSON(json) {
|
|
59
|
+
return ScheduleToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'closes_at': value['closesAt'],
|
|
67
|
+
'days_recurrence': RecurrencePatternToJSON(value['daysRecurrence']),
|
|
68
|
+
'days_string': value['daysString'],
|
|
69
|
+
'effective_from': value['effectiveFrom'],
|
|
70
|
+
'effective_string': value['effectiveString'],
|
|
71
|
+
'effective_to': value['effectiveTo'],
|
|
72
|
+
'in_effect': value['inEffect'],
|
|
73
|
+
'opens_at': value['opensAt'],
|
|
74
|
+
'time_string': value['timeString'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
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;
|
|
23
|
+
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
24
|
+
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
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
|
+
}
|
|
33
|
+
export function SeasonTypeFromJSON(json) {
|
|
34
|
+
return SeasonTypeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SeasonTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -10,16 +10,25 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Surface condition types for snow reports
|
|
13
|
+
* Surface condition types for snow reports (following industry standard codes)
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const SurfaceCondition: {
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
17
|
+
readonly Bs: "BS";
|
|
18
|
+
readonly Co: "CO";
|
|
19
|
+
readonly Fg: "FG";
|
|
20
|
+
readonly Hp: "HP";
|
|
21
|
+
readonly Ip: "IP";
|
|
22
|
+
readonly Is: "IS";
|
|
23
|
+
readonly Lg: "LG";
|
|
24
|
+
readonly Mg: "MG";
|
|
25
|
+
readonly P: "P";
|
|
26
|
+
readonly Pp: "PP";
|
|
27
|
+
readonly Sc: "SC";
|
|
28
|
+
readonly Tc: "TC";
|
|
29
|
+
readonly V: "V";
|
|
30
|
+
readonly Wg: "WG";
|
|
31
|
+
readonly Wp: "WP";
|
|
23
32
|
};
|
|
24
33
|
export type SurfaceCondition = typeof SurfaceCondition[keyof typeof SurfaceCondition];
|
|
25
34
|
export declare function instanceOfSurfaceCondition(value: any): boolean;
|
|
@@ -12,16 +12,25 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Surface condition types for snow reports
|
|
15
|
+
* Surface condition types for snow reports (following industry standard codes)
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const SurfaceCondition = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
Bs: 'BS',
|
|
20
|
+
Co: 'CO',
|
|
21
|
+
Fg: 'FG',
|
|
22
|
+
Hp: 'HP',
|
|
23
|
+
Ip: 'IP',
|
|
24
|
+
Is: 'IS',
|
|
25
|
+
Lg: 'LG',
|
|
26
|
+
Mg: 'MG',
|
|
27
|
+
P: 'P',
|
|
28
|
+
Pp: 'PP',
|
|
29
|
+
Sc: 'SC',
|
|
30
|
+
Tc: 'TC',
|
|
31
|
+
V: 'V',
|
|
32
|
+
Wg: 'WG',
|
|
33
|
+
Wp: 'WP'
|
|
25
34
|
};
|
|
26
35
|
export function instanceOfSurfaceCondition(value) {
|
|
27
36
|
for (const key in SurfaceCondition) {
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { CurrentWeather } from './CurrentWeather';
|
|
13
|
+
import type { HourlyForecast } from './HourlyForecast';
|
|
14
|
+
import type { DailyForecast } from './DailyForecast';
|
|
15
|
+
/**
|
|
16
|
+
* Complete weather data for a resort (unit-agnostic, includes both systems)
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WeatherData
|
|
19
|
+
*/
|
|
20
|
+
export interface WeatherData {
|
|
21
|
+
/**
|
|
22
|
+
* Data source attribution
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WeatherData
|
|
25
|
+
*/
|
|
26
|
+
attribution: string;
|
|
27
|
+
/**
|
|
28
|
+
* Current weather conditions
|
|
29
|
+
* @type {CurrentWeather}
|
|
30
|
+
* @memberof WeatherData
|
|
31
|
+
*/
|
|
32
|
+
current: CurrentWeather;
|
|
33
|
+
/**
|
|
34
|
+
* Daily forecast for next 5 days
|
|
35
|
+
* @type {Array<DailyForecast>}
|
|
36
|
+
* @memberof WeatherData
|
|
37
|
+
*/
|
|
38
|
+
dailyForecast: Array<DailyForecast>;
|
|
39
|
+
/**
|
|
40
|
+
* Hourly forecast for next 24 hours
|
|
41
|
+
* @type {Array<HourlyForecast>}
|
|
42
|
+
* @memberof WeatherData
|
|
43
|
+
*/
|
|
44
|
+
hourlyForecast: Array<HourlyForecast>;
|
|
45
|
+
/**
|
|
46
|
+
* When this data was last updated
|
|
47
|
+
* @type {Date}
|
|
48
|
+
* @memberof WeatherData
|
|
49
|
+
*/
|
|
50
|
+
lastUpdated: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the WeatherData interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfWeatherData(value: object): value is WeatherData;
|
|
56
|
+
export declare function WeatherDataFromJSON(json: any): WeatherData;
|
|
57
|
+
export declare function WeatherDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): WeatherData;
|
|
58
|
+
export declare function WeatherDataToJSON(json: any): WeatherData;
|
|
59
|
+
export declare function WeatherDataToJSONTyped(value?: WeatherData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { CurrentWeatherFromJSON, CurrentWeatherToJSON, } from './CurrentWeather';
|
|
15
|
+
import { HourlyForecastFromJSON, HourlyForecastToJSON, } from './HourlyForecast';
|
|
16
|
+
import { DailyForecastFromJSON, DailyForecastToJSON, } from './DailyForecast';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the WeatherData interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfWeatherData(value) {
|
|
21
|
+
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('current' in value) || value['current'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('dailyForecast' in value) || value['dailyForecast'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('hourlyForecast' in value) || value['hourlyForecast'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function WeatherDataFromJSON(json) {
|
|
34
|
+
return WeatherDataFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'attribution': json['attribution'],
|
|
42
|
+
'current': CurrentWeatherFromJSON(json['current']),
|
|
43
|
+
'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
|
|
44
|
+
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecastFromJSON)),
|
|
45
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function WeatherDataToJSON(json) {
|
|
49
|
+
return WeatherDataToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'attribution': value['attribution'],
|
|
57
|
+
'current': CurrentWeatherToJSON(value['current']),
|
|
58
|
+
'daily_forecast': (value['dailyForecast'].map(DailyForecastToJSON)),
|
|
59
|
+
'hourly_forecast': (value['hourlyForecast'].map(HourlyForecastToJSON)),
|
|
60
|
+
'last_updated': value['lastUpdated'].toISOString(),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './CurrentWeather';
|
|
2
|
+
export * from './DailyForecast';
|
|
3
|
+
export * from './DailyForecastImperial';
|
|
4
|
+
export * from './DailyForecastMetric';
|
|
5
|
+
export * from './DayHours';
|
|
6
|
+
export * from './HourlyForecast';
|
|
7
|
+
export * from './HourlyForecastImperial';
|
|
8
|
+
export * from './HourlyForecastMetric';
|
|
9
|
+
export * from './ImperialUnits';
|
|
2
10
|
export * from './LiftStatus';
|
|
3
11
|
export * from './LiftType';
|
|
12
|
+
export * from './MetricUnits';
|
|
4
13
|
export * from './OperatingHoursResponse';
|
|
5
14
|
export * from './PublicLift';
|
|
6
15
|
export * from './PublicResortInfo';
|
|
@@ -9,10 +18,16 @@ export * from './PublicResortStatus';
|
|
|
9
18
|
export * from './PublicRun';
|
|
10
19
|
export * from './PublicSnowReport';
|
|
11
20
|
export * from './PublicSnowResponse';
|
|
12
|
-
export * from './
|
|
21
|
+
export * from './RecurrencePattern';
|
|
22
|
+
export * from './RecurrencePatternOneOf';
|
|
23
|
+
export * from './RecurrencePatternOneOf1';
|
|
24
|
+
export * from './RecurrencePatternOneOf2';
|
|
13
25
|
export * from './ResortStatusType';
|
|
14
26
|
export * from './RunDifficulty';
|
|
15
27
|
export * from './RunStatus';
|
|
28
|
+
export * from './Schedule';
|
|
29
|
+
export * from './SeasonType';
|
|
16
30
|
export * from './SnowMetrics';
|
|
17
31
|
export * from './SurfaceCondition';
|
|
18
32
|
export * from './UnitPreference';
|
|
33
|
+
export * from './WeatherData';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './CurrentWeather';
|
|
4
|
+
export * from './DailyForecast';
|
|
5
|
+
export * from './DailyForecastImperial';
|
|
6
|
+
export * from './DailyForecastMetric';
|
|
7
|
+
export * from './DayHours';
|
|
8
|
+
export * from './HourlyForecast';
|
|
9
|
+
export * from './HourlyForecastImperial';
|
|
10
|
+
export * from './HourlyForecastMetric';
|
|
11
|
+
export * from './ImperialUnits';
|
|
4
12
|
export * from './LiftStatus';
|
|
5
13
|
export * from './LiftType';
|
|
14
|
+
export * from './MetricUnits';
|
|
6
15
|
export * from './OperatingHoursResponse';
|
|
7
16
|
export * from './PublicLift';
|
|
8
17
|
export * from './PublicResortInfo';
|
|
@@ -11,10 +20,16 @@ export * from './PublicResortStatus';
|
|
|
11
20
|
export * from './PublicRun';
|
|
12
21
|
export * from './PublicSnowReport';
|
|
13
22
|
export * from './PublicSnowResponse';
|
|
14
|
-
export * from './
|
|
23
|
+
export * from './RecurrencePattern';
|
|
24
|
+
export * from './RecurrencePatternOneOf';
|
|
25
|
+
export * from './RecurrencePatternOneOf1';
|
|
26
|
+
export * from './RecurrencePatternOneOf2';
|
|
15
27
|
export * from './ResortStatusType';
|
|
16
28
|
export * from './RunDifficulty';
|
|
17
29
|
export * from './RunStatus';
|
|
30
|
+
export * from './Schedule';
|
|
31
|
+
export * from './SeasonType';
|
|
18
32
|
export * from './SnowMetrics';
|
|
19
33
|
export * from './SurfaceCondition';
|
|
20
34
|
export * from './UnitPreference';
|
|
35
|
+
export * from './WeatherData';
|