@mtnmanager/sdk 1.0.0 → 1.1.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 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,8 @@ 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)
86
89
  - [ResortInfo](docs/ResortInfo.md)
87
90
  - [ResortStatus](docs/ResortStatus.md)
88
91
  - [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
+ }
@@ -67,6 +67,18 @@ export interface Run {
67
67
  * @memberof Run
68
68
  */
69
69
  groomedToday: boolean;
70
+ /**
71
+ * Whether the run has snowmaking capabilities.
72
+ * @type {boolean}
73
+ * @memberof Run
74
+ */
75
+ snowmaking: boolean;
76
+ /**
77
+ * Whether the run is available for night skiing.
78
+ * @type {boolean}
79
+ * @memberof Run
80
+ */
81
+ nightSkiing: boolean;
70
82
  /**
71
83
  * Notes about current conditions on this run.
72
84
  * @type {string}
@@ -29,6 +29,10 @@ export function instanceOfRun(value) {
29
29
  return false;
30
30
  if (!('groomedToday' in value) || value['groomedToday'] === undefined)
31
31
  return false;
32
+ if (!('snowmaking' in value) || value['snowmaking'] === undefined)
33
+ return false;
34
+ if (!('nightSkiing' in value) || value['nightSkiing'] === undefined)
35
+ return false;
32
36
  if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
33
37
  return false;
34
38
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -51,6 +55,8 @@ export function RunFromJSONTyped(json, ignoreDiscriminator) {
51
55
  'status': RunStatusFromJSON(json['status']),
52
56
  'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
53
57
  'groomedToday': json['groomed_today'],
58
+ 'snowmaking': json['snowmaking'],
59
+ 'nightSkiing': json['night_skiing'],
54
60
  'conditionNotes': json['condition_notes'],
55
61
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
56
62
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
@@ -74,6 +80,8 @@ export function RunToJSONTyped(value, ignoreDiscriminator = false) {
74
80
  'status': RunStatusToJSON(value['status']),
75
81
  'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
76
82
  'groomed_today': value['groomedToday'],
83
+ 'snowmaking': value['snowmaking'],
84
+ 'night_skiing': value['nightSkiing'],
77
85
  'condition_notes': value['conditionNotes'],
78
86
  'area_uuid': value['areaUuid'],
79
87
  'area_name': value['areaName'],
@@ -18,6 +18,8 @@ export * from './LiftStatus';
18
18
  export * from './LiftType';
19
19
  export * from './OperatingHours';
20
20
  export * from './Overview';
21
+ export * from './ParkingLot';
22
+ export * from './ParkingLotStatus';
21
23
  export * from './ResortInfo';
22
24
  export * from './ResortStatus';
23
25
  export * from './Run';
@@ -20,6 +20,8 @@ export * from './LiftStatus';
20
20
  export * from './LiftType';
21
21
  export * from './OperatingHours';
22
22
  export * from './Overview';
23
+ export * from './ParkingLot';
24
+ export * from './ParkingLotStatus';
23
25
  export * from './ResortInfo';
24
26
  export * from './ResortStatus';
25
27
  export * from './Run';
@@ -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.
@@ -21,6 +21,7 @@ exports.FullReportToJSONTyped = FullReportToJSONTyped;
21
21
  const OperatingHours_1 = require("./OperatingHours");
22
22
  const Weather_1 = require("./Weather");
23
23
  const ResortInfo_1 = require("./ResortInfo");
24
+ const ParkingLot_1 = require("./ParkingLot");
24
25
  const SnowReport_1 = require("./SnowReport");
25
26
  const Overview_1 = require("./Overview");
26
27
  const Run_1 = require("./Run");
@@ -43,6 +44,8 @@ function instanceOfFullReport(value) {
43
44
  return false;
44
45
  if (!('terrainParks' in value) || value['terrainParks'] === undefined)
45
46
  return false;
47
+ if (!('parkingLots' in value) || value['parkingLots'] === undefined)
48
+ return false;
46
49
  if (!('summerTrails' in value) || value['summerTrails'] === undefined)
47
50
  return false;
48
51
  if (!('hours' in value) || value['hours'] === undefined)
@@ -63,6 +66,7 @@ function FullReportFromJSONTyped(json, ignoreDiscriminator) {
63
66
  'lifts': (json['lifts'].map(Lift_1.LiftFromJSON)),
64
67
  'runs': (json['runs'].map(Run_1.RunFromJSON)),
65
68
  'terrainParks': (json['terrain_parks'].map(TerrainPark_1.TerrainParkFromJSON)),
69
+ 'parkingLots': (json['parking_lots'].map(ParkingLot_1.ParkingLotFromJSON)),
66
70
  'summerTrails': (json['summer_trails'].map(SummerTrail_1.SummerTrailFromJSON)),
67
71
  'hours': (0, OperatingHours_1.OperatingHoursFromJSON)(json['hours']),
68
72
  'weather': json['weather'] == null ? undefined : (0, Weather_1.WeatherFromJSON)(json['weather']),
@@ -82,6 +86,7 @@ function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
82
86
  'lifts': (value['lifts'].map(Lift_1.LiftToJSON)),
83
87
  'runs': (value['runs'].map(Run_1.RunToJSON)),
84
88
  'terrain_parks': (value['terrainParks'].map(TerrainPark_1.TerrainParkToJSON)),
89
+ 'parking_lots': (value['parkingLots'].map(ParkingLot_1.ParkingLotToJSON)),
85
90
  'summer_trails': (value['summerTrails'].map(SummerTrail_1.SummerTrailToJSON)),
86
91
  'hours': (0, OperatingHours_1.OperatingHoursToJSON)(value['hours']),
87
92
  'weather': (0, Weather_1.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}
@@ -34,6 +34,10 @@ function instanceOfLift(value) {
34
34
  return false;
35
35
  if (!('highSpeed' in value) || value['highSpeed'] === undefined)
36
36
  return false;
37
+ if (!('bubble' in value) || value['bubble'] === undefined)
38
+ return false;
39
+ if (!('heated' in value) || value['heated'] === undefined)
40
+ return false;
37
41
  if (!('status' in value) || value['status'] === undefined)
38
42
  return false;
39
43
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -54,6 +58,8 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
54
58
  'number': json['number'] == null ? undefined : json['number'],
55
59
  'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
56
60
  'highSpeed': json['high_speed'],
61
+ 'bubble': json['bubble'],
62
+ 'heated': json['heated'],
57
63
  'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
58
64
  'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
59
65
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
@@ -76,6 +82,8 @@ function LiftToJSONTyped(value, ignoreDiscriminator = false) {
76
82
  'number': value['number'],
77
83
  'lift_type': (0, LiftType_1.LiftTypeToJSON)(value['liftType']),
78
84
  'high_speed': value['highSpeed'],
85
+ 'bubble': value['bubble'],
86
+ 'heated': value['heated'],
79
87
  'status': (0, LiftStatus_1.LiftStatusToJSON)(value['status']),
80
88
  'wait_time_minutes': value['waitTimeMinutes'],
81
89
  '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}
@@ -70,6 +70,8 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
70
70
  'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
71
71
  'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
72
72
  'totalRuns': json['total_runs'],
73
+ 'openAcres': json['open_acres'] == null ? undefined : json['open_acres'],
74
+ 'totalAcres': json['total_acres'] == null ? undefined : json['total_acres'],
73
75
  'runsUpdatedAt': (new Date(json['runs_updated_at'])),
74
76
  'openLifts': json['open_lifts'] == null ? undefined : json['open_lifts'],
75
77
  'totalLifts': json['total_lifts'],
@@ -100,6 +102,8 @@ function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
100
102
  'open_runs': value['openRuns'],
101
103
  'groomed_runs': value['groomedRuns'],
102
104
  'total_runs': value['totalRuns'],
105
+ 'open_acres': value['openAcres'],
106
+ 'total_acres': value['totalAcres'],
103
107
  'runs_updated_at': value['runsUpdatedAt'].toISOString(),
104
108
  'open_lifts': value['openLifts'],
105
109
  '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,81 @@
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.instanceOfParkingLot = instanceOfParkingLot;
17
+ exports.ParkingLotFromJSON = ParkingLotFromJSON;
18
+ exports.ParkingLotFromJSONTyped = ParkingLotFromJSONTyped;
19
+ exports.ParkingLotToJSON = ParkingLotToJSON;
20
+ exports.ParkingLotToJSONTyped = ParkingLotToJSONTyped;
21
+ const ParkingLotStatus_1 = require("./ParkingLotStatus");
22
+ /**
23
+ * Check if a given object implements the ParkingLot interface.
24
+ */
25
+ function instanceOfParkingLot(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 (!('slug' in value) || value['slug'] === undefined)
31
+ return false;
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ if (!('shuttle' in value) || value['shuttle'] === undefined)
35
+ return false;
36
+ if (!('paid' in value) || value['paid'] === undefined)
37
+ return false;
38
+ if (!('reservationRequired' in value) || value['reservationRequired'] === undefined)
39
+ return false;
40
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function ParkingLotFromJSON(json) {
45
+ return ParkingLotFromJSONTyped(json, false);
46
+ }
47
+ function ParkingLotFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'uuid': json['uuid'],
53
+ 'name': json['name'],
54
+ 'slug': json['slug'],
55
+ 'status': (0, ParkingLotStatus_1.ParkingLotStatusFromJSON)(json['status']),
56
+ 'capacity': json['capacity'] == null ? undefined : json['capacity'],
57
+ 'shuttle': json['shuttle'],
58
+ 'paid': json['paid'],
59
+ 'reservationRequired': json['reservation_required'],
60
+ 'updatedAt': (new Date(json['updated_at'])),
61
+ };
62
+ }
63
+ function ParkingLotToJSON(json) {
64
+ return ParkingLotToJSONTyped(json, false);
65
+ }
66
+ function ParkingLotToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'uuid': value['uuid'],
72
+ 'name': value['name'],
73
+ 'slug': value['slug'],
74
+ 'status': (0, ParkingLotStatus_1.ParkingLotStatusToJSON)(value['status']),
75
+ 'capacity': value['capacity'],
76
+ 'shuttle': value['shuttle'],
77
+ 'paid': value['paid'],
78
+ 'reservation_required': value['reservationRequired'],
79
+ 'updated_at': value['updatedAt'].toISOString(),
80
+ };
81
+ }
@@ -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,52 @@
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.ParkingLotStatus = void 0;
17
+ exports.instanceOfParkingLotStatus = instanceOfParkingLotStatus;
18
+ exports.ParkingLotStatusFromJSON = ParkingLotStatusFromJSON;
19
+ exports.ParkingLotStatusFromJSONTyped = ParkingLotStatusFromJSONTyped;
20
+ exports.ParkingLotStatusToJSON = ParkingLotStatusToJSON;
21
+ exports.ParkingLotStatusToJSONTyped = ParkingLotStatusToJSONTyped;
22
+ /**
23
+ * Operational status of a parking lot.
24
+ * @export
25
+ */
26
+ exports.ParkingLotStatus = {
27
+ Open: 'open',
28
+ Closed: 'closed',
29
+ Full: 'full'
30
+ };
31
+ function instanceOfParkingLotStatus(value) {
32
+ for (const key in exports.ParkingLotStatus) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ParkingLotStatus, key)) {
34
+ if (exports.ParkingLotStatus[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ParkingLotStatusFromJSON(json) {
42
+ return ParkingLotStatusFromJSONTyped(json, false);
43
+ }
44
+ function ParkingLotStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ParkingLotStatusToJSON(value) {
48
+ return value;
49
+ }
50
+ function ParkingLotStatusToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -67,6 +67,18 @@ export interface Run {
67
67
  * @memberof Run
68
68
  */
69
69
  groomedToday: boolean;
70
+ /**
71
+ * Whether the run has snowmaking capabilities.
72
+ * @type {boolean}
73
+ * @memberof Run
74
+ */
75
+ snowmaking: boolean;
76
+ /**
77
+ * Whether the run is available for night skiing.
78
+ * @type {boolean}
79
+ * @memberof Run
80
+ */
81
+ nightSkiing: boolean;
70
82
  /**
71
83
  * Notes about current conditions on this run.
72
84
  * @type {string}
@@ -36,6 +36,10 @@ function instanceOfRun(value) {
36
36
  return false;
37
37
  if (!('groomedToday' in value) || value['groomedToday'] === undefined)
38
38
  return false;
39
+ if (!('snowmaking' in value) || value['snowmaking'] === undefined)
40
+ return false;
41
+ if (!('nightSkiing' in value) || value['nightSkiing'] === undefined)
42
+ return false;
39
43
  if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
40
44
  return false;
41
45
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -58,6 +62,8 @@ function RunFromJSONTyped(json, ignoreDiscriminator) {
58
62
  'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
59
63
  'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
60
64
  'groomedToday': json['groomed_today'],
65
+ 'snowmaking': json['snowmaking'],
66
+ 'nightSkiing': json['night_skiing'],
61
67
  'conditionNotes': json['condition_notes'],
62
68
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
63
69
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
@@ -81,6 +87,8 @@ function RunToJSONTyped(value, ignoreDiscriminator = false) {
81
87
  'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
82
88
  'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
83
89
  'groomed_today': value['groomedToday'],
90
+ 'snowmaking': value['snowmaking'],
91
+ 'night_skiing': value['nightSkiing'],
84
92
  'condition_notes': value['conditionNotes'],
85
93
  'area_uuid': value['areaUuid'],
86
94
  'area_name': value['areaName'],
@@ -18,6 +18,8 @@ export * from './LiftStatus';
18
18
  export * from './LiftType';
19
19
  export * from './OperatingHours';
20
20
  export * from './Overview';
21
+ export * from './ParkingLot';
22
+ export * from './ParkingLotStatus';
21
23
  export * from './ResortInfo';
22
24
  export * from './ResortStatus';
23
25
  export * from './Run';
@@ -36,6 +36,8 @@ __exportStar(require("./LiftStatus"), exports);
36
36
  __exportStar(require("./LiftType"), exports);
37
37
  __exportStar(require("./OperatingHours"), exports);
38
38
  __exportStar(require("./Overview"), exports);
39
+ __exportStar(require("./ParkingLot"), exports);
40
+ __exportStar(require("./ParkingLotStatus"), exports);
39
41
  __exportStar(require("./ResortInfo"), exports);
40
42
  __exportStar(require("./ResortStatus"), exports);
41
43
  __exportStar(require("./Run"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.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",