@mtnmanager/sdk 1.1.0 → 1.2.0
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 +4 -0
- package/dist/esm/models/AmenityCalendarEntry.d.ts +59 -0
- package/dist/esm/models/AmenityCalendarEntry.js +56 -0
- package/dist/esm/models/AmenityCategory.d.ts +27 -0
- package/dist/esm/models/AmenityCategory.js +45 -0
- package/dist/esm/models/AmenitySchedule.d.ts +52 -0
- package/dist/esm/models/AmenitySchedule.js +57 -0
- package/dist/esm/models/CalendarDay.d.ts +7 -0
- package/dist/esm/models/CalendarDay.js +5 -0
- package/dist/esm/models/Lift.d.ts +14 -0
- package/dist/esm/models/Lift.js +4 -0
- package/dist/esm/models/OperatingHours.d.ts +7 -0
- package/dist/esm/models/OperatingHours.js +5 -0
- package/dist/esm/models/Region.d.ts +25 -0
- package/dist/esm/models/Region.js +43 -0
- package/dist/esm/models/ResortInfo.d.ts +7 -0
- package/dist/esm/models/ResortInfo.js +5 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AmenityCalendarEntry.d.ts +59 -0
- package/dist/models/AmenityCalendarEntry.js +63 -0
- package/dist/models/AmenityCategory.d.ts +27 -0
- package/dist/models/AmenityCategory.js +53 -0
- package/dist/models/AmenitySchedule.d.ts +52 -0
- package/dist/models/AmenitySchedule.js +64 -0
- package/dist/models/CalendarDay.d.ts +7 -0
- package/dist/models/CalendarDay.js +5 -0
- package/dist/models/Lift.d.ts +14 -0
- package/dist/models/Lift.js +4 -0
- package/dist/models/OperatingHours.d.ts +7 -0
- package/dist/models/OperatingHours.js +5 -0
- package/dist/models/Region.d.ts +25 -0
- package/dist/models/Region.js +51 -0
- package/dist/models/ResortInfo.d.ts +7 -0
- package/dist/models/ResortInfo.js +5 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,9 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
64
64
|
|
|
65
65
|
### Models
|
|
66
66
|
|
|
67
|
+
- [AmenityCalendarEntry](docs/AmenityCalendarEntry.md)
|
|
68
|
+
- [AmenityCategory](docs/AmenityCategory.md)
|
|
69
|
+
- [AmenitySchedule](docs/AmenitySchedule.md)
|
|
67
70
|
- [CalendarDay](docs/CalendarDay.md)
|
|
68
71
|
- [ClosureReason](docs/ClosureReason.md)
|
|
69
72
|
- [CurrentWeather](docs/CurrentWeather.md)
|
|
@@ -86,6 +89,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
86
89
|
- [Overview](docs/Overview.md)
|
|
87
90
|
- [ParkingLot](docs/ParkingLot.md)
|
|
88
91
|
- [ParkingLotStatus](docs/ParkingLotStatus.md)
|
|
92
|
+
- [Region](docs/Region.md)
|
|
89
93
|
- [ResortInfo](docs/ResortInfo.md)
|
|
90
94
|
- [ResortStatus](docs/ResortStatus.md)
|
|
91
95
|
- [Run](docs/Run.md)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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 { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
/**
|
|
14
|
+
* Amenity entry within a CalendarDay, showing per-amenity hours for a specific date.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AmenityCalendarEntry
|
|
17
|
+
*/
|
|
18
|
+
export interface AmenityCalendarEntry {
|
|
19
|
+
/**
|
|
20
|
+
* Amenity UUID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AmenityCalendarEntry
|
|
23
|
+
*/
|
|
24
|
+
uuid: string;
|
|
25
|
+
/**
|
|
26
|
+
* Amenity name.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AmenityCalendarEntry
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Amenity category.
|
|
33
|
+
* @type {AmenityCategory}
|
|
34
|
+
* @memberof AmenityCalendarEntry
|
|
35
|
+
*/
|
|
36
|
+
category: AmenityCategory;
|
|
37
|
+
/**
|
|
38
|
+
* Opening time in 24-hour format (HH:MM), in resort's local timezone.
|
|
39
|
+
* `null` if this amenity is closed on this day.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AmenityCalendarEntry
|
|
42
|
+
*/
|
|
43
|
+
opensAt?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Closing time in 24-hour format (HH:MM), in resort's local timezone.
|
|
46
|
+
* `null` if this amenity is closed on this day.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AmenityCalendarEntry
|
|
49
|
+
*/
|
|
50
|
+
closesAt?: string | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AmenityCalendarEntry interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAmenityCalendarEntry(value: object): value is AmenityCalendarEntry;
|
|
56
|
+
export declare function AmenityCalendarEntryFromJSON(json: any): AmenityCalendarEntry;
|
|
57
|
+
export declare function AmenityCalendarEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityCalendarEntry;
|
|
58
|
+
export declare function AmenityCalendarEntryToJSON(json: any): AmenityCalendarEntry;
|
|
59
|
+
export declare function AmenityCalendarEntryToJSONTyped(value?: AmenityCalendarEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
import { AmenityCategoryFromJSON, AmenityCategoryToJSON, } from './AmenityCategory';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AmenityCalendarEntry interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAmenityCalendarEntry(value) {
|
|
19
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function AmenityCalendarEntryFromJSON(json) {
|
|
28
|
+
return AmenityCalendarEntryFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function AmenityCalendarEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'uuid': json['uuid'],
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'category': AmenityCategoryFromJSON(json['category']),
|
|
38
|
+
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
39
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AmenityCalendarEntryToJSON(json) {
|
|
43
|
+
return AmenityCalendarEntryToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AmenityCalendarEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'uuid': value['uuid'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'category': AmenityCategoryToJSON(value['category']),
|
|
53
|
+
'opens_at': value['opensAt'],
|
|
54
|
+
'closes_at': value['closesAt'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Category classification for amenities
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AmenityCategory: {
|
|
17
|
+
readonly FoodBeverage: "food_beverage";
|
|
18
|
+
readonly Retail: "retail";
|
|
19
|
+
readonly Recreation: "recreation";
|
|
20
|
+
readonly Facility: "facility";
|
|
21
|
+
};
|
|
22
|
+
export type AmenityCategory = typeof AmenityCategory[keyof typeof AmenityCategory];
|
|
23
|
+
export declare function instanceOfAmenityCategory(value: any): boolean;
|
|
24
|
+
export declare function AmenityCategoryFromJSON(json: any): AmenityCategory;
|
|
25
|
+
export declare function AmenityCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityCategory;
|
|
26
|
+
export declare function AmenityCategoryToJSON(value?: AmenityCategory | null): any;
|
|
27
|
+
export declare function AmenityCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): AmenityCategory;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Category classification for amenities
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AmenityCategory = {
|
|
19
|
+
FoodBeverage: 'food_beverage',
|
|
20
|
+
Retail: 'retail',
|
|
21
|
+
Recreation: 'recreation',
|
|
22
|
+
Facility: 'facility'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfAmenityCategory(value) {
|
|
25
|
+
for (const key in AmenityCategory) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(AmenityCategory, key)) {
|
|
27
|
+
if (AmenityCategory[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function AmenityCategoryFromJSON(json) {
|
|
35
|
+
return AmenityCategoryFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AmenityCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function AmenityCategoryToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function AmenityCategoryToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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 { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
import type { Schedule } from './Schedule';
|
|
14
|
+
/**
|
|
15
|
+
* Amenity schedule for the OperatingHours response
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AmenitySchedule
|
|
18
|
+
*/
|
|
19
|
+
export interface AmenitySchedule {
|
|
20
|
+
/**
|
|
21
|
+
* Amenity UUID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AmenitySchedule
|
|
24
|
+
*/
|
|
25
|
+
uuid: string;
|
|
26
|
+
/**
|
|
27
|
+
* Amenity name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AmenitySchedule
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Amenity category
|
|
34
|
+
* @type {AmenityCategory}
|
|
35
|
+
* @memberof AmenitySchedule
|
|
36
|
+
*/
|
|
37
|
+
category: AmenityCategory;
|
|
38
|
+
/**
|
|
39
|
+
* Operating schedules for this amenity
|
|
40
|
+
* @type {Array<Schedule>}
|
|
41
|
+
* @memberof AmenitySchedule
|
|
42
|
+
*/
|
|
43
|
+
schedules: Array<Schedule>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AmenitySchedule interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAmenitySchedule(value: object): value is AmenitySchedule;
|
|
49
|
+
export declare function AmenityScheduleFromJSON(json: any): AmenitySchedule;
|
|
50
|
+
export declare function AmenityScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenitySchedule;
|
|
51
|
+
export declare function AmenityScheduleToJSON(json: any): AmenitySchedule;
|
|
52
|
+
export declare function AmenityScheduleToJSONTyped(value?: AmenitySchedule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
import { AmenityCategoryFromJSON, AmenityCategoryToJSON, } from './AmenityCategory';
|
|
15
|
+
import { ScheduleFromJSON, ScheduleToJSON, } from './Schedule';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the AmenitySchedule interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfAmenitySchedule(value) {
|
|
20
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('schedules' in value) || value['schedules'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function AmenityScheduleFromJSON(json) {
|
|
31
|
+
return AmenityScheduleFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function AmenityScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'uuid': json['uuid'],
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'category': AmenityCategoryFromJSON(json['category']),
|
|
41
|
+
'schedules': (json['schedules'].map(ScheduleFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function AmenityScheduleToJSON(json) {
|
|
45
|
+
return AmenityScheduleToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function AmenityScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'uuid': value['uuid'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'category': AmenityCategoryToJSON(value['category']),
|
|
55
|
+
'schedules': (value['schedules'].map(ScheduleToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DayOfWeek } from './DayOfWeek';
|
|
13
|
+
import type { AmenityCalendarEntry } from './AmenityCalendarEntry';
|
|
13
14
|
import type { ClosureReason } from './ClosureReason';
|
|
14
15
|
/**
|
|
15
16
|
* Operating hours for a specific calendar date.
|
|
@@ -64,6 +65,12 @@ export interface CalendarDay {
|
|
|
64
65
|
* @memberof CalendarDay
|
|
65
66
|
*/
|
|
66
67
|
specialEvent?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Per-amenity hours for this day. Only included when amenity hours are configured.
|
|
70
|
+
* @type {Array<AmenityCalendarEntry>}
|
|
71
|
+
* @memberof CalendarDay
|
|
72
|
+
*/
|
|
73
|
+
amenities: Array<AmenityCalendarEntry>;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Check if a given object implements the CalendarDay interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { DayOfWeekFromJSON, DayOfWeekToJSON, } from './DayOfWeek';
|
|
15
|
+
import { AmenityCalendarEntryFromJSON, AmenityCalendarEntryToJSON, } from './AmenityCalendarEntry';
|
|
15
16
|
import { ClosureReasonFromJSON, ClosureReasonToJSON, } from './ClosureReason';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the CalendarDay interface.
|
|
@@ -23,6 +24,8 @@ export function instanceOfCalendarDay(value) {
|
|
|
23
24
|
return false;
|
|
24
25
|
if (!('isOpen' in value) || value['isOpen'] === undefined)
|
|
25
26
|
return false;
|
|
27
|
+
if (!('amenities' in value) || value['amenities'] === undefined)
|
|
28
|
+
return false;
|
|
26
29
|
return true;
|
|
27
30
|
}
|
|
28
31
|
export function CalendarDayFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ export function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
41
44
|
'closureReason': json['closure_reason'] == null ? undefined : ClosureReasonFromJSON(json['closure_reason']),
|
|
42
45
|
'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
|
|
46
|
+
'amenities': (json['amenities'].map(AmenityCalendarEntryFromJSON)),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
export function CalendarDayToJSON(json) {
|
|
@@ -57,5 +61,6 @@ export function CalendarDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
61
|
'closes_at': value['closesAt'],
|
|
58
62
|
'closure_reason': ClosureReasonToJSON(value['closureReason']),
|
|
59
63
|
'special_event': value['specialEvent'],
|
|
64
|
+
'amenities': (value['amenities'].map(AmenityCalendarEntryToJSON)),
|
|
60
65
|
};
|
|
61
66
|
}
|
|
@@ -78,6 +78,20 @@ export interface Lift {
|
|
|
78
78
|
* @memberof Lift
|
|
79
79
|
*/
|
|
80
80
|
waitTimeMinutes?: number | null;
|
|
81
|
+
/**
|
|
82
|
+
* Today's scheduled opening time in 24-hour format (HH:MM), in resort's local timezone.
|
|
83
|
+
* `null` if the lift has no scheduled hours for today.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Lift
|
|
86
|
+
*/
|
|
87
|
+
opensAt?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Today's scheduled closing time in 24-hour format (HH:MM), in resort's local timezone.
|
|
90
|
+
* `null` if the lift has no scheduled hours for today.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Lift
|
|
93
|
+
*/
|
|
94
|
+
closesAt?: string | null;
|
|
81
95
|
/**
|
|
82
96
|
* UUID of the area this lift belongs to, if assigned.
|
|
83
97
|
* @type {string}
|
package/dist/esm/models/Lift.js
CHANGED
|
@@ -55,6 +55,8 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'heated': json['heated'],
|
|
56
56
|
'status': LiftStatusFromJSON(json['status']),
|
|
57
57
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
58
|
+
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
59
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
58
60
|
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
59
61
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
60
62
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
@@ -79,6 +81,8 @@ export function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
81
|
'heated': value['heated'],
|
|
80
82
|
'status': LiftStatusToJSON(value['status']),
|
|
81
83
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
84
|
+
'opens_at': value['opensAt'],
|
|
85
|
+
'closes_at': value['closesAt'],
|
|
82
86
|
'area_uuid': value['areaUuid'],
|
|
83
87
|
'area_name': value['areaName'],
|
|
84
88
|
'area_display_order': value['areaDisplayOrder'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Schedule } from './Schedule';
|
|
13
|
+
import type { AmenitySchedule } from './AmenitySchedule';
|
|
13
14
|
import type { CalendarDay } from './CalendarDay';
|
|
14
15
|
/**
|
|
15
16
|
* Resort's operating hours, including the recurring schedule, and list of individual calendar days.
|
|
@@ -32,6 +33,12 @@ export interface OperatingHours {
|
|
|
32
33
|
* @memberof OperatingHours
|
|
33
34
|
*/
|
|
34
35
|
calendarDays: Array<CalendarDay>;
|
|
36
|
+
/**
|
|
37
|
+
* Per-amenity operating schedules. Only included when amenity hours are configured.
|
|
38
|
+
* @type {Array<AmenitySchedule>}
|
|
39
|
+
* @memberof OperatingHours
|
|
40
|
+
*/
|
|
41
|
+
amenitySchedules: Array<AmenitySchedule>;
|
|
35
42
|
}
|
|
36
43
|
/**
|
|
37
44
|
* Check if a given object implements the OperatingHours interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { ScheduleFromJSON, ScheduleToJSON, } from './Schedule';
|
|
15
|
+
import { AmenityScheduleFromJSON, AmenityScheduleToJSON, } from './AmenitySchedule';
|
|
15
16
|
import { CalendarDayFromJSON, CalendarDayToJSON, } from './CalendarDay';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the OperatingHours interface.
|
|
@@ -21,6 +22,8 @@ export function instanceOfOperatingHours(value) {
|
|
|
21
22
|
return false;
|
|
22
23
|
if (!('calendarDays' in value) || value['calendarDays'] === undefined)
|
|
23
24
|
return false;
|
|
25
|
+
if (!('amenitySchedules' in value) || value['amenitySchedules'] === undefined)
|
|
26
|
+
return false;
|
|
24
27
|
return true;
|
|
25
28
|
}
|
|
26
29
|
export function OperatingHoursFromJSON(json) {
|
|
@@ -33,6 +36,7 @@ export function OperatingHoursFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
36
|
return {
|
|
34
37
|
'schedules': (json['schedules'].map(ScheduleFromJSON)),
|
|
35
38
|
'calendarDays': (json['calendar_days'].map(CalendarDayFromJSON)),
|
|
39
|
+
'amenitySchedules': (json['amenity_schedules'].map(AmenityScheduleFromJSON)),
|
|
36
40
|
};
|
|
37
41
|
}
|
|
38
42
|
export function OperatingHoursToJSON(json) {
|
|
@@ -45,5 +49,6 @@ export function OperatingHoursToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
49
|
return {
|
|
46
50
|
'schedules': (value['schedules'].map(ScheduleToJSON)),
|
|
47
51
|
'calendar_days': (value['calendarDays'].map(CalendarDayToJSON)),
|
|
52
|
+
'amenity_schedules': (value['amenitySchedules'].map(AmenityScheduleToJSON)),
|
|
48
53
|
};
|
|
49
54
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Region for an account
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const Region: {
|
|
17
|
+
readonly Na: "na";
|
|
18
|
+
readonly Eu: "eu";
|
|
19
|
+
};
|
|
20
|
+
export type Region = typeof Region[keyof typeof Region];
|
|
21
|
+
export declare function instanceOfRegion(value: any): boolean;
|
|
22
|
+
export declare function RegionFromJSON(json: any): Region;
|
|
23
|
+
export declare function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region;
|
|
24
|
+
export declare function RegionToJSON(value?: Region | null): any;
|
|
25
|
+
export declare function RegionToJSONTyped(value: any, ignoreDiscriminator: boolean): Region;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Region for an account
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const Region = {
|
|
19
|
+
Na: 'na',
|
|
20
|
+
Eu: 'eu'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfRegion(value) {
|
|
23
|
+
for (const key in Region) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(Region, key)) {
|
|
25
|
+
if (Region[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function RegionFromJSON(json) {
|
|
33
|
+
return RegionFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function RegionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function RegionToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function RegionToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UnitPreference } from './UnitPreference';
|
|
13
|
+
import type { Region } from './Region';
|
|
13
14
|
/**
|
|
14
15
|
* Contains general information about the ski resort and its MtnManager account.
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface ResortInfo {
|
|
|
40
41
|
* @memberof ResortInfo
|
|
41
42
|
*/
|
|
42
43
|
timezone: string;
|
|
44
|
+
/**
|
|
45
|
+
* Region, affects difficulty icon style.
|
|
46
|
+
* @type {Region}
|
|
47
|
+
* @memberof ResortInfo
|
|
48
|
+
*/
|
|
49
|
+
region: Region;
|
|
43
50
|
/**
|
|
44
51
|
* Preferred unit system for measurements (metric or imperial).
|
|
45
52
|
* @type {UnitPreference}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { UnitPreferenceFromJSON, UnitPreferenceToJSON, } from './UnitPreference';
|
|
15
|
+
import { RegionFromJSON, RegionToJSON, } from './Region';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the ResortInfo interface.
|
|
17
18
|
*/
|
|
@@ -24,6 +25,8 @@ export function instanceOfResortInfo(value) {
|
|
|
24
25
|
return false;
|
|
25
26
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
26
27
|
return false;
|
|
28
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
29
|
+
return false;
|
|
27
30
|
if (!('unitPreference' in value) || value['unitPreference'] === undefined)
|
|
28
31
|
return false;
|
|
29
32
|
return true;
|
|
@@ -40,6 +43,7 @@ export function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
'name': json['name'],
|
|
41
44
|
'slug': json['slug'],
|
|
42
45
|
'timezone': json['timezone'],
|
|
46
|
+
'region': RegionFromJSON(json['region']),
|
|
43
47
|
'unitPreference': UnitPreferenceFromJSON(json['unit_preference']),
|
|
44
48
|
};
|
|
45
49
|
}
|
|
@@ -55,6 +59,7 @@ export function ResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
59
|
'name': value['name'],
|
|
56
60
|
'slug': value['slug'],
|
|
57
61
|
'timezone': value['timezone'],
|
|
62
|
+
'region': RegionToJSON(value['region']),
|
|
58
63
|
'unit_preference': UnitPreferenceToJSON(value['unitPreference']),
|
|
59
64
|
};
|
|
60
65
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './AmenityCalendarEntry';
|
|
2
|
+
export * from './AmenityCategory';
|
|
3
|
+
export * from './AmenitySchedule';
|
|
1
4
|
export * from './CalendarDay';
|
|
2
5
|
export * from './ClosureReason';
|
|
3
6
|
export * from './CurrentWeather';
|
|
@@ -20,6 +23,7 @@ export * from './OperatingHours';
|
|
|
20
23
|
export * from './Overview';
|
|
21
24
|
export * from './ParkingLot';
|
|
22
25
|
export * from './ParkingLotStatus';
|
|
26
|
+
export * from './Region';
|
|
23
27
|
export * from './ResortInfo';
|
|
24
28
|
export * from './ResortStatus';
|
|
25
29
|
export * from './Run';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AmenityCalendarEntry';
|
|
4
|
+
export * from './AmenityCategory';
|
|
5
|
+
export * from './AmenitySchedule';
|
|
3
6
|
export * from './CalendarDay';
|
|
4
7
|
export * from './ClosureReason';
|
|
5
8
|
export * from './CurrentWeather';
|
|
@@ -22,6 +25,7 @@ export * from './OperatingHours';
|
|
|
22
25
|
export * from './Overview';
|
|
23
26
|
export * from './ParkingLot';
|
|
24
27
|
export * from './ParkingLotStatus';
|
|
28
|
+
export * from './Region';
|
|
25
29
|
export * from './ResortInfo';
|
|
26
30
|
export * from './ResortStatus';
|
|
27
31
|
export * from './Run';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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 { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
/**
|
|
14
|
+
* Amenity entry within a CalendarDay, showing per-amenity hours for a specific date.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AmenityCalendarEntry
|
|
17
|
+
*/
|
|
18
|
+
export interface AmenityCalendarEntry {
|
|
19
|
+
/**
|
|
20
|
+
* Amenity UUID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AmenityCalendarEntry
|
|
23
|
+
*/
|
|
24
|
+
uuid: string;
|
|
25
|
+
/**
|
|
26
|
+
* Amenity name.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AmenityCalendarEntry
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Amenity category.
|
|
33
|
+
* @type {AmenityCategory}
|
|
34
|
+
* @memberof AmenityCalendarEntry
|
|
35
|
+
*/
|
|
36
|
+
category: AmenityCategory;
|
|
37
|
+
/**
|
|
38
|
+
* Opening time in 24-hour format (HH:MM), in resort's local timezone.
|
|
39
|
+
* `null` if this amenity is closed on this day.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AmenityCalendarEntry
|
|
42
|
+
*/
|
|
43
|
+
opensAt?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Closing time in 24-hour format (HH:MM), in resort's local timezone.
|
|
46
|
+
* `null` if this amenity is closed on this day.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AmenityCalendarEntry
|
|
49
|
+
*/
|
|
50
|
+
closesAt?: string | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AmenityCalendarEntry interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAmenityCalendarEntry(value: object): value is AmenityCalendarEntry;
|
|
56
|
+
export declare function AmenityCalendarEntryFromJSON(json: any): AmenityCalendarEntry;
|
|
57
|
+
export declare function AmenityCalendarEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityCalendarEntry;
|
|
58
|
+
export declare function AmenityCalendarEntryToJSON(json: any): AmenityCalendarEntry;
|
|
59
|
+
export declare function AmenityCalendarEntryToJSONTyped(value?: AmenityCalendarEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@mtnmanager.com
|
|
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.instanceOfAmenityCalendarEntry = instanceOfAmenityCalendarEntry;
|
|
17
|
+
exports.AmenityCalendarEntryFromJSON = AmenityCalendarEntryFromJSON;
|
|
18
|
+
exports.AmenityCalendarEntryFromJSONTyped = AmenityCalendarEntryFromJSONTyped;
|
|
19
|
+
exports.AmenityCalendarEntryToJSON = AmenityCalendarEntryToJSON;
|
|
20
|
+
exports.AmenityCalendarEntryToJSONTyped = AmenityCalendarEntryToJSONTyped;
|
|
21
|
+
const AmenityCategory_1 = require("./AmenityCategory");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AmenityCalendarEntry interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAmenityCalendarEntry(value) {
|
|
26
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AmenityCalendarEntryFromJSON(json) {
|
|
35
|
+
return AmenityCalendarEntryFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AmenityCalendarEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'uuid': json['uuid'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
|
|
45
|
+
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
46
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AmenityCalendarEntryToJSON(json) {
|
|
50
|
+
return AmenityCalendarEntryToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AmenityCalendarEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'uuid': value['uuid'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
|
|
60
|
+
'opens_at': value['opensAt'],
|
|
61
|
+
'closes_at': value['closesAt'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Category classification for amenities
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AmenityCategory: {
|
|
17
|
+
readonly FoodBeverage: "food_beverage";
|
|
18
|
+
readonly Retail: "retail";
|
|
19
|
+
readonly Recreation: "recreation";
|
|
20
|
+
readonly Facility: "facility";
|
|
21
|
+
};
|
|
22
|
+
export type AmenityCategory = typeof AmenityCategory[keyof typeof AmenityCategory];
|
|
23
|
+
export declare function instanceOfAmenityCategory(value: any): boolean;
|
|
24
|
+
export declare function AmenityCategoryFromJSON(json: any): AmenityCategory;
|
|
25
|
+
export declare function AmenityCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityCategory;
|
|
26
|
+
export declare function AmenityCategoryToJSON(value?: AmenityCategory | null): any;
|
|
27
|
+
export declare function AmenityCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): AmenityCategory;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@mtnmanager.com
|
|
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.AmenityCategory = void 0;
|
|
17
|
+
exports.instanceOfAmenityCategory = instanceOfAmenityCategory;
|
|
18
|
+
exports.AmenityCategoryFromJSON = AmenityCategoryFromJSON;
|
|
19
|
+
exports.AmenityCategoryFromJSONTyped = AmenityCategoryFromJSONTyped;
|
|
20
|
+
exports.AmenityCategoryToJSON = AmenityCategoryToJSON;
|
|
21
|
+
exports.AmenityCategoryToJSONTyped = AmenityCategoryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Category classification for amenities
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AmenityCategory = {
|
|
27
|
+
FoodBeverage: 'food_beverage',
|
|
28
|
+
Retail: 'retail',
|
|
29
|
+
Recreation: 'recreation',
|
|
30
|
+
Facility: 'facility'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfAmenityCategory(value) {
|
|
33
|
+
for (const key in exports.AmenityCategory) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.AmenityCategory, key)) {
|
|
35
|
+
if (exports.AmenityCategory[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function AmenityCategoryFromJSON(json) {
|
|
43
|
+
return AmenityCategoryFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AmenityCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function AmenityCategoryToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function AmenityCategoryToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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 { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
import type { Schedule } from './Schedule';
|
|
14
|
+
/**
|
|
15
|
+
* Amenity schedule for the OperatingHours response
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AmenitySchedule
|
|
18
|
+
*/
|
|
19
|
+
export interface AmenitySchedule {
|
|
20
|
+
/**
|
|
21
|
+
* Amenity UUID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AmenitySchedule
|
|
24
|
+
*/
|
|
25
|
+
uuid: string;
|
|
26
|
+
/**
|
|
27
|
+
* Amenity name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AmenitySchedule
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Amenity category
|
|
34
|
+
* @type {AmenityCategory}
|
|
35
|
+
* @memberof AmenitySchedule
|
|
36
|
+
*/
|
|
37
|
+
category: AmenityCategory;
|
|
38
|
+
/**
|
|
39
|
+
* Operating schedules for this amenity
|
|
40
|
+
* @type {Array<Schedule>}
|
|
41
|
+
* @memberof AmenitySchedule
|
|
42
|
+
*/
|
|
43
|
+
schedules: Array<Schedule>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AmenitySchedule interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAmenitySchedule(value: object): value is AmenitySchedule;
|
|
49
|
+
export declare function AmenityScheduleFromJSON(json: any): AmenitySchedule;
|
|
50
|
+
export declare function AmenityScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenitySchedule;
|
|
51
|
+
export declare function AmenityScheduleToJSON(json: any): AmenitySchedule;
|
|
52
|
+
export declare function AmenityScheduleToJSONTyped(value?: AmenitySchedule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@mtnmanager.com
|
|
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.instanceOfAmenitySchedule = instanceOfAmenitySchedule;
|
|
17
|
+
exports.AmenityScheduleFromJSON = AmenityScheduleFromJSON;
|
|
18
|
+
exports.AmenityScheduleFromJSONTyped = AmenityScheduleFromJSONTyped;
|
|
19
|
+
exports.AmenityScheduleToJSON = AmenityScheduleToJSON;
|
|
20
|
+
exports.AmenityScheduleToJSONTyped = AmenityScheduleToJSONTyped;
|
|
21
|
+
const AmenityCategory_1 = require("./AmenityCategory");
|
|
22
|
+
const Schedule_1 = require("./Schedule");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AmenitySchedule interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAmenitySchedule(value) {
|
|
27
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('schedules' in value) || value['schedules'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AmenityScheduleFromJSON(json) {
|
|
38
|
+
return AmenityScheduleFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AmenityScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'uuid': json['uuid'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
|
|
48
|
+
'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AmenityScheduleToJSON(json) {
|
|
52
|
+
return AmenityScheduleToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AmenityScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'uuid': value['uuid'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
|
|
62
|
+
'schedules': (value['schedules'].map(Schedule_1.ScheduleToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DayOfWeek } from './DayOfWeek';
|
|
13
|
+
import type { AmenityCalendarEntry } from './AmenityCalendarEntry';
|
|
13
14
|
import type { ClosureReason } from './ClosureReason';
|
|
14
15
|
/**
|
|
15
16
|
* Operating hours for a specific calendar date.
|
|
@@ -64,6 +65,12 @@ export interface CalendarDay {
|
|
|
64
65
|
* @memberof CalendarDay
|
|
65
66
|
*/
|
|
66
67
|
specialEvent?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Per-amenity hours for this day. Only included when amenity hours are configured.
|
|
70
|
+
* @type {Array<AmenityCalendarEntry>}
|
|
71
|
+
* @memberof CalendarDay
|
|
72
|
+
*/
|
|
73
|
+
amenities: Array<AmenityCalendarEntry>;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Check if a given object implements the CalendarDay interface.
|
|
@@ -19,6 +19,7 @@ exports.CalendarDayFromJSONTyped = CalendarDayFromJSONTyped;
|
|
|
19
19
|
exports.CalendarDayToJSON = CalendarDayToJSON;
|
|
20
20
|
exports.CalendarDayToJSONTyped = CalendarDayToJSONTyped;
|
|
21
21
|
const DayOfWeek_1 = require("./DayOfWeek");
|
|
22
|
+
const AmenityCalendarEntry_1 = require("./AmenityCalendarEntry");
|
|
22
23
|
const ClosureReason_1 = require("./ClosureReason");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the CalendarDay interface.
|
|
@@ -30,6 +31,8 @@ function instanceOfCalendarDay(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('isOpen' in value) || value['isOpen'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('amenities' in value) || value['amenities'] === undefined)
|
|
35
|
+
return false;
|
|
33
36
|
return true;
|
|
34
37
|
}
|
|
35
38
|
function CalendarDayFromJSON(json) {
|
|
@@ -47,6 +50,7 @@ function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
50
|
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
48
51
|
'closureReason': json['closure_reason'] == null ? undefined : (0, ClosureReason_1.ClosureReasonFromJSON)(json['closure_reason']),
|
|
49
52
|
'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
|
|
53
|
+
'amenities': (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
function CalendarDayToJSON(json) {
|
|
@@ -64,5 +68,6 @@ function CalendarDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
68
|
'closes_at': value['closesAt'],
|
|
65
69
|
'closure_reason': (0, ClosureReason_1.ClosureReasonToJSON)(value['closureReason']),
|
|
66
70
|
'special_event': value['specialEvent'],
|
|
71
|
+
'amenities': (value['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryToJSON)),
|
|
67
72
|
};
|
|
68
73
|
}
|
package/dist/models/Lift.d.ts
CHANGED
|
@@ -78,6 +78,20 @@ export interface Lift {
|
|
|
78
78
|
* @memberof Lift
|
|
79
79
|
*/
|
|
80
80
|
waitTimeMinutes?: number | null;
|
|
81
|
+
/**
|
|
82
|
+
* Today's scheduled opening time in 24-hour format (HH:MM), in resort's local timezone.
|
|
83
|
+
* `null` if the lift has no scheduled hours for today.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Lift
|
|
86
|
+
*/
|
|
87
|
+
opensAt?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Today's scheduled closing time in 24-hour format (HH:MM), in resort's local timezone.
|
|
90
|
+
* `null` if the lift has no scheduled hours for today.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Lift
|
|
93
|
+
*/
|
|
94
|
+
closesAt?: string | null;
|
|
81
95
|
/**
|
|
82
96
|
* UUID of the area this lift belongs to, if assigned.
|
|
83
97
|
* @type {string}
|
package/dist/models/Lift.js
CHANGED
|
@@ -62,6 +62,8 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'heated': json['heated'],
|
|
63
63
|
'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
|
|
64
64
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
65
|
+
'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
|
|
66
|
+
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
65
67
|
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
66
68
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
67
69
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
@@ -86,6 +88,8 @@ function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
88
|
'heated': value['heated'],
|
|
87
89
|
'status': (0, LiftStatus_1.LiftStatusToJSON)(value['status']),
|
|
88
90
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
91
|
+
'opens_at': value['opensAt'],
|
|
92
|
+
'closes_at': value['closesAt'],
|
|
89
93
|
'area_uuid': value['areaUuid'],
|
|
90
94
|
'area_name': value['areaName'],
|
|
91
95
|
'area_display_order': value['areaDisplayOrder'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Schedule } from './Schedule';
|
|
13
|
+
import type { AmenitySchedule } from './AmenitySchedule';
|
|
13
14
|
import type { CalendarDay } from './CalendarDay';
|
|
14
15
|
/**
|
|
15
16
|
* Resort's operating hours, including the recurring schedule, and list of individual calendar days.
|
|
@@ -32,6 +33,12 @@ export interface OperatingHours {
|
|
|
32
33
|
* @memberof OperatingHours
|
|
33
34
|
*/
|
|
34
35
|
calendarDays: Array<CalendarDay>;
|
|
36
|
+
/**
|
|
37
|
+
* Per-amenity operating schedules. Only included when amenity hours are configured.
|
|
38
|
+
* @type {Array<AmenitySchedule>}
|
|
39
|
+
* @memberof OperatingHours
|
|
40
|
+
*/
|
|
41
|
+
amenitySchedules: Array<AmenitySchedule>;
|
|
35
42
|
}
|
|
36
43
|
/**
|
|
37
44
|
* Check if a given object implements the OperatingHours interface.
|
|
@@ -19,6 +19,7 @@ exports.OperatingHoursFromJSONTyped = OperatingHoursFromJSONTyped;
|
|
|
19
19
|
exports.OperatingHoursToJSON = OperatingHoursToJSON;
|
|
20
20
|
exports.OperatingHoursToJSONTyped = OperatingHoursToJSONTyped;
|
|
21
21
|
const Schedule_1 = require("./Schedule");
|
|
22
|
+
const AmenitySchedule_1 = require("./AmenitySchedule");
|
|
22
23
|
const CalendarDay_1 = require("./CalendarDay");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the OperatingHours interface.
|
|
@@ -28,6 +29,8 @@ function instanceOfOperatingHours(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('calendarDays' in value) || value['calendarDays'] === undefined)
|
|
30
31
|
return false;
|
|
32
|
+
if (!('amenitySchedules' in value) || value['amenitySchedules'] === undefined)
|
|
33
|
+
return false;
|
|
31
34
|
return true;
|
|
32
35
|
}
|
|
33
36
|
function OperatingHoursFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ function OperatingHoursFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
return {
|
|
41
44
|
'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
|
|
42
45
|
'calendarDays': (json['calendar_days'].map(CalendarDay_1.CalendarDayFromJSON)),
|
|
46
|
+
'amenitySchedules': (json['amenity_schedules'].map(AmenitySchedule_1.AmenityScheduleFromJSON)),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
function OperatingHoursToJSON(json) {
|
|
@@ -52,5 +56,6 @@ function OperatingHoursToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
56
|
return {
|
|
53
57
|
'schedules': (value['schedules'].map(Schedule_1.ScheduleToJSON)),
|
|
54
58
|
'calendar_days': (value['calendarDays'].map(CalendarDay_1.CalendarDayToJSON)),
|
|
59
|
+
'amenity_schedules': (value['amenitySchedules'].map(AmenitySchedule_1.AmenityScheduleToJSON)),
|
|
55
60
|
};
|
|
56
61
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Region for an account
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const Region: {
|
|
17
|
+
readonly Na: "na";
|
|
18
|
+
readonly Eu: "eu";
|
|
19
|
+
};
|
|
20
|
+
export type Region = typeof Region[keyof typeof Region];
|
|
21
|
+
export declare function instanceOfRegion(value: any): boolean;
|
|
22
|
+
export declare function RegionFromJSON(json: any): Region;
|
|
23
|
+
export declare function RegionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Region;
|
|
24
|
+
export declare function RegionToJSON(value?: Region | null): any;
|
|
25
|
+
export declare function RegionToJSONTyped(value: any, ignoreDiscriminator: boolean): Region;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@mtnmanager.com
|
|
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.Region = void 0;
|
|
17
|
+
exports.instanceOfRegion = instanceOfRegion;
|
|
18
|
+
exports.RegionFromJSON = RegionFromJSON;
|
|
19
|
+
exports.RegionFromJSONTyped = RegionFromJSONTyped;
|
|
20
|
+
exports.RegionToJSON = RegionToJSON;
|
|
21
|
+
exports.RegionToJSONTyped = RegionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Region for an account
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.Region = {
|
|
27
|
+
Na: 'na',
|
|
28
|
+
Eu: 'eu'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfRegion(value) {
|
|
31
|
+
for (const key in exports.Region) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.Region, key)) {
|
|
33
|
+
if (exports.Region[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function RegionFromJSON(json) {
|
|
41
|
+
return RegionFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RegionFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function RegionToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function RegionToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UnitPreference } from './UnitPreference';
|
|
13
|
+
import type { Region } from './Region';
|
|
13
14
|
/**
|
|
14
15
|
* Contains general information about the ski resort and its MtnManager account.
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface ResortInfo {
|
|
|
40
41
|
* @memberof ResortInfo
|
|
41
42
|
*/
|
|
42
43
|
timezone: string;
|
|
44
|
+
/**
|
|
45
|
+
* Region, affects difficulty icon style.
|
|
46
|
+
* @type {Region}
|
|
47
|
+
* @memberof ResortInfo
|
|
48
|
+
*/
|
|
49
|
+
region: Region;
|
|
43
50
|
/**
|
|
44
51
|
* Preferred unit system for measurements (metric or imperial).
|
|
45
52
|
* @type {UnitPreference}
|
|
@@ -19,6 +19,7 @@ exports.ResortInfoFromJSONTyped = ResortInfoFromJSONTyped;
|
|
|
19
19
|
exports.ResortInfoToJSON = ResortInfoToJSON;
|
|
20
20
|
exports.ResortInfoToJSONTyped = ResortInfoToJSONTyped;
|
|
21
21
|
const UnitPreference_1 = require("./UnitPreference");
|
|
22
|
+
const Region_1 = require("./Region");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ResortInfo interface.
|
|
24
25
|
*/
|
|
@@ -31,6 +32,8 @@ function instanceOfResortInfo(value) {
|
|
|
31
32
|
return false;
|
|
32
33
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
33
34
|
return false;
|
|
35
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
36
|
+
return false;
|
|
34
37
|
if (!('unitPreference' in value) || value['unitPreference'] === undefined)
|
|
35
38
|
return false;
|
|
36
39
|
return true;
|
|
@@ -47,6 +50,7 @@ function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
50
|
'name': json['name'],
|
|
48
51
|
'slug': json['slug'],
|
|
49
52
|
'timezone': json['timezone'],
|
|
53
|
+
'region': (0, Region_1.RegionFromJSON)(json['region']),
|
|
50
54
|
'unitPreference': (0, UnitPreference_1.UnitPreferenceFromJSON)(json['unit_preference']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
@@ -62,6 +66,7 @@ function ResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
66
|
'name': value['name'],
|
|
63
67
|
'slug': value['slug'],
|
|
64
68
|
'timezone': value['timezone'],
|
|
69
|
+
'region': (0, Region_1.RegionToJSON)(value['region']),
|
|
65
70
|
'unit_preference': (0, UnitPreference_1.UnitPreferenceToJSON)(value['unitPreference']),
|
|
66
71
|
};
|
|
67
72
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './AmenityCalendarEntry';
|
|
2
|
+
export * from './AmenityCategory';
|
|
3
|
+
export * from './AmenitySchedule';
|
|
1
4
|
export * from './CalendarDay';
|
|
2
5
|
export * from './ClosureReason';
|
|
3
6
|
export * from './CurrentWeather';
|
|
@@ -20,6 +23,7 @@ export * from './OperatingHours';
|
|
|
20
23
|
export * from './Overview';
|
|
21
24
|
export * from './ParkingLot';
|
|
22
25
|
export * from './ParkingLotStatus';
|
|
26
|
+
export * from './Region';
|
|
23
27
|
export * from './ResortInfo';
|
|
24
28
|
export * from './ResortStatus';
|
|
25
29
|
export * from './Run';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,9 @@ 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("./AmenityCalendarEntry"), exports);
|
|
20
|
+
__exportStar(require("./AmenityCategory"), exports);
|
|
21
|
+
__exportStar(require("./AmenitySchedule"), exports);
|
|
19
22
|
__exportStar(require("./CalendarDay"), exports);
|
|
20
23
|
__exportStar(require("./ClosureReason"), exports);
|
|
21
24
|
__exportStar(require("./CurrentWeather"), exports);
|
|
@@ -38,6 +41,7 @@ __exportStar(require("./OperatingHours"), exports);
|
|
|
38
41
|
__exportStar(require("./Overview"), exports);
|
|
39
42
|
__exportStar(require("./ParkingLot"), exports);
|
|
40
43
|
__exportStar(require("./ParkingLotStatus"), exports);
|
|
44
|
+
__exportStar(require("./Region"), exports);
|
|
41
45
|
__exportStar(require("./ResortInfo"), exports);
|
|
42
46
|
__exportStar(require("./ResortStatus"), exports);
|
|
43
47
|
__exportStar(require("./Run"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|