@mtnmanager/sdk 1.4.4 → 1.4.6

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.
@@ -10,7 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Amenity, FullReport, Lift, OperatingHours, Overview, ParkingLot, Run, SnowReport, SummerTrail, TerrainPark, TrailMap, TrailMapSummary, Weather } from '../models/index';
13
+ import { type Amenity } from '../models/Amenity';
14
+ import { type FullReport } from '../models/FullReport';
15
+ import { type Lift } from '../models/Lift';
16
+ import { type OperatingHours } from '../models/OperatingHours';
17
+ import { type Overview } from '../models/Overview';
18
+ import { type ParkingLot } from '../models/ParkingLot';
19
+ import { type Run } from '../models/Run';
20
+ import { type SnowReport } from '../models/SnowReport';
21
+ import { type SummerTrail } from '../models/SummerTrail';
22
+ import { type TerrainPark } from '../models/TerrainPark';
23
+ import { type TrailMap } from '../models/TrailMap';
24
+ import { type TrailMapSummary } from '../models/TrailMapSummary';
25
+ import { type Weather } from '../models/Weather';
14
26
  export interface GetTrailMapRequest {
15
27
  uuid: string;
16
28
  }
@@ -24,7 +24,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.MtnManagerApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const Amenity_1 = require("../models/Amenity");
28
+ const FullReport_1 = require("../models/FullReport");
29
+ const Lift_1 = require("../models/Lift");
30
+ const OperatingHours_1 = require("../models/OperatingHours");
31
+ const Overview_1 = require("../models/Overview");
32
+ const ParkingLot_1 = require("../models/ParkingLot");
33
+ const Run_1 = require("../models/Run");
34
+ const SnowReport_1 = require("../models/SnowReport");
35
+ const SummerTrail_1 = require("../models/SummerTrail");
36
+ const TerrainPark_1 = require("../models/TerrainPark");
37
+ const TrailMap_1 = require("../models/TrailMap");
38
+ const TrailMapSummary_1 = require("../models/TrailMapSummary");
39
+ const Weather_1 = require("../models/Weather");
28
40
  /**
29
41
  *
30
42
  */
@@ -52,7 +64,7 @@ class MtnManagerApi extends runtime.BaseAPI {
52
64
  return __awaiter(this, void 0, void 0, function* () {
53
65
  const requestOptions = yield this.getAmenitiesRequestOpts();
54
66
  const response = yield this.request(requestOptions, initOverrides);
55
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AmenityFromJSON));
67
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Amenity_1.AmenityFromJSON));
56
68
  });
57
69
  }
