@mtnmanager/sdk 0.0.28 → 0.0.29
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 +12 -12
- package/dist/apis/{ReportApi.d.ts → MtnManagerApi.d.ts} +12 -12
- package/dist/apis/{ReportApi.js → MtnManagerApi.js} +3 -3
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/esm/apis/{ReportApi.d.ts → MtnManagerApi.d.ts} +12 -12
- package/dist/esm/apis/{ReportApi.js → MtnManagerApi.js} +1 -1
- package/dist/esm/apis/index.d.ts +1 -1
- package/dist/esm/apis/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.29
|
|
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
|
-
|
|
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
|
|
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
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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.
|
|
108
|
+
- Package version: `0.0.29`
|
|
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
|
-
*
|
|
15
|
+
* MtnManagerApi - interface
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface MtnManagerApiInterface
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
241
|
+
exports.MtnManagerApi = MtnManagerApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './MtnManagerApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -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("./
|
|
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
|
-
*
|
|
15
|
+
* MtnManagerApi - interface
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface MtnManagerApiInterface
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
121
|
+
export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManagerApiInterface {
|
|
122
122
|
/**
|
|
123
123
|
* Get full report
|
|
124
124
|
*/
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './MtnManagerApi';
|
package/dist/esm/apis/index.js
CHANGED