@mtnmanager/sdk 0.0.4 → 0.0.5
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 +3 -2
- package/dist/esm/models/PublicResortStatus.d.ts +8 -1
- package/dist/esm/models/PublicResortStatus.js +8 -1
- package/dist/esm/models/PublicRun.d.ts +1 -1
- package/dist/esm/models/PublicRun.js +3 -1
- package/dist/esm/models/PublicSnowReport.d.ts +1 -1
- package/dist/esm/models/PublicSnowReport.js +3 -1
- package/dist/esm/models/ResortStatusType.d.ts +0 -1
- package/dist/esm/models/ResortStatusType.js +1 -2
- package/dist/esm/models/SeasonType.d.ts +26 -0
- package/dist/esm/models/SeasonType.js +44 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/PublicResortStatus.d.ts +8 -1
- package/dist/models/PublicResortStatus.js +8 -1
- package/dist/models/PublicRun.d.ts +1 -1
- package/dist/models/PublicRun.js +3 -1
- package/dist/models/PublicSnowReport.d.ts +1 -1
- package/dist/models/PublicSnowReport.js +3 -1
- package/dist/models/ResortStatusType.d.ts +0 -1
- package/dist/models/ResortStatusType.js +1 -2
- package/dist/models/SeasonType.d.ts +26 -0
- package/dist/models/SeasonType.js +52 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.5
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -88,6 +88,7 @@ All URIs are relative to *http://localhost:8787*
|
|
|
88
88
|
- [RunDifficulty](docs/RunDifficulty.md)
|
|
89
89
|
- [RunStatus](docs/RunStatus.md)
|
|
90
90
|
- [Schedule](docs/Schedule.md)
|
|
91
|
+
- [SeasonType](docs/SeasonType.md)
|
|
91
92
|
- [SnowMetrics](docs/SnowMetrics.md)
|
|
92
93
|
- [SurfaceCondition](docs/SurfaceCondition.md)
|
|
93
94
|
- [UnitPreference](docs/UnitPreference.md)
|
|
@@ -105,7 +106,7 @@ and is automatically generated by the
|
|
|
105
106
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
106
107
|
|
|
107
108
|
- API version: `0.1.0`
|
|
108
|
-
- Package version: `0.0.
|
|
109
|
+
- Package version: `0.0.5`
|
|
109
110
|
- Generator version: `7.17.0`
|
|
110
111
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
111
112
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SeasonType } from './SeasonType';
|
|
12
13
|
import type { ResortStatusType } from './ResortStatusType';
|
|
13
14
|
/**
|
|
14
15
|
* Resort status with optional metadata and today's scheduled hours
|
|
@@ -27,7 +28,7 @@ export interface PublicResortStatus {
|
|
|
27
28
|
* @type {string}
|
|
28
29
|
* @memberof PublicResortStatus
|
|
29
30
|
*/
|
|
30
|
-
notes
|
|
31
|
+
notes: string;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
34
|
* @type {number}
|
|
@@ -52,6 +53,12 @@ export interface PublicResortStatus {
|
|
|
52
53
|
* @memberof PublicResortStatus
|
|
53
54
|
*/
|
|
54
55
|
scheduledOpensAt?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SeasonType}
|
|
59
|
+
* @memberof PublicResortStatus
|
|
60
|
+
*/
|
|
61
|
+
season: SeasonType;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {ResortStatusType}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
|
|
14
15
|
import { ResortStatusTypeFromJSON, ResortStatusTypeToJSON, } from './ResortStatusType';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -18,10 +19,14 @@ import { ResortStatusTypeFromJSON, ResortStatusTypeToJSON, } from './ResortStatu
|
|
|
18
19
|
export function instanceOfPublicResortStatus(value) {
|
|
19
20
|
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
20
21
|
return false;
|
|
22
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
23
|
+
return false;
|
|
21
24
|
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
22
25
|
return false;
|
|
23
26
|
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
24
27
|
return false;
|
|
28
|
+
if (!('season' in value) || value['season'] === undefined)
|
|
29
|
+
return false;
|
|
25
30
|
if (!('status' in value) || value['status'] === undefined)
|
|
26
31
|
return false;
|
|
27
32
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
@@ -39,11 +44,12 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
44
|
}
|
|
40
45
|
return {
|
|
41
46
|
'groomedRuns': json['groomed_runs'],
|
|
42
|
-
'notes': json['notes']
|
|
47
|
+
'notes': json['notes'],
|
|
43
48
|
'openLifts': json['open_lifts'],
|
|
44
49
|
'openRuns': json['open_runs'],
|
|
45
50
|
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
46
51
|
'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
|
|
52
|
+
'season': SeasonTypeFromJSON(json['season']),
|
|
47
53
|
'status': ResortStatusTypeFromJSON(json['status']),
|
|
48
54
|
'totalLifts': json['total_lifts'],
|
|
49
55
|
'totalRuns': json['total_runs'],
|
|
@@ -64,6 +70,7 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
64
70
|
'open_runs': value['openRuns'],
|
|
65
71
|
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
66
72
|
'scheduled_opens_at': value['scheduledOpensAt'],
|
|
73
|
+
'season': SeasonTypeToJSON(value['season']),
|
|
67
74
|
'status': ResortStatusTypeToJSON(value['status']),
|
|
68
75
|
'total_lifts': value['totalLifts'],
|
|
69
76
|
'total_runs': value['totalRuns'],
|
|
@@ -17,6 +17,8 @@ import { RunDifficultyFromJSON, RunDifficultyToJSON, } from './RunDifficulty';
|
|
|
17
17
|
* Check if a given object implements the PublicRun interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfPublicRun(value) {
|
|
20
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
if (!('difficulty' in value) || value['difficulty'] === undefined)
|
|
21
23
|
return false;
|
|
22
24
|
if (!('groomedToday' in value) || value['groomedToday'] === undefined)
|
|
@@ -41,7 +43,7 @@ export function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
return {
|
|
42
44
|
'areaId': json['area_id'] == null ? undefined : json['area_id'],
|
|
43
45
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
44
|
-
'conditionNotes': json['condition_notes']
|
|
46
|
+
'conditionNotes': json['condition_notes'],
|
|
45
47
|
'difficulty': RunDifficultyFromJSON(json['difficulty']),
|
|
46
48
|
'groomedToday': json['groomed_today'],
|
|
47
49
|
'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
|
|
@@ -17,6 +17,8 @@ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCond
|
|
|
17
17
|
* Check if a given object implements the PublicSnowReport interface.
|
|
18
18
|
*/
|
|
19
19
|
export function instanceOfPublicSnowReport(value) {
|
|
20
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
if (!('reportedAt' in value) || value['reportedAt'] === undefined)
|
|
21
23
|
return false;
|
|
22
24
|
if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
|
|
@@ -39,7 +41,7 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
40
42
|
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
41
43
|
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
42
|
-
'conditionNotes': json['condition_notes']
|
|
44
|
+
'conditionNotes': json['condition_notes'],
|
|
43
45
|
'reportedAt': (new Date(json['reported_at'])),
|
|
44
46
|
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
45
47
|
'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
export declare const ResortStatusType: {
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
|
-
readonly ClosedForSeason: "closed_for_season";
|
|
20
19
|
};
|
|
21
20
|
export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
|
|
22
21
|
export declare function instanceOfResortStatusType(value: any): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
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: 0.1.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
|
+
*/
|
|
16
|
+
export declare const SeasonType: {
|
|
17
|
+
readonly Winter: "winter";
|
|
18
|
+
readonly Summer: "summer";
|
|
19
|
+
readonly Closed: "closed";
|
|
20
|
+
};
|
|
21
|
+
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
|
+
export declare function instanceOfSeasonType(value: any): boolean;
|
|
23
|
+
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
24
|
+
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -0,0 +1,44 @@
|
|
|
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: 0.1.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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SeasonType = {
|
|
19
|
+
Winter: 'winter',
|
|
20
|
+
Summer: 'summer',
|
|
21
|
+
Closed: 'closed'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSeasonType(value) {
|
|
24
|
+
for (const key in SeasonType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SeasonType, key)) {
|
|
26
|
+
if (SeasonType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function SeasonTypeFromJSON(json) {
|
|
34
|
+
return SeasonTypeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SeasonTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -26,6 +26,7 @@ export * from './ResortStatusType';
|
|
|
26
26
|
export * from './RunDifficulty';
|
|
27
27
|
export * from './RunStatus';
|
|
28
28
|
export * from './Schedule';
|
|
29
|
+
export * from './SeasonType';
|
|
29
30
|
export * from './SnowMetrics';
|
|
30
31
|
export * from './SurfaceCondition';
|
|
31
32
|
export * from './UnitPreference';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export * from './ResortStatusType';
|
|
|
28
28
|
export * from './RunDifficulty';
|
|
29
29
|
export * from './RunStatus';
|
|
30
30
|
export * from './Schedule';
|
|
31
|
+
export * from './SeasonType';
|
|
31
32
|
export * from './SnowMetrics';
|
|
32
33
|
export * from './SurfaceCondition';
|
|
33
34
|
export * from './UnitPreference';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SeasonType } from './SeasonType';
|
|
12
13
|
import type { ResortStatusType } from './ResortStatusType';
|
|
13
14
|
/**
|
|
14
15
|
* Resort status with optional metadata and today's scheduled hours
|
|
@@ -27,7 +28,7 @@ export interface PublicResortStatus {
|
|
|
27
28
|
* @type {string}
|
|
28
29
|
* @memberof PublicResortStatus
|
|
29
30
|
*/
|
|
30
|
-
notes
|
|
31
|
+
notes: string;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
34
|
* @type {number}
|
|
@@ -52,6 +53,12 @@ export interface PublicResortStatus {
|
|
|
52
53
|
* @memberof PublicResortStatus
|
|
53
54
|
*/
|
|
54
55
|
scheduledOpensAt?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SeasonType}
|
|
59
|
+
* @memberof PublicResortStatus
|
|
60
|
+
*/
|
|
61
|
+
season: SeasonType;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {ResortStatusType}
|
|
@@ -18,6 +18,7 @@ exports.PublicResortStatusFromJSON = PublicResortStatusFromJSON;
|
|
|
18
18
|
exports.PublicResortStatusFromJSONTyped = PublicResortStatusFromJSONTyped;
|
|
19
19
|
exports.PublicResortStatusToJSON = PublicResortStatusToJSON;
|
|
20
20
|
exports.PublicResortStatusToJSONTyped = PublicResortStatusToJSONTyped;
|
|
21
|
+
const SeasonType_1 = require("./SeasonType");
|
|
21
22
|
const ResortStatusType_1 = require("./ResortStatusType");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -25,10 +26,14 @@ const ResortStatusType_1 = require("./ResortStatusType");
|
|
|
25
26
|
function instanceOfPublicResortStatus(value) {
|
|
26
27
|
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
30
|
+
return false;
|
|
28
31
|
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
29
32
|
return false;
|
|
30
33
|
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
31
34
|
return false;
|
|
35
|
+
if (!('season' in value) || value['season'] === undefined)
|
|
36
|
+
return false;
|
|
32
37
|
if (!('status' in value) || value['status'] === undefined)
|
|
33
38
|
return false;
|
|
34
39
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
@@ -46,11 +51,12 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
51
|
}
|
|
47
52
|
return {
|
|
48
53
|
'groomedRuns': json['groomed_runs'],
|
|
49
|
-
'notes': json['notes']
|
|
54
|
+
'notes': json['notes'],
|
|
50
55
|
'openLifts': json['open_lifts'],
|
|
51
56
|
'openRuns': json['open_runs'],
|
|
52
57
|
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
53
58
|
'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
|
|
59
|
+
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
54
60
|
'status': (0, ResortStatusType_1.ResortStatusTypeFromJSON)(json['status']),
|
|
55
61
|
'totalLifts': json['total_lifts'],
|
|
56
62
|
'totalRuns': json['total_runs'],
|
|
@@ -71,6 +77,7 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
77
|
'open_runs': value['openRuns'],
|
|
72
78
|
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
73
79
|
'scheduled_opens_at': value['scheduledOpensAt'],
|
|
80
|
+
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
74
81
|
'status': (0, ResortStatusType_1.ResortStatusTypeToJSON)(value['status']),
|
|
75
82
|
'total_lifts': value['totalLifts'],
|
|
76
83
|
'total_runs': value['totalRuns'],
|
package/dist/models/PublicRun.js
CHANGED
|
@@ -24,6 +24,8 @@ const RunDifficulty_1 = require("./RunDifficulty");
|
|
|
24
24
|
* Check if a given object implements the PublicRun interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfPublicRun(value) {
|
|
27
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('difficulty' in value) || value['difficulty'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('groomedToday' in value) || value['groomedToday'] === undefined)
|
|
@@ -48,7 +50,7 @@ function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'areaId': json['area_id'] == null ? undefined : json['area_id'],
|
|
50
52
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
51
|
-
'conditionNotes': json['condition_notes']
|
|
53
|
+
'conditionNotes': json['condition_notes'],
|
|
52
54
|
'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
|
|
53
55
|
'groomedToday': json['groomed_today'],
|
|
54
56
|
'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
|
|
@@ -24,6 +24,8 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
|
|
|
24
24
|
* Check if a given object implements the PublicSnowReport interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfPublicSnowReport(value) {
|
|
27
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('reportedAt' in value) || value['reportedAt'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
|
|
@@ -46,7 +48,7 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
48
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
47
49
|
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
48
50
|
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
49
|
-
'conditionNotes': json['condition_notes']
|
|
51
|
+
'conditionNotes': json['condition_notes'],
|
|
50
52
|
'reportedAt': (new Date(json['reported_at'])),
|
|
51
53
|
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
|
|
52
54
|
'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
export declare const ResortStatusType: {
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
|
-
readonly ClosedForSeason: "closed_for_season";
|
|
20
19
|
};
|
|
21
20
|
export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
|
|
22
21
|
export declare function instanceOfResortStatusType(value: any): boolean;
|
|
@@ -25,8 +25,7 @@ exports.ResortStatusTypeToJSONTyped = ResortStatusTypeToJSONTyped;
|
|
|
25
25
|
*/
|
|
26
26
|
exports.ResortStatusType = {
|
|
27
27
|
Open: 'open',
|
|
28
|
-
Closed: 'closed'
|
|
29
|
-
ClosedForSeason: 'closed_for_season'
|
|
28
|
+
Closed: 'closed'
|
|
30
29
|
};
|
|
31
30
|
function instanceOfResortStatusType(value) {
|
|
32
31
|
for (const key in exports.ResortStatusType) {
|
|
@@ -0,0 +1,26 @@
|
|
|
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: 0.1.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
|
+
*/
|
|
16
|
+
export declare const SeasonType: {
|
|
17
|
+
readonly Winter: "winter";
|
|
18
|
+
readonly Summer: "summer";
|
|
19
|
+
readonly Closed: "closed";
|
|
20
|
+
};
|
|
21
|
+
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
|
+
export declare function instanceOfSeasonType(value: any): boolean;
|
|
23
|
+
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
24
|
+
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -0,0 +1,52 @@
|
|
|
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: 0.1.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.SeasonType = void 0;
|
|
17
|
+
exports.instanceOfSeasonType = instanceOfSeasonType;
|
|
18
|
+
exports.SeasonTypeFromJSON = SeasonTypeFromJSON;
|
|
19
|
+
exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
|
|
20
|
+
exports.SeasonTypeToJSON = SeasonTypeToJSON;
|
|
21
|
+
exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SeasonType = {
|
|
27
|
+
Winter: 'winter',
|
|
28
|
+
Summer: 'summer',
|
|
29
|
+
Closed: 'closed'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSeasonType(value) {
|
|
32
|
+
for (const key in exports.SeasonType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SeasonType, key)) {
|
|
34
|
+
if (exports.SeasonType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SeasonTypeFromJSON(json) {
|
|
42
|
+
return SeasonTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SeasonTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './ResortStatusType';
|
|
|
26
26
|
export * from './RunDifficulty';
|
|
27
27
|
export * from './RunStatus';
|
|
28
28
|
export * from './Schedule';
|
|
29
|
+
export * from './SeasonType';
|
|
29
30
|
export * from './SnowMetrics';
|
|
30
31
|
export * from './SurfaceCondition';
|
|
31
32
|
export * from './UnitPreference';
|
package/dist/models/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./ResortStatusType"), exports);
|
|
|
44
44
|
__exportStar(require("./RunDifficulty"), exports);
|
|
45
45
|
__exportStar(require("./RunStatus"), exports);
|
|
46
46
|
__exportStar(require("./Schedule"), exports);
|
|
47
|
+
__exportStar(require("./SeasonType"), exports);
|
|
47
48
|
__exportStar(require("./SnowMetrics"), exports);
|
|
48
49
|
__exportStar(require("./SurfaceCondition"), exports);
|
|
49
50
|
__exportStar(require("./UnitPreference"), exports);
|