@mtnmanager/sdk 0.0.1
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 +134 -0
- package/dist/apis/PublicApi.d.ts +174 -0
- package/dist/apis/PublicApi.js +218 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/PublicApi.d.ts +174 -0
- package/dist/esm/apis/PublicApi.js +214 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/HoursInfo.d.ts +50 -0
- package/dist/esm/models/HoursInfo.js +51 -0
- package/dist/esm/models/LiftStatus.d.ts +25 -0
- package/dist/esm/models/LiftStatus.js +43 -0
- package/dist/esm/models/LiftType.d.ts +36 -0
- package/dist/esm/models/LiftType.js +54 -0
- package/dist/esm/models/OperatingHoursResponse.d.ts +46 -0
- package/dist/esm/models/OperatingHoursResponse.js +53 -0
- package/dist/esm/models/PublicLift.d.ts +88 -0
- package/dist/esm/models/PublicLift.js +73 -0
- package/dist/esm/models/PublicResortInfo.d.ts +57 -0
- package/dist/esm/models/PublicResortInfo.js +60 -0
- package/dist/esm/models/PublicResortResponse.d.ts +68 -0
- package/dist/esm/models/PublicResortResponse.js +59 -0
- package/dist/esm/models/PublicResortStatus.d.ts +45 -0
- package/dist/esm/models/PublicResortStatus.js +48 -0
- package/dist/esm/models/PublicRun.d.ts +88 -0
- package/dist/esm/models/PublicRun.js +73 -0
- package/dist/esm/models/PublicSnowReport.d.ts +82 -0
- package/dist/esm/models/PublicSnowReport.js +67 -0
- package/dist/esm/models/PublicSnowResponse.d.ts +33 -0
- package/dist/esm/models/PublicSnowResponse.js +44 -0
- package/dist/esm/models/RegularHoursDescription.d.ts +50 -0
- package/dist/esm/models/RegularHoursDescription.js +55 -0
- package/dist/esm/models/ResortStatusType.d.ts +26 -0
- package/dist/esm/models/ResortStatusType.js +44 -0
- package/dist/esm/models/RunDifficulty.d.ts +28 -0
- package/dist/esm/models/RunDifficulty.js +46 -0
- package/dist/esm/models/RunStatus.d.ts +25 -0
- package/dist/esm/models/RunStatus.js +43 -0
- package/dist/esm/models/SnowMetrics.d.ts +56 -0
- package/dist/esm/models/SnowMetrics.js +59 -0
- package/dist/esm/models/SurfaceCondition.d.ts +29 -0
- package/dist/esm/models/SurfaceCondition.js +47 -0
- package/dist/esm/models/UnitPreference.d.ts +25 -0
- package/dist/esm/models/UnitPreference.js +43 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/HoursInfo.d.ts +50 -0
- package/dist/models/HoursInfo.js +58 -0
- package/dist/models/LiftStatus.d.ts +25 -0
- package/dist/models/LiftStatus.js +51 -0
- package/dist/models/LiftType.d.ts +36 -0
- package/dist/models/LiftType.js +62 -0
- package/dist/models/OperatingHoursResponse.d.ts +46 -0
- package/dist/models/OperatingHoursResponse.js +60 -0
- package/dist/models/PublicLift.d.ts +88 -0
- package/dist/models/PublicLift.js +80 -0
- package/dist/models/PublicResortInfo.d.ts +57 -0
- package/dist/models/PublicResortInfo.js +67 -0
- package/dist/models/PublicResortResponse.d.ts +68 -0
- package/dist/models/PublicResortResponse.js +66 -0
- package/dist/models/PublicResortStatus.d.ts +45 -0
- package/dist/models/PublicResortStatus.js +55 -0
- package/dist/models/PublicRun.d.ts +88 -0
- package/dist/models/PublicRun.js +80 -0
- package/dist/models/PublicSnowReport.d.ts +82 -0
- package/dist/models/PublicSnowReport.js +74 -0
- package/dist/models/PublicSnowResponse.d.ts +33 -0
- package/dist/models/PublicSnowResponse.js +51 -0
- package/dist/models/RegularHoursDescription.d.ts +50 -0
- package/dist/models/RegularHoursDescription.js +62 -0
- package/dist/models/ResortStatusType.d.ts +26 -0
- package/dist/models/ResortStatusType.js +52 -0
- package/dist/models/RunDifficulty.d.ts +28 -0
- package/dist/models/RunDifficulty.js +54 -0
- package/dist/models/RunStatus.d.ts +25 -0
- package/dist/models/RunStatus.js +51 -0
- package/dist/models/SnowMetrics.d.ts +56 -0
- package/dist/models/SnowMetrics.js +66 -0
- package/dist/models/SurfaceCondition.d.ts +29 -0
- package/dist/models/SurfaceCondition.js +55 -0
- package/dist/models/UnitPreference.d.ts +25 -0
- package/dist/models/UnitPreference.js +51 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +36 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +25 -0
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfOperatingHoursResponse = instanceOfOperatingHoursResponse;
|
|
17
|
+
exports.OperatingHoursResponseFromJSON = OperatingHoursResponseFromJSON;
|
|
18
|
+
exports.OperatingHoursResponseFromJSONTyped = OperatingHoursResponseFromJSONTyped;
|
|
19
|
+
exports.OperatingHoursResponseToJSON = OperatingHoursResponseToJSON;
|
|
20
|
+
exports.OperatingHoursResponseToJSONTyped = OperatingHoursResponseToJSONTyped;
|
|
21
|
+
const HoursInfo_1 = require("./HoursInfo");
|
|
22
|
+
const RegularHoursDescription_1 = require("./RegularHoursDescription");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the OperatingHoursResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfOperatingHoursResponse(value) {
|
|
27
|
+
if (!('openDays' in value) || value['openDays'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('regularHours' in value) || value['regularHours'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('today' in value) || value['today'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OperatingHoursResponseFromJSON(json) {
|
|
36
|
+
return OperatingHoursResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OperatingHoursResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'openDays': (json['open_days'].map(HoursInfo_1.HoursInfoFromJSON)),
|
|
44
|
+
'regularHours': (json['regular_hours'].map(RegularHoursDescription_1.RegularHoursDescriptionFromJSON)),
|
|
45
|
+
'today': (0, HoursInfo_1.HoursInfoFromJSON)(json['today']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function OperatingHoursResponseToJSON(json) {
|
|
49
|
+
return OperatingHoursResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function OperatingHoursResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'open_days': (value['openDays'].map(HoursInfo_1.HoursInfoToJSON)),
|
|
57
|
+
'regular_hours': (value['regularHours'].map(RegularHoursDescription_1.RegularHoursDescriptionToJSON)),
|
|
58
|
+
'today': (0, HoursInfo_1.HoursInfoToJSON)(value['today']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
import type { LiftStatus } from './LiftStatus';
|
|
13
|
+
import type { LiftType } from './LiftType';
|
|
14
|
+
/**
|
|
15
|
+
* Lift information with area context
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicLift
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicLift {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PublicLift
|
|
24
|
+
*/
|
|
25
|
+
areaId?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PublicLift
|
|
30
|
+
*/
|
|
31
|
+
areaName?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PublicLift
|
|
36
|
+
*/
|
|
37
|
+
capacityPerHour?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof PublicLift
|
|
42
|
+
*/
|
|
43
|
+
highSpeed: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {LiftType}
|
|
47
|
+
* @memberof PublicLift
|
|
48
|
+
*/
|
|
49
|
+
liftType: LiftType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PublicLift
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PublicLift
|
|
60
|
+
*/
|
|
61
|
+
slug: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {LiftStatus}
|
|
65
|
+
* @memberof PublicLift
|
|
66
|
+
*/
|
|
67
|
+
status: LiftStatus;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof PublicLift
|
|
72
|
+
*/
|
|
73
|
+
uuid: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof PublicLift
|
|
78
|
+
*/
|
|
79
|
+
waitTimeMinutes?: number | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the PublicLift interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfPublicLift(value: object): value is PublicLift;
|
|
85
|
+
export declare function PublicLiftFromJSON(json: any): PublicLift;
|
|
86
|
+
export declare function PublicLiftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLift;
|
|
87
|
+
export declare function PublicLiftToJSON(json: any): PublicLift;
|
|
88
|
+
export declare function PublicLiftToJSONTyped(value?: PublicLift | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfPublicLift = instanceOfPublicLift;
|
|
17
|
+
exports.PublicLiftFromJSON = PublicLiftFromJSON;
|
|
18
|
+
exports.PublicLiftFromJSONTyped = PublicLiftFromJSONTyped;
|
|
19
|
+
exports.PublicLiftToJSON = PublicLiftToJSON;
|
|
20
|
+
exports.PublicLiftToJSONTyped = PublicLiftToJSONTyped;
|
|
21
|
+
const LiftStatus_1 = require("./LiftStatus");
|
|
22
|
+
const LiftType_1 = require("./LiftType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PublicLift interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPublicLift(value) {
|
|
27
|
+
if (!('highSpeed' in value) || value['highSpeed'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('liftType' in value) || value['liftType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PublicLiftFromJSON(json) {
|
|
42
|
+
return PublicLiftFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PublicLiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'areaId': json['area_id'] == null ? undefined : json['area_id'],
|
|
50
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
51
|
+
'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
|
|
52
|
+
'highSpeed': json['high_speed'],
|
|
53
|
+
'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'slug': json['slug'],
|
|
56
|
+
'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
|
|
57
|
+
'uuid': json['uuid'],
|
|
58
|
+
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function PublicLiftToJSON(json) {
|
|
62
|
+
return PublicLiftToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'area_id': value['areaId'],
|
|
70
|
+
'area_name': value['areaName'],
|
|
71
|
+
'capacity_per_hour': value['capacityPerHour'],
|
|
72
|
+
'high_speed': value['highSpeed'],
|
|
73
|
+
'lift_type': (0, LiftType_1.LiftTypeToJSON)(value['liftType']),
|
|
74
|
+
'name': value['name'],
|
|
75
|
+
'slug': value['slug'],
|
|
76
|
+
'status': (0, LiftStatus_1.LiftStatusToJSON)(value['status']),
|
|
77
|
+
'uuid': value['uuid'],
|
|
78
|
+
'wait_time_minutes': value['waitTimeMinutes'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { UnitPreference } from './UnitPreference';
|
|
13
|
+
/**
|
|
14
|
+
* Basic resort information for public display
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicResortInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicResortInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicResortInfo
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PublicResortInfo
|
|
29
|
+
*/
|
|
30
|
+
slug: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PublicResortInfo
|
|
35
|
+
*/
|
|
36
|
+
timezone: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {UnitPreference}
|
|
40
|
+
* @memberof PublicResortInfo
|
|
41
|
+
*/
|
|
42
|
+
unitPreference: UnitPreference;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PublicResortInfo
|
|
47
|
+
*/
|
|
48
|
+
uuid: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PublicResortInfo interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPublicResortInfo(value: object): value is PublicResortInfo;
|
|
54
|
+
export declare function PublicResortInfoFromJSON(json: any): PublicResortInfo;
|
|
55
|
+
export declare function PublicResortInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortInfo;
|
|
56
|
+
export declare function PublicResortInfoToJSON(json: any): PublicResortInfo;
|
|
57
|
+
export declare function PublicResortInfoToJSONTyped(value?: PublicResortInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfPublicResortInfo = instanceOfPublicResortInfo;
|
|
17
|
+
exports.PublicResortInfoFromJSON = PublicResortInfoFromJSON;
|
|
18
|
+
exports.PublicResortInfoFromJSONTyped = PublicResortInfoFromJSONTyped;
|
|
19
|
+
exports.PublicResortInfoToJSON = PublicResortInfoToJSON;
|
|
20
|
+
exports.PublicResortInfoToJSONTyped = PublicResortInfoToJSONTyped;
|
|
21
|
+
const UnitPreference_1 = require("./UnitPreference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicResortInfo interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicResortInfo(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('unitPreference' in value) || value['unitPreference'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PublicResortInfoFromJSON(json) {
|
|
39
|
+
return PublicResortInfoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PublicResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'slug': json['slug'],
|
|
48
|
+
'timezone': json['timezone'],
|
|
49
|
+
'unitPreference': (0, UnitPreference_1.UnitPreferenceFromJSON)(json['unit_preference']),
|
|
50
|
+
'uuid': json['uuid'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PublicResortInfoToJSON(json) {
|
|
54
|
+
return PublicResortInfoToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PublicResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'slug': value['slug'],
|
|
63
|
+
'timezone': value['timezone'],
|
|
64
|
+
'unit_preference': (0, UnitPreference_1.UnitPreferenceToJSON)(value['unitPreference']),
|
|
65
|
+
'uuid': value['uuid'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import type { PublicRun } from './PublicRun';
|
|
13
|
+
import type { OperatingHoursResponse } from './OperatingHoursResponse';
|
|
14
|
+
import type { PublicLift } from './PublicLift';
|
|
15
|
+
import type { PublicResortStatus } from './PublicResortStatus';
|
|
16
|
+
import type { PublicSnowReport } from './PublicSnowReport';
|
|
17
|
+
import type { PublicResortInfo } from './PublicResortInfo';
|
|
18
|
+
/**
|
|
19
|
+
* Comprehensive resort response (all-in-one)
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PublicResortResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface PublicResortResponse {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {OperatingHoursResponse}
|
|
27
|
+
* @memberof PublicResortResponse
|
|
28
|
+
*/
|
|
29
|
+
hours?: OperatingHoursResponse | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PublicLift>}
|
|
33
|
+
* @memberof PublicResortResponse
|
|
34
|
+
*/
|
|
35
|
+
lifts?: Array<PublicLift>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {PublicResortInfo}
|
|
39
|
+
* @memberof PublicResortResponse
|
|
40
|
+
*/
|
|
41
|
+
resort: PublicResortInfo;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<PublicRun>}
|
|
45
|
+
* @memberof PublicResortResponse
|
|
46
|
+
*/
|
|
47
|
+
runs?: Array<PublicRun>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<PublicSnowReport>}
|
|
51
|
+
* @memberof PublicResortResponse
|
|
52
|
+
*/
|
|
53
|
+
snow?: Array<PublicSnowReport>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {PublicResortStatus}
|
|
57
|
+
* @memberof PublicResortResponse
|
|
58
|
+
*/
|
|
59
|
+
status?: PublicResortStatus | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PublicResortResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfPublicResortResponse(value: object): value is PublicResortResponse;
|
|
65
|
+
export declare function PublicResortResponseFromJSON(json: any): PublicResortResponse;
|
|
66
|
+
export declare function PublicResortResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortResponse;
|
|
67
|
+
export declare function PublicResortResponseToJSON(json: any): PublicResortResponse;
|
|
68
|
+
export declare function PublicResortResponseToJSONTyped(value?: PublicResortResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfPublicResortResponse = instanceOfPublicResortResponse;
|
|
17
|
+
exports.PublicResortResponseFromJSON = PublicResortResponseFromJSON;
|
|
18
|
+
exports.PublicResortResponseFromJSONTyped = PublicResortResponseFromJSONTyped;
|
|
19
|
+
exports.PublicResortResponseToJSON = PublicResortResponseToJSON;
|
|
20
|
+
exports.PublicResortResponseToJSONTyped = PublicResortResponseToJSONTyped;
|
|
21
|
+
const PublicRun_1 = require("./PublicRun");
|
|
22
|
+
const OperatingHoursResponse_1 = require("./OperatingHoursResponse");
|
|
23
|
+
const PublicLift_1 = require("./PublicLift");
|
|
24
|
+
const PublicResortStatus_1 = require("./PublicResortStatus");
|
|
25
|
+
const PublicSnowReport_1 = require("./PublicSnowReport");
|
|
26
|
+
const PublicResortInfo_1 = require("./PublicResortInfo");
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the PublicResortResponse interface.
|
|
29
|
+
*/
|
|
30
|
+
function instanceOfPublicResortResponse(value) {
|
|
31
|
+
if (!('resort' in value) || value['resort'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PublicResortResponseFromJSON(json) {
|
|
36
|
+
return PublicResortResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'hours': json['hours'] == null ? undefined : (0, OperatingHoursResponse_1.OperatingHoursResponseFromJSON)(json['hours']),
|
|
44
|
+
'lifts': json['lifts'] == null ? undefined : (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
|
|
45
|
+
'resort': (0, PublicResortInfo_1.PublicResortInfoFromJSON)(json['resort']),
|
|
46
|
+
'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
|
|
47
|
+
'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
|
|
48
|
+
'status': json['status'] == null ? undefined : (0, PublicResortStatus_1.PublicResortStatusFromJSON)(json['status']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PublicResortResponseToJSON(json) {
|
|
52
|
+
return PublicResortResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'hours': (0, OperatingHoursResponse_1.OperatingHoursResponseToJSON)(value['hours']),
|
|
60
|
+
'lifts': value['lifts'] == null ? undefined : (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
|
|
61
|
+
'resort': (0, PublicResortInfo_1.PublicResortInfoToJSON)(value['resort']),
|
|
62
|
+
'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRun_1.PublicRunToJSON)),
|
|
63
|
+
'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
|
|
64
|
+
'status': (0, PublicResortStatus_1.PublicResortStatusToJSON)(value['status']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { ResortStatusType } from './ResortStatusType';
|
|
13
|
+
/**
|
|
14
|
+
* Resort status with optional metadata
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PublicResortStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface PublicResortStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PublicResortStatus
|
|
23
|
+
*/
|
|
24
|
+
notes?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ResortStatusType}
|
|
28
|
+
* @memberof PublicResortStatus
|
|
29
|
+
*/
|
|
30
|
+
status: ResortStatusType;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof PublicResortStatus
|
|
35
|
+
*/
|
|
36
|
+
updatedAt?: Date | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PublicResortStatus interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPublicResortStatus(value: object): value is PublicResortStatus;
|
|
42
|
+
export declare function PublicResortStatusFromJSON(json: any): PublicResortStatus;
|
|
43
|
+
export declare function PublicResortStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortStatus;
|
|
44
|
+
export declare function PublicResortStatusToJSON(json: any): PublicResortStatus;
|
|
45
|
+
export declare function PublicResortStatusToJSONTyped(value?: PublicResortStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfPublicResortStatus = instanceOfPublicResortStatus;
|
|
17
|
+
exports.PublicResortStatusFromJSON = PublicResortStatusFromJSON;
|
|
18
|
+
exports.PublicResortStatusFromJSONTyped = PublicResortStatusFromJSONTyped;
|
|
19
|
+
exports.PublicResortStatusToJSON = PublicResortStatusToJSON;
|
|
20
|
+
exports.PublicResortStatusToJSONTyped = PublicResortStatusToJSONTyped;
|
|
21
|
+
const ResortStatusType_1 = require("./ResortStatusType");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PublicResortStatus interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPublicResortStatus(value) {
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PublicResortStatusFromJSON(json) {
|
|
31
|
+
return PublicResortStatusFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
39
|
+
'status': (0, ResortStatusType_1.ResortStatusTypeFromJSON)(json['status']),
|
|
40
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PublicResortStatusToJSON(json) {
|
|
44
|
+
return PublicResortStatusToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'notes': value['notes'],
|
|
52
|
+
'status': (0, ResortStatusType_1.ResortStatusTypeToJSON)(value['status']),
|
|
53
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
import type { RunStatus } from './RunStatus';
|
|
13
|
+
import type { RunDifficulty } from './RunDifficulty';
|
|
14
|
+
/**
|
|
15
|
+
* Run/trail information with area context
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicRun
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicRun {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PublicRun
|
|
24
|
+
*/
|
|
25
|
+
areaId?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PublicRun
|
|
30
|
+
*/
|
|
31
|
+
areaName?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PublicRun
|
|
36
|
+
*/
|
|
37
|
+
conditionNotes?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RunDifficulty}
|
|
41
|
+
* @memberof PublicRun
|
|
42
|
+
*/
|
|
43
|
+
difficulty: RunDifficulty;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof PublicRun
|
|
48
|
+
*/
|
|
49
|
+
groomedToday: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof PublicRun
|
|
54
|
+
*/
|
|
55
|
+
lastGroomed?: Date | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PublicRun
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof PublicRun
|
|
66
|
+
*/
|
|
67
|
+
slug: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {RunStatus}
|
|
71
|
+
* @memberof PublicRun
|
|
72
|
+
*/
|
|
73
|
+
status: RunStatus;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof PublicRun
|
|
78
|
+
*/
|
|
79
|
+
uuid: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the PublicRun interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfPublicRun(value: object): value is PublicRun;
|
|
85
|
+
export declare function PublicRunFromJSON(json: any): PublicRun;
|
|
86
|
+
export declare function PublicRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicRun;
|
|
87
|
+
export declare function PublicRunToJSON(json: any): PublicRun;
|
|
88
|
+
export declare function PublicRunToJSONTyped(value?: PublicRun | null, ignoreDiscriminator?: boolean): any;
|