@mtnmanager/sdk 1.0.0 → 1.1.1

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.
Files changed (42) hide show
  1. package/README.md +4 -0
  2. package/dist/apis/MtnManagerApi.d.ts +21 -1
  3. package/dist/apis/MtnManagerApi.js +26 -0
  4. package/dist/esm/apis/MtnManagerApi.d.ts +21 -1
  5. package/dist/esm/apis/MtnManagerApi.js +27 -1
  6. package/dist/esm/models/FullReport.d.ts +7 -0
  7. package/dist/esm/models/FullReport.js +5 -0
  8. package/dist/esm/models/Lift.d.ts +12 -0
  9. package/dist/esm/models/Lift.js +8 -0
  10. package/dist/esm/models/Overview.d.ts +14 -0
  11. package/dist/esm/models/Overview.js +4 -0
  12. package/dist/esm/models/ParkingLot.d.ts +81 -0
  13. package/dist/esm/models/ParkingLot.js +74 -0
  14. package/dist/esm/models/ParkingLotStatus.d.ts +26 -0
  15. package/dist/esm/models/ParkingLotStatus.js +44 -0
  16. package/dist/esm/models/Region.d.ts +25 -0
  17. package/dist/esm/models/Region.js +43 -0
  18. package/dist/esm/models/ResortInfo.d.ts +7 -0
  19. package/dist/esm/models/ResortInfo.js +5 -0
  20. package/dist/esm/models/Run.d.ts +12 -0
  21. package/dist/esm/models/Run.js +8 -0
  22. package/dist/esm/models/index.d.ts +3 -0
  23. package/dist/esm/models/index.js +3 -0
  24. package/dist/models/FullReport.d.ts +7 -0
  25. package/dist/models/FullReport.js +5 -0
  26. package/dist/models/Lift.d.ts +12 -0
  27. package/dist/models/Lift.js +8 -0
  28. package/dist/models/Overview.d.ts +14 -0
  29. package/dist/models/Overview.js +4 -0
  30. package/dist/models/ParkingLot.d.ts +81 -0
  31. package/dist/models/ParkingLot.js +81 -0
  32. package/dist/models/ParkingLotStatus.d.ts +26 -0
  33. package/dist/models/ParkingLotStatus.js +52 -0
  34. package/dist/models/Region.d.ts +25 -0
  35. package/dist/models/Region.js +51 -0
  36. package/dist/models/ResortInfo.d.ts +7 -0
  37. package/dist/models/ResortInfo.js +5 -0
  38. package/dist/models/Run.d.ts +12 -0
  39. package/dist/models/Run.js +8 -0
  40. package/dist/models/index.d.ts +3 -0
  41. package/dist/models/index.js +3 -0
  42. package/package.json +1 -1
