@mtnmanager/sdk 0.0.12 → 0.0.14
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 +2 -3
- package/dist/esm/models/CurrentWeather.d.ts +24 -24
- package/dist/esm/models/CurrentWeather.js +16 -16
- package/dist/esm/models/DailyForecast.d.ts +12 -12
- package/dist/esm/models/DailyForecast.js +8 -8
- package/dist/esm/models/DailyForecastImperial.d.ts +12 -12
- package/dist/esm/models/DailyForecastImperial.js +11 -11
- package/dist/esm/models/DailyForecastMetric.d.ts +12 -12
- package/dist/esm/models/DailyForecastMetric.js +11 -11
- package/dist/esm/models/DayHours.d.ts +4 -4
- package/dist/esm/models/DayHours.js +2 -2
- package/dist/esm/models/HourlyForecast.d.ts +14 -14
- package/dist/esm/models/HourlyForecast.js +14 -14
- package/dist/esm/models/HourlyForecastImperial.d.ts +10 -10
- package/dist/esm/models/HourlyForecastImperial.js +11 -11
- package/dist/esm/models/HourlyForecastMetric.d.ts +10 -10
- package/dist/esm/models/HourlyForecastMetric.js +11 -11
- package/dist/esm/models/ImperialUnits.d.ts +10 -10
- package/dist/esm/models/ImperialUnits.js +13 -13
- package/dist/esm/models/MetricUnits.d.ts +10 -10
- package/dist/esm/models/MetricUnits.js +13 -13
- package/dist/esm/models/PublicLift.d.ts +22 -16
- package/dist/esm/models/PublicLift.js +18 -16
- package/dist/esm/models/PublicResortInfo.d.ts +6 -6
- package/dist/esm/models/PublicResortInfo.js +4 -4
- package/dist/esm/models/PublicResortResponse.d.ts +10 -10
- package/dist/esm/models/PublicResortResponse.js +8 -8
- package/dist/esm/models/PublicResortStatus.d.ts +18 -18
- package/dist/esm/models/PublicResortStatus.js +23 -23
- package/dist/esm/models/PublicRun.d.ts +20 -14
- package/dist/esm/models/PublicRun.js +24 -22
- package/dist/esm/models/PublicSnowReport.d.ts +21 -15
- package/dist/esm/models/PublicSnowReport.js +18 -12
- package/dist/esm/models/RecurrencePattern.d.ts +1 -2
- package/dist/esm/models/RecurrencePattern.js +0 -7
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +7 -1
- package/dist/esm/models/RecurrencePatternOneOf1.js +5 -1
- package/dist/esm/models/Schedule.d.ts +10 -10
- package/dist/esm/models/Schedule.js +20 -20
- package/dist/esm/models/SnowMetrics.d.ts +4 -4
- package/dist/esm/models/SnowMetrics.js +4 -4
- package/dist/esm/models/WeatherData.d.ts +9 -9
- package/dist/esm/models/WeatherData.js +7 -7
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/CurrentWeather.d.ts +24 -24
- package/dist/models/CurrentWeather.js +16 -16
- package/dist/models/DailyForecast.d.ts +12 -12
- package/dist/models/DailyForecast.js +8 -8
- package/dist/models/DailyForecastImperial.d.ts +12 -12
- package/dist/models/DailyForecastImperial.js +11 -11
- package/dist/models/DailyForecastMetric.d.ts +12 -12
- package/dist/models/DailyForecastMetric.js +11 -11
- package/dist/models/DayHours.d.ts +4 -4
- package/dist/models/DayHours.js +2 -2
- package/dist/models/HourlyForecast.d.ts +14 -14
- package/dist/models/HourlyForecast.js +14 -14
- package/dist/models/HourlyForecastImperial.d.ts +10 -10
- package/dist/models/HourlyForecastImperial.js +11 -11
- package/dist/models/HourlyForecastMetric.d.ts +10 -10
- package/dist/models/HourlyForecastMetric.js +11 -11
- package/dist/models/ImperialUnits.d.ts +10 -10
- package/dist/models/ImperialUnits.js +13 -13
- package/dist/models/MetricUnits.d.ts +10 -10
- package/dist/models/MetricUnits.js +13 -13
- package/dist/models/PublicLift.d.ts +22 -16
- package/dist/models/PublicLift.js +18 -16
- package/dist/models/PublicResortInfo.d.ts +6 -6
- package/dist/models/PublicResortInfo.js +4 -4
- package/dist/models/PublicResortResponse.d.ts +10 -10
- package/dist/models/PublicResortResponse.js +8 -8
- package/dist/models/PublicResortStatus.d.ts +18 -18
- package/dist/models/PublicResortStatus.js +23 -23
- package/dist/models/PublicRun.d.ts +20 -14
- package/dist/models/PublicRun.js +24 -22
- package/dist/models/PublicSnowReport.d.ts +21 -15
- package/dist/models/PublicSnowReport.js +18 -12
- package/dist/models/RecurrencePattern.d.ts +1 -2
- package/dist/models/RecurrencePattern.js +0 -7
- package/dist/models/RecurrencePatternOneOf1.d.ts +7 -1
- package/dist/models/RecurrencePatternOneOf1.js +5 -1
- package/dist/models/Schedule.d.ts +10 -10
- package/dist/models/Schedule.js +20 -20
- package/dist/models/SnowMetrics.d.ts +4 -4
- package/dist/models/SnowMetrics.js +4 -4
- package/dist/models/WeatherData.d.ts +9 -9
- package/dist/models/WeatherData.js +7 -7
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +0 -45
- package/dist/esm/models/RecurrencePatternOneOf2.js +0 -53
- package/dist/models/RecurrencePatternOneOf2.d.ts +0 -45
- package/dist/models/RecurrencePatternOneOf2.js +0 -61
|
@@ -25,13 +25,13 @@ const DailyForecast_1 = require("./DailyForecast");
|
|
|
25
25
|
* Check if a given object implements the WeatherData interface.
|
|
26
26
|
*/
|
|
27
27
|
function instanceOfWeatherData(value) {
|
|
28
|
-
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('current' in value) || value['current'] === undefined)
|
|
31
29
|
return false;
|
|
30
|
+
if (!('hourlyForecast' in value) || value['hourlyForecast'] === undefined)
|
|
31
|
+
return false;
|
|
32
32
|
if (!('dailyForecast' in value) || value['dailyForecast'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('attribution' in value) || value['attribution'] === undefined)
|
|
35
35
|
return false;
|
|
36
36
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
37
37
|
return false;
|
|
@@ -45,10 +45,10 @@ function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return json;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'attribution': json['attribution'],
|
|
49
48
|
'current': (0, CurrentWeather_1.CurrentWeatherFromJSON)(json['current']),
|
|
50
|
-
'dailyForecast': (json['daily_forecast'].map(DailyForecast_1.DailyForecastFromJSON)),
|
|
51
49
|
'hourlyForecast': (json['hourly_forecast'].map(HourlyForecast_1.HourlyForecastFromJSON)),
|
|
50
|
+
'dailyForecast': (json['daily_forecast'].map(DailyForecast_1.DailyForecastFromJSON)),
|
|
51
|
+
'attribution': json['attribution'],
|
|
52
52
|
'lastUpdated': json['last_updated'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -60,10 +60,10 @@ function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
60
|
return value;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'attribution': value['attribution'],
|
|
64
63
|
'current': (0, CurrentWeather_1.CurrentWeatherToJSON)(value['current']),
|
|
65
|
-
'daily_forecast': (value['dailyForecast'].map(DailyForecast_1.DailyForecastToJSON)),
|
|
66
64
|
'hourly_forecast': (value['hourlyForecast'].map(HourlyForecast_1.HourlyForecastToJSON)),
|
|
65
|
+
'daily_forecast': (value['dailyForecast'].map(DailyForecast_1.DailyForecastToJSON)),
|
|
66
|
+
'attribution': value['attribution'],
|
|
67
67
|
'last_updated': value['lastUpdated'],
|
|
68
68
|
};
|
|
69
69
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export * from './PublicSnowResponse';
|
|
|
21
21
|
export * from './RecurrencePattern';
|
|
22
22
|
export * from './RecurrencePatternOneOf';
|
|
23
23
|
export * from './RecurrencePatternOneOf1';
|
|
24
|
-
export * from './RecurrencePatternOneOf2';
|
|
25
24
|
export * from './ResortStatusType';
|
|
26
25
|
export * from './RunDifficulty';
|
|
27
26
|
export * from './RunStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -39,7 +39,6 @@ __exportStar(require("./PublicSnowResponse"), exports);
|
|
|
39
39
|
__exportStar(require("./RecurrencePattern"), exports);
|
|
40
40
|
__exportStar(require("./RecurrencePatternOneOf"), exports);
|
|
41
41
|
__exportStar(require("./RecurrencePatternOneOf1"), exports);
|
|
42
|
-
__exportStar(require("./RecurrencePatternOneOf2"), exports);
|
|
43
42
|
__exportStar(require("./ResortStatusType"), exports);
|
|
44
43
|
__exportStar(require("./RunDifficulty"), exports);
|
|
45
44
|
__exportStar(require("./RunStatus"), exports);
|
package/package.json
CHANGED
|
@@ -1,45 +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: 1.0.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 {string}
|
|
21
|
-
* @memberof RecurrencePatternOneOf2
|
|
22
|
-
*/
|
|
23
|
-
type: RecurrencePatternOneOf2TypeEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<number>}
|
|
27
|
-
* @memberof RecurrencePatternOneOf2
|
|
28
|
-
*/
|
|
29
|
-
days: Array<number>;
|
|
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;
|
|
@@ -1,53 +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: 1.0.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 (!('type' in value) || value['type'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('days' in value) || value['days'] === 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
|
-
'type': json['type'],
|
|
39
|
-
'days': json['days'],
|
|
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
|
-
'type': value['type'],
|
|
51
|
-
'days': value['days'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,45 +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: 1.0.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 {string}
|
|
21
|
-
* @memberof RecurrencePatternOneOf2
|
|
22
|
-
*/
|
|
23
|
-
type: RecurrencePatternOneOf2TypeEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {Array<number>}
|
|
27
|
-
* @memberof RecurrencePatternOneOf2
|
|
28
|
-
*/
|
|
29
|
-
days: Array<number>;
|
|
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;
|
|
@@ -1,61 +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: 1.0.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 (!('type' in value) || value['type'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('days' in value) || value['days'] === 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
|
-
'type': json['type'],
|
|
47
|
-
'days': json['days'],
|
|
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
|
-
'type': value['type'],
|
|
59
|
-
'days': value['days'],
|
|
60
|
-
};
|
|
61
|
-
}
|