@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,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;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RecurrencePatternOneOf1TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRecurrencePatternOneOf1 = instanceOfRecurrencePatternOneOf1;
|
|
18
|
+
exports.RecurrencePatternOneOf1FromJSON = RecurrencePatternOneOf1FromJSON;
|
|
19
|
+
exports.RecurrencePatternOneOf1FromJSONTyped = RecurrencePatternOneOf1FromJSONTyped;
|
|
20
|
+
exports.RecurrencePatternOneOf1ToJSON = RecurrencePatternOneOf1ToJSON;
|
|
21
|
+
exports.RecurrencePatternOneOf1ToJSONTyped = RecurrencePatternOneOf1ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RecurrencePatternOneOf1TypeEnum = {
|
|
26
|
+
Daily: 'daily'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecurrencePatternOneOf1(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function RecurrencePatternOneOf1FromJSON(json) {
|
|
37
|
+
return RecurrencePatternOneOf1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function RecurrencePatternOneOf1ToJSON(json) {
|
|
48
|
+
return RecurrencePatternOneOf1ToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RecurrencePatternOneOf2TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRecurrencePatternOneOf2 = instanceOfRecurrencePatternOneOf2;
|
|
18
|
+
exports.RecurrencePatternOneOf2FromJSON = RecurrencePatternOneOf2FromJSON;
|
|
19
|
+
exports.RecurrencePatternOneOf2FromJSONTyped = RecurrencePatternOneOf2FromJSONTyped;
|
|
20
|
+
exports.RecurrencePatternOneOf2ToJSON = RecurrencePatternOneOf2ToJSON;
|
|
21
|
+
exports.RecurrencePatternOneOf2ToJSONTyped = RecurrencePatternOneOf2ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RecurrencePatternOneOf2TypeEnum = {
|
|
26
|
+
Weekly: 'weekly'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecurrencePatternOneOf2(value) {
|
|
32
|
+
if (!('days' in value) || value['days'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function RecurrencePatternOneOf2FromJSON(json) {
|
|
39
|
+
return RecurrencePatternOneOf2FromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'days': json['days'],
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function RecurrencePatternOneOf2ToJSON(json) {
|
|
51
|
+
return RecurrencePatternOneOf2ToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'days': value['days'],
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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;
|
|
@@ -25,8 +25,7 @@ exports.ResortStatusTypeToJSONTyped = ResortStatusTypeToJSONTyped;
|
|
|
25
25
|
*/
|
|
26
26
|
exports.ResortStatusType = {
|
|
27
27
|
Open: 'open',
|
|
28
|
-
Closed: 'closed'
|
|
29
|
-
ClosedForSeason: 'closed_for_season'
|
|
28
|
+
Closed: 'closed'
|
|
30
29
|
};
|
|
31
30
|
function instanceOfResortStatusType(value) {
|
|
32
31
|
for (const key in exports.ResortStatusType) {
|
|
@@ -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,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSchedule = instanceOfSchedule;
|
|
17
|
+
exports.ScheduleFromJSON = ScheduleFromJSON;
|
|
18
|
+
exports.ScheduleFromJSONTyped = ScheduleFromJSONTyped;
|
|
19
|
+
exports.ScheduleToJSON = ScheduleToJSON;
|
|
20
|
+
exports.ScheduleToJSONTyped = ScheduleToJSONTyped;
|
|
21
|
+
const RecurrencePattern_1 = require("./RecurrencePattern");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Schedule interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSchedule(value) {
|
|
26
|
+
if (!('closesAt' in value) || value['closesAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('daysRecurrence' in value) || value['daysRecurrence'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('daysString' in value) || value['daysString'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('effectiveString' in value) || value['effectiveString'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('inEffect' in value) || value['inEffect'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('opensAt' in value) || value['opensAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('timeString' in value) || value['timeString'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ScheduleFromJSON(json) {
|
|
47
|
+
return ScheduleFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'closesAt': json['closes_at'],
|
|
55
|
+
'daysRecurrence': (0, RecurrencePattern_1.RecurrencePatternFromJSON)(json['days_recurrence']),
|
|
56
|
+
'daysString': json['days_string'],
|
|
57
|
+
'effectiveFrom': json['effective_from'],
|
|
58
|
+
'effectiveString': json['effective_string'],
|
|
59
|
+
'effectiveTo': json['effective_to'],
|
|
60
|
+
'inEffect': json['in_effect'],
|
|
61
|
+
'opensAt': json['opens_at'],
|
|
62
|
+
'timeString': json['time_string'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function ScheduleToJSON(json) {
|
|
66
|
+
return ScheduleToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'closes_at': value['closesAt'],
|
|
74
|
+
'days_recurrence': (0, RecurrencePattern_1.RecurrencePatternToJSON)(value['daysRecurrence']),
|
|
75
|
+
'days_string': value['daysString'],
|
|
76
|
+
'effective_from': value['effectiveFrom'],
|
|
77
|
+
'effective_string': value['effectiveString'],
|
|
78
|
+
'effective_to': value['effectiveTo'],
|
|
79
|
+
'in_effect': value['inEffect'],
|
|
80
|
+
'opens_at': value['opensAt'],
|
|
81
|
+
'time_string': value['timeString'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SeasonType = void 0;
|
|
17
|
+
exports.instanceOfSeasonType = instanceOfSeasonType;
|
|
18
|
+
exports.SeasonTypeFromJSON = SeasonTypeFromJSON;
|
|
19
|
+
exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
|
|
20
|
+
exports.SeasonTypeToJSON = SeasonTypeToJSON;
|
|
21
|
+
exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SeasonType = {
|
|
27
|
+
Winter: 'winter',
|
|
28
|
+
Summer: 'summer',
|
|
29
|
+
Closed: 'closed'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSeasonType(value) {
|
|
32
|
+
for (const key in exports.SeasonType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SeasonType, key)) {
|
|
34
|
+
if (exports.SeasonType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SeasonTypeFromJSON(json) {
|
|
42
|
+
return SeasonTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SeasonTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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;
|
|
@@ -20,16 +20,25 @@ exports.SurfaceConditionFromJSONTyped = SurfaceConditionFromJSONTyped;
|
|
|
20
20
|
exports.SurfaceConditionToJSON = SurfaceConditionToJSON;
|
|
21
21
|
exports.SurfaceConditionToJSONTyped = SurfaceConditionToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
* Surface condition types for snow reports
|
|
23
|
+
* Surface condition types for snow reports (following industry standard codes)
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.SurfaceCondition = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
Bs: 'BS',
|
|
28
|
+
Co: 'CO',
|
|
29
|
+
Fg: 'FG',
|
|
30
|
+
Hp: 'HP',
|
|
31
|
+
Ip: 'IP',
|
|
32
|
+
Is: 'IS',
|
|
33
|
+
Lg: 'LG',
|
|
34
|
+
Mg: 'MG',
|
|
35
|
+
P: 'P',
|
|
36
|
+
Pp: 'PP',
|
|
37
|
+
Sc: 'SC',
|
|
38
|
+
Tc: 'TC',
|
|
39
|
+
V: 'V',
|
|
40
|
+
Wg: 'WG',
|
|
41
|
+
Wp: 'WP'
|
|
33
42
|
};
|
|
34
43
|
function instanceOfSurfaceCondition(value) {
|
|
35
44
|
for (const key in exports.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,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWeatherData = instanceOfWeatherData;
|
|
17
|
+
exports.WeatherDataFromJSON = WeatherDataFromJSON;
|
|
18
|
+
exports.WeatherDataFromJSONTyped = WeatherDataFromJSONTyped;
|
|
19
|
+
exports.WeatherDataToJSON = WeatherDataToJSON;
|
|
20
|
+
exports.WeatherDataToJSONTyped = WeatherDataToJSONTyped;
|
|
21
|
+
const CurrentWeather_1 = require("./CurrentWeather");
|
|
22
|
+
const HourlyForecast_1 = require("./HourlyForecast");
|
|
23
|
+
const DailyForecast_1 = require("./DailyForecast");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the WeatherData interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfWeatherData(value) {
|
|
28
|
+
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('current' in value) || value['current'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('dailyForecast' in value) || value['dailyForecast'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('hourlyForecast' in value) || value['hourlyForecast'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function WeatherDataFromJSON(json) {
|
|
41
|
+
return WeatherDataFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'attribution': json['attribution'],
|
|
49
|
+
'current': (0, CurrentWeather_1.CurrentWeatherFromJSON)(json['current']),
|
|
50
|
+
'dailyForecast': (json['daily_forecast'].map(DailyForecast_1.DailyForecastFromJSON)),
|
|
51
|
+
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecast_1.HourlyForecastFromJSON)),
|
|
52
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function WeatherDataToJSON(json) {
|
|
56
|
+
return WeatherDataToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'attribution': value['attribution'],
|
|
64
|
+
'current': (0, CurrentWeather_1.CurrentWeatherToJSON)(value['current']),
|
|
65
|
+
'daily_forecast': (value['dailyForecast'].map(DailyForecast_1.DailyForecastToJSON)),
|
|
66
|
+
'hourly_forecast': (value['hourlyForecast'].map(HourlyForecast_1.HourlyForecastToJSON)),
|
|
67
|
+
'last_updated': value['lastUpdated'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|