package/README.md CHANGED
@@ -54,6 +54,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
54
54
  *MtnManagerApi* | [**getHours**](docs/MtnManagerApi.md#gethours) | **GET** /api/v1/report/hours | Get operating hours
55
55
  *MtnManagerApi* | [**getLifts**](docs/MtnManagerApi.md#getlifts) | **GET** /api/v1/report/lifts | Get lifts
56
56
  *MtnManagerApi* | [**getOverview**](docs/MtnManagerApi.md#getoverview) | **GET** /api/v1/report/overview | Get overview
57
+ *MtnManagerApi* | [**getParkingLots**](docs/MtnManagerApi.md#getparkinglots) | **GET** /api/v1/report/parking-lots | Get parking lots
57
58
  *MtnManagerApi* | [**getRuns**](docs/MtnManagerApi.md#getruns) | **GET** /api/v1/report/runs | Get runs
58
59
  *MtnManagerApi* | [**getSnow**](docs/MtnManagerApi.md#getsnow) | **GET** /api/v1/report/snow | Get snow conditions
59
60
  *MtnManagerApi* | [**getSummerTrails**](docs/MtnManagerApi.md#getsummertrails) | **GET** /api/v1/report/summer-trails | Get summer trails
@@ -83,6 +84,9 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
83
84
  - [LiftType](docs/LiftType.md)
84
85
  - [OperatingHours](docs/OperatingHours.md)
85
86
  - [Overview](docs/Overview.md)
87
+ - [ParkingLot](docs/ParkingLot.md)
88
+ - [ParkingLotStatus](docs/ParkingLotStatus.md)
89
+ - [Region](docs/Region.md)
86
90
  - [ResortInfo](docs/ResortInfo.md)
87
91
  - [ResortStatus](docs/ResortStatus.md)
88
92
  - [Run](docs/Run.md)
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FullReport, Lift, OperatingHours, Overview, Run, SnowReport, SummerTrail, TerrainPark, Weather } from '../models/index';
13
+ import type { FullReport, Lift, OperatingHours, Overview, ParkingLot, Run, SnowReport, SummerTrail, TerrainPark, Weather } from '../models/index';
14
14
  /**
15
15
  * MtnManagerApi - interface
16
16
  *
@@ -66,6 +66,18 @@ export interface MtnManagerApiInterface {
66
66
  * Get overview
67
67
  */
68
68
  getOverview(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Overview>;
69
+ /**
70
+ *
71
+ * @summary Get parking lots
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ * @memberof MtnManagerApiInterface
75
+ */
76
+ getParkingLotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ParkingLot>>>;
77
+ /**
78
+ * Get parking lots
79
+ */
80
+ getParkingLots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ParkingLot>>;
69
81
  /**
70
82
  *
71
83
  * @summary Get runs
@@ -163,6 +175,14 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
163
175
  * Get overview
164
176
  */
165
177
  getOverview(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Overview>;
178
+ /**
179
+ * Get parking lots
180
+ */
181
+ getParkingLotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ParkingLot>>>;
182
+ /**
183
+ * Get parking lots
184
+ */
185
+ getParkingLots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ParkingLot>>;
166
186
  /**
167
187
  * Get runs
168
188
  */
@@ -133,6 +133,32 @@ class MtnManagerApi extends runtime.BaseAPI {
133
133
  return yield response.value();
134
134
  });
135
135
  }
136
+ /**
137
+ * Get parking lots
138
+ */
139
+ getParkingLotsRaw(initOverrides) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const queryParameters = {};
142
+ const headerParameters = {};
143
+ let urlPath = `/api/v1/report/parking-lots`;
144
+ const response = yield this.request({
145
+ path: urlPath,
146
+ method: 'GET',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ }, initOverrides);
150
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ParkingLotFromJSON));
151
+ });
152
+ }
153
+ /**
154
+ * Get parking lots
155
+ */
156
+ getParkingLots(initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ const response = yield this.getParkingLotsRaw(initOverrides);
159
+ return yield response.value();
160
+ });
161
+ }
136
162
  /**
137
163
  * Get runs
138
164
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FullReport, Lift, OperatingHours, Overview, Run, SnowReport, SummerTrail, TerrainPark, Weather } from '../models/index';
13
+ import type { FullReport, Lift, OperatingHours, Overview, ParkingLot, Run, SnowReport, SummerTrail, TerrainPark, Weather } from '../models/index';
14
14
  /**
15
15
  * MtnManagerApi - interface
16
16
  *
@@ -66,6 +66,18 @@ export interface MtnManagerApiInterface {
66
66
  * Get overview
67
67
  */
68
68
  getOverview(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Overview>;
69
+ /**
70
+ *
71
+ * @summary Get parking lots
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ * @memberof MtnManagerApiInterface
75
+ */
76
+ getParkingLotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ParkingLot>>>;
77
+ /**
78
+ * Get parking lots
79
+ */
80
+ getParkingLots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ParkingLot>>;
69
81
  /**
70
82
  *
71
83
  * @summary Get runs
@@ -163,6 +175,14 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
163
175
  * Get overview
164
176
  */
165
177
  getOverview(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Overview>;
178
+ /**
179
+ * Get parking lots
180
+ */
181
+ getParkingLotsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ParkingLot>>>;
182
+ /**
183
+ * Get parking lots
184
+ */
185
+ getParkingLots(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ParkingLot>>;
166
186
  /**
167
187
  * Get runs
168
188
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { FullReportFromJSON, LiftFromJSON, OperatingHoursFromJSON, OverviewFromJSON, RunFromJSON, SnowReportFromJSON, SummerTrailFromJSON, TerrainParkFromJSON, WeatherFromJSON, } from '../models/index';
24
+ import { FullReportFromJSON, LiftFromJSON, OperatingHoursFromJSON, OverviewFromJSON, ParkingLotFromJSON, RunFromJSON, SnowReportFromJSON, SummerTrailFromJSON, TerrainParkFromJSON, WeatherFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -130,6 +130,32 @@ export class MtnManagerApi extends runtime.BaseAPI {
130
130
  return yield response.value();
131
131
  });
132
132
  }
133
+ /**
134
+ * Get parking lots
135
+ */
136
+ getParkingLotsRaw(initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ let urlPath = `/api/v1/report/parking-lots`;
141
+ const response = yield this.request({
142
+ path: urlPath,
143
+ method: 'GET',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ }, initOverrides);
147
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ParkingLotFromJSON));
148
+ });
149
+ }
150
+ /**
151
+ * Get parking lots
152
+ */
153
+ getParkingLots(initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const response = yield this.getParkingLotsRaw(initOverrides);
156
+ return yield response.value();
157
+ });
158
+ }
133
159
  /**
134
160
  * Get runs
135
161
  */
