@mtnmanager/sdk 0.0.30 → 0.0.31
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 +9 -2
- package/dist/apis/MtnManagerApi.d.ts +21 -1
- package/dist/apis/MtnManagerApi.js +26 -0
- package/dist/esm/apis/MtnManagerApi.d.ts +21 -1
- package/dist/esm/apis/MtnManagerApi.js +27 -1
- package/dist/esm/models/FeatureSize.d.ts +27 -0
- package/dist/esm/models/FeatureSize.js +45 -0
- package/dist/esm/models/FeatureType.d.ts +27 -0
- package/dist/esm/models/FeatureType.js +45 -0
- package/dist/esm/models/PublicResortResponse.d.ts +8 -0
- package/dist/esm/models/PublicResortResponse.js +5 -0
- package/dist/esm/models/PublicTerrainPark.d.ts +97 -0
- package/dist/esm/models/PublicTerrainPark.js +75 -0
- package/dist/esm/models/PublicTerrainParkFeature.d.ts +80 -0
- package/dist/esm/models/PublicTerrainParkFeature.js +68 -0
- package/dist/esm/models/TerrainParkFeatureStatus.d.ts +26 -0
- package/dist/esm/models/TerrainParkFeatureStatus.js +44 -0
- package/dist/esm/models/TerrainParkStatus.d.ts +26 -0
- package/dist/esm/models/TerrainParkStatus.js +44 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/FeatureSize.d.ts +27 -0
- package/dist/models/FeatureSize.js +53 -0
- package/dist/models/FeatureType.d.ts +27 -0
- package/dist/models/FeatureType.js +53 -0
- package/dist/models/PublicResortResponse.d.ts +8 -0
- package/dist/models/PublicResortResponse.js +5 -0
- package/dist/models/PublicTerrainPark.d.ts +97 -0
- package/dist/models/PublicTerrainPark.js +82 -0
- package/dist/models/PublicTerrainParkFeature.d.ts +80 -0
- package/dist/models/PublicTerrainParkFeature.js +75 -0
- package/dist/models/TerrainParkFeatureStatus.d.ts +26 -0
- package/dist/models/TerrainParkFeatureStatus.js +52 -0
- package/dist/models/TerrainParkStatus.d.ts +26 -0
- package/dist/models/TerrainParkStatus.js +52 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
import { FeatureTypeFromJSON, FeatureTypeToJSON, } from './FeatureType';
|
|
15
|
+
import { FeatureSizeFromJSON, FeatureSizeToJSON, } from './FeatureSize';
|
|
16
|
+
import { TerrainParkFeatureStatusFromJSON, TerrainParkFeatureStatusToJSON, } from './TerrainParkFeatureStatus';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PublicTerrainParkFeature interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfPublicTerrainParkFeature(value) {
|
|
21
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('featureType' in value) || value['featureType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function PublicTerrainParkFeatureFromJSON(json) {
|
|
34
|
+
return PublicTerrainParkFeatureFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PublicTerrainParkFeatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'uuid': json['uuid'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
45
|
+
'featureType': FeatureTypeFromJSON(json['feature_type']),
|
|
46
|
+
'size': json['size'] == null ? undefined : FeatureSizeFromJSON(json['size']),
|
|
47
|
+
'status': TerrainParkFeatureStatusFromJSON(json['status']),
|
|
48
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function PublicTerrainParkFeatureToJSON(json) {
|
|
52
|
+
return PublicTerrainParkFeatureToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function PublicTerrainParkFeatureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'uuid': value['uuid'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'slug': value['slug'],
|
|
62
|
+
'number': value['number'],
|
|
63
|
+
'feature_type': FeatureTypeToJSON(value['featureType']),
|
|
64
|
+
'size': FeatureSizeToJSON(value['size']),
|
|
65
|
+
'status': TerrainParkFeatureStatusToJSON(value['status']),
|
|
66
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Operational status of a terrain park feature.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TerrainParkFeatureStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type TerrainParkFeatureStatus = typeof TerrainParkFeatureStatus[keyof typeof TerrainParkFeatureStatus];
|
|
22
|
+
export declare function instanceOfTerrainParkFeatureStatus(value: any): boolean;
|
|
23
|
+
export declare function TerrainParkFeatureStatusFromJSON(json: any): TerrainParkFeatureStatus;
|
|
24
|
+
export declare function TerrainParkFeatureStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TerrainParkFeatureStatus;
|
|
25
|
+
export declare function TerrainParkFeatureStatusToJSON(value?: TerrainParkFeatureStatus | null): any;
|
|
26
|
+
export declare function TerrainParkFeatureStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TerrainParkFeatureStatus;
|
|
@@ -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: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Operational status of a terrain park feature.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TerrainParkFeatureStatus = {
|
|
19
|
+
Open: 'open',
|
|
20
|
+
Closed: 'closed',
|
|
21
|
+
Unknown: 'unknown'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfTerrainParkFeatureStatus(value) {
|
|
24
|
+
for (const key in TerrainParkFeatureStatus) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(TerrainParkFeatureStatus, key)) {
|
|
26
|
+
if (TerrainParkFeatureStatus[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function TerrainParkFeatureStatusFromJSON(json) {
|
|
34
|
+
return TerrainParkFeatureStatusFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TerrainParkFeatureStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function TerrainParkFeatureStatusToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function TerrainParkFeatureStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -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: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Operational status of a terrain park.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TerrainParkStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type TerrainParkStatus = typeof TerrainParkStatus[keyof typeof TerrainParkStatus];
|
|
22
|
+
export declare function instanceOfTerrainParkStatus(value: any): boolean;
|
|
23
|
+
export declare function TerrainParkStatusFromJSON(json: any): TerrainParkStatus;
|
|
24
|
+
export declare function TerrainParkStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TerrainParkStatus;
|
|
25
|
+
export declare function TerrainParkStatusToJSON(value?: TerrainParkStatus | null): any;
|
|
26
|
+
export declare function TerrainParkStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TerrainParkStatus;
|
|
@@ -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: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Operational status of a terrain park.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TerrainParkStatus = {
|
|
19
|
+
Open: 'open',
|
|
20
|
+
Closed: 'closed',
|
|
21
|
+
Unknown: 'unknown'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfTerrainParkStatus(value) {
|
|
24
|
+
for (const key in TerrainParkStatus) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(TerrainParkStatus, key)) {
|
|
26
|
+
if (TerrainParkStatus[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function TerrainParkStatusFromJSON(json) {
|
|
34
|
+
return TerrainParkStatusFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TerrainParkStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function TerrainParkStatusToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function TerrainParkStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -4,6 +4,8 @@ export * from './DailyForecast';
|
|
|
4
4
|
export * from './DailyForecastImperial';
|
|
5
5
|
export * from './DailyForecastMetric';
|
|
6
6
|
export * from './DayHours';
|
|
7
|
+
export * from './FeatureSize';
|
|
8
|
+
export * from './FeatureType';
|
|
7
9
|
export * from './HourlyForecast';
|
|
8
10
|
export * from './HourlyForecastImperial';
|
|
9
11
|
export * from './HourlyForecastMetric';
|
|
@@ -20,6 +22,8 @@ export * from './PublicRun';
|
|
|
20
22
|
export * from './PublicSnowReport';
|
|
21
23
|
export * from './PublicSnowResponse';
|
|
22
24
|
export * from './PublicSummerTrail';
|
|
25
|
+
export * from './PublicTerrainPark';
|
|
26
|
+
export * from './PublicTerrainParkFeature';
|
|
23
27
|
export * from './ResortStatusType';
|
|
24
28
|
export * from './RunDifficulty';
|
|
25
29
|
export * from './RunStatus';
|
|
@@ -30,6 +34,8 @@ export * from './SummerTrailDifficulty';
|
|
|
30
34
|
export * from './SummerTrailStatus';
|
|
31
35
|
export * from './SummerTrailType';
|
|
32
36
|
export * from './SurfaceCondition';
|
|
37
|
+
export * from './TerrainParkFeatureStatus';
|
|
38
|
+
export * from './TerrainParkStatus';
|
|
33
39
|
export * from './UnitPreference';
|
|
34
40
|
export * from './WeatherConditionCode';
|
|
35
41
|
export * from './WeatherData';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -6,6 +6,8 @@ export * from './DailyForecast';
|
|
|
6
6
|
export * from './DailyForecastImperial';
|
|
7
7
|
export * from './DailyForecastMetric';
|
|
8
8
|
export * from './DayHours';
|
|
9
|
+
export * from './FeatureSize';
|
|
10
|
+
export * from './FeatureType';
|
|
9
11
|
export * from './HourlyForecast';
|
|
10
12
|
export * from './HourlyForecastImperial';
|
|
11
13
|
export * from './HourlyForecastMetric';
|
|
@@ -22,6 +24,8 @@ export * from './PublicRun';
|
|
|
22
24
|
export * from './PublicSnowReport';
|
|
23
25
|
export * from './PublicSnowResponse';
|
|
24
26
|
export * from './PublicSummerTrail';
|
|
27
|
+
export * from './PublicTerrainPark';
|
|
28
|
+
export * from './PublicTerrainParkFeature';
|
|
25
29
|
export * from './ResortStatusType';
|
|
26
30
|
export * from './RunDifficulty';
|
|
27
31
|
export * from './RunStatus';
|
|
@@ -32,6 +36,8 @@ export * from './SummerTrailDifficulty';
|
|
|
32
36
|
export * from './SummerTrailStatus';
|
|
33
37
|
export * from './SummerTrailType';
|
|
34
38
|
export * from './SurfaceCondition';
|
|
39
|
+
export * from './TerrainParkFeatureStatus';
|
|
40
|
+
export * from './TerrainParkStatus';
|
|
35
41
|
export * from './UnitPreference';
|
|
36
42
|
export * from './WeatherConditionCode';
|
|
37
43
|
export * from './WeatherData';
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Size of terrain park feature.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeatureSize: {
|
|
17
|
+
readonly S: "s";
|
|
18
|
+
readonly M: "m";
|
|
19
|
+
readonly L: "l";
|
|
20
|
+
readonly Xl: "xl";
|
|
21
|
+
};
|
|
22
|
+
export type FeatureSize = typeof FeatureSize[keyof typeof FeatureSize];
|
|
23
|
+
export declare function instanceOfFeatureSize(value: any): boolean;
|
|
24
|
+
export declare function FeatureSizeFromJSON(json: any): FeatureSize;
|
|
25
|
+
export declare function FeatureSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureSize;
|
|
26
|
+
export declare function FeatureSizeToJSON(value?: FeatureSize | null): any;
|
|
27
|
+
export declare function FeatureSizeToJSONTyped(value: any, ignoreDiscriminator: boolean): FeatureSize;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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.FeatureSize = void 0;
|
|
17
|
+
exports.instanceOfFeatureSize = instanceOfFeatureSize;
|
|
18
|
+
exports.FeatureSizeFromJSON = FeatureSizeFromJSON;
|
|
19
|
+
exports.FeatureSizeFromJSONTyped = FeatureSizeFromJSONTyped;
|
|
20
|
+
exports.FeatureSizeToJSON = FeatureSizeToJSON;
|
|
21
|
+
exports.FeatureSizeToJSONTyped = FeatureSizeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Size of terrain park feature.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeatureSize = {
|
|
27
|
+
S: 's',
|
|
28
|
+
M: 'm',
|
|
29
|
+
L: 'l',
|
|
30
|
+
Xl: 'xl'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfFeatureSize(value) {
|
|
33
|
+
for (const key in exports.FeatureSize) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeatureSize, key)) {
|
|
35
|
+
if (exports.FeatureSize[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function FeatureSizeFromJSON(json) {
|
|
43
|
+
return FeatureSizeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function FeatureSizeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function FeatureSizeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function FeatureSizeToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
* Type of terrain park feature.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const FeatureType: {
|
|
17
|
+
readonly Jump: "jump";
|
|
18
|
+
readonly Box: "box";
|
|
19
|
+
readonly Rail: "rail";
|
|
20
|
+
readonly Other: "other";
|
|
21
|
+
};
|
|
22
|
+
export type FeatureType = typeof FeatureType[keyof typeof FeatureType];
|
|
23
|
+
export declare function instanceOfFeatureType(value: any): boolean;
|
|
24
|
+
export declare function FeatureTypeFromJSON(json: any): FeatureType;
|
|
25
|
+
export declare function FeatureTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureType;
|
|
26
|
+
export declare function FeatureTypeToJSON(value?: FeatureType | null): any;
|
|
27
|
+
export declare function FeatureTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): FeatureType;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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.FeatureType = void 0;
|
|
17
|
+
exports.instanceOfFeatureType = instanceOfFeatureType;
|
|
18
|
+
exports.FeatureTypeFromJSON = FeatureTypeFromJSON;
|
|
19
|
+
exports.FeatureTypeFromJSONTyped = FeatureTypeFromJSONTyped;
|
|
20
|
+
exports.FeatureTypeToJSON = FeatureTypeToJSON;
|
|
21
|
+
exports.FeatureTypeToJSONTyped = FeatureTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Type of terrain park feature.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.FeatureType = {
|
|
27
|
+
Jump: 'jump',
|
|
28
|
+
Box: 'box',
|
|
29
|
+
Rail: 'rail',
|
|
30
|
+
Other: 'other'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfFeatureType(value) {
|
|
33
|
+
for (const key in exports.FeatureType) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.FeatureType, key)) {
|
|
35
|
+
if (exports.FeatureType[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function FeatureTypeFromJSON(json) {
|
|
43
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function FeatureTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function FeatureTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { PublicSummerTrail } from './PublicSummerTrail';
|
|
|
14
14
|
import type { OperatingHoursResponse } from './OperatingHoursResponse';
|
|
15
15
|
import type { PublicLift } from './PublicLift';
|
|
16
16
|
import type { PublicResortStatus } from './PublicResortStatus';
|
|
17
|
+
import type { PublicTerrainPark } from './PublicTerrainPark';
|
|
17
18
|
import type { PublicSnowReport } from './PublicSnowReport';
|
|
18
19
|
import type { PublicResortInfo } from './PublicResortInfo';
|
|
19
20
|
import type { WeatherData } from './WeatherData';
|
|
@@ -63,6 +64,13 @@ export interface PublicResortResponse {
|
|
|
63
64
|
* @memberof PublicResortResponse
|
|
64
65
|
*/
|
|
65
66
|
snow: Array<PublicSnowReport>;
|
|
67
|
+
/**
|
|
68
|
+
* All terrain parks at the resort with their features.
|
|
69
|
+
* Only included if the terrain parks feature is enabled.
|
|
70
|
+
* @type {Array<PublicTerrainPark>}
|
|
71
|
+
* @memberof PublicResortResponse
|
|
72
|
+
*/
|
|
73
|
+
terrainParks: Array<PublicTerrainPark>;
|
|
66
74
|
/**
|
|
67
75
|
*
|
|
68
76
|
* @type {OperatingHoursResponse}
|
|
@@ -23,6 +23,7 @@ const PublicSummerTrail_1 = require("./PublicSummerTrail");
|
|
|
23
23
|
const OperatingHoursResponse_1 = require("./OperatingHoursResponse");
|
|
24
24
|
const PublicLift_1 = require("./PublicLift");
|
|
25
25
|
const PublicResortStatus_1 = require("./PublicResortStatus");
|
|
26
|
+
const PublicTerrainPark_1 = require("./PublicTerrainPark");
|
|
26
27
|
const PublicSnowReport_1 = require("./PublicSnowReport");
|
|
27
28
|
const PublicResortInfo_1 = require("./PublicResortInfo");
|
|
28
29
|
const WeatherData_1 = require("./WeatherData");
|
|
@@ -42,6 +43,8 @@ function instanceOfPublicResortResponse(value) {
|
|
|
42
43
|
return false;
|
|
43
44
|
if (!('snow' in value) || value['snow'] === undefined)
|
|
44
45
|
return false;
|
|
46
|
+
if (!('terrainParks' in value) || value['terrainParks'] === undefined)
|
|
47
|
+
return false;
|
|
45
48
|
return true;
|
|
46
49
|
}
|
|
47
50
|
function PublicResortResponseFromJSON(json) {
|
|
@@ -58,6 +61,7 @@ function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
61
|
'summerTrails': (json['summer_trails'].map(PublicSummerTrail_1.PublicSummerTrailFromJSON)),
|
|
59
62
|
'lifts': (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
|
|
60
63
|
'snow': (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
|
|
64
|
+
'terrainParks': (json['terrain_parks'].map(PublicTerrainPark_1.PublicTerrainParkFromJSON)),
|
|
61
65
|
'hours': json['hours'] == null ? undefined : (0, OperatingHoursResponse_1.OperatingHoursResponseFromJSON)(json['hours']),
|
|
62
66
|
'weather': json['weather'] == null ? undefined : (0, WeatherData_1.WeatherDataFromJSON)(json['weather']),
|
|
63
67
|
};
|
|
@@ -76,6 +80,7 @@ function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
80
|
'summer_trails': (value['summerTrails'].map(PublicSummerTrail_1.PublicSummerTrailToJSON)),
|
|
77
81
|
'lifts': (value['lifts'].map(PublicLift_1.PublicLiftToJSON)),
|
|
78
82
|
'snow': (value['snow'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
|
|
83
|
+
'terrain_parks': (value['terrainParks'].map(PublicTerrainPark_1.PublicTerrainParkToJSON)),
|
|
79
84
|
'hours': (0, OperatingHoursResponse_1.OperatingHoursResponseToJSON)(value['hours']),
|
|
80
85
|
'weather': (0, WeatherData_1.WeatherDataToJSON)(value['weather']),
|
|
81
86
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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 { PublicTerrainParkFeature } from './PublicTerrainParkFeature';
|
|
13
|
+
import type { TerrainParkStatus } from './TerrainParkStatus';
|
|
14
|
+
/**
|
|
15
|
+
* Terrain park information with nested features.
|
|
16
|
+
*
|
|
17
|
+
* Represents a terrain park at the resort with its current status,
|
|
18
|
+
* condition notes, and all features (jumps, boxes, rails, etc.) within it.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PublicTerrainPark
|
|
21
|
+
*/
|
|
22
|
+
export interface PublicTerrainPark {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the terrain park.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PublicTerrainPark
|
|
27
|
+
*/
|
|
28
|
+
uuid: string;
|
|
29
|
+
/**
|
|
30
|
+
* Display name of the terrain park.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PublicTerrainPark
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* URL-friendly identifier for the terrain park.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PublicTerrainPark
|
|
39
|
+
*/
|
|
40
|
+
slug: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional park number for ordering/reference.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PublicTerrainPark
|
|
45
|
+
*/
|
|
46
|
+
number?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Current operational status (open, closed, or unknown).
|
|
49
|
+
* @type {TerrainParkStatus}
|
|
50
|
+
* @memberof PublicTerrainPark
|
|
51
|
+
*/
|
|
52
|
+
status: TerrainParkStatus;
|
|
53
|
+
/**
|
|
54
|
+
* Notes about current conditions in this terrain park.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PublicTerrainPark
|
|
57
|
+
*/
|
|
58
|
+
conditionNotes: string;
|
|
59
|
+
/**
|
|
60
|
+
* UUID of the area this terrain park belongs to, if assigned.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PublicTerrainPark
|
|
63
|
+
*/
|
|
64
|
+
areaUuid?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the area this terrain park belongs to, if assigned.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PublicTerrainPark
|
|
69
|
+
*/
|
|
70
|
+
areaName?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Display order of the area for sorting purposes.
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof PublicTerrainPark
|
|
75
|
+
*/
|
|
76
|
+
areaDisplayOrder?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* Features within this terrain park (jumps, boxes, rails, etc.).
|
|
79
|
+
* @type {Array<PublicTerrainParkFeature>}
|
|
80
|
+
* @memberof PublicTerrainPark
|
|
81
|
+
*/
|
|
82
|
+
features: Array<PublicTerrainParkFeature>;
|
|
83
|
+
/**
|
|
84
|
+
* When this terrain park's information was last updated.
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @memberof PublicTerrainPark
|
|
87
|
+
*/
|
|
88
|
+
updatedAt?: Date | null;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the PublicTerrainPark interface.
|
|
92
|
+
*/
|
|
93
|
+
export declare function instanceOfPublicTerrainPark(value: object): value is PublicTerrainPark;
|
|
94
|
+
export declare function PublicTerrainParkFromJSON(json: any): PublicTerrainPark;
|
|
95
|
+
export declare function PublicTerrainParkFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicTerrainPark;
|
|
96
|
+
export declare function PublicTerrainParkToJSON(json: any): PublicTerrainPark;
|
|
97
|
+
export declare function PublicTerrainParkToJSONTyped(value?: PublicTerrainPark | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
* Contact: support@mtnmanager.com
|
|
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.instanceOfPublicTerrainPark = instanceOfPublicTerrainPark;
|
|
17
|
+
exports.PublicTerrainParkFromJSON = PublicTerrainParkFromJSON;
|
|
18
|
+
exports.PublicTerrainParkFromJSONTyped = PublicTerrainParkFromJSONTyped;
|
|
19
|
+
exports.PublicTerrainParkToJSON = PublicTerrainParkToJSON;
|
|
20
|
+
exports.PublicTerrainParkToJSONTyped = PublicTerrainParkToJSONTyped;
|
|
21
|
+
const PublicTerrainParkFeature_1 = require("./PublicTerrainParkFeature");
|
|
22
|
+
const TerrainParkStatus_1 = require("./TerrainParkStatus");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PublicTerrainPark interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPublicTerrainPark(value) {
|
|
27
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('features' in value) || value['features'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PublicTerrainParkFromJSON(json) {
|
|
42
|
+
return PublicTerrainParkFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PublicTerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'uuid': json['uuid'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'slug': json['slug'],
|
|
52
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
53
|
+
'status': (0, TerrainParkStatus_1.TerrainParkStatusFromJSON)(json['status']),
|
|
54
|
+
'conditionNotes': json['condition_notes'],
|
|
55
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
56
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
57
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
58
|
+
'features': (json['features'].map(PublicTerrainParkFeature_1.PublicTerrainParkFeatureFromJSON)),
|
|
59
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function PublicTerrainParkToJSON(json) {
|
|
63
|
+
return PublicTerrainParkToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function PublicTerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'uuid': value['uuid'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'slug': value['slug'],
|
|
73
|
+
'number': value['number'],
|
|
74
|
+
'status': (0, TerrainParkStatus_1.TerrainParkStatusToJSON)(value['status']),
|
|
75
|
+
'condition_notes': value['conditionNotes'],
|
|
76
|
+
'area_uuid': value['areaUuid'],
|
|
77
|
+
'area_name': value['areaName'],
|
|
78
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
79
|
+
'features': (value['features'].map(PublicTerrainParkFeature_1.PublicTerrainParkFeatureToJSON)),
|
|
80
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
81
|
+
};
|
|
82
|
+
}
|