@mtnmanager/sdk 0.0.1 → 0.0.4
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 +19 -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 +43 -1
- package/dist/esm/models/PublicResortStatus.js +24 -0
- package/dist/esm/models/PublicRun.d.ts +6 -0
- package/dist/esm/models/PublicRun.js +2 -0
- package/dist/esm/models/PublicSnowReport.d.ts +12 -0
- package/dist/esm/models/PublicSnowReport.js +4 -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/Schedule.d.ts +81 -0
- package/dist/esm/models/Schedule.js +76 -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 +16 -2
- package/dist/esm/models/index.js +16 -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 +43 -1
- package/dist/models/PublicResortStatus.js +24 -0
- package/dist/models/PublicRun.d.ts +6 -0
- package/dist/models/PublicRun.js +2 -0
- package/dist/models/PublicSnowReport.d.ts +12 -0
- package/dist/models/PublicSnowReport.js +4 -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/Schedule.d.ts +81 -0
- package/dist/models/Schedule.js +83 -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 +16 -2
- package/dist/models/index.js +16 -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,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
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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,15 @@ 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';
|
|
16
29
|
export * from './SnowMetrics';
|
|
17
30
|
export * from './SurfaceCondition';
|
|
18
31
|
export * from './UnitPreference';
|
|
32
|
+
export * from './WeatherData';
|
package/dist/models/index.js
CHANGED
|
@@ -16,9 +16,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./CurrentWeather"), exports);
|
|
20
|
+
__exportStar(require("./DailyForecast"), exports);
|
|
21
|
+
__exportStar(require("./DailyForecastImperial"), exports);
|
|
22
|
+
__exportStar(require("./DailyForecastMetric"), exports);
|
|
23
|
+
__exportStar(require("./DayHours"), exports);
|
|
24
|
+
__exportStar(require("./HourlyForecast"), exports);
|
|
25
|
+
__exportStar(require("./HourlyForecastImperial"), exports);
|
|
26
|
+
__exportStar(require("./HourlyForecastMetric"), exports);
|
|
27
|
+
__exportStar(require("./ImperialUnits"), exports);
|
|
20
28
|
__exportStar(require("./LiftStatus"), exports);
|
|
21
29
|
__exportStar(require("./LiftType"), exports);
|
|
30
|
+
__exportStar(require("./MetricUnits"), exports);
|
|
22
31
|
__exportStar(require("./OperatingHoursResponse"), exports);
|
|
23
32
|
__exportStar(require("./PublicLift"), exports);
|
|
24
33
|
__exportStar(require("./PublicResortInfo"), exports);
|
|
@@ -27,10 +36,15 @@ __exportStar(require("./PublicResortStatus"), exports);
|
|
|
27
36
|
__exportStar(require("./PublicRun"), exports);
|
|
28
37
|
__exportStar(require("./PublicSnowReport"), exports);
|
|
29
38
|
__exportStar(require("./PublicSnowResponse"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
39
|
+
__exportStar(require("./RecurrencePattern"), exports);
|
|
40
|
+
__exportStar(require("./RecurrencePatternOneOf"), exports);
|
|
41
|
+
__exportStar(require("./RecurrencePatternOneOf1"), exports);
|
|
42
|
+
__exportStar(require("./RecurrencePatternOneOf2"), exports);
|
|
31
43
|
__exportStar(require("./ResortStatusType"), exports);
|
|
32
44
|
__exportStar(require("./RunDifficulty"), exports);
|
|
33
45
|
__exportStar(require("./RunStatus"), exports);
|
|
46
|
+
__exportStar(require("./Schedule"), exports);
|
|
34
47
|
__exportStar(require("./SnowMetrics"), exports);
|
|
35
48
|
__exportStar(require("./SurfaceCondition"), exports);
|
|
36
49
|
__exportStar(require("./UnitPreference"), exports);
|
|
50
|
+
__exportStar(require("./WeatherData"), exports);
|
package/package.json
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "OpenAPI client for @mtnmanager/sdk",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
-
},
|
|
10
6
|
"main": "./dist/index.js",
|
|
11
7
|
"types": "./dist/index.d.ts",
|
|
12
8
|
"module": "./dist/esm/index.js",
|
|
13
9
|
"sideEffects": false,
|
|
14
|
-
"files": [
|
|
15
|
-
"dist",
|
|
16
|
-
"README.md"
|
|
17
|
-
],
|
|
18
10
|
"scripts": {
|
|
19
11
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
20
12
|
"prepare": "npm run build"
|
|
21
13
|
},
|
|
22
14
|
"devDependencies": {
|
|
23
15
|
"typescript": "^4.0 || ^5.0"
|
|
24
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT"
|
|
25
22
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
* Human-readable schedule description
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RegularHoursDescription
|
|
16
|
-
*/
|
|
17
|
-
export interface RegularHoursDescription {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RegularHoursDescription
|
|
22
|
-
*/
|
|
23
|
-
days: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RegularHoursDescription
|
|
28
|
-
*/
|
|
29
|
-
effective: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof RegularHoursDescription
|
|
34
|
-
*/
|
|
35
|
-
inEffect: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof RegularHoursDescription
|
|
40
|
-
*/
|
|
41
|
-
time: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the RegularHoursDescription interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfRegularHoursDescription(value: object): value is RegularHoursDescription;
|
|
47
|
-
export declare function RegularHoursDescriptionFromJSON(json: any): RegularHoursDescription;
|
|
48
|
-
export declare function RegularHoursDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegularHoursDescription;
|
|
49
|
-
export declare function RegularHoursDescriptionToJSON(json: any): RegularHoursDescription;
|
|
50
|
-
export declare function RegularHoursDescriptionToJSONTyped(value?: RegularHoursDescription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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 RegularHoursDescription interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfRegularHoursDescription(value) {
|
|
18
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('effective' in value) || value['effective'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('inEffect' in value) || value['inEffect'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('time' in value) || value['time'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
export function RegularHoursDescriptionFromJSON(json) {
|
|
29
|
-
return RegularHoursDescriptionFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
export function RegularHoursDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'days': json['days'],
|
|
37
|
-
'effective': json['effective'],
|
|
38
|
-
'inEffect': json['in_effect'],
|
|
39
|
-
'time': json['time'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export function RegularHoursDescriptionToJSON(json) {
|
|
43
|
-
return RegularHoursDescriptionToJSONTyped(json, false);
|
|
44
|
-
}
|
|
45
|
-
export function RegularHoursDescriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'days': value['days'],
|
|
51
|
-
'effective': value['effective'],
|
|
52
|
-
'in_effect': value['inEffect'],
|
|
53
|
-
'time': value['time'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
* Human-readable schedule description
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RegularHoursDescription
|
|
16
|
-
*/
|
|
17
|
-
export interface RegularHoursDescription {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RegularHoursDescription
|
|
22
|
-
*/
|
|
23
|
-
days: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RegularHoursDescription
|
|
28
|
-
*/
|
|
29
|
-
effective: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof RegularHoursDescription
|
|
34
|
-
*/
|
|
35
|
-
inEffect: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof RegularHoursDescription
|
|
40
|
-
*/
|
|
41
|
-
time: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the RegularHoursDescription interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfRegularHoursDescription(value: object): value is RegularHoursDescription;
|
|
47
|
-
export declare function RegularHoursDescriptionFromJSON(json: any): RegularHoursDescription;
|
|
48
|
-
export declare function RegularHoursDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegularHoursDescription;
|
|
49
|
-
export declare function RegularHoursDescriptionToJSON(json: any): RegularHoursDescription;
|
|
50
|
-
export declare function RegularHoursDescriptionToJSONTyped(value?: RegularHoursDescription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,62 +0,0 @@
|
|
|
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.instanceOfRegularHoursDescription = instanceOfRegularHoursDescription;
|
|
17
|
-
exports.RegularHoursDescriptionFromJSON = RegularHoursDescriptionFromJSON;
|
|
18
|
-
exports.RegularHoursDescriptionFromJSONTyped = RegularHoursDescriptionFromJSONTyped;
|
|
19
|
-
exports.RegularHoursDescriptionToJSON = RegularHoursDescriptionToJSON;
|
|
20
|
-
exports.RegularHoursDescriptionToJSONTyped = RegularHoursDescriptionToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the RegularHoursDescription interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfRegularHoursDescription(value) {
|
|
25
|
-
if (!('days' in value) || value['days'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('effective' in value) || value['effective'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('inEffect' in value) || value['inEffect'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('time' in value) || value['time'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function RegularHoursDescriptionFromJSON(json) {
|
|
36
|
-
return RegularHoursDescriptionFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function RegularHoursDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'days': json['days'],
|
|
44
|
-
'effective': json['effective'],
|
|
45
|
-
'inEffect': json['in_effect'],
|
|
46
|
-
'time': json['time'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function RegularHoursDescriptionToJSON(json) {
|
|
50
|
-
return RegularHoursDescriptionToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function RegularHoursDescriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'days': value['days'],
|
|
58
|
-
'effective': value['effective'],
|
|
59
|
-
'in_effect': value['inEffect'],
|
|
60
|
-
'time': value['time'],
|
|
61
|
-
};
|
|
62
|
-
}
|