@mtnmanager/sdk 1.8.2 → 1.8.3
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 -0
- package/dist/esm/models/Overview.d.ts +24 -0
- package/dist/esm/models/Overview.js +10 -0
- package/dist/esm/models/PowderAlerts.d.ts +40 -0
- package/dist/esm/models/PowderAlerts.js +47 -0
- package/dist/esm/models/SeasonPeriod.d.ts +45 -0
- package/dist/esm/models/SeasonPeriod.js +52 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Overview.d.ts +24 -0
- package/dist/models/Overview.js +10 -0
- package/dist/models/PowderAlerts.d.ts +40 -0
- package/dist/models/PowderAlerts.js +54 -0
- package/dist/models/SeasonPeriod.d.ts +45 -0
- package/dist/models/SeasonPeriod.js +59 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,6 +112,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
112
112
|
- [ParkingLot](docs/ParkingLot.md)
|
|
113
113
|
- [ParkingLotStatus](docs/ParkingLotStatus.md)
|
|
114
114
|
- [PathUuid](docs/PathUuid.md)
|
|
115
|
+
- [PowderAlerts](docs/PowderAlerts.md)
|
|
115
116
|
- [Region](docs/Region.md)
|
|
116
117
|
- [ResortInfo](docs/ResortInfo.md)
|
|
117
118
|
- [ResortStatus](docs/ResortStatus.md)
|
|
@@ -119,6 +120,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
119
120
|
- [RunDifficulty](docs/RunDifficulty.md)
|
|
120
121
|
- [RunStatus](docs/RunStatus.md)
|
|
121
122
|
- [Schedule](docs/Schedule.md)
|
|
123
|
+
- [SeasonPeriod](docs/SeasonPeriod.md)
|
|
122
124
|
- [SeasonType](docs/SeasonType.md)
|
|
123
125
|
- [SnowMetrics](docs/SnowMetrics.md)
|
|
124
126
|
- [SnowReport](docs/SnowReport.md)
|
|
@@ -14,6 +14,8 @@ import type { OverviewLifts } from './OverviewLifts';
|
|
|
14
14
|
import type { SeasonType } from './SeasonType';
|
|
15
15
|
import type { OverviewRuns } from './OverviewRuns';
|
|
16
16
|
import type { ResortStatus } from './ResortStatus';
|
|
17
|
+
import type { PowderAlerts } from './PowderAlerts';
|
|
18
|
+
import type { SeasonPeriod } from './SeasonPeriod';
|
|
17
19
|
import type { OverviewSummerTrails } from './OverviewSummerTrails';
|
|
18
20
|
import type { OverviewNews } from './OverviewNews';
|
|
19
21
|
/**
|
|
@@ -51,6 +53,22 @@ export interface Overview {
|
|
|
51
53
|
* @memberof Overview
|
|
52
54
|
*/
|
|
53
55
|
season: SeasonType;
|
|
56
|
+
/**
|
|
57
|
+
* The last season to end before today, from the resort's operating
|
|
58
|
+
* hours of the past year. `null` if there was none. While `season` is
|
|
59
|
+
* `closed`, this and `next_season` tell an off-season that just ended a
|
|
60
|
+
* winter from one leading up to a summer.
|
|
61
|
+
* @type {SeasonPeriod}
|
|
62
|
+
* @memberof Overview
|
|
63
|
+
*/
|
|
64
|
+
previousSeason?: SeasonPeriod | null;
|
|
65
|
+
/**
|
|
66
|
+
* The next season to start after today, from the resort's scheduled
|
|
67
|
+
* operating hours. `null` if none is scheduled yet.
|
|
68
|
+
* @type {SeasonPeriod}
|
|
69
|
+
* @memberof Overview
|
|
70
|
+
*/
|
|
71
|
+
nextSeason?: SeasonPeriod | null;
|
|
54
72
|
/**
|
|
55
73
|
* Written news — daily update, announcements, etc. The resort's primary
|
|
56
74
|
* news comes first, followed by any others it publishes, in the order they
|
|
@@ -84,6 +102,12 @@ export interface Overview {
|
|
|
84
102
|
* @memberof Overview
|
|
85
103
|
*/
|
|
86
104
|
terrainParks: OverviewTerrainParks;
|
|
105
|
+
/**
|
|
106
|
+
* Guest powder alerts the resort offers, by channel.
|
|
107
|
+
* @type {PowderAlerts}
|
|
108
|
+
* @memberof Overview
|
|
109
|
+
*/
|
|
110
|
+
powderAlerts: PowderAlerts;
|
|
87
111
|
}
|
|
88
112
|
/**
|
|
89
113
|
* Check if a given object implements the Overview interface.
|
|
@@ -16,6 +16,8 @@ import { OverviewLiftsFromJSON, OverviewLiftsToJSON, } from './OverviewLifts';
|
|
|
16
16
|
import { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
|
|
17
17
|
import { OverviewRunsFromJSON, OverviewRunsToJSON, } from './OverviewRuns';
|
|
18
18
|
import { ResortStatusFromJSON, ResortStatusToJSON, } from './ResortStatus';
|
|
19
|
+
import { PowderAlertsFromJSON, PowderAlertsToJSON, } from './PowderAlerts';
|
|
20
|
+
import { SeasonPeriodFromJSON, SeasonPeriodToJSON, } from './SeasonPeriod';
|
|
19
21
|
import { OverviewSummerTrailsFromJSON, OverviewSummerTrailsToJSON, } from './OverviewSummerTrails';
|
|
20
22
|
import { OverviewNewsFromJSON, OverviewNewsToJSON, } from './OverviewNews';
|
|
21
23
|
/**
|
|
@@ -36,6 +38,8 @@ export function instanceOfOverview(value) {
|
|
|
36
38
|
return false;
|
|
37
39
|
if ((!('terrainParks' in value) && !('terrain_parks' in value)) || (value['terrainParks'] === undefined && value['terrain_parks'] === undefined))
|
|
38
40
|
return false;
|
|
41
|
+
if ((!('powderAlerts' in value) && !('powder_alerts' in value)) || (value['powderAlerts'] === undefined && value['powder_alerts'] === undefined))
|
|
42
|
+
return false;
|
|
39
43
|
return true;
|
|
40
44
|
}
|
|
41
45
|
export function OverviewFromJSON(json) {
|
|
@@ -50,11 +54,14 @@ export function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
51
55
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
52
56
|
'season': SeasonTypeFromJSON(json['season']),
|
|
57
|
+
'previousSeason': json['previous_season'] === undefined ? undefined : json['previous_season'] === null ? null : SeasonPeriodFromJSON(json['previous_season']),
|
|
58
|
+
'nextSeason': json['next_season'] === undefined ? undefined : json['next_season'] === null ? null : SeasonPeriodFromJSON(json['next_season']),
|
|
53
59
|
'news': (json['news'].map(OverviewNewsFromJSON)),
|
|
54
60
|
'runs': OverviewRunsFromJSON(json['runs']),
|
|
55
61
|
'lifts': OverviewLiftsFromJSON(json['lifts']),
|
|
56
62
|
'summerTrails': OverviewSummerTrailsFromJSON(json['summer_trails']),
|
|
57
63
|
'terrainParks': OverviewTerrainParksFromJSON(json['terrain_parks']),
|
|
64
|
+
'powderAlerts': PowderAlertsFromJSON(json['powder_alerts']),
|
|
58
65
|
};
|
|
59
66
|
}
|
|
60
67
|
export function OverviewToJSON(json) {
|
|
@@ -69,10 +76,13 @@ export function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
76
|
'opens_at': value['opensAt'],
|
|
70
77
|
'closes_at': value['closesAt'],
|
|
71
78
|
'season': SeasonTypeToJSON(value['season']),
|
|
79
|
+
'previous_season': SeasonPeriodToJSON(value['previousSeason']),
|
|
80
|
+
'next_season': SeasonPeriodToJSON(value['nextSeason']),
|
|
72
81
|
'news': (value['news'].map(OverviewNewsToJSON)),
|
|
73
82
|
'runs': OverviewRunsToJSON(value['runs']),
|
|
74
83
|
'lifts': OverviewLiftsToJSON(value['lifts']),
|
|
75
84
|
'summer_trails': OverviewSummerTrailsToJSON(value['summerTrails']),
|
|
76
85
|
'terrain_parks': OverviewTerrainParksToJSON(value['terrainParks']),
|
|
86
|
+
'powder_alerts': PowderAlertsToJSON(value['powderAlerts']),
|
|
77
87
|
};
|
|
78
88
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Guest powder alerts the resort offers. Both are `false` when the resort
|
|
14
|
+
* doesn't offer powder alerts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PowderAlerts
|
|
17
|
+
*/
|
|
18
|
+
export interface PowderAlerts {
|
|
19
|
+
/**
|
|
20
|
+
* Guests can sign up for text alerts via
|
|
21
|
+
* `POST /api/notifications/v1/text/powder/signup` on the resort's host.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PowderAlerts
|
|
24
|
+
*/
|
|
25
|
+
text: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Guests can subscribe to push alerts in the resort's mobile app.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof PowderAlerts
|
|
30
|
+
*/
|
|
31
|
+
push: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPowderAlerts(value: object): value is PowderAlerts;
|
|
37
|
+
export declare function PowderAlertsFromJSON(json: any): PowderAlerts;
|
|
38
|
+
export declare function PowderAlertsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PowderAlerts;
|
|
39
|
+
export declare function PowderAlertsToJSON(json: any): PowderAlerts;
|
|
40
|
+
export declare function PowderAlertsToJSONTyped(value?: PowderAlerts | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPowderAlerts(value) {
|
|
18
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('push' in value) || value['push'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PowderAlertsFromJSON(json) {
|
|
25
|
+
return PowderAlertsFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'text': json['text'],
|
|
33
|
+
'push': json['push'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PowderAlertsToJSON(json) {
|
|
37
|
+
return PowderAlertsToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'text': value['text'],
|
|
45
|
+
'push': value['push'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { SeasonType } from './SeasonType';
|
|
13
|
+
/**
|
|
14
|
+
* A season the resort's operating hours define: its type and its days.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SeasonPeriod
|
|
17
|
+
*/
|
|
18
|
+
export interface SeasonPeriod {
|
|
19
|
+
/**
|
|
20
|
+
* The season's type (`winter` or `summer`; never `closed`).
|
|
21
|
+
* @type {SeasonType}
|
|
22
|
+
* @memberof SeasonPeriod
|
|
23
|
+
*/
|
|
24
|
+
seasonType: SeasonType;
|
|
25
|
+
/**
|
|
26
|
+
* The season's first day (YYYY-MM-DD), in the resort's local timezone.
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof SeasonPeriod
|
|
29
|
+
*/
|
|
30
|
+
startsOn: Date;
|
|
31
|
+
/**
|
|
32
|
+
* The season's last day (YYYY-MM-DD), in the resort's local timezone.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof SeasonPeriod
|
|
35
|
+
*/
|
|
36
|
+
endsOn: Date;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SeasonPeriod interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSeasonPeriod(value: object): value is SeasonPeriod;
|
|
42
|
+
export declare function SeasonPeriodFromJSON(json: any): SeasonPeriod;
|
|
43
|
+
export declare function SeasonPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonPeriod;
|
|
44
|
+
export declare function SeasonPeriodToJSON(json: any): SeasonPeriod;
|
|
45
|
+
export declare function SeasonPeriodToJSONTyped(value?: SeasonPeriod | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SeasonPeriod interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSeasonPeriod(value) {
|
|
19
|
+
if ((!('seasonType' in value) && !('season_type' in value)) || (value['seasonType'] === undefined && value['season_type'] === undefined))
|
|
20
|
+
return false;
|
|
21
|
+
if ((!('startsOn' in value) && !('starts_on' in value)) || (value['startsOn'] === undefined && value['starts_on'] === undefined))
|
|
22
|
+
return false;
|
|
23
|
+
if ((!('endsOn' in value) && !('ends_on' in value)) || (value['endsOn'] === undefined && value['ends_on'] === undefined))
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function SeasonPeriodFromJSON(json) {
|
|
28
|
+
return SeasonPeriodFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function SeasonPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'seasonType': SeasonTypeFromJSON(json['season_type']),
|
|
36
|
+
'startsOn': (new Date(json['starts_on'])),
|
|
37
|
+
'endsOn': (new Date(json['ends_on'])),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function SeasonPeriodToJSON(json) {
|
|
41
|
+
return SeasonPeriodToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function SeasonPeriodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'season_type': SeasonTypeToJSON(value['seasonType']),
|
|
49
|
+
'starts_on': value['startsOn'].toISOString().substring(0, 10),
|
|
50
|
+
'ends_on': value['endsOn'].toISOString().substring(0, 10),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -37,6 +37,7 @@ export * from './OverviewTerrainParks';
|
|
|
37
37
|
export * from './ParkingLot';
|
|
38
38
|
export * from './ParkingLotStatus';
|
|
39
39
|
export * from './PathUuid';
|
|
40
|
+
export * from './PowderAlerts';
|
|
40
41
|
export * from './Region';
|
|
41
42
|
export * from './ResortInfo';
|
|
42
43
|
export * from './ResortStatus';
|
|
@@ -44,6 +45,7 @@ export * from './Run';
|
|
|
44
45
|
export * from './RunDifficulty';
|
|
45
46
|
export * from './RunStatus';
|
|
46
47
|
export * from './Schedule';
|
|
48
|
+
export * from './SeasonPeriod';
|
|
47
49
|
export * from './SeasonType';
|
|
48
50
|
export * from './SnowMetrics';
|
|
49
51
|
export * from './SnowReport';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -39,6 +39,7 @@ export * from './OverviewTerrainParks';
|
|
|
39
39
|
export * from './ParkingLot';
|
|
40
40
|
export * from './ParkingLotStatus';
|
|
41
41
|
export * from './PathUuid';
|
|
42
|
+
export * from './PowderAlerts';
|
|
42
43
|
export * from './Region';
|
|
43
44
|
export * from './ResortInfo';
|
|
44
45
|
export * from './ResortStatus';
|
|
@@ -46,6 +47,7 @@ export * from './Run';
|
|
|
46
47
|
export * from './RunDifficulty';
|
|
47
48
|
export * from './RunStatus';
|
|
48
49
|
export * from './Schedule';
|
|
50
|
+
export * from './SeasonPeriod';
|
|
49
51
|
export * from './SeasonType';
|
|
50
52
|
export * from './SnowMetrics';
|
|
51
53
|
export * from './SnowReport';
|
|
@@ -14,6 +14,8 @@ import type { OverviewLifts } from './OverviewLifts';
|
|
|
14
14
|
import type { SeasonType } from './SeasonType';
|
|
15
15
|
import type { OverviewRuns } from './OverviewRuns';
|
|
16
16
|
import type { ResortStatus } from './ResortStatus';
|
|
17
|
+
import type { PowderAlerts } from './PowderAlerts';
|
|
18
|
+
import type { SeasonPeriod } from './SeasonPeriod';
|
|
17
19
|
import type { OverviewSummerTrails } from './OverviewSummerTrails';
|
|
18
20
|
import type { OverviewNews } from './OverviewNews';
|
|
19
21
|
/**
|
|
@@ -51,6 +53,22 @@ export interface Overview {
|
|
|
51
53
|
* @memberof Overview
|
|
52
54
|
*/
|
|
53
55
|
season: SeasonType;
|
|
56
|
+
/**
|
|
57
|
+
* The last season to end before today, from the resort's operating
|
|
58
|
+
* hours of the past year. `null` if there was none. While `season` is
|
|
59
|
+
* `closed`, this and `next_season` tell an off-season that just ended a
|
|
60
|
+
* winter from one leading up to a summer.
|
|
61
|
+
* @type {SeasonPeriod}
|
|
62
|
+
* @memberof Overview
|
|
63
|
+
*/
|
|
64
|
+
previousSeason?: SeasonPeriod | null;
|
|
65
|
+
/**
|
|
66
|
+
* The next season to start after today, from the resort's scheduled
|
|
67
|
+
* operating hours. `null` if none is scheduled yet.
|
|
68
|
+
* @type {SeasonPeriod}
|
|
69
|
+
* @memberof Overview
|
|
70
|
+
*/
|
|
71
|
+
nextSeason?: SeasonPeriod | null;
|
|
54
72
|
/**
|
|
55
73
|
* Written news — daily update, announcements, etc. The resort's primary
|
|
56
74
|
* news comes first, followed by any others it publishes, in the order they
|
|
@@ -84,6 +102,12 @@ export interface Overview {
|
|
|
84
102
|
* @memberof Overview
|
|
85
103
|
*/
|
|
86
104
|
terrainParks: OverviewTerrainParks;
|
|
105
|
+
/**
|
|
106
|
+
* Guest powder alerts the resort offers, by channel.
|
|
107
|
+
* @type {PowderAlerts}
|
|
108
|
+
* @memberof Overview
|
|
109
|
+
*/
|
|
110
|
+
powderAlerts: PowderAlerts;
|
|
87
111
|
}
|
|
88
112
|
/**
|
|
89
113
|
* Check if a given object implements the Overview interface.
|
package/dist/models/Overview.js
CHANGED
|
@@ -23,6 +23,8 @@ const OverviewLifts_1 = require("./OverviewLifts");
|
|
|
23
23
|
const SeasonType_1 = require("./SeasonType");
|
|
24
24
|
const OverviewRuns_1 = require("./OverviewRuns");
|
|
25
25
|
const ResortStatus_1 = require("./ResortStatus");
|
|
26
|
+
const PowderAlerts_1 = require("./PowderAlerts");
|
|
27
|
+
const SeasonPeriod_1 = require("./SeasonPeriod");
|
|
26
28
|
const OverviewSummerTrails_1 = require("./OverviewSummerTrails");
|
|
27
29
|
const OverviewNews_1 = require("./OverviewNews");
|
|
28
30
|
/**
|
|
@@ -43,6 +45,8 @@ function instanceOfOverview(value) {
|
|
|
43
45
|
return false;
|
|
44
46
|
if ((!('terrainParks' in value) && !('terrain_parks' in value)) || (value['terrainParks'] === undefined && value['terrain_parks'] === undefined))
|
|
45
47
|
return false;
|
|
48
|
+
if ((!('powderAlerts' in value) && !('powder_alerts' in value)) || (value['powderAlerts'] === undefined && value['powder_alerts'] === undefined))
|
|
49
|
+
return false;
|
|
46
50
|
return true;
|
|
47
51
|
}
|
|
48
52
|
function OverviewFromJSON(json) {
|
|
@@ -57,11 +61,14 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
61
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
58
62
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
59
63
|
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
64
|
+
'previousSeason': json['previous_season'] === undefined ? undefined : json['previous_season'] === null ? null : (0, SeasonPeriod_1.SeasonPeriodFromJSON)(json['previous_season']),
|
|
65
|
+
'nextSeason': json['next_season'] === undefined ? undefined : json['next_season'] === null ? null : (0, SeasonPeriod_1.SeasonPeriodFromJSON)(json['next_season']),
|
|
60
66
|
'news': (json['news'].map(OverviewNews_1.OverviewNewsFromJSON)),
|
|
61
67
|
'runs': (0, OverviewRuns_1.OverviewRunsFromJSON)(json['runs']),
|
|
62
68
|
'lifts': (0, OverviewLifts_1.OverviewLiftsFromJSON)(json['lifts']),
|
|
63
69
|
'summerTrails': (0, OverviewSummerTrails_1.OverviewSummerTrailsFromJSON)(json['summer_trails']),
|
|
64
70
|
'terrainParks': (0, OverviewTerrainParks_1.OverviewTerrainParksFromJSON)(json['terrain_parks']),
|
|
71
|
+
'powderAlerts': (0, PowderAlerts_1.PowderAlertsFromJSON)(json['powder_alerts']),
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
function OverviewToJSON(json) {
|
|
@@ -76,10 +83,13 @@ function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
83
|
'opens_at': value['opensAt'],
|
|
77
84
|
'closes_at': value['closesAt'],
|
|
78
85
|
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
86
|
+
'previous_season': (0, SeasonPeriod_1.SeasonPeriodToJSON)(value['previousSeason']),
|
|
87
|
+
'next_season': (0, SeasonPeriod_1.SeasonPeriodToJSON)(value['nextSeason']),
|
|
79
88
|
'news': (value['news'].map(OverviewNews_1.OverviewNewsToJSON)),
|
|
80
89
|
'runs': (0, OverviewRuns_1.OverviewRunsToJSON)(value['runs']),
|
|
81
90
|
'lifts': (0, OverviewLifts_1.OverviewLiftsToJSON)(value['lifts']),
|
|
82
91
|
'summer_trails': (0, OverviewSummerTrails_1.OverviewSummerTrailsToJSON)(value['summerTrails']),
|
|
83
92
|
'terrain_parks': (0, OverviewTerrainParks_1.OverviewTerrainParksToJSON)(value['terrainParks']),
|
|
93
|
+
'powder_alerts': (0, PowderAlerts_1.PowderAlertsToJSON)(value['powderAlerts']),
|
|
84
94
|
};
|
|
85
95
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Guest powder alerts the resort offers. Both are `false` when the resort
|
|
14
|
+
* doesn't offer powder alerts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PowderAlerts
|
|
17
|
+
*/
|
|
18
|
+
export interface PowderAlerts {
|
|
19
|
+
/**
|
|
20
|
+
* Guests can sign up for text alerts via
|
|
21
|
+
* `POST /api/notifications/v1/text/powder/signup` on the resort's host.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PowderAlerts
|
|
24
|
+
*/
|
|
25
|
+
text: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Guests can subscribe to push alerts in the resort's mobile app.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof PowderAlerts
|
|
30
|
+
*/
|
|
31
|
+
push: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPowderAlerts(value: object): value is PowderAlerts;
|
|
37
|
+
export declare function PowderAlertsFromJSON(json: any): PowderAlerts;
|
|
38
|
+
export declare function PowderAlertsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PowderAlerts;
|
|
39
|
+
export declare function PowderAlertsToJSON(json: any): PowderAlerts;
|
|
40
|
+
export declare function PowderAlertsToJSONTyped(value?: PowderAlerts | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPowderAlerts = instanceOfPowderAlerts;
|
|
17
|
+
exports.PowderAlertsFromJSON = PowderAlertsFromJSON;
|
|
18
|
+
exports.PowderAlertsFromJSONTyped = PowderAlertsFromJSONTyped;
|
|
19
|
+
exports.PowderAlertsToJSON = PowderAlertsToJSON;
|
|
20
|
+
exports.PowderAlertsToJSONTyped = PowderAlertsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPowderAlerts(value) {
|
|
25
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('push' in value) || value['push'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PowderAlertsFromJSON(json) {
|
|
32
|
+
return PowderAlertsFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'text': json['text'],
|
|
40
|
+
'push': json['push'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PowderAlertsToJSON(json) {
|
|
44
|
+
return PowderAlertsToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'text': value['text'],
|
|
52
|
+
'push': value['push'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { SeasonType } from './SeasonType';
|
|
13
|
+
/**
|
|
14
|
+
* A season the resort's operating hours define: its type and its days.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SeasonPeriod
|
|
17
|
+
*/
|
|
18
|
+
export interface SeasonPeriod {
|
|
19
|
+
/**
|
|
20
|
+
* The season's type (`winter` or `summer`; never `closed`).
|
|
21
|
+
* @type {SeasonType}
|
|
22
|
+
* @memberof SeasonPeriod
|
|
23
|
+
*/
|
|
24
|
+
seasonType: SeasonType;
|
|
25
|
+
/**
|
|
26
|
+
* The season's first day (YYYY-MM-DD), in the resort's local timezone.
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof SeasonPeriod
|
|
29
|
+
*/
|
|
30
|
+
startsOn: Date;
|
|
31
|
+
/**
|
|
32
|
+
* The season's last day (YYYY-MM-DD), in the resort's local timezone.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof SeasonPeriod
|
|
35
|
+
*/
|
|
36
|
+
endsOn: Date;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SeasonPeriod interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSeasonPeriod(value: object): value is SeasonPeriod;
|
|
42
|
+
export declare function SeasonPeriodFromJSON(json: any): SeasonPeriod;
|
|
43
|
+
export declare function SeasonPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonPeriod;
|
|
44
|
+
export declare function SeasonPeriodToJSON(json: any): SeasonPeriod;
|
|
45
|
+
export declare function SeasonPeriodToJSONTyped(value?: SeasonPeriod | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfSeasonPeriod = instanceOfSeasonPeriod;
|
|
17
|
+
exports.SeasonPeriodFromJSON = SeasonPeriodFromJSON;
|
|
18
|
+
exports.SeasonPeriodFromJSONTyped = SeasonPeriodFromJSONTyped;
|
|
19
|
+
exports.SeasonPeriodToJSON = SeasonPeriodToJSON;
|
|
20
|
+
exports.SeasonPeriodToJSONTyped = SeasonPeriodToJSONTyped;
|
|
21
|
+
const SeasonType_1 = require("./SeasonType");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SeasonPeriod interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSeasonPeriod(value) {
|
|
26
|
+
if ((!('seasonType' in value) && !('season_type' in value)) || (value['seasonType'] === undefined && value['season_type'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('startsOn' in value) && !('starts_on' in value)) || (value['startsOn'] === undefined && value['starts_on'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if ((!('endsOn' in value) && !('ends_on' in value)) || (value['endsOn'] === undefined && value['ends_on'] === undefined))
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function SeasonPeriodFromJSON(json) {
|
|
35
|
+
return SeasonPeriodFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function SeasonPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'seasonType': (0, SeasonType_1.SeasonTypeFromJSON)(json['season_type']),
|
|
43
|
+
'startsOn': (new Date(json['starts_on'])),
|
|
44
|
+
'endsOn': (new Date(json['ends_on'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function SeasonPeriodToJSON(json) {
|
|
48
|
+
return SeasonPeriodToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function SeasonPeriodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'season_type': (0, SeasonType_1.SeasonTypeToJSON)(value['seasonType']),
|
|
56
|
+
'starts_on': value['startsOn'].toISOString().substring(0, 10),
|
|
57
|
+
'ends_on': value['endsOn'].toISOString().substring(0, 10),
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export * from './OverviewTerrainParks';
|
|
|
37
37
|
export * from './ParkingLot';
|
|
38
38
|
export * from './ParkingLotStatus';
|
|
39
39
|
export * from './PathUuid';
|
|
40
|
+
export * from './PowderAlerts';
|
|
40
41
|
export * from './Region';
|
|
41
42
|
export * from './ResortInfo';
|
|
42
43
|
export * from './ResortStatus';
|
|
@@ -44,6 +45,7 @@ export * from './Run';
|
|
|
44
45
|
export * from './RunDifficulty';
|
|
45
46
|
export * from './RunStatus';
|
|
46
47
|
export * from './Schedule';
|
|
48
|
+
export * from './SeasonPeriod';
|
|
47
49
|
export * from './SeasonType';
|
|
48
50
|
export * from './SnowMetrics';
|
|
49
51
|
export * from './SnowReport';
|
package/dist/models/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __exportStar(require("./OverviewTerrainParks"), exports);
|
|
|
55
55
|
__exportStar(require("./ParkingLot"), exports);
|
|
56
56
|
__exportStar(require("./ParkingLotStatus"), exports);
|
|
57
57
|
__exportStar(require("./PathUuid"), exports);
|
|
58
|
+
__exportStar(require("./PowderAlerts"), exports);
|
|
58
59
|
__exportStar(require("./Region"), exports);
|
|
59
60
|
__exportStar(require("./ResortInfo"), exports);
|
|
60
61
|
__exportStar(require("./ResortStatus"), exports);
|
|
@@ -62,6 +63,7 @@ __exportStar(require("./Run"), exports);
|
|
|
62
63
|
__exportStar(require("./RunDifficulty"), exports);
|
|
63
64
|
__exportStar(require("./RunStatus"), exports);
|
|
64
65
|
__exportStar(require("./Schedule"), exports);
|
|
66
|
+
__exportStar(require("./SeasonPeriod"), exports);
|
|
65
67
|
__exportStar(require("./SeasonType"), exports);
|
|
66
68
|
__exportStar(require("./SnowMetrics"), exports);
|
|
67
69
|
__exportStar(require("./SnowReport"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
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",
|