58
70
  /**
@@ -87,7 +99,7 @@ class MtnManagerApi extends runtime.BaseAPI {
87
99
  return __awaiter(this, void 0, void 0, function* () {
88
100
  const requestOptions = yield this.getFullReportRequestOpts();
89
101
  const response = yield this.request(requestOptions, initOverrides);
90
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FullReportFromJSON)(jsonValue));
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, FullReport_1.FullReportFromJSON)(jsonValue));
91
103
  });
92
104
  }
93
105
  /**
@@ -122,7 +134,7 @@ class MtnManagerApi extends runtime.BaseAPI {
122
134
  return __awaiter(this, void 0, void 0, function* () {
123
135
  const requestOptions = yield this.getHoursRequestOpts();
124
136
  const response = yield this.request(requestOptions, initOverrides);
125
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OperatingHoursFromJSON)(jsonValue));
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, OperatingHours_1.OperatingHoursFromJSON)(jsonValue));
126
138
  });
127
139
  }
128
140
  /**
@@ -157,7 +169,7 @@ class MtnManagerApi extends runtime.BaseAPI {
157
169
  return __awaiter(this, void 0, void 0, function* () {
158
170
  const requestOptions = yield this.getLiftsRequestOpts();
159
171
  const response = yield this.request(requestOptions, initOverrides);
160
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.LiftFromJSON));
172
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Lift_1.LiftFromJSON));
161
173
  });
162
174
  }
163
175
  /**
@@ -192,7 +204,7 @@ class MtnManagerApi extends runtime.BaseAPI {
192
204
  return __awaiter(this, void 0, void 0, function* () {
193
205
  const requestOptions = yield this.getOverviewRequestOpts();
194
206
  const response = yield this.request(requestOptions, initOverrides);
195
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OverviewFromJSON)(jsonValue));
207
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Overview_1.OverviewFromJSON)(jsonValue));
196
208
  });
197
209
  }
198
210
  /**
@@ -227,7 +239,7 @@ class MtnManagerApi extends runtime.BaseAPI {
227
239
  return __awaiter(this, void 0, void 0, function* () {
228
240
  const requestOptions = yield this.getParkingLotsRequestOpts();
229
241
  const response = yield this.request(requestOptions, initOverrides);
230
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ParkingLotFromJSON));
242
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ParkingLot_1.ParkingLotFromJSON));
231
243
  });
232
244
  }
233
245
  /**
@@ -262,7 +274,7 @@ class MtnManagerApi extends runtime.BaseAPI {
262
274
  return __awaiter(this, void 0, void 0, function* () {
263
275
  const requestOptions = yield this.getRunsRequestOpts();
264
276
  const response = yield this.request(requestOptions, initOverrides);
265
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.RunFromJSON));
277
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Run_1.RunFromJSON));
266
278
  });
267
279
  }
268
280
  /**
@@ -297,7 +309,7 @@ class MtnManagerApi extends runtime.BaseAPI {
297
309
  return __awaiter(this, void 0, void 0, function* () {
298
310
  const requestOptions = yield this.getSnowRequestOpts();
299
311
  const response = yield this.request(requestOptions, initOverrides);
300
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SnowReportFromJSON));
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SnowReport_1.SnowReportFromJSON));
301
313
  });
302
314
  }
303
315
  /**
@@ -332,7 +344,7 @@ class MtnManagerApi extends runtime.BaseAPI {
332
344
  return __awaiter(this, void 0, void 0, function* () {
333
345
  const requestOptions = yield this.getSummerTrailsRequestOpts();
334
346
  const response = yield this.request(requestOptions, initOverrides);
335
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SummerTrailFromJSON));
347
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SummerTrail_1.SummerTrailFromJSON));
336
348
  });
337
349
  }
338
350
  /**
@@ -367,7 +379,7 @@ class MtnManagerApi extends runtime.BaseAPI {
367
379
  return __awaiter(this, void 0, void 0, function* () {
368
380
  const requestOptions = yield this.getTerrainParksRequestOpts();
369
381
  const response = yield this.request(requestOptions, initOverrides);
370
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TerrainParkFromJSON));
382
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TerrainPark_1.TerrainParkFromJSON));
371
383
  });
372
384
  }
373
385
  /**
@@ -390,7 +402,7 @@ class MtnManagerApi extends runtime.BaseAPI {
390
402
  const queryParameters = {};
391
403
  const headerParameters = {};
392
404
  let urlPath = `/api/v1/report/trail-map/{uuid}`;
393
- urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
405
+ urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
394
406
  return {
395
407
  path: urlPath,
396
408
  method: 'GET',
@@ -406,7 +418,7 @@ class MtnManagerApi extends runtime.BaseAPI {
406
418
  return __awaiter(this, void 0, void 0, function* () {
407
419
  const requestOptions = yield this.getTrailMapRequestOpts(requestParameters);
408
420
  const response = yield this.request(requestOptions, initOverrides);
409
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TrailMapFromJSON)(jsonValue));
421
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, TrailMap_1.TrailMapFromJSON)(jsonValue));
410
422
  });
411
423
  }
412
424
  /**
@@ -441,7 +453,7 @@ class MtnManagerApi extends runtime.BaseAPI {
441
453
  return __awaiter(this, void 0, void 0, function* () {
442
454
  const requestOptions = yield this.getTrailMapsRequestOpts();
443
455
  const response = yield this.request(requestOptions, initOverrides);
444
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TrailMapSummaryFromJSON));
456
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TrailMapSummary_1.TrailMapSummaryFromJSON));
445
457
  });
446
458
  }
447
459
  /**
@@ -476,7 +488,7 @@ class MtnManagerApi extends runtime.BaseAPI {
476
488
  return __awaiter(this, void 0, void 0, function* () {
477
489
  const requestOptions = yield this.getWeatherRequestOpts();
478
490
  const response = yield this.request(requestOptions, initOverrides);
479
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WeatherFromJSON)(jsonValue));
491
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Weather_1.WeatherFromJSON)(jsonValue));
480
492
  });
481
493
  }
482
494
  /**
@@ -10,7 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Amenity, FullReport, Lift, OperatingHours, Overview, ParkingLot, Run, SnowReport, SummerTrail, TerrainPark, TrailMap, TrailMapSummary, Weather } from '../models/index';
13
+ import { type Amenity } from '../models/Amenity';
14
+ import { type FullReport } from '../models/FullReport';
15
+ import { type Lift } from '../models/Lift';
16
+ import { type OperatingHours } from '../models/OperatingHours';
17
+ import { type Overview } from '../models/Overview';
18
+ import { type ParkingLot } from '../models/ParkingLot';
19
+ import { type Run } from '../models/Run';
20
+ import { type SnowReport } from '../models/SnowReport';
21
+ import { type SummerTrail } from '../models/SummerTrail';
22
+ import { type TerrainPark } from '../models/TerrainPark';
23
+ import { type TrailMap } from '../models/TrailMap';
24
+ import { type TrailMapSummary } from '../models/TrailMapSummary';
25
+ import { type Weather } from '../models/Weather';
14
26
  export interface GetTrailMapRequest {
15
27
  uuid: string;
16
28
  }
@@ -21,7 +21,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AmenityFromJSON, FullReportFromJSON, LiftFromJSON, OperatingHoursFromJSON, OverviewFromJSON, ParkingLotFromJSON, RunFromJSON, SnowReportFromJSON, SummerTrailFromJSON, TerrainParkFromJSON, TrailMapFromJSON, TrailMapSummaryFromJSON, WeatherFromJSON, } from '../models/index';
24
+ import { AmenityFromJSON, } from '../models/Amenity';
25
+ import { FullReportFromJSON, } from '../models/FullReport';
26
+ import { LiftFromJSON, } from '../models/Lift';
27
+ import { OperatingHoursFromJSON, } from '../models/OperatingHours';
28
+ import { OverviewFromJSON, } from '../models/Overview';
29
+ import { ParkingLotFromJSON, } from '../models/ParkingLot';
30
+ import { RunFromJSON, } from '../models/Run';
31
+ import { SnowReportFromJSON, } from '../models/SnowReport';
32
+ import { SummerTrailFromJSON, } from '../models/SummerTrail';
33
+ import { TerrainParkFromJSON, } from '../models/TerrainPark';
34
+ import { TrailMapFromJSON, } from '../models/TrailMap';
35
+ import { TrailMapSummaryFromJSON, } from '../models/TrailMapSummary';
36
+ import { WeatherFromJSON, } from '../models/Weather';
25
37
  /**
26
38
  *
27
39
  */
@@ -387,7 +399,7 @@ export class MtnManagerApi extends runtime.BaseAPI {
387
399
  const queryParameters = {};
388
400
  const headerParameters = {};
389
401
  let urlPath = `/api/v1/report/trail-map/{uuid}`;
390
- urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
402
+ urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
391
403
  return {
392
404
  path: urlPath,
393
405
  method: 'GET',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
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",