@mtnmanager/sdk 1.8.0 → 1.8.2
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/dist/esm/models/Amenity.d.ts +6 -0
- package/dist/esm/models/Amenity.js +4 -0
- package/dist/esm/models/Lift.d.ts +6 -0
- package/dist/esm/models/Lift.js +2 -0
- package/dist/esm/models/OverviewTerrainParks.d.ts +8 -1
- package/dist/esm/models/OverviewTerrainParks.js +2 -0
- package/dist/esm/models/ResortStatus.d.ts +1 -1
- package/dist/esm/models/ResortStatus.js +1 -1
- package/dist/esm/models/RunDifficulty.d.ts +0 -1
- package/dist/esm/models/RunDifficulty.js +0 -1
- package/dist/esm/models/SeasonType.d.ts +3 -1
- package/dist/esm/models/SeasonType.js +3 -1
- package/dist/esm/models/TerrainPark.d.ts +13 -0
- package/dist/esm/models/TerrainPark.js +6 -0
- package/dist/models/Amenity.d.ts +6 -0
- package/dist/models/Amenity.js +4 -0
- package/dist/models/Lift.d.ts +6 -0
- package/dist/models/Lift.js +2 -0
- package/dist/models/OverviewTerrainParks.d.ts +8 -1
- package/dist/models/OverviewTerrainParks.js +2 -0
- package/dist/models/ResortStatus.d.ts +1 -1
- package/dist/models/ResortStatus.js +1 -1
- package/dist/models/RunDifficulty.d.ts +0 -1
- package/dist/models/RunDifficulty.js +0 -1
- package/dist/models/SeasonType.d.ts +3 -1
- package/dist/models/SeasonType.js +3 -1
- package/dist/models/TerrainPark.d.ts +13 -0
- package/dist/models/TerrainPark.js +6 -0
- package/package.json +1 -1
|
@@ -37,6 +37,12 @@ export interface Amenity {
|
|
|
37
37
|
* @memberof Amenity
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* URL-friendly name of the amenity.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Amenity
|
|
44
|
+
*/
|
|
45
|
+
slug: string;
|
|
40
46
|
/**
|
|
41
47
|
* Category classification (e.g. restaurant, lodge, ski_school).
|
|
42
48
|
* @type {AmenityCategory}
|
|
@@ -24,6 +24,8 @@ export function instanceOfAmenity(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('category' in value) || value['category'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -45,6 +47,7 @@ export function AmenityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'description': json['description'],
|
|
46
48
|
'uuid': json['uuid'],
|
|
47
49
|
'name': json['name'],
|
|
50
|
+
'slug': json['slug'],
|
|
48
51
|
'category': AmenityCategoryFromJSON(json['category']),
|
|
49
52
|
'website': json['website'],
|
|
50
53
|
'hasOperatingHours': json['has_operating_hours'],
|
|
@@ -65,6 +68,7 @@ export function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
68
|
'description': value['description'],
|
|
66
69
|
'uuid': value['uuid'],
|
|
67
70
|
'name': value['name'],
|
|
71
|
+
'slug': value['slug'],
|
|
68
72
|
'category': AmenityCategoryToJSON(value['category']),
|
|
69
73
|
'website': value['website'],
|
|
70
74
|
'has_operating_hours': value['hasOperatingHours'],
|
|
@@ -67,6 +67,12 @@ export interface Lift {
|
|
|
67
67
|
* @memberof Lift
|
|
68
68
|
*/
|
|
69
69
|
heated: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Riders per chair or cabin, if available.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Lift
|
|
74
|
+
*/
|
|
75
|
+
capacity?: number | null;
|
|
70
76
|
/**
|
|
71
77
|
* Estimated travel time in minutes.
|
|
72
78
|
* @type {number}
|
package/dist/esm/models/Lift.js
CHANGED
|
@@ -54,6 +54,7 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'highSpeed': json['high_speed'],
|
|
55
55
|
'bubble': json['bubble'],
|
|
56
56
|
'heated': json['heated'],
|
|
57
|
+
'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
|
|
57
58
|
'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
|
|
58
59
|
'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
|
|
59
60
|
'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
|
|
@@ -86,6 +87,7 @@ export function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
87
|
'high_speed': value['highSpeed'],
|
|
87
88
|
'bubble': value['bubble'],
|
|
88
89
|
'heated': value['heated'],
|
|
90
|
+
'capacity': value['capacity'],
|
|
89
91
|
'travel_time': value['travelTime'],
|
|
90
92
|
'length_ft': value['lengthFt'],
|
|
91
93
|
'length_m': value['lengthM'],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Terrain park statistics: open/total counts and last-updated timestamp.
|
|
13
|
+
* Terrain park statistics: open/groomed/total counts and last-updated timestamp.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface OverviewTerrainParks
|
|
16
16
|
*/
|
|
@@ -22,6 +22,13 @@ export interface OverviewTerrainParks {
|
|
|
22
22
|
* @memberof OverviewTerrainParks
|
|
23
23
|
*/
|
|
24
24
|
open?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Number of terrain parks groomed within the last 24 hours.
|
|
27
|
+
* Not included if the terrain park grooming feature is disabled.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof OverviewTerrainParks
|
|
30
|
+
*/
|
|
31
|
+
groomed?: number | null;
|
|
25
32
|
/**
|
|
26
33
|
* Total number of terrain parks at the resort.
|
|
27
34
|
* @type {number}
|
|
@@ -30,6 +30,7 @@ export function OverviewTerrainParksFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
33
|
+
'groomed': json['groomed'] === undefined ? undefined : json['groomed'] === null ? null : json['groomed'],
|
|
33
34
|
'total': json['total'],
|
|
34
35
|
'updatedAt': (new Date(json['updated_at'])),
|
|
35
36
|
};
|
|
@@ -43,6 +44,7 @@ export function OverviewTerrainParksToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
46
|
'open': value['open'],
|
|
47
|
+
'groomed': value['groomed'],
|
|
46
48
|
'total': value['total'],
|
|
47
49
|
'updated_at': value['updatedAt'].toISOString(),
|
|
48
50
|
};
|
|
@@ -18,7 +18,6 @@ export declare const RunDifficulty: {
|
|
|
18
18
|
readonly Intermediate: "intermediate";
|
|
19
19
|
readonly Advanced: "advanced";
|
|
20
20
|
readonly Expert: "expert";
|
|
21
|
-
readonly TerrainPark: "terrain_park";
|
|
22
21
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
23
22
|
};
|
|
24
23
|
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* A resort's season: winter or summer as its weekly operating hours say
|
|
14
|
+
* (`OperatingHoursDb::season_type`), or closed outside every season (see
|
|
15
|
+
* `utils::hours::season_on`).
|
|
14
16
|
* @export
|
|
15
17
|
*/
|
|
16
18
|
export declare const SeasonType: {
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A resort's season: winter or summer as its weekly operating hours say
|
|
16
|
+
* (`OperatingHoursDb::season_type`), or closed outside every season (see
|
|
17
|
+
* `utils::hours::season_on`).
|
|
16
18
|
* @export
|
|
17
19
|
*/
|
|
18
20
|
export const SeasonType = {
|
|
@@ -49,6 +49,19 @@ export interface TerrainPark {
|
|
|
49
49
|
* @memberof TerrainPark
|
|
50
50
|
*/
|
|
51
51
|
status: TerrainParkStatus;
|
|
52
|
+
/**
|
|
53
|
+
* When the terrain park was last groomed.
|
|
54
|
+
* `null` if never groomed, or if the terrain park grooming feature is disabled.
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof TerrainPark
|
|
57
|
+
*/
|
|
58
|
+
lastGroomed?: Date | null;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the terrain park was groomed within the last 24 hours.
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof TerrainPark
|
|
63
|
+
*/
|
|
64
|
+
groomedToday: boolean;
|
|
52
65
|
/**
|
|
53
66
|
* Notes about current conditions in this terrain park.
|
|
54
67
|
* @type {string}
|
|
@@ -26,6 +26,8 @@ export function instanceOfTerrainPark(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('status' in value) || value['status'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if ((!('groomedToday' in value) && !('groomed_today' in value)) || (value['groomedToday'] === undefined && value['groomed_today'] === undefined))
|
|
30
|
+
return false;
|
|
29
31
|
if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
|
|
30
32
|
return false;
|
|
31
33
|
if (!('features' in value) || value['features'] === undefined)
|
|
@@ -47,6 +49,8 @@ export function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'slug': json['slug'],
|
|
48
50
|
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
49
51
|
'status': TerrainParkStatusFromJSON(json['status']),
|
|
52
|
+
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
53
|
+
'groomedToday': json['groomed_today'],
|
|
50
54
|
'conditionNotes': json['condition_notes'],
|
|
51
55
|
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
52
56
|
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
@@ -69,6 +73,8 @@ export function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
73
|
'slug': value['slug'],
|
|
70
74
|
'number': value['number'],
|
|
71
75
|
'status': TerrainParkStatusToJSON(value['status']),
|
|
76
|
+
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
77
|
+
'groomed_today': value['groomedToday'],
|
|
72
78
|
'condition_notes': value['conditionNotes'],
|
|
73
79
|
'area_uuid': value['areaUuid'],
|
|
74
80
|
'area_name': value['areaName'],
|
package/dist/models/Amenity.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface Amenity {
|
|
|
37
37
|
* @memberof Amenity
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* URL-friendly name of the amenity.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Amenity
|
|
44
|
+
*/
|
|
45
|
+
slug: string;
|
|
40
46
|
/**
|
|
41
47
|
* Category classification (e.g. restaurant, lodge, ski_school).
|
|
42
48
|
* @type {AmenityCategory}
|
package/dist/models/Amenity.js
CHANGED
|
@@ -31,6 +31,8 @@ function instanceOfAmenity(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('name' in value) || value['name'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('category' in value) || value['category'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -52,6 +54,7 @@ function AmenityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'description': json['description'],
|
|
53
55
|
'uuid': json['uuid'],
|
|
54
56
|
'name': json['name'],
|
|
57
|
+
'slug': json['slug'],
|
|
55
58
|
'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
|
|
56
59
|
'website': json['website'],
|
|
57
60
|
'hasOperatingHours': json['has_operating_hours'],
|
|
@@ -72,6 +75,7 @@ function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
75
|
'description': value['description'],
|
|
73
76
|
'uuid': value['uuid'],
|
|
74
77
|
'name': value['name'],
|
|
78
|
+
'slug': value['slug'],
|
|
75
79
|
'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
|
|
76
80
|
'website': value['website'],
|
|
77
81
|
'has_operating_hours': value['hasOperatingHours'],
|
package/dist/models/Lift.d.ts
CHANGED
|
@@ -67,6 +67,12 @@ export interface Lift {
|
|
|
67
67
|
* @memberof Lift
|
|
68
68
|
*/
|
|
69
69
|
heated: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Riders per chair or cabin, if available.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Lift
|
|
74
|
+
*/
|
|
75
|
+
capacity?: number | null;
|
|
70
76
|
/**
|
|
71
77
|
* Estimated travel time in minutes.
|
|
72
78
|
* @type {number}
|
package/dist/models/Lift.js
CHANGED
|
@@ -61,6 +61,7 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'highSpeed': json['high_speed'],
|
|
62
62
|
'bubble': json['bubble'],
|
|
63
63
|
'heated': json['heated'],
|
|
64
|
+
'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
|
|
64
65
|
'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
|
|
65
66
|
'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
|
|
66
67
|
'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
|
|
@@ -93,6 +94,7 @@ function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
94
|
'high_speed': value['highSpeed'],
|
|
94
95
|
'bubble': value['bubble'],
|
|
95
96
|
'heated': value['heated'],
|
|
97
|
+
'capacity': value['capacity'],
|
|
96
98
|
'travel_time': value['travelTime'],
|
|
97
99
|
'length_ft': value['lengthFt'],
|
|
98
100
|
'length_m': value['lengthM'],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Terrain park statistics: open/total counts and last-updated timestamp.
|
|
13
|
+
* Terrain park statistics: open/groomed/total counts and last-updated timestamp.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface OverviewTerrainParks
|
|
16
16
|
*/
|
|
@@ -22,6 +22,13 @@ export interface OverviewTerrainParks {
|
|
|
22
22
|
* @memberof OverviewTerrainParks
|
|
23
23
|
*/
|
|
24
24
|
open?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Number of terrain parks groomed within the last 24 hours.
|
|
27
|
+
* Not included if the terrain park grooming feature is disabled.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof OverviewTerrainParks
|
|
30
|
+
*/
|
|
31
|
+
groomed?: number | null;
|
|
25
32
|
/**
|
|
26
33
|
* Total number of terrain parks at the resort.
|
|
27
34
|
* @type {number}
|
|
@@ -37,6 +37,7 @@ function OverviewTerrainParksFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
'open': json['open'] === undefined ? undefined : json['open'] === null ? null : json['open'],
|
|
40
|
+
'groomed': json['groomed'] === undefined ? undefined : json['groomed'] === null ? null : json['groomed'],
|
|
40
41
|
'total': json['total'],
|
|
41
42
|
'updatedAt': (new Date(json['updated_at'])),
|
|
42
43
|
};
|
|
@@ -50,6 +51,7 @@ function OverviewTerrainParksToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
51
|
}
|
|
51
52
|
return {
|
|
52
53
|
'open': value['open'],
|
|
54
|
+
'groomed': value['groomed'],
|
|
53
55
|
'total': value['total'],
|
|
54
56
|
'updated_at': value['updatedAt'].toISOString(),
|
|
55
57
|
};
|
|
@@ -20,7 +20,7 @@ exports.ResortStatusFromJSONTyped = ResortStatusFromJSONTyped;
|
|
|
20
20
|
exports.ResortStatusToJSON = ResortStatusToJSON;
|
|
21
21
|
exports.ResortStatusToJSONTyped = ResortStatusToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Whether the resort is open right now, from today's scheduled hours.
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.ResortStatus = {
|
|
@@ -18,7 +18,6 @@ export declare const RunDifficulty: {
|
|
|
18
18
|
readonly Intermediate: "intermediate";
|
|
19
19
|
readonly Advanced: "advanced";
|
|
20
20
|
readonly Expert: "expert";
|
|
21
|
-
readonly TerrainPark: "terrain_park";
|
|
22
21
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
23
22
|
};
|
|
24
23
|
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* A resort's season: winter or summer as its weekly operating hours say
|
|
14
|
+
* (`OperatingHoursDb::season_type`), or closed outside every season (see
|
|
15
|
+
* `utils::hours::season_on`).
|
|
14
16
|
* @export
|
|
15
17
|
*/
|
|
16
18
|
export declare const SeasonType: {
|
|
@@ -20,7 +20,9 @@ exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
|
|
|
20
20
|
exports.SeasonTypeToJSON = SeasonTypeToJSON;
|
|
21
21
|
exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* A resort's season: winter or summer as its weekly operating hours say
|
|
24
|
+
* (`OperatingHoursDb::season_type`), or closed outside every season (see
|
|
25
|
+
* `utils::hours::season_on`).
|
|
24
26
|
* @export
|
|
25
27
|
*/
|
|
26
28
|
exports.SeasonType = {
|
|
@@ -49,6 +49,19 @@ export interface TerrainPark {
|
|
|
49
49
|
* @memberof TerrainPark
|
|
50
50
|
*/
|
|
51
51
|
status: TerrainParkStatus;
|
|
52
|
+
/**
|
|
53
|
+
* When the terrain park was last groomed.
|
|
54
|
+
* `null` if never groomed, or if the terrain park grooming feature is disabled.
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof TerrainPark
|
|
57
|
+
*/
|
|
58
|
+
lastGroomed?: Date | null;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the terrain park was groomed within the last 24 hours.
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof TerrainPark
|
|
63
|
+
*/
|
|
64
|
+
groomedToday: boolean;
|
|
52
65
|
/**
|
|
53
66
|
* Notes about current conditions in this terrain park.
|
|
54
67
|
* @type {string}
|
|
@@ -33,6 +33,8 @@ function instanceOfTerrainPark(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('status' in value) || value['status'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if ((!('groomedToday' in value) && !('groomed_today' in value)) || (value['groomedToday'] === undefined && value['groomed_today'] === undefined))
|
|
37
|
+
return false;
|
|
36
38
|
if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
|
|
37
39
|
return false;
|
|
38
40
|
if (!('features' in value) || value['features'] === undefined)
|
|
@@ -54,6 +56,8 @@ function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'slug': json['slug'],
|
|
55
57
|
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
56
58
|
'status': (0, TerrainParkStatus_1.TerrainParkStatusFromJSON)(json['status']),
|
|
59
|
+
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
60
|
+
'groomedToday': json['groomed_today'],
|
|
57
61
|
'conditionNotes': json['condition_notes'],
|
|
58
62
|
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
59
63
|
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
@@ -76,6 +80,8 @@ function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
80
|
'slug': value['slug'],
|
|
77
81
|
'number': value['number'],
|
|
78
82
|
'status': (0, TerrainParkStatus_1.TerrainParkStatusToJSON)(value['status']),
|
|
83
|
+
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
84
|
+
'groomed_today': value['groomedToday'],
|
|
79
85
|
'condition_notes': value['conditionNotes'],
|
|
80
86
|
'area_uuid': value['areaUuid'],
|
|
81
87
|
'area_name': value['areaName'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|