@mtnmanager/sdk 0.0.28 → 0.0.30

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
@@ -1,4 +1,4 @@
1
- # @mtnmanager/sdk@0.0.28
1
+ # @mtnmanager/sdk@0.0.30
2
2
 
3
3
  A TypeScript SDK client for the your-resort.mtnmanager.com API.
4
4
 
@@ -16,13 +16,13 @@ Next, try it out.
16
16
  ```ts
17
17
  import {
18
18
  Configuration,
19
- ReportApi,
19
+ MtnManagerApi,
20
20
  } from '@mtnmanager/sdk';
21
21
  import type { GetFullReportRequest } from '@mtnmanager/sdk';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @mtnmanager/sdk SDK...");
25
- const api = new ReportApi();
25
+ const api = new MtnManagerApi();
26
26
 
27
27
  try {
28
28
  const data = await api.getFullReport();
@@ -45,14 +45,14 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
45
45
 
46
46
  | Class | Method | HTTP request | Description
47
47
  | ----- | ------ | ------------ | -------------
48
- *ReportApi* | [**getFullReport**](docs/ReportApi.md#getfullreport) | **GET** /api/v1/report | Get full report
49
- *ReportApi* | [**getHours**](docs/ReportApi.md#gethours) | **GET** /api/v1/report/hours | Get operating hours
50
- *ReportApi* | [**getLifts**](docs/ReportApi.md#getlifts) | **GET** /api/v1/report/lifts | Get lifts
51
- *ReportApi* | [**getOverview**](docs/ReportApi.md#getoverview) | **GET** /api/v1/report/overview | Get overview
52
- *ReportApi* | [**getRuns**](docs/ReportApi.md#getruns) | **GET** /api/v1/report/runs | Get runs
53
- *ReportApi* | [**getSnow**](docs/ReportApi.md#getsnow) | **GET** /api/v1/report/snow | Get snow conditions
54
- *ReportApi* | [**getSummerTrails**](docs/ReportApi.md#getsummertrails) | **GET** /api/v1/report/summer-trails | Get summer trails
55
- *ReportApi* | [**getWeather**](docs/ReportApi.md#getweather) | **GET** /api/v1/report/weather | Get weather
48
+ *MtnManagerApi* | [**getFullReport**](docs/MtnManagerApi.md#getfullreport) | **GET** /api/v1/report | Get full report
49
+ *MtnManagerApi* | [**getHours**](docs/MtnManagerApi.md#gethours) | **GET** /api/v1/report/hours | Get operating hours
50
+ *MtnManagerApi* | [**getLifts**](docs/MtnManagerApi.md#getlifts) | **GET** /api/v1/report/lifts | Get lifts
51
+ *MtnManagerApi* | [**getOverview**](docs/MtnManagerApi.md#getoverview) | **GET** /api/v1/report/overview | Get overview
52
+ *MtnManagerApi* | [**getRuns**](docs/MtnManagerApi.md#getruns) | **GET** /api/v1/report/runs | Get runs
53
+ *MtnManagerApi* | [**getSnow**](docs/MtnManagerApi.md#getsnow) | **GET** /api/v1/report/snow | Get snow conditions
54
+ *MtnManagerApi* | [**getSummerTrails**](docs/MtnManagerApi.md#getsummertrails) | **GET** /api/v1/report/summer-trails | Get summer trails
55
+ *MtnManagerApi* | [**getWeather**](docs/MtnManagerApi.md#getweather) | **GET** /api/v1/report/weather | Get weather
56
56
 
57
57
 
58
58
  ### Models
@@ -105,7 +105,7 @@ and is automatically generated by the
105
105
  [OpenAPI Generator](https://openapi-generator.tech) project:
106
106
 
107
107
  - API version: `1.0.0`
108
- - Package version: `0.0.28`
108
+ - Package version: `0.0.30`
109
109
  - Generator version: `7.18.0`
110
110
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
111
111
 
@@ -12,18 +12,18 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { OperatingHoursResponse, PublicLift, PublicResortResponse, PublicResortStatus, PublicRun, PublicSnowResponse, PublicSummerTrail, WeatherData } from '../models/index';
14
14
  /**
15
- * ReportApi - interface
15
+ * MtnManagerApi - interface
16
16
  *
17
17
  * @export
18
- * @interface ReportApiInterface
18
+ * @interface MtnManagerApiInterface
19
19
  */
20
- export interface ReportApiInterface {
20
+ export interface MtnManagerApiInterface {
21
21
  /**
22
22
  *
23
23
  * @summary Get full report
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
26
- * @memberof ReportApiInterface
26
+ * @memberof MtnManagerApiInterface
27
27
  */
28
28
  getFullReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
29
29
  /**
@@ -35,7 +35,7 @@ export interface ReportApiInterface {
35
35
  * @summary Get operating hours
36
36
  * @param {*} [options] Override http request option.
37
37
  * @throws {RequiredError}
38
- * @memberof ReportApiInterface
38
+ * @memberof MtnManagerApiInterface
39
39
  */
40
40
  getHoursRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
41
41
  /**
@@ -47,7 +47,7 @@ export interface ReportApiInterface {
47
47
  * @summary Get lifts
48
48
  * @param {*} [options] Override http request option.
49
49
  * @throws {RequiredError}
50
- * @memberof ReportApiInterface
50
+ * @memberof MtnManagerApiInterface
51
51
  */
52
52
  getLiftsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
53
53
  /**
@@ -59,7 +59,7 @@ export interface ReportApiInterface {
59
59
  * @summary Get overview
60
60
  * @param {*} [options] Override http request option.
61
61
  * @throws {RequiredError}
62
- * @memberof ReportApiInterface
62
+ * @memberof MtnManagerApiInterface
63
63
  */
64
64
  getOverviewRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
65
65
  /**
@@ -71,7 +71,7 @@ export interface ReportApiInterface {
71
71
  * @summary Get runs
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
- * @memberof ReportApiInterface
74
+ * @memberof MtnManagerApiInterface
75
75
  */
76
76
  getRunsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
77
77
  /**
@@ -83,7 +83,7 @@ export interface ReportApiInterface {
83
83
  * @summary Get snow conditions
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
- * @memberof ReportApiInterface
86
+ * @memberof MtnManagerApiInterface
87
87
  */
88
88
  getSnowRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
89
89
  /**
@@ -95,7 +95,7 @@ export interface ReportApiInterface {
95
95
  * @summary Get summer trails
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
- * @memberof ReportApiInterface
98
+ * @memberof MtnManagerApiInterface
99
99
  */
100
100
  getSummerTrailsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSummerTrail>>>;
101
101
  /**
@@ -107,7 +107,7 @@ export interface ReportApiInterface {
107
107
  * @summary Get weather
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
- * @memberof ReportApiInterface
110
+ * @memberof MtnManagerApiInterface
111
111
  */
112
112
  getWeatherRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeatherData>>;
113
113
  /**
@@ -118,7 +118,7 @@ export interface ReportApiInterface {
118
118
  /**
119
119
  *
120
120
  */
121
- export declare class ReportApi extends runtime.BaseAPI implements ReportApiInterface {
121
+ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManagerApiInterface {
122
122
  /**
123
123
  * Get full report
124
124
  */
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ReportApi = void 0;
25
+ exports.MtnManagerApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
29
29
  *
30
30
  */
31
- class ReportApi extends runtime.BaseAPI {
31
+ class MtnManagerApi extends runtime.BaseAPI {
32
32
  /**
33
33
  * Get full report
34
34
  */
@@ -238,4 +238,4 @@ class ReportApi extends runtime.BaseAPI {
238
238
  });
239
239
  }
240
240
  }
241
- exports.ReportApi = ReportApi;
241
+ exports.MtnManagerApi = MtnManagerApi;
@@ -1 +1 @@
1
- export * from './ReportApi';
1
+ export * from './MtnManagerApi';
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./ReportApi"), exports);
19
+ __exportStar(require("./MtnManagerApi"), exports);
@@ -12,18 +12,18 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { OperatingHoursResponse, PublicLift, PublicResortResponse, PublicResortStatus, PublicRun, PublicSnowResponse, PublicSummerTrail, WeatherData } from '../models/index';
14
14
  /**
15
- * ReportApi - interface
15
+ * MtnManagerApi - interface
16
16
  *
17
17
  * @export
18
- * @interface ReportApiInterface
18
+ * @interface MtnManagerApiInterface
19
19
  */
20
- export interface ReportApiInterface {
20
+ export interface MtnManagerApiInterface {
21
21
  /**
22
22
  *
23
23
  * @summary Get full report
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
26
- * @memberof ReportApiInterface
26
+ * @memberof MtnManagerApiInterface
27
27
  */
28
28
  getFullReportRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
29
29
  /**
@@ -35,7 +35,7 @@ export interface ReportApiInterface {
35
35
  * @summary Get operating hours
36
36
  * @param {*} [options] Override http request option.
37
37
  * @throws {RequiredError}
38
- * @memberof ReportApiInterface
38
+ * @memberof MtnManagerApiInterface
39
39
  */
40
40
  getHoursRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
41
41
  /**
@@ -47,7 +47,7 @@ export interface ReportApiInterface {
47
47
  * @summary Get lifts
48
48
  * @param {*} [options] Override http request option.
49
49
  * @throws {RequiredError}
50
- * @memberof ReportApiInterface
50
+ * @memberof MtnManagerApiInterface
51
51
  */
52
52
  getLiftsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
53
53
  /**
@@ -59,7 +59,7 @@ export interface ReportApiInterface {
59
59
  * @summary Get overview
60
60
  * @param {*} [options] Override http request option.
61
61
  * @throws {RequiredError}
62
- * @memberof ReportApiInterface
62
+ * @memberof MtnManagerApiInterface
63
63
  */
64
64
  getOverviewRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
65
65
  /**
@@ -71,7 +71,7 @@ export interface ReportApiInterface {
71
71
  * @summary Get runs
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
- * @memberof ReportApiInterface
74
+ * @memberof MtnManagerApiInterface
75
75
  */
76
76
  getRunsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
77
77
  /**
@@ -83,7 +83,7 @@ export interface ReportApiInterface {
83
83
  * @summary Get snow conditions
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
- * @memberof ReportApiInterface
86
+ * @memberof MtnManagerApiInterface
87
87
  */
88
88
  getSnowRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
89
89
  /**
@@ -95,7 +95,7 @@ export interface ReportApiInterface {
95
95
  * @summary Get summer trails
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
- * @memberof ReportApiInterface
98
+ * @memberof MtnManagerApiInterface
99
99
  */
100
100
  getSummerTrailsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicSummerTrail>>>;
101
101
  /**
@@ -107,7 +107,7 @@ export interface ReportApiInterface {
107
107
  * @summary Get weather
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
- * @memberof ReportApiInterface
110
+ * @memberof MtnManagerApiInterface
111
111
  */
112
112
  getWeatherRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WeatherData>>;
113
113
  /**
@@ -118,7 +118,7 @@ export interface ReportApiInterface {
118
118
  /**
119
119
  *
120
120
  */
121
- export declare class ReportApi extends runtime.BaseAPI implements ReportApiInterface {
121
+ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManagerApiInterface {
122
122
  /**
123
123
  * Get full report
124
124
  */
@@ -25,7 +25,7 @@ import { OperatingHoursResponseFromJSON, PublicLiftFromJSON, PublicResortRespons
25
25
  /**
26
26
  *
27
27
  */
28
- export class ReportApi extends runtime.BaseAPI {
28
+ export class MtnManagerApi extends runtime.BaseAPI {
29
29
  /**
30
30
  * Get full report
31
31
  */
@@ -1 +1 @@
1
- export * from './ReportApi';
1
+ export * from './MtnManagerApi';
@@ -1,3 +1,3 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './ReportApi';
3
+ export * from './MtnManagerApi';
@@ -21,12 +21,12 @@ export declare const LiftType: {
21
21
  readonly Quad: "quad";
22
22
  readonly Triple: "triple";
23
23
  readonly Double: "double";
24
- readonly SurfaceLift: "surface_lift";
25
24
  readonly MagicCarpet: "magic_carpet";
26
25
  readonly TBar: "t_bar";
27
26
  readonly Platter: "platter";
28
27
  readonly RopeTow: "rope_tow";
29
28
  readonly Funicular: "funicular";
29
+ readonly Other: "other";
30
30
  };
31
31
  export type LiftType = typeof LiftType[keyof typeof LiftType];
32
32
  export declare function instanceOfLiftType(value: any): boolean;
@@ -23,12 +23,12 @@ export const LiftType = {
23
23
  Quad: 'quad',
24
24
  Triple: 'triple',
25
25
  Double: 'double',
26
- SurfaceLift: 'surface_lift',
27
26
  MagicCarpet: 'magic_carpet',
28
27
  TBar: 't_bar',
29
28
  Platter: 'platter',
30
29
  RopeTow: 'rope_tow',
31
- Funicular: 'funicular'
30
+ Funicular: 'funicular',
31
+ Other: 'other'
32
32
  };
33
33
  export function instanceOfLiftType(value) {
34
34
  for (const key in LiftType) {
@@ -21,12 +21,12 @@ export declare const LiftType: {
21
21
  readonly Quad: "quad";
22
22
  readonly Triple: "triple";
23
23
  readonly Double: "double";
24
- readonly SurfaceLift: "surface_lift";
25
24
  readonly MagicCarpet: "magic_carpet";
26
25
  readonly TBar: "t_bar";
27
26
  readonly Platter: "platter";
28
27
  readonly RopeTow: "rope_tow";
29
28
  readonly Funicular: "funicular";
29
+ readonly Other: "other";
30
30
  };
31
31
  export type LiftType = typeof LiftType[keyof typeof LiftType];
32
32
  export declare function instanceOfLiftType(value: any): boolean;
@@ -31,12 +31,12 @@ exports.LiftType = {
31
31
  Quad: 'quad',
32
32
  Triple: 'triple',
33
33
  Double: 'double',
34
- SurfaceLift: 'surface_lift',
35
34
  MagicCarpet: 'magic_carpet',
36
35
  TBar: 't_bar',
37
36
  Platter: 'platter',
38
37
  RopeTow: 'rope_tow',
39
- Funicular: 'funicular'
38
+ Funicular: 'funicular',
39
+ Other: 'other'
40
40
  };
41
41
  function instanceOfLiftType(value) {
42
42
  for (const key in exports.LiftType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "OpenAPI client for @mtnmanager/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",