@mtnmanager/sdk 0.0.10 → 0.0.11
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 +10 -16
- package/dist/apis/ReportApi.d.ts +24 -48
- package/dist/apis/ReportApi.js +24 -48
- package/dist/esm/apis/ReportApi.d.ts +24 -48
- package/dist/esm/apis/ReportApi.js +24 -48
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/dist/esm/models/PathSlug.d.ts +0 -32
- package/dist/esm/models/PathSlug.js +0 -43
- package/dist/models/PathSlug.d.ts +0 -32
- package/dist/models/PathSlug.js +0 -50
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.11
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -18,19 +18,14 @@ import {
|
|
|
18
18
|
Configuration,
|
|
19
19
|
ReportApi,
|
|
20
20
|
} from '@mtnmanager/sdk';
|
|
21
|
-
import type {
|
|
21
|
+
import type { ApiReportV1AllGetRequest } from '@mtnmanager/sdk';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @mtnmanager/sdk SDK...");
|
|
25
25
|
const api = new ReportApi();
|
|
26
26
|
|
|
27
|
-
const body = {
|
|
28
|
-
// string | Account slug
|
|
29
|
-
slug: slug_example,
|
|
30
|
-
} satisfies ApiReportV1SlugGetRequest;
|
|
31
|
-
|
|
32
27
|
try {
|
|
33
|
-
const data = await api.
|
|
28
|
+
const data = await api.apiReportV1AllGet();
|
|
34
29
|
console.log(data);
|
|
35
30
|
} catch (error) {
|
|
36
31
|
console.error(error);
|
|
@@ -50,12 +45,12 @@ All URIs are relative to *http://localhost:8787*
|
|
|
50
45
|
|
|
51
46
|
| Class | Method | HTTP request | Description
|
|
52
47
|
| ----- | ------ | ------------ | -------------
|
|
53
|
-
*ReportApi* | [**
|
|
54
|
-
*ReportApi* | [**
|
|
55
|
-
*ReportApi* | [**
|
|
56
|
-
*ReportApi* | [**
|
|
57
|
-
*ReportApi* | [**
|
|
58
|
-
*ReportApi* | [**
|
|
48
|
+
*ReportApi* | [**apiReportV1AllGet**](docs/ReportApi.md#apireportv1allget) | **GET** /api/report/v1/all |
|
|
49
|
+
*ReportApi* | [**apiReportV1HoursGet**](docs/ReportApi.md#apireportv1hoursget) | **GET** /api/report/v1/hours |
|
|
50
|
+
*ReportApi* | [**apiReportV1LiftsGet**](docs/ReportApi.md#apireportv1liftsget) | **GET** /api/report/v1/lifts |
|
|
51
|
+
*ReportApi* | [**apiReportV1RunsGet**](docs/ReportApi.md#apireportv1runsget) | **GET** /api/report/v1/runs |
|
|
52
|
+
*ReportApi* | [**apiReportV1SnowGet**](docs/ReportApi.md#apireportv1snowget) | **GET** /api/report/v1/snow |
|
|
53
|
+
*ReportApi* | [**apiReportV1StatusGet**](docs/ReportApi.md#apireportv1statusget) | **GET** /api/report/v1/status |
|
|
59
54
|
|
|
60
55
|
|
|
61
56
|
### Models
|
|
@@ -73,7 +68,6 @@ All URIs are relative to *http://localhost:8787*
|
|
|
73
68
|
- [LiftType](docs/LiftType.md)
|
|
74
69
|
- [MetricUnits](docs/MetricUnits.md)
|
|
75
70
|
- [OperatingHoursResponse](docs/OperatingHoursResponse.md)
|
|
76
|
-
- [PathSlug](docs/PathSlug.md)
|
|
77
71
|
- [PublicLift](docs/PublicLift.md)
|
|
78
72
|
- [PublicResortInfo](docs/PublicResortInfo.md)
|
|
79
73
|
- [PublicResortResponse](docs/PublicResortResponse.md)
|
|
@@ -107,7 +101,7 @@ and is automatically generated by the
|
|
|
107
101
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
108
102
|
|
|
109
103
|
- API version: `1.0.0`
|
|
110
|
-
- Package version: `0.0.
|
|
104
|
+
- Package version: `0.0.11`
|
|
111
105
|
- Generator version: `7.17.0`
|
|
112
106
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
113
107
|
|
package/dist/apis/ReportApi.d.ts
CHANGED
|
@@ -11,24 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { OperatingHoursResponse, PublicLift, PublicResortResponse, PublicResortStatus, PublicRun, PublicSnowResponse } from '../models/index';
|
|
14
|
-
export interface ApiReportV1SlugGetRequest {
|
|
15
|
-
slug: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ApiReportV1SlugHoursGetRequest {
|
|
18
|
-
slug: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ApiReportV1SlugLiftsGetRequest {
|
|
21
|
-
slug: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ApiReportV1SlugRunsGetRequest {
|
|
24
|
-
slug: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ApiReportV1SlugSnowGetRequest {
|
|
27
|
-
slug: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ApiReportV1SlugStatusGetRequest {
|
|
30
|
-
slug: string;
|
|
31
|
-
}
|
|
32
14
|
/**
|
|
33
15
|
* ReportApi - interface
|
|
34
16
|
*
|
|
@@ -38,70 +20,64 @@ export interface ApiReportV1SlugStatusGetRequest {
|
|
|
38
20
|
export interface ReportApiInterface {
|
|
39
21
|
/**
|
|
40
22
|
*
|
|
41
|
-
* @param {string} slug Account slug
|
|
42
23
|
* @param {*} [options] Override http request option.
|
|
43
24
|
* @throws {RequiredError}
|
|
44
25
|
* @memberof ReportApiInterface
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
apiReportV1AllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
|
|
47
28
|
/**
|
|
48
29
|
*/
|
|
49
|
-
|
|
30
|
+
apiReportV1AllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
|
|
50
31
|
/**
|
|
51
32
|
*
|
|
52
|
-
* @param {string} slug Account slug
|
|
53
33
|
* @param {*} [options] Override http request option.
|
|
54
34
|
* @throws {RequiredError}
|
|
55
35
|
* @memberof ReportApiInterface
|
|
56
36
|
*/
|
|
57
|
-
|
|
37
|
+
apiReportV1HoursGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
|
|
58
38
|
/**
|
|
59
39
|
*/
|
|
60
|
-
|
|
40
|
+
apiReportV1HoursGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
|
|
61
41
|
/**
|
|
62
42
|
*
|
|
63
|
-
* @param {string} slug Account slug
|
|
64
43
|
* @param {*} [options] Override http request option.
|
|
65
44
|
* @throws {RequiredError}
|
|
66
45
|
* @memberof ReportApiInterface
|
|
67
46
|
*/
|
|
68
|
-
|
|
47
|
+
apiReportV1LiftsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
|
|
69
48
|
/**
|
|
70
49
|
*/
|
|
71
|
-
|
|
50
|
+
apiReportV1LiftsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
|
|
72
51
|
/**
|
|
73
52
|
*
|
|
74
|
-
* @param {string} slug Account slug
|
|
75
53
|
* @param {*} [options] Override http request option.
|
|
76
54
|
* @throws {RequiredError}
|
|
77
55
|
* @memberof ReportApiInterface
|
|
78
56
|
*/
|
|
79
|
-
|
|
57
|
+
apiReportV1RunsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
|
|
80
58
|
/**
|
|
81
59
|
*/
|
|
82
|
-
|
|
60
|
+
apiReportV1RunsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicRun>>;
|
|
83
61
|
/**
|
|
84
62
|
*
|
|
85
|
-
* @param {string} slug Account slug
|
|
86
63
|
* @param {*} [options] Override http request option.
|
|
87
64
|
* @throws {RequiredError}
|
|
88
65
|
* @memberof ReportApiInterface
|
|
89
66
|
*/
|
|
90
|
-
|
|
67
|
+
apiReportV1SnowGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
|
|
91
68
|
/**
|
|
92
69
|
*/
|
|
93
|
-
|
|
70
|
+
apiReportV1SnowGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSnowResponse>;
|
|
94
71
|
/**
|
|
95
72
|
*
|
|
96
|
-
* @param {string} slug Account slug
|
|
97
73
|
* @param {*} [options] Override http request option.
|
|
98
74
|
* @throws {RequiredError}
|
|
99
75
|
* @memberof ReportApiInterface
|
|
100
76
|
*/
|
|
101
|
-
|
|
77
|
+
apiReportV1StatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
|
|
102
78
|
/**
|
|
103
79
|
*/
|
|
104
|
-
|
|
80
|
+
apiReportV1StatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
|
|
105
81
|
}
|
|
106
82
|
/**
|
|
107
83
|
*
|
|
@@ -109,38 +85,38 @@ export interface ReportApiInterface {
|
|
|
109
85
|
export declare class ReportApi extends runtime.BaseAPI implements ReportApiInterface {
|
|
110
86
|
/**
|
|
111
87
|
*/
|
|
112
|
-
|
|
88
|
+
apiReportV1AllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
|
|
113
89
|
/**
|
|
114
90
|
*/
|
|
115
|
-
|
|
91
|
+
apiReportV1AllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
|
|
116
92
|
/**
|
|
117
93
|
*/
|
|
118
|
-
|
|
94
|
+
apiReportV1HoursGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
|
|
119
95
|
/**
|
|
120
96
|
*/
|
|
121
|
-
|
|
97
|
+
apiReportV1HoursGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
|
|
122
98
|
/**
|
|
123
99
|
*/
|
|
124
|
-
|
|
100
|
+
apiReportV1LiftsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
|
|
125
101
|
/**
|
|
126
102
|
*/
|
|
127
|
-
|
|
103
|
+
apiReportV1LiftsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
|
|
128
104
|
/**
|
|
129
105
|
*/
|
|
130
|
-
|
|
106
|
+
apiReportV1RunsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
|
|
131
107
|
/**
|
|
132
108
|
*/
|
|
133
|
-
|
|
109
|
+
apiReportV1RunsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicRun>>;
|
|
134
110
|
/**
|
|
135
111
|
*/
|
|
136
|
-
|
|
112
|
+
apiReportV1SnowGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
|
|
137
113
|
/**
|
|
138
114
|
*/
|
|
139
|
-
|
|
115
|
+
apiReportV1SnowGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSnowResponse>;
|
|
140
116
|
/**
|
|
141
117
|
*/
|
|
142
|
-
|
|
118
|
+
apiReportV1StatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
|
|
143
119
|
/**
|
|
144
120
|
*/
|
|
145
|
-
|
|
121
|
+
apiReportV1StatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
|
|
146
122
|
}
|
package/dist/apis/ReportApi.js
CHANGED
|
@@ -31,15 +31,11 @@ const index_1 = require("../models/index");
|
|
|
31
31
|
class ReportApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
apiReportV1AllGetRaw(initOverrides) {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
if (requestParameters['slug'] == null) {
|
|
37
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugGet().');
|
|
38
|
-
}
|
|
39
36
|
const queryParameters = {};
|
|
40
37
|
const headerParameters = {};
|
|
41
|
-
let urlPath = `/api/report/v1/
|
|
42
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
38
|
+
let urlPath = `/api/report/v1/all`;
|
|
43
39
|
const response = yield this.request({
|
|
44
40
|
path: urlPath,
|
|
45
41
|
method: 'GET',
|
|
@@ -51,23 +47,19 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
51
47
|
}
|
|
52
48
|
/**
|
|
53
49
|
*/
|
|
54
|
-
|
|
50
|
+
apiReportV1AllGet(initOverrides) {
|
|
55
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const response = yield this.
|
|
52
|
+
const response = yield this.apiReportV1AllGetRaw(initOverrides);
|
|
57
53
|
return yield response.value();
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
56
|
/**
|
|
61
57
|
*/
|
|
62
|
-
|
|
58
|
+
apiReportV1HoursGetRaw(initOverrides) {
|
|
63
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
if (requestParameters['slug'] == null) {
|
|
65
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugHoursGet().');
|
|
66
|
-
}
|
|
67
60
|
const queryParameters = {};
|
|
68
61
|
const headerParameters = {};
|
|
69
|
-
let urlPath = `/api/report/v1/
|
|
70
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
62
|
+
let urlPath = `/api/report/v1/hours`;
|
|
71
63
|
const response = yield this.request({
|
|
72
64
|
path: urlPath,
|
|
73
65
|
method: 'GET',
|
|
@@ -79,23 +71,19 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
79
71
|
}
|
|
80
72
|
/**
|
|
81
73
|
*/
|
|
82
|
-
|
|
74
|
+
apiReportV1HoursGet(initOverrides) {
|
|
83
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
const response = yield this.
|
|
76
|
+
const response = yield this.apiReportV1HoursGetRaw(initOverrides);
|
|
85
77
|
return yield response.value();
|
|
86
78
|
});
|
|
87
79
|
}
|
|
88
80
|
/**
|
|
89
81
|
*/
|
|
90
|
-
|
|
82
|
+
apiReportV1LiftsGetRaw(initOverrides) {
|
|
91
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
if (requestParameters['slug'] == null) {
|
|
93
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugLiftsGet().');
|
|
94
|
-
}
|
|
95
84
|
const queryParameters = {};
|
|
96
85
|
const headerParameters = {};
|
|
97
|
-
let urlPath = `/api/report/v1/
|
|
98
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
86
|
+
let urlPath = `/api/report/v1/lifts`;
|
|
99
87
|
const response = yield this.request({
|
|
100
88
|
path: urlPath,
|
|
101
89
|
method: 'GET',
|
|
@@ -107,23 +95,19 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
107
95
|
}
|
|
108
96
|
/**
|
|
109
97
|
*/
|
|
110
|
-
|
|
98
|
+
apiReportV1LiftsGet(initOverrides) {
|
|
111
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
-
const response = yield this.
|
|
100
|
+
const response = yield this.apiReportV1LiftsGetRaw(initOverrides);
|
|
113
101
|
return yield response.value();
|
|
114
102
|
});
|
|
115
103
|
}
|
|
116
104
|
/**
|
|
117
105
|
*/
|
|
118
|
-
|
|
106
|
+
apiReportV1RunsGetRaw(initOverrides) {
|
|
119
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
if (requestParameters['slug'] == null) {
|
|
121
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugRunsGet().');
|
|
122
|
-
}
|
|
123
108
|
const queryParameters = {};
|
|
124
109
|
const headerParameters = {};
|
|
125
|
-
let urlPath = `/api/report/v1/
|
|
126
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
110
|
+
let urlPath = `/api/report/v1/runs`;
|
|
127
111
|
const response = yield this.request({
|
|
128
112
|
path: urlPath,
|
|
129
113
|
method: 'GET',
|
|
@@ -135,23 +119,19 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
135
119
|
}
|
|
136
120
|
/**
|
|
137
121
|
*/
|
|
138
|
-
|
|
122
|
+
apiReportV1RunsGet(initOverrides) {
|
|
139
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
const response = yield this.
|
|
124
|
+
const response = yield this.apiReportV1RunsGetRaw(initOverrides);
|
|
141
125
|
return yield response.value();
|
|
142
126
|
});
|
|
143
127
|
}
|
|
144
128
|
/**
|
|
145
129
|
*/
|
|
146
|
-
|
|
130
|
+
apiReportV1SnowGetRaw(initOverrides) {
|
|
147
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
if (requestParameters['slug'] == null) {
|
|
149
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugSnowGet().');
|
|
150
|
-
}
|
|
151
132
|
const queryParameters = {};
|
|
152
133
|
const headerParameters = {};
|
|
153
|
-
let urlPath = `/api/report/v1/
|
|
154
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
134
|
+
let urlPath = `/api/report/v1/snow`;
|
|
155
135
|
const response = yield this.request({
|
|
156
136
|
path: urlPath,
|
|
157
137
|
method: 'GET',
|
|
@@ -163,23 +143,19 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
163
143
|
}
|
|
164
144
|
/**
|
|
165
145
|
*/
|
|
166
|
-
|
|
146
|
+
apiReportV1SnowGet(initOverrides) {
|
|
167
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
const response = yield this.
|
|
148
|
+
const response = yield this.apiReportV1SnowGetRaw(initOverrides);
|
|
169
149
|
return yield response.value();
|
|
170
150
|
});
|
|
171
151
|
}
|
|
172
152
|
/**
|
|
173
153
|
*/
|
|
174
|
-
|
|
154
|
+
apiReportV1StatusGetRaw(initOverrides) {
|
|
175
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
if (requestParameters['slug'] == null) {
|
|
177
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugStatusGet().');
|
|
178
|
-
}
|
|
179
156
|
const queryParameters = {};
|
|
180
157
|
const headerParameters = {};
|
|
181
|
-
let urlPath = `/api/report/v1/
|
|
182
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
158
|
+
let urlPath = `/api/report/v1/status`;
|
|
183
159
|
const response = yield this.request({
|
|
184
160
|
path: urlPath,
|
|
185
161
|
method: 'GET',
|
|
@@ -191,9 +167,9 @@ class ReportApi extends runtime.BaseAPI {
|
|
|
191
167
|
}
|
|
192
168
|
/**
|
|
193
169
|
*/
|
|
194
|
-
|
|
170
|
+
apiReportV1StatusGet(initOverrides) {
|
|
195
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
const response = yield this.
|
|
172
|
+
const response = yield this.apiReportV1StatusGetRaw(initOverrides);
|
|
197
173
|
return yield response.value();
|
|
198
174
|
});
|
|
199
175
|
}
|
|
@@ -11,24 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { OperatingHoursResponse, PublicLift, PublicResortResponse, PublicResortStatus, PublicRun, PublicSnowResponse } from '../models/index';
|
|
14
|
-
export interface ApiReportV1SlugGetRequest {
|
|
15
|
-
slug: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ApiReportV1SlugHoursGetRequest {
|
|
18
|
-
slug: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ApiReportV1SlugLiftsGetRequest {
|
|
21
|
-
slug: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ApiReportV1SlugRunsGetRequest {
|
|
24
|
-
slug: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ApiReportV1SlugSnowGetRequest {
|
|
27
|
-
slug: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ApiReportV1SlugStatusGetRequest {
|
|
30
|
-
slug: string;
|
|
31
|
-
}
|
|
32
14
|
/**
|
|
33
15
|
* ReportApi - interface
|
|
34
16
|
*
|
|
@@ -38,70 +20,64 @@ export interface ApiReportV1SlugStatusGetRequest {
|
|
|
38
20
|
export interface ReportApiInterface {
|
|
39
21
|
/**
|
|
40
22
|
*
|
|
41
|
-
* @param {string} slug Account slug
|
|
42
23
|
* @param {*} [options] Override http request option.
|
|
43
24
|
* @throws {RequiredError}
|
|
44
25
|
* @memberof ReportApiInterface
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
apiReportV1AllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
|
|
47
28
|
/**
|
|
48
29
|
*/
|
|
49
|
-
|
|
30
|
+
apiReportV1AllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
|
|
50
31
|
/**
|
|
51
32
|
*
|
|
52
|
-
* @param {string} slug Account slug
|
|
53
33
|
* @param {*} [options] Override http request option.
|
|
54
34
|
* @throws {RequiredError}
|
|
55
35
|
* @memberof ReportApiInterface
|
|
56
36
|
*/
|
|
57
|
-
|
|
37
|
+
apiReportV1HoursGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
|
|
58
38
|
/**
|
|
59
39
|
*/
|
|
60
|
-
|
|
40
|
+
apiReportV1HoursGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
|
|
61
41
|
/**
|
|
62
42
|
*
|
|
63
|
-
* @param {string} slug Account slug
|
|
64
43
|
* @param {*} [options] Override http request option.
|
|
65
44
|
* @throws {RequiredError}
|
|
66
45
|
* @memberof ReportApiInterface
|
|
67
46
|
*/
|
|
68
|
-
|
|
47
|
+
apiReportV1LiftsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
|
|
69
48
|
/**
|
|
70
49
|
*/
|
|
71
|
-
|
|
50
|
+
apiReportV1LiftsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
|
|
72
51
|
/**
|
|
73
52
|
*
|
|
74
|
-
* @param {string} slug Account slug
|
|
75
53
|
* @param {*} [options] Override http request option.
|
|
76
54
|
* @throws {RequiredError}
|
|
77
55
|
* @memberof ReportApiInterface
|
|
78
56
|
*/
|
|
79
|
-
|
|
57
|
+
apiReportV1RunsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
|
|
80
58
|
/**
|
|
81
59
|
*/
|
|
82
|
-
|
|
60
|
+
apiReportV1RunsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicRun>>;
|
|
83
61
|
/**
|
|
84
62
|
*
|
|
85
|
-
* @param {string} slug Account slug
|
|
86
63
|
* @param {*} [options] Override http request option.
|
|
87
64
|
* @throws {RequiredError}
|
|
88
65
|
* @memberof ReportApiInterface
|
|
89
66
|
*/
|
|
90
|
-
|
|
67
|
+
apiReportV1SnowGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
|
|
91
68
|
/**
|
|
92
69
|
*/
|
|
93
|
-
|
|
70
|
+
apiReportV1SnowGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSnowResponse>;
|
|
94
71
|
/**
|
|
95
72
|
*
|
|
96
|
-
* @param {string} slug Account slug
|
|
97
73
|
* @param {*} [options] Override http request option.
|
|
98
74
|
* @throws {RequiredError}
|
|
99
75
|
* @memberof ReportApiInterface
|
|
100
76
|
*/
|
|
101
|
-
|
|
77
|
+
apiReportV1StatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
|
|
102
78
|
/**
|
|
103
79
|
*/
|
|
104
|
-
|
|
80
|
+
apiReportV1StatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
|
|
105
81
|
}
|
|
106
82
|
/**
|
|
107
83
|
*
|
|
@@ -109,38 +85,38 @@ export interface ReportApiInterface {
|
|
|
109
85
|
export declare class ReportApi extends runtime.BaseAPI implements ReportApiInterface {
|
|
110
86
|
/**
|
|
111
87
|
*/
|
|
112
|
-
|
|
88
|
+
apiReportV1AllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortResponse>>;
|
|
113
89
|
/**
|
|
114
90
|
*/
|
|
115
|
-
|
|
91
|
+
apiReportV1AllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortResponse>;
|
|
116
92
|
/**
|
|
117
93
|
*/
|
|
118
|
-
|
|
94
|
+
apiReportV1HoursGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OperatingHoursResponse>>;
|
|
119
95
|
/**
|
|
120
96
|
*/
|
|
121
|
-
|
|
97
|
+
apiReportV1HoursGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHoursResponse>;
|
|
122
98
|
/**
|
|
123
99
|
*/
|
|
124
|
-
|
|
100
|
+
apiReportV1LiftsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicLift>>>;
|
|
125
101
|
/**
|
|
126
102
|
*/
|
|
127
|
-
|
|
103
|
+
apiReportV1LiftsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicLift>>;
|
|
128
104
|
/**
|
|
129
105
|
*/
|
|
130
|
-
|
|
106
|
+
apiReportV1RunsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PublicRun>>>;
|
|
131
107
|
/**
|
|
132
108
|
*/
|
|
133
|
-
|
|
109
|
+
apiReportV1RunsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PublicRun>>;
|
|
134
110
|
/**
|
|
135
111
|
*/
|
|
136
|
-
|
|
112
|
+
apiReportV1SnowGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicSnowResponse>>;
|
|
137
113
|
/**
|
|
138
114
|
*/
|
|
139
|
-
|
|
115
|
+
apiReportV1SnowGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicSnowResponse>;
|
|
140
116
|
/**
|
|
141
117
|
*/
|
|
142
|
-
|
|
118
|
+
apiReportV1StatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicResortStatus>>;
|
|
143
119
|
/**
|
|
144
120
|
*/
|
|
145
|
-
|
|
121
|
+
apiReportV1StatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicResortStatus>;
|
|
146
122
|
}
|
|
@@ -28,15 +28,11 @@ import { OperatingHoursResponseFromJSON, PublicLiftFromJSON, PublicResortRespons
|
|
|
28
28
|
export class ReportApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
apiReportV1AllGetRaw(initOverrides) {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
if (requestParameters['slug'] == null) {
|
|
34
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugGet().');
|
|
35
|
-
}
|
|
36
33
|
const queryParameters = {};
|
|
37
34
|
const headerParameters = {};
|
|
38
|
-
let urlPath = `/api/report/v1/
|
|
39
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
35
|
+
let urlPath = `/api/report/v1/all`;
|
|
40
36
|
const response = yield this.request({
|
|
41
37
|
path: urlPath,
|
|
42
38
|
method: 'GET',
|
|
@@ -48,23 +44,19 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
48
44
|
}
|
|
49
45
|
/**
|
|
50
46
|
*/
|
|
51
|
-
|
|
47
|
+
apiReportV1AllGet(initOverrides) {
|
|
52
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const response = yield this.
|
|
49
|
+
const response = yield this.apiReportV1AllGetRaw(initOverrides);
|
|
54
50
|
return yield response.value();
|
|
55
51
|
});
|
|
56
52
|
}
|
|
57
53
|
/**
|
|
58
54
|
*/
|
|
59
|
-
|
|
55
|
+
apiReportV1HoursGetRaw(initOverrides) {
|
|
60
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
if (requestParameters['slug'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugHoursGet().');
|
|
63
|
-
}
|
|
64
57
|
const queryParameters = {};
|
|
65
58
|
const headerParameters = {};
|
|
66
|
-
let urlPath = `/api/report/v1/
|
|
67
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
59
|
+
let urlPath = `/api/report/v1/hours`;
|
|
68
60
|
const response = yield this.request({
|
|
69
61
|
path: urlPath,
|
|
70
62
|
method: 'GET',
|
|
@@ -76,23 +68,19 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
76
68
|
}
|
|
77
69
|
/**
|
|
78
70
|
*/
|
|
79
|
-
|
|
71
|
+
apiReportV1HoursGet(initOverrides) {
|
|
80
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const response = yield this.
|
|
73
|
+
const response = yield this.apiReportV1HoursGetRaw(initOverrides);
|
|
82
74
|
return yield response.value();
|
|
83
75
|
});
|
|
84
76
|
}
|
|
85
77
|
/**
|
|
86
78
|
*/
|
|
87
|
-
|
|
79
|
+
apiReportV1LiftsGetRaw(initOverrides) {
|
|
88
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
if (requestParameters['slug'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugLiftsGet().');
|
|
91
|
-
}
|
|
92
81
|
const queryParameters = {};
|
|
93
82
|
const headerParameters = {};
|
|
94
|
-
let urlPath = `/api/report/v1/
|
|
95
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
83
|
+
let urlPath = `/api/report/v1/lifts`;
|
|
96
84
|
const response = yield this.request({
|
|
97
85
|
path: urlPath,
|
|
98
86
|
method: 'GET',
|
|
@@ -104,23 +92,19 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
104
92
|
}
|
|
105
93
|
/**
|
|
106
94
|
*/
|
|
107
|
-
|
|
95
|
+
apiReportV1LiftsGet(initOverrides) {
|
|
108
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
const response = yield this.
|
|
97
|
+
const response = yield this.apiReportV1LiftsGetRaw(initOverrides);
|
|
110
98
|
return yield response.value();
|
|
111
99
|
});
|
|
112
100
|
}
|
|
113
101
|
/**
|
|
114
102
|
*/
|
|
115
|
-
|
|
103
|
+
apiReportV1RunsGetRaw(initOverrides) {
|
|
116
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
if (requestParameters['slug'] == null) {
|
|
118
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugRunsGet().');
|
|
119
|
-
}
|
|
120
105
|
const queryParameters = {};
|
|
121
106
|
const headerParameters = {};
|
|
122
|
-
let urlPath = `/api/report/v1/
|
|
123
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
107
|
+
let urlPath = `/api/report/v1/runs`;
|
|
124
108
|
const response = yield this.request({
|
|
125
109
|
path: urlPath,
|
|
126
110
|
method: 'GET',
|
|
@@ -132,23 +116,19 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
132
116
|
}
|
|
133
117
|
/**
|
|
134
118
|
*/
|
|
135
|
-
|
|
119
|
+
apiReportV1RunsGet(initOverrides) {
|
|
136
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
-
const response = yield this.
|
|
121
|
+
const response = yield this.apiReportV1RunsGetRaw(initOverrides);
|
|
138
122
|
return yield response.value();
|
|
139
123
|
});
|
|
140
124
|
}
|
|
141
125
|
/**
|
|
142
126
|
*/
|
|
143
|
-
|
|
127
|
+
apiReportV1SnowGetRaw(initOverrides) {
|
|
144
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
if (requestParameters['slug'] == null) {
|
|
146
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugSnowGet().');
|
|
147
|
-
}
|
|
148
129
|
const queryParameters = {};
|
|
149
130
|
const headerParameters = {};
|
|
150
|
-
let urlPath = `/api/report/v1/
|
|
151
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
131
|
+
let urlPath = `/api/report/v1/snow`;
|
|
152
132
|
const response = yield this.request({
|
|
153
133
|
path: urlPath,
|
|
154
134
|
method: 'GET',
|
|
@@ -160,23 +140,19 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
160
140
|
}
|
|
161
141
|
/**
|
|
162
142
|
*/
|
|
163
|
-
|
|
143
|
+
apiReportV1SnowGet(initOverrides) {
|
|
164
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
const response = yield this.
|
|
145
|
+
const response = yield this.apiReportV1SnowGetRaw(initOverrides);
|
|
166
146
|
return yield response.value();
|
|
167
147
|
});
|
|
168
148
|
}
|
|
169
149
|
/**
|
|
170
150
|
*/
|
|
171
|
-
|
|
151
|
+
apiReportV1StatusGetRaw(initOverrides) {
|
|
172
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
-
if (requestParameters['slug'] == null) {
|
|
174
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling apiReportV1SlugStatusGet().');
|
|
175
|
-
}
|
|
176
153
|
const queryParameters = {};
|
|
177
154
|
const headerParameters = {};
|
|
178
|
-
let urlPath = `/api/report/v1/
|
|
179
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
155
|
+
let urlPath = `/api/report/v1/status`;
|
|
180
156
|
const response = yield this.request({
|
|
181
157
|
path: urlPath,
|
|
182
158
|
method: 'GET',
|
|
@@ -188,9 +164,9 @@ export class ReportApi extends runtime.BaseAPI {
|
|
|
188
164
|
}
|
|
189
165
|
/**
|
|
190
166
|
*/
|
|
191
|
-
|
|
167
|
+
apiReportV1StatusGet(initOverrides) {
|
|
192
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
const response = yield this.
|
|
169
|
+
const response = yield this.apiReportV1StatusGetRaw(initOverrides);
|
|
194
170
|
return yield response.value();
|
|
195
171
|
});
|
|
196
172
|
}
|
|
@@ -11,7 +11,6 @@ export * from './LiftStatus';
|
|
|
11
11
|
export * from './LiftType';
|
|
12
12
|
export * from './MetricUnits';
|
|
13
13
|
export * from './OperatingHoursResponse';
|
|
14
|
-
export * from './PathSlug';
|
|
15
14
|
export * from './PublicLift';
|
|
16
15
|
export * from './PublicResortInfo';
|
|
17
16
|
export * from './PublicResortResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -13,7 +13,6 @@ export * from './LiftStatus';
|
|
|
13
13
|
export * from './LiftType';
|
|
14
14
|
export * from './MetricUnits';
|
|
15
15
|
export * from './OperatingHoursResponse';
|
|
16
|
-
export * from './PathSlug';
|
|
17
16
|
export * from './PublicLift';
|
|
18
17
|
export * from './PublicResortInfo';
|
|
19
18
|
export * from './PublicResortResponse';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export * from './LiftStatus';
|
|
|
11
11
|
export * from './LiftType';
|
|
12
12
|
export * from './MetricUnits';
|
|
13
13
|
export * from './OperatingHoursResponse';
|
|
14
|
-
export * from './PathSlug';
|
|
15
14
|
export * from './PublicLift';
|
|
16
15
|
export * from './PublicResortInfo';
|
|
17
16
|
export * from './PublicResortResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -29,7 +29,6 @@ __exportStar(require("./LiftStatus"), exports);
|
|
|
29
29
|
__exportStar(require("./LiftType"), exports);
|
|
30
30
|
__exportStar(require("./MetricUnits"), exports);
|
|
31
31
|
__exportStar(require("./OperatingHoursResponse"), exports);
|
|
32
|
-
__exportStar(require("./PathSlug"), exports);
|
|
33
32
|
__exportStar(require("./PublicLift"), exports);
|
|
34
33
|
__exportStar(require("./PublicResortInfo"), exports);
|
|
35
34
|
__exportStar(require("./PublicResortResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MtnManager API
|
|
3
|
-
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PathSlug
|
|
16
|
-
*/
|
|
17
|
-
export interface PathSlug {
|
|
18
|
-
/**
|
|
19
|
-
* Account slug
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PathSlug
|
|
22
|
-
*/
|
|
23
|
-
slug: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the PathSlug interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfPathSlug(value: object): value is PathSlug;
|
|
29
|
-
export declare function PathSlugFromJSON(json: any): PathSlug;
|
|
30
|
-
export declare function PathSlugFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSlug;
|
|
31
|
-
export declare function PathSlugToJSON(json: any): PathSlug;
|
|
32
|
-
export declare function PathSlugToJSONTyped(value?: PathSlug | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* MtnManager API
|
|
5
|
-
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
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
|
-
* Check if a given object implements the PathSlug interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfPathSlug(value) {
|
|
18
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function PathSlugFromJSON(json) {
|
|
23
|
-
return PathSlugFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function PathSlugFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'slug': json['slug'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function PathSlugToJSON(json) {
|
|
34
|
-
return PathSlugToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function PathSlugToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'slug': value['slug'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MtnManager API
|
|
3
|
-
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PathSlug
|
|
16
|
-
*/
|
|
17
|
-
export interface PathSlug {
|
|
18
|
-
/**
|
|
19
|
-
* Account slug
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PathSlug
|
|
22
|
-
*/
|
|
23
|
-
slug: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the PathSlug interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfPathSlug(value: object): value is PathSlug;
|
|
29
|
-
export declare function PathSlugFromJSON(json: any): PathSlug;
|
|
30
|
-
export declare function PathSlugFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathSlug;
|
|
31
|
-
export declare function PathSlugToJSON(json: any): PathSlug;
|
|
32
|
-
export declare function PathSlugToJSONTyped(value?: PathSlug | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/PathSlug.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* MtnManager API
|
|
6
|
-
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
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.instanceOfPathSlug = instanceOfPathSlug;
|
|
17
|
-
exports.PathSlugFromJSON = PathSlugFromJSON;
|
|
18
|
-
exports.PathSlugFromJSONTyped = PathSlugFromJSONTyped;
|
|
19
|
-
exports.PathSlugToJSON = PathSlugToJSON;
|
|
20
|
-
exports.PathSlugToJSONTyped = PathSlugToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the PathSlug interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfPathSlug(value) {
|
|
25
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function PathSlugFromJSON(json) {
|
|
30
|
-
return PathSlugFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function PathSlugFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'slug': json['slug'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function PathSlugToJSON(json) {
|
|
41
|
-
return PathSlugToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function PathSlugToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'slug': value['slug'],
|
|
49
|
-
};
|
|
50
|
-
}
|