@@ -12,6 +12,7 @@
12
12
  import type { OperatingHours } from './OperatingHours';
13
13
  import type { Weather } from './Weather';
14
14
  import type { ResortInfo } from './ResortInfo';
15
+ import type { ParkingLot } from './ParkingLot';
15
16
  import type { SnowReport } from './SnowReport';
16
17
  import type { Overview } from './Overview';
17
18
  import type { Run } from './Run';
@@ -67,6 +68,12 @@ export interface FullReport {
67
68
  * @memberof FullReport
68
69
  */
69
70
  terrainParks: Array<TerrainPark>;
71
+ /**
72
+ * List of all parking lots at the resort with their current status and amenities.
73
+ * @type {Array<ParkingLot>}
74
+ * @memberof FullReport
75
+ */
76
+ parkingLots: Array<ParkingLot>;
70
77
  /**
71
78
  * List of all summer trails at the resort with their current status,
72
79
  * type (e.g. hiking, mountain biking), and optional difficulty rating.
@@ -14,6 +14,7 @@
14
14
  import { OperatingHoursFromJSON, OperatingHoursToJSON, } from './OperatingHours';
15
15
  import { WeatherFromJSON, WeatherToJSON, } from './Weather';
16
16
  import { ResortInfoFromJSON, ResortInfoToJSON, } from './ResortInfo';
17
+ import { ParkingLotFromJSON, ParkingLotToJSON, } from './ParkingLot';
17
18
  import { SnowReportFromJSON, SnowReportToJSON, } from './SnowReport';
18
19
  import { OverviewFromJSON, OverviewToJSON, } from './Overview';
19
20
  import { RunFromJSON, RunToJSON, } from './Run';
@@ -36,6 +37,8 @@ export function instanceOfFullReport(value) {
36
37
  return false;
37
38
  if (!('terrainParks' in value) || value['terrainParks'] === undefined)
38
39
  return false;
40
+ if (!('parkingLots' in value) || value['parkingLots'] === undefined)
41
+ return false;
39
42
  if (!('summerTrails' in value) || value['summerTrails'] === undefined)
40
43
  return false;
41
44
  if (!('hours' in value) || value['hours'] === undefined)
@@ -56,6 +59,7 @@ export function FullReportFromJSONTyped(json, ignoreDiscriminator) {
56
59
  'lifts': (json['lifts'].map(LiftFromJSON)),
57
60
  'runs': (json['runs'].map(RunFromJSON)),
58
61
  'terrainParks': (json['terrain_parks'].map(TerrainParkFromJSON)),
62
+ 'parkingLots': (json['parking_lots'].map(ParkingLotFromJSON)),
59
63
  'summerTrails': (json['summer_trails'].map(SummerTrailFromJSON)),
60
64
  'hours': OperatingHoursFromJSON(json['hours']),
61
65
  'weather': json['weather'] == null ? undefined : WeatherFromJSON(json['weather']),
@@ -75,6 +79,7 @@ export function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
75
79
  'lifts': (value['lifts'].map(LiftToJSON)),
76
80
  'runs': (value['runs'].map(RunToJSON)),
77
81
  'terrain_parks': (value['terrainParks'].map(TerrainParkToJSON)),
82
+ 'parking_lots': (value['parkingLots'].map(ParkingLotToJSON)),
78
83
  'summer_trails': (value['summerTrails'].map(SummerTrailToJSON)),
79
84
  'hours': OperatingHoursToJSON(value['hours']),
80
85
  'weather': WeatherToJSON(value['weather']),
@@ -54,6 +54,18 @@ export interface Lift {
54
54
  * @memberof Lift
55
55
  */
56
56
  highSpeed: boolean;
57
+ /**
58
+ * Whether the lift has a bubble/cover for weather protection.
59
+ * @type {boolean}
60
+ * @memberof Lift
61
+ */
62
+ bubble: boolean;
63
+ /**
64
+ * Whether the lift has heated seats.
65
+ * @type {boolean}
66
+ * @memberof Lift
67
+ */
68
+ heated: boolean;
57
69
  /**
58
70
  * Current operational status (open, closed, on_hold, or unknown).
59
71
  * @type {LiftStatus}
@@ -27,6 +27,10 @@ export function instanceOfLift(value) {
27
27
  return false;
28
28
  if (!('highSpeed' in value) || value['highSpeed'] === undefined)
29
29
  return false;
30
+ if (!('bubble' in value) || value['bubble'] === undefined)
31
+ return false;
32
+ if (!('heated' in value) || value['heated'] === undefined)
33
+ return false;
30
34
  if (!('status' in value) || value['status'] === undefined)
31
35
  return false;
32
36
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -47,6 +51,8 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
47
51
  'number': json['number'] == null ? undefined : json['number'],
48
52
  'liftType': LiftTypeFromJSON(json['lift_type']),
49
53
  'highSpeed': json['high_speed'],
54
+ 'bubble': json['bubble'],
55
+ 'heated': json['heated'],
50
56
  'status': LiftStatusFromJSON(json['status']),
51
57
  'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
52
58
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
@@ -69,6 +75,8 @@ export function LiftToJSONTyped(value, ignoreDiscriminator = false) {
69
75
  'number': value['number'],
70
76
  'lift_type': LiftTypeToJSON(value['liftType']),
71
77
  'high_speed': value['highSpeed'],
78
+ 'bubble': value['bubble'],
79
+ 'heated': value['heated'],
72
80
  'status': LiftStatusToJSON(value['status']),
73
81
  'wait_time_minutes': value['waitTimeMinutes'],
74
82
  'area_uuid': value['areaUuid'],
@@ -84,6 +84,20 @@ export interface Overview {
84
84
  * @memberof Overview
85
85
  */
86
86
  totalRuns: number;
87
+ /**
88
+ * Total acres of open runs.
89
+ * Not included if acres are not tracked or run status feature is disabled.
90
+ * @type {number}
91
+ * @memberof Overview
92
+ */
93
+ openAcres?: number | null;
94
+ /**
95
+ * Total acres of all runs.
96
+ * Not included if acres are not tracked.
97
+ * @type {number}
98
+ * @memberof Overview
99
+ */
100
+ totalAcres?: number | null;
87
101
  /**
88
102
  * When the most recent update to run status was made.
89
103
  * @type {Date}
@@ -63,6 +63,8 @@ export function OverviewFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
64
64
  'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
65
65
  'totalRuns': json['total_runs'],
66
+ 'openAcres': json['open_acres'] == null ? undefined : json['open_acres'],
67
+ 'totalAcres': json['total_acres'] == null ? undefined : json['total_acres'],
66
68
  'runsUpdatedAt': (new Date(json['runs_updated_at'])),
67
69
  'openLifts': json['open_lifts'] == null ? undefined : json['open_lifts'],
68
70
  'totalLifts': json['total_lifts'],
@@ -93,6 +95,8 @@ export function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
93
95
  'open_runs': value['openRuns'],
94
96
  'groomed_runs': value['groomedRuns'],
95
97
  'total_runs': value['totalRuns'],
98
+ 'open_acres': value['openAcres'],
99
+ 'total_acres': value['totalAcres'],
96
100
  'runs_updated_at': value['runsUpdatedAt'].toISOString(),
97
101
  'open_lifts': value['openLifts'],
98
102
  'total_lifts': value['totalLifts'],
@@ -0,0 +1,81 @@
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 { ParkingLotStatus } from './ParkingLotStatus';
13
+ /**
14
+ * Represents a parking lot at the resort with its current status and amenities.
15
+ * @export
16
+ * @interface ParkingLot
17
+ */
18
+ export interface ParkingLot {
19
+ /**
20
+ * Unique identifier for the parking lot.
21
+ * @type {string}
22
+ * @memberof ParkingLot
23
+ */
24
+ uuid: string;
25
+ /**
26
+ * Display name of the parking lot.
27
+ * @type {string}
28
+ * @memberof ParkingLot
29
+ */
30
+ name: string;
31
+ /**
32
+ * URL-friendly name of the parking lot.
33
+ * @type {string}
34
+ * @memberof ParkingLot
35
+ */
36
+ slug: string;
37
+ /**
38
+ * Current status (open, closed, or full).
39
+ * @type {ParkingLotStatus}
40
+ * @memberof ParkingLot
41
+ */
42
+ status: ParkingLotStatus;
43
+ /**
44
+ * Maximum vehicle capacity, if set.
45
+ * @type {number}
46
+ * @memberof ParkingLot
47
+ */
48
+ capacity?: number | null;
49
+ /**
50
+ * Whether shuttle service is available from this lot.
51
+ * @type {boolean}
52
+ * @memberof ParkingLot
53
+ */
54
+ shuttle: boolean;
55
+ /**
56
+ * Whether parking is paid/requires payment.
57
+ * @type {boolean}
58
+ * @memberof ParkingLot
59
+ */
60
+ paid: boolean;
61
+ /**
62
+ * Whether a reservation is required to park here.
63
+ * @type {boolean}
64
+ * @memberof ParkingLot
65
+ */
66
+ reservationRequired: boolean;
67
+ /**
68
+ * When this parking lot's information was last updated.
69
+ * @type {Date}
70
+ * @memberof ParkingLot
71
+ */
72
+ updatedAt: Date;
73
+ }
74
+ /**
75
+ * Check if a given object implements the ParkingLot interface.
76
+ */
77
+ export declare function instanceOfParkingLot(value: object): value is ParkingLot;
78
+ export declare function ParkingLotFromJSON(json: any): ParkingLot;
79
+ export declare function ParkingLotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParkingLot;
80
+ export declare function ParkingLotToJSON(json: any): ParkingLot;
81
+ export declare function ParkingLotToJSONTyped(value?: ParkingLot | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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 { ParkingLotStatusFromJSON, ParkingLotStatusToJSON, } from './ParkingLotStatus';
15
+ /**
16
+ * Check if a given object implements the ParkingLot interface.
17
+ */
18
+ export function instanceOfParkingLot(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 (!('slug' in value) || value['slug'] === undefined)
24
+ return false;
25
+ if (!('status' in value) || value['status'] === undefined)
26
+ return false;
27
+ if (!('shuttle' in value) || value['shuttle'] === undefined)
28
+ return false;
29
+ if (!('paid' in value) || value['paid'] === undefined)
30
+ return false;
31
+ if (!('reservationRequired' in value) || value['reservationRequired'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function ParkingLotFromJSON(json) {
38
+ return ParkingLotFromJSONTyped(json, false);
39
+ }
40
+ export function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'uuid': json['uuid'],
46
+ 'name': json['name'],
47
+ 'slug': json['slug'],
48
+ 'status': ParkingLotStatusFromJSON(json['status']),
49
+ 'capacity': json['capacity'] == null ? undefined : json['capacity'],
50
+ 'shuttle': json['shuttle'],
51
+ 'paid': json['paid'],
52
+ 'reservationRequired': json['reservation_required'],
53
+ 'updatedAt': (new Date(json['updated_at'])),
54
+ };
55
+ }
56
+ export function ParkingLotToJSON(json) {
57
+ return ParkingLotToJSONTyped(json, false);
58
+ }
59
+ export function ParkingLotToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'uuid': value['uuid'],
65
+ 'name': value['name'],
66
+ 'slug': value['slug'],
67
+ 'status': ParkingLotStatusToJSON(value['status']),
68
+ 'capacity': value['capacity'],
69
+ 'shuttle': value['shuttle'],
70
+ 'paid': value['paid'],
71
+ 'reservation_required': value['reservationRequired'],
72
+ 'updated_at': value['updatedAt'].toISOString(),
73
+ };
74
+ }
@@ -0,0 +1,26 @@
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
+ * Operational status of a parking lot.
14
+ * @export
15
+ */
16
+ export declare const ParkingLotStatus: {
17
+ readonly Open: "open";
18
+ readonly Closed: "closed";
19
+ readonly Full: "full";
20
+ };
21
+ export type ParkingLotStatus = typeof ParkingLotStatus[keyof typeof ParkingLotStatus];
22
+ export declare function instanceOfParkingLotStatus(value: any): boolean;
23
+ export declare function ParkingLotStatusFromJSON(json: any): ParkingLotStatus;
24
+ export declare function ParkingLotStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParkingLotStatus;
25
+ export declare function ParkingLotStatusToJSON(value?: ParkingLotStatus | null): any;
26
+ export declare function ParkingLotStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ParkingLotStatus;
@@ -0,0 +1,44 @@
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
+ * Operational status of a parking lot.
16
+ * @export
17
+ */
18
+ export const ParkingLotStatus = {
19
+ Open: 'open',
20
+ Closed: 'closed',
21
+ Full: 'full'
22
+ };
23
+ export function instanceOfParkingLotStatus(value) {
24
+ for (const key in ParkingLotStatus) {
25
+ if (Object.prototype.hasOwnProperty.call(ParkingLotStatus, key)) {
26
+ if (ParkingLotStatus[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function ParkingLotStatusFromJSON(json) {
34
+ return ParkingLotStatusFromJSONTyped(json, false);
35
+ }
36
+ export function ParkingLotStatusFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function ParkingLotStatusToJSON(value) {
40
+ return value;
41
+ }
42
+ export function ParkingLotStatusToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -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}