@mtnmanager/sdk 0.0.12 → 0.0.13
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 +16 -16
- package/dist/esm/models/PublicSnowReport.js +10 -10
- 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 +16 -16
- package/dist/models/PublicSnowReport.js +10 -10
- 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
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface MetricUnits {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Temperature in Celsius
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof MetricUnits
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
temperature: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Feels like temperature in Celsius
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof MetricUnits
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
feelsLike: number;
|
|
30
30
|
/**
|
|
31
31
|
* Snowfall in centimeters
|
|
32
32
|
* @type {number}
|
|
@@ -34,17 +34,17 @@ export interface MetricUnits {
|
|
|
34
34
|
*/
|
|
35
35
|
snowfall: number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Precipitation in millimeters
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof MetricUnits
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
precipitation: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Wind speed in km/h
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof MetricUnits
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
windSpeed: number;
|
|
48
48
|
/**
|
|
49
49
|
* Wind gust in km/h
|
|
50
50
|
* @type {number}
|
|
@@ -52,11 +52,11 @@ export interface MetricUnits {
|
|
|
52
52
|
*/
|
|
53
53
|
windGust: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Visibility in kilometers (optional)
|
|
56
56
|
* @type {number}
|
|
57
57
|
* @memberof MetricUnits
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
visibility?: number | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the MetricUnits interface.
|
|
@@ -22,18 +22,18 @@ exports.MetricUnitsToJSONTyped = MetricUnitsToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the MetricUnits interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfMetricUnits(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('temperature' in value) || value['temperature'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('feelsLike' in value) || value['feelsLike'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('snowfall' in value) || value['snowfall'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
-
return false;
|
|
33
|
-
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
31
|
+
if (!('precipitation' in value) || value['precipitation'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('windSpeed' in value) || value['windSpeed'] === undefined)
|
|
36
34
|
return false;
|
|
35
|
+
if (!('windGust' in value) || value['windGust'] === undefined)
|
|
36
|
+
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
39
|
function MetricUnitsFromJSON(json) {
|
|
@@ -44,13 +44,13 @@ function MetricUnitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'temperature': json['temperature'],
|
|
47
48
|
'feelsLike': json['feels_like'],
|
|
48
|
-
'precipitation': json['precipitation'],
|
|
49
49
|
'snowfall': json['snowfall'],
|
|
50
|
-
'
|
|
51
|
-
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
52
|
-
'windGust': json['wind_gust'],
|
|
50
|
+
'precipitation': json['precipitation'],
|
|
53
51
|
'windSpeed': json['wind_speed'],
|
|
52
|
+
'windGust': json['wind_gust'],
|
|
53
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function MetricUnitsToJSON(json) {
|
|
@@ -61,12 +61,12 @@ function MetricUnitsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
61
|
return value;
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
+
'temperature': value['temperature'],
|
|
64
65
|
'feels_like': value['feelsLike'],
|
|
65
|
-
'precipitation': value['precipitation'],
|
|
66
66
|
'snowfall': value['snowfall'],
|
|
67
|
-
'
|
|
68
|
-
'visibility': value['visibility'],
|
|
69
|
-
'wind_gust': value['windGust'],
|
|
67
|
+
'precipitation': value['precipitation'],
|
|
70
68
|
'wind_speed': value['windSpeed'],
|
|
69
|
+
'wind_gust': value['windGust'],
|
|
70
|
+
'visibility': value['visibility'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -22,61 +22,67 @@ export interface PublicLift {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PublicLift
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
uuid: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof PublicLift
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
name: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {string}
|
|
35
35
|
* @memberof PublicLift
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
slug: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {LiftType}
|
|
41
41
|
* @memberof PublicLift
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
liftType: LiftType;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {LiftStatus}
|
|
47
47
|
* @memberof PublicLift
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
status: LiftStatus;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {number}
|
|
53
53
|
* @memberof PublicLift
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
waitTimeMinutes?: number | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {boolean}
|
|
59
59
|
* @memberof PublicLift
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
highSpeed: boolean;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {number}
|
|
65
65
|
* @memberof PublicLift
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
capacityPerHour?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof PublicLift
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
areaUuid?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof PublicLift
|
|
78
|
+
*/
|
|
79
|
+
areaName?: string | null;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {number}
|
|
77
83
|
* @memberof PublicLift
|
|
78
84
|
*/
|
|
79
|
-
|
|
85
|
+
areaDisplayOrder?: number | null;
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Check if a given object implements the PublicLift interface.
|
|
@@ -24,17 +24,17 @@ const LiftType_1 = require("./LiftType");
|
|
|
24
24
|
* Check if a given object implements the PublicLift interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfPublicLift(value) {
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('liftType' in value) || value['liftType'] === undefined)
|
|
27
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
32
|
return false;
|
|
33
|
+
if (!('liftType' in value) || value['liftType'] === undefined)
|
|
34
|
+
return false;
|
|
35
35
|
if (!('status' in value) || value['status'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('highSpeed' in value) || value['highSpeed'] === undefined)
|
|
38
38
|
return false;
|
|
39
39
|
return true;
|
|
40
40
|
}
|
|
@@ -46,16 +46,17 @@ function PublicLiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
50
|
-
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
51
|
-
'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
|
|
52
|
-
'highSpeed': json['high_speed'],
|
|
53
|
-
'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
|
|
49
|
+
'uuid': json['uuid'],
|
|
54
50
|
'name': json['name'],
|
|
55
51
|
'slug': json['slug'],
|
|
52
|
+
'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
|
|
56
53
|
'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
|
|
57
|
-
'uuid': json['uuid'],
|
|
58
54
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
55
|
+
'highSpeed': json['high_speed'],
|
|
56
|
+
'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
|
|
57
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
58
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
59
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
function PublicLiftToJSON(json) {
|
|
@@ -66,15 +67,16 @@ function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
return value;
|
|
67
68
|
}
|
|
68
69
|
return {
|
|
69
|
-
'
|
|
70
|
-
'area_uuid': value['areaUuid'],
|
|
71
|
-
'capacity_per_hour': value['capacityPerHour'],
|
|
72
|
-
'high_speed': value['highSpeed'],
|
|
73
|
-
'lift_type': (0, LiftType_1.LiftTypeToJSON)(value['liftType']),
|
|
70
|
+
'uuid': value['uuid'],
|
|
74
71
|
'name': value['name'],
|
|
75
72
|
'slug': value['slug'],
|
|
73
|
+
'lift_type': (0, LiftType_1.LiftTypeToJSON)(value['liftType']),
|
|
76
74
|
'status': (0, LiftStatus_1.LiftStatusToJSON)(value['status']),
|
|
77
|
-
'uuid': value['uuid'],
|
|
78
75
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
76
|
+
'high_speed': value['highSpeed'],
|
|
77
|
+
'capacity_per_hour': value['capacityPerHour'],
|
|
78
|
+
'area_uuid': value['areaUuid'],
|
|
79
|
+
'area_name': value['areaName'],
|
|
80
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
79
81
|
};
|
|
80
82
|
}
|
|
@@ -16,6 +16,12 @@ import type { UnitPreference } from './UnitPreference';
|
|
|
16
16
|
* @interface PublicResortInfo
|
|
17
17
|
*/
|
|
18
18
|
export interface PublicResortInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicResortInfo
|
|
23
|
+
*/
|
|
24
|
+
uuid: string;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -40,12 +46,6 @@ export interface PublicResortInfo {
|
|
|
40
46
|
* @memberof PublicResortInfo
|
|
41
47
|
*/
|
|
42
48
|
unitPreference: UnitPreference;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof PublicResortInfo
|
|
47
|
-
*/
|
|
48
|
-
uuid: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the PublicResortInfo interface.
|
|
@@ -23,6 +23,8 @@ const UnitPreference_1 = require("./UnitPreference");
|
|
|
23
23
|
* Check if a given object implements the PublicResortInfo interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfPublicResortInfo(value) {
|
|
26
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
29
|
return false;
|
|
28
30
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
@@ -31,8 +33,6 @@ function instanceOfPublicResortInfo(value) {
|
|
|
31
33
|
return false;
|
|
32
34
|
if (!('unitPreference' in value) || value['unitPreference'] === undefined)
|
|
33
35
|
return false;
|
|
34
|
-
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
35
|
-
return false;
|
|
36
36
|
return true;
|
|
37
37
|
}
|
|
38
38
|
function PublicResortInfoFromJSON(json) {
|
|
@@ -43,11 +43,11 @@ function PublicResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
+
'uuid': json['uuid'],
|
|
46
47
|
'name': json['name'],
|
|
47
48
|
'slug': json['slug'],
|
|
48
49
|
'timezone': json['timezone'],
|
|
49
50
|
'unitPreference': (0, UnitPreference_1.UnitPreferenceFromJSON)(json['unit_preference']),
|
|
50
|
-
'uuid': json['uuid'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
function PublicResortInfoToJSON(json) {
|
|
@@ -58,10 +58,10 @@ function PublicResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return value;
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
|
+
'uuid': value['uuid'],
|
|
61
62
|
'name': value['name'],
|
|
62
63
|
'slug': value['slug'],
|
|
63
64
|
'timezone': value['timezone'],
|
|
64
65
|
'unit_preference': (0, UnitPreference_1.UnitPreferenceToJSON)(value['unitPreference']),
|
|
65
|
-
'uuid': value['uuid'],
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -24,28 +24,28 @@ import type { WeatherData } from './WeatherData';
|
|
|
24
24
|
export interface PublicResortResponse {
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {PublicResortInfo}
|
|
28
28
|
* @memberof PublicResortResponse
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
resort: PublicResortInfo;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {PublicResortStatus}
|
|
34
34
|
* @memberof PublicResortResponse
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
status?: PublicResortStatus | null;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {Array<PublicRun>}
|
|
40
40
|
* @memberof PublicResortResponse
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
runs: Array<PublicRun>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<PublicLift>}
|
|
46
46
|
* @memberof PublicResortResponse
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
lifts: Array<PublicLift>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {Array<PublicSnowReport>}
|
|
@@ -54,10 +54,10 @@ export interface PublicResortResponse {
|
|
|
54
54
|
snow: Array<PublicSnowReport>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {OperatingHoursResponse}
|
|
58
58
|
* @memberof PublicResortResponse
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
hours?: OperatingHoursResponse | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {WeatherData}
|
|
@@ -29,12 +29,12 @@ const WeatherData_1 = require("./WeatherData");
|
|
|
29
29
|
* Check if a given object implements the PublicResortResponse interface.
|
|
30
30
|
*/
|
|
31
31
|
function instanceOfPublicResortResponse(value) {
|
|
32
|
-
if (!('lifts' in value) || value['lifts'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('resort' in value) || value['resort'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('runs' in value) || value['runs'] === undefined)
|
|
37
35
|
return false;
|
|
36
|
+
if (!('lifts' in value) || value['lifts'] === undefined)
|
|
37
|
+
return false;
|
|
38
38
|
if (!('snow' in value) || value['snow'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
return true;
|
|
@@ -47,12 +47,12 @@ function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
return json;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'hours': json['hours'] == null ? undefined : (0, OperatingHoursResponse_1.OperatingHoursResponseFromJSON)(json['hours']),
|
|
51
|
-
'lifts': (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
|
|
52
50
|
'resort': (0, PublicResortInfo_1.PublicResortInfoFromJSON)(json['resort']),
|
|
51
|
+
'status': json['status'] == null ? undefined : (0, PublicResortStatus_1.PublicResortStatusFromJSON)(json['status']),
|
|
53
52
|
'runs': (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
|
|
53
|
+
'lifts': (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
|
|
54
54
|
'snow': (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
|
|
55
|
-
'
|
|
55
|
+
'hours': json['hours'] == null ? undefined : (0, OperatingHoursResponse_1.OperatingHoursResponseFromJSON)(json['hours']),
|
|
56
56
|
'weather': json['weather'] == null ? undefined : (0, WeatherData_1.WeatherDataFromJSON)(json['weather']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -64,12 +64,12 @@ function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
64
|
return value;
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
|
-
'hours': (0, OperatingHoursResponse_1.OperatingHoursResponseToJSON)(value['hours']),
|
|
68
|
-
'lifts': (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
|
|
69
67
|
'resort': (0, PublicResortInfo_1.PublicResortInfoToJSON)(value['resort']),
|
|
68
|
+
'status': (0, PublicResortStatus_1.PublicResortStatusToJSON)(value['status']),
|
|
70
69
|
'runs': (value['runs'].map(PublicRun_1.PublicRunToJSON)),
|
|
70
|
+
'lifts': (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
|
|
71
71
|
'snow': (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
|
|
72
|
-
'
|
|
72
|
+
'hours': (0, OperatingHoursResponse_1.OperatingHoursResponseToJSON)(value['hours']),
|
|
73
73
|
'weather': (0, WeatherData_1.WeatherDataToJSON)(value['weather']),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -19,70 +19,70 @@ import type { ResortStatusType } from './ResortStatusType';
|
|
|
19
19
|
export interface PublicResortStatus {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {
|
|
22
|
+
* @type {ResortStatusType}
|
|
23
23
|
* @memberof PublicResortStatus
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
status: ResortStatusType;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {SeasonType}
|
|
29
29
|
* @memberof PublicResortStatus
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
season: SeasonType;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {string}
|
|
35
35
|
* @memberof PublicResortStatus
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
notes: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {string}
|
|
41
41
|
* @memberof PublicResortStatus
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
updatedAt?: string | null;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof PublicResortStatus
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
scheduledOpensAt?: string | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof PublicResortStatus
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
scheduledClosesAt?: string | null;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {number}
|
|
59
59
|
* @memberof PublicResortStatus
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
openRuns: number;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {number}
|
|
65
65
|
* @memberof PublicResortStatus
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
groomedRuns: number;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {number}
|
|
71
71
|
* @memberof PublicResortStatus
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
totalRuns: number;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {number}
|
|
77
77
|
* @memberof PublicResortStatus
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
openLifts: number;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
|
-
* @type {
|
|
82
|
+
* @type {number}
|
|
83
83
|
* @memberof PublicResortStatus
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
totalLifts: number;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -24,21 +24,21 @@ const ResortStatusType_1 = require("./ResortStatusType");
|
|
|
24
24
|
* Check if a given object implements the PublicResortStatus interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfPublicResortStatus(value) {
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('season' in value) || value['season'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
32
32
|
return false;
|
|
33
33
|
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
@@ -50,17 +50,17 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'
|
|
53
|
+
'status': (0, ResortStatusType_1.ResortStatusTypeFromJSON)(json['status']),
|
|
54
|
+
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
54
55
|
'notes': json['notes'],
|
|
55
|
-
'
|
|
56
|
-
'openRuns': json['open_runs'],
|
|
57
|
-
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
56
|
+
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
58
57
|
'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
58
|
+
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
59
|
+
'openRuns': json['open_runs'],
|
|
60
|
+
'groomedRuns': json['groomed_runs'],
|
|
62
61
|
'totalRuns': json['total_runs'],
|
|
63
|
-
'
|
|
62
|
+
'openLifts': json['open_lifts'],
|
|
63
|
+
'totalLifts': json['total_lifts'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
function PublicResortStatusToJSON(json) {
|
|
@@ -71,16 +71,16 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
71
|
return value;
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
|
-
'
|
|
74
|
+
'status': (0, ResortStatusType_1.ResortStatusTypeToJSON)(value['status']),
|
|
75
|
+
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
75
76
|
'notes': value['notes'],
|
|
76
|
-
'
|
|
77
|
-
'open_runs': value['openRuns'],
|
|
78
|
-
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
77
|
+
'updated_at': value['updatedAt'],
|
|
79
78
|
'scheduled_opens_at': value['scheduledOpensAt'],
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
79
|
+
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
80
|
+
'open_runs': value['openRuns'],
|
|
81
|
+
'groomed_runs': value['groomedRuns'],
|
|
83
82
|
'total_runs': value['totalRuns'],
|
|
84
|
-
'
|
|
83
|
+
'open_lifts': value['openLifts'],
|
|
84
|
+
'total_lifts': value['totalLifts'],
|
|
85
85
|
};
|
|
86
86
|
}
|