@mtnmanager/sdk 0.0.25 → 0.0.27
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 -2
- package/dist/esm/models/LiftStatus.d.ts +10 -4
- package/dist/esm/models/LiftStatus.js +25 -35
- package/dist/esm/models/LiftType.d.ts +19 -4
- package/dist/esm/models/LiftType.js +34 -89
- package/dist/esm/models/PublicResortStatus.d.ts +19 -0
- package/dist/esm/models/PublicResortStatus.js +6 -0
- package/dist/esm/models/ResortStatusType.d.ts +8 -4
- package/dist/esm/models/ResortStatusType.js +26 -23
- package/dist/esm/models/RunDifficulty.d.ts +11 -4
- package/dist/esm/models/RunDifficulty.js +28 -41
- package/dist/esm/models/RunStatus.d.ts +9 -4
- package/dist/esm/models/RunStatus.js +24 -29
- package/dist/esm/models/SeasonType.d.ts +9 -4
- package/dist/esm/models/SeasonType.js +24 -29
- package/dist/esm/models/SummerTrailDifficulty.d.ts +11 -4
- package/dist/esm/models/SummerTrailDifficulty.js +26 -41
- package/dist/esm/models/SummerTrailStatus.d.ts +9 -4
- package/dist/esm/models/SummerTrailStatus.js +24 -29
- package/dist/esm/models/SummerTrailType.d.ts +8 -4
- package/dist/esm/models/SummerTrailType.js +23 -23
- package/dist/esm/models/SurfaceCondition.d.ts +21 -4
- package/dist/esm/models/SurfaceCondition.js +39 -101
- package/dist/esm/models/WeatherConditionCode.d.ts +47 -4
- package/dist/esm/models/WeatherConditionCode.js +63 -23
- package/dist/models/LiftStatus.d.ts +10 -4
- package/dist/models/LiftStatus.js +27 -35
- package/dist/models/LiftType.d.ts +19 -4
- package/dist/models/LiftType.js +36 -89
- package/dist/models/PublicResortStatus.d.ts +19 -0
- package/dist/models/PublicResortStatus.js +6 -0
- package/dist/models/ResortStatusType.d.ts +8 -4
- package/dist/models/ResortStatusType.js +28 -23
- package/dist/models/RunDifficulty.d.ts +11 -4
- package/dist/models/RunDifficulty.js +30 -41
- package/dist/models/RunStatus.d.ts +9 -4
- package/dist/models/RunStatus.js +26 -29
- package/dist/models/SeasonType.d.ts +9 -4
- package/dist/models/SeasonType.js +26 -29
- package/dist/models/SummerTrailDifficulty.d.ts +11 -4
- package/dist/models/SummerTrailDifficulty.js +28 -41
- package/dist/models/SummerTrailStatus.d.ts +9 -4
- package/dist/models/SummerTrailStatus.js +26 -29
- package/dist/models/SummerTrailType.d.ts +8 -4
- package/dist/models/SummerTrailType.js +25 -23
- package/dist/models/SurfaceCondition.d.ts +21 -4
- package/dist/models/SurfaceCondition.js +41 -101
- package/dist/models/WeatherConditionCode.d.ts +47 -4
- package/dist/models/WeatherConditionCode.js +65 -23
- package/package.json +1 -1
|
@@ -13,37 +13,79 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WeatherConditionCode = void 0;
|
|
17
|
+
exports.instanceOfWeatherConditionCode = instanceOfWeatherConditionCode;
|
|
16
18
|
exports.WeatherConditionCodeFromJSON = WeatherConditionCodeFromJSON;
|
|
17
19
|
exports.WeatherConditionCodeFromJSONTyped = WeatherConditionCodeFromJSONTyped;
|
|
18
20
|
exports.WeatherConditionCodeToJSON = WeatherConditionCodeToJSON;
|
|
19
21
|
exports.WeatherConditionCodeToJSONTyped = WeatherConditionCodeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Apple WeatherKit condition codes
|
|
24
|
+
* Represents all possible weather conditions from the WeatherKit API
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.WeatherConditionCode = {
|
|
28
|
+
Clear: 'Clear',
|
|
29
|
+
MostlyClear: 'MostlyClear',
|
|
30
|
+
PartlyCloudy: 'PartlyCloudy',
|
|
31
|
+
MostlyCloudy: 'MostlyCloudy',
|
|
32
|
+
Cloudy: 'Cloudy',
|
|
33
|
+
Dust: 'Dust',
|
|
34
|
+
Fog: 'Fog',
|
|
35
|
+
Haze: 'Haze',
|
|
36
|
+
Smoke: 'Smoke',
|
|
37
|
+
Breezy: 'Breezy',
|
|
38
|
+
Windy: 'Windy',
|
|
39
|
+
Drizzle: 'Drizzle',
|
|
40
|
+
Rain: 'Rain',
|
|
41
|
+
Showers: 'Showers',
|
|
42
|
+
ScatteredShowers: 'ScatteredShowers',
|
|
43
|
+
HeavyRain: 'HeavyRain',
|
|
44
|
+
Flurries: 'Flurries',
|
|
45
|
+
Snow: 'Snow',
|
|
46
|
+
SnowShowers: 'SnowShowers',
|
|
47
|
+
ScatteredSnowShowers: 'ScatteredSnowShowers',
|
|
48
|
+
HeavySnow: 'HeavySnow',
|
|
49
|
+
Blizzard: 'Blizzard',
|
|
50
|
+
BlowingSnow: 'BlowingSnow',
|
|
51
|
+
MixedRainAndSleet: 'MixedRainAndSleet',
|
|
52
|
+
MixedRainAndSnow: 'MixedRainAndSnow',
|
|
53
|
+
MixedRainfall: 'MixedRainfall',
|
|
54
|
+
MixedSnowAndSleet: 'MixedSnowAndSleet',
|
|
55
|
+
Sleet: 'Sleet',
|
|
56
|
+
FreezingDrizzle: 'FreezingDrizzle',
|
|
57
|
+
FreezingRain: 'FreezingRain',
|
|
58
|
+
Frigid: 'Frigid',
|
|
59
|
+
Hail: 'Hail',
|
|
60
|
+
ScatteredThunderstorms: 'ScatteredThunderstorms',
|
|
61
|
+
IsolatedThunderstorms: 'IsolatedThunderstorms',
|
|
62
|
+
Thunderstorm: 'Thunderstorm',
|
|
63
|
+
SevereThunderstorm: 'SevereThunderstorm',
|
|
64
|
+
Hurricane: 'Hurricane',
|
|
65
|
+
Tornado: 'Tornado',
|
|
66
|
+
TropicalStorm: 'TropicalStorm',
|
|
67
|
+
Hot: 'Hot',
|
|
68
|
+
Unknown: 'Unknown'
|
|
69
|
+
};
|
|
70
|
+
function instanceOfWeatherConditionCode(value) {
|
|
71
|
+
for (const key in exports.WeatherConditionCode) {
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(exports.WeatherConditionCode, key)) {
|
|
73
|
+
if (exports.WeatherConditionCode[key] === value) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
20
80
|
function WeatherConditionCodeFromJSON(json) {
|
|
21
81
|
return WeatherConditionCodeFromJSONTyped(json, false);
|
|
22
82
|
}
|
|
23
83
|
function WeatherConditionCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'Clear' || json === 'MostlyClear' || json === 'PartlyCloudy' || json === 'MostlyCloudy' || json === 'Cloudy' || json === 'Dust' || json === 'Fog' || json === 'Haze' || json === 'Smoke' || json === 'Breezy' || json === 'Windy' || json === 'Drizzle' || json === 'Rain' || json === 'Showers' || json === 'ScatteredShowers' || json === 'HeavyRain' || json === 'Flurries' || json === 'Snow' || json === 'SnowShowers' || json === 'ScatteredSnowShowers' || json === 'HeavySnow' || json === 'Blizzard' || json === 'BlowingSnow' || json === 'MixedRainAndSleet' || json === 'MixedRainAndSnow' || json === 'MixedRainfall' || json === 'MixedSnowAndSleet' || json === 'Sleet' || json === 'FreezingDrizzle' || json === 'FreezingRain' || json === 'Frigid' || json === 'Hail' || json === 'ScatteredThunderstorms' || json === 'IsolatedThunderstorms' || json === 'Thunderstorm' || json === 'SevereThunderstorm' || json === 'Hurricane' || json === 'Tornado' || json === 'TropicalStorm' || json === 'Hot')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'Unknown')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {};
|
|
84
|
+
return json;
|
|
34
85
|
}
|
|
35
|
-
function WeatherConditionCodeToJSON(
|
|
36
|
-
return
|
|
86
|
+
function WeatherConditionCodeToJSON(value) {
|
|
87
|
+
return value;
|
|
37
88
|
}
|
|
38
|
-
function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator
|
|
39
|
-
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'Clear' || value === 'MostlyClear' || value === 'PartlyCloudy' || value === 'MostlyCloudy' || value === 'Cloudy' || value === 'Dust' || value === 'Fog' || value === 'Haze' || value === 'Smoke' || value === 'Breezy' || value === 'Windy' || value === 'Drizzle' || value === 'Rain' || value === 'Showers' || value === 'ScatteredShowers' || value === 'HeavyRain' || value === 'Flurries' || value === 'Snow' || value === 'SnowShowers' || value === 'ScatteredSnowShowers' || value === 'HeavySnow' || value === 'Blizzard' || value === 'BlowingSnow' || value === 'MixedRainAndSleet' || value === 'MixedRainAndSnow' || value === 'MixedRainfall' || value === 'MixedSnowAndSleet' || value === 'Sleet' || value === 'FreezingDrizzle' || value === 'FreezingRain' || value === 'Frigid' || value === 'Hail' || value === 'ScatteredThunderstorms' || value === 'IsolatedThunderstorms' || value === 'Thunderstorm' || value === 'SevereThunderstorm' || value === 'Hurricane' || value === 'Tornado' || value === 'TropicalStorm' || value === 'Hot')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'Unknown')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
89
|
+
function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator) {
|
|
90
|
+
return value;
|
|
49
91
|
}
|