@mtnmanager/sdk 0.0.26 → 0.0.27
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 +2 -2
- package/dist/esm/models/LiftStatus.d.ts +10 -4
- package/dist/esm/models/LiftStatus.js +25 -35
- package/dist/esm/models/LiftType.d.ts +19 -4
- package/dist/esm/models/LiftType.js +34 -89
- package/dist/esm/models/ResortStatusType.d.ts +8 -4
- package/dist/esm/models/ResortStatusType.js +26 -23
- package/dist/esm/models/RunDifficulty.d.ts +11 -4
- package/dist/esm/models/RunDifficulty.js +28 -41
- package/dist/esm/models/RunStatus.d.ts +9 -4
- package/dist/esm/models/RunStatus.js +24 -29
- package/dist/esm/models/SeasonType.d.ts +9 -4
- package/dist/esm/models/SeasonType.js +24 -29
- package/dist/esm/models/SummerTrailDifficulty.d.ts +11 -4
- package/dist/esm/models/SummerTrailDifficulty.js +26 -41
- package/dist/esm/models/SummerTrailStatus.d.ts +9 -4
- package/dist/esm/models/SummerTrailStatus.js +24 -29
- package/dist/esm/models/SummerTrailType.d.ts +8 -4
- package/dist/esm/models/SummerTrailType.js +23 -23
- package/dist/esm/models/SurfaceCondition.d.ts +21 -4
- package/dist/esm/models/SurfaceCondition.js +39 -101
- package/dist/esm/models/WeatherConditionCode.d.ts +47 -4
- package/dist/esm/models/WeatherConditionCode.js +63 -23
- package/dist/models/LiftStatus.d.ts +10 -4
- package/dist/models/LiftStatus.js +27 -35
- package/dist/models/LiftType.d.ts +19 -4
- package/dist/models/LiftType.js +36 -89
- package/dist/models/ResortStatusType.d.ts +8 -4
- package/dist/models/ResortStatusType.js +28 -23
- package/dist/models/RunDifficulty.d.ts +11 -4
- package/dist/models/RunDifficulty.js +30 -41
- package/dist/models/RunStatus.d.ts +9 -4
- package/dist/models/RunStatus.js +26 -29
- package/dist/models/SeasonType.d.ts +9 -4
- package/dist/models/SeasonType.js +26 -29
- package/dist/models/SummerTrailDifficulty.d.ts +11 -4
- package/dist/models/SummerTrailDifficulty.js +28 -41
- package/dist/models/SummerTrailStatus.d.ts +9 -4
- package/dist/models/SummerTrailStatus.js +26 -29
- package/dist/models/SummerTrailType.d.ts +8 -4
- package/dist/models/SummerTrailType.js +25 -23
- package/dist/models/SurfaceCondition.d.ts +21 -4
- package/dist/models/SurfaceCondition.js +41 -101
- package/dist/models/WeatherConditionCode.d.ts +47 -4
- package/dist/models/WeatherConditionCode.js +65 -23
- package/package.json +1 -1
|
@@ -13,49 +13,41 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LiftStatus = void 0;
|
|
17
|
+
exports.instanceOfLiftStatus = instanceOfLiftStatus;
|
|
16
18
|
exports.LiftStatusFromJSON = LiftStatusFromJSON;
|
|
17
19
|
exports.LiftStatusFromJSONTyped = LiftStatusFromJSONTyped;
|
|
18
20
|
exports.LiftStatusToJSON = LiftStatusToJSON;
|
|
19
21
|
exports.LiftStatusToJSONTyped = LiftStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Operational status of a ski lift.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LiftStatus = {
|
|
27
|
+
Open: 'open',
|
|
28
|
+
Closed: 'closed',
|
|
29
|
+
OnHold: 'on_hold',
|
|
30
|
+
Unknown: 'unknown'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfLiftStatus(value) {
|
|
33
|
+
for (const key in exports.LiftStatus) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.LiftStatus, key)) {
|
|
35
|
+
if (exports.LiftStatus[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
20
42
|
function LiftStatusFromJSON(json) {
|
|
21
43
|
return LiftStatusFromJSONTyped(json, false);
|
|
22
44
|
}
|
|
23
45
|
function LiftStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'unknown')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'open')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
if (typeof json === 'string' && (json === 'on_hold')) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {};
|
|
46
|
+
return json;
|
|
40
47
|
}
|
|
41
|
-
function LiftStatusToJSON(
|
|
42
|
-
return
|
|
48
|
+
function LiftStatusToJSON(value) {
|
|
49
|
+
return value;
|
|
43
50
|
}
|
|
44
|
-
function LiftStatusToJSONTyped(value, ignoreDiscriminator
|
|
45
|
-
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string' && (value === 'unknown')) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'open')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
if (typeof value === 'string' && (value === 'on_hold')) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {};
|
|
51
|
+
function LiftStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
61
53
|
}
|
|
@@ -10,12 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type LiftType
|
|
14
13
|
* Type of ski lift
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const LiftType: {
|
|
17
|
+
readonly Gondola: "gondola";
|
|
18
|
+
readonly Tram: "tram";
|
|
19
|
+
readonly EightPack: "eight_pack";
|
|
20
|
+
readonly SixPack: "six_pack";
|
|
21
|
+
readonly Quad: "quad";
|
|
22
|
+
readonly Triple: "triple";
|
|
23
|
+
readonly Double: "double";
|
|
24
|
+
readonly SurfaceLift: "surface_lift";
|
|
25
|
+
readonly MagicCarpet: "magic_carpet";
|
|
26
|
+
readonly TBar: "t_bar";
|
|
27
|
+
readonly Platter: "platter";
|
|
28
|
+
readonly RopeTow: "rope_tow";
|
|
29
|
+
readonly Funicular: "funicular";
|
|
30
|
+
};
|
|
31
|
+
export type LiftType = typeof LiftType[keyof typeof LiftType];
|
|
32
|
+
export declare function instanceOfLiftType(value: any): boolean;
|
|
18
33
|
export declare function LiftTypeFromJSON(json: any): LiftType;
|
|
19
34
|
export declare function LiftTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiftType;
|
|
20
|
-
export declare function LiftTypeToJSON(
|
|
21
|
-
export declare function LiftTypeToJSONTyped(value
|
|
35
|
+
export declare function LiftTypeToJSON(value?: LiftType | null): any;
|
|
36
|
+
export declare function LiftTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): LiftType;
|
package/dist/models/LiftType.js
CHANGED
|
@@ -13,103 +13,50 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LiftType = void 0;
|
|
17
|
+
exports.instanceOfLiftType = instanceOfLiftType;
|
|
16
18
|
exports.LiftTypeFromJSON = LiftTypeFromJSON;
|
|
17
19
|
exports.LiftTypeFromJSONTyped = LiftTypeFromJSONTyped;
|
|
18
20
|
exports.LiftTypeToJSON = LiftTypeToJSON;
|
|
19
21
|
exports.LiftTypeToJSONTyped = LiftTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Type of ski lift
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.LiftType = {
|
|
27
|
+
Gondola: 'gondola',
|
|
28
|
+
Tram: 'tram',
|
|
29
|
+
EightPack: 'eight_pack',
|
|
30
|
+
SixPack: 'six_pack',
|
|
31
|
+
Quad: 'quad',
|
|
32
|
+
Triple: 'triple',
|
|
33
|
+
Double: 'double',
|
|
34
|
+
SurfaceLift: 'surface_lift',
|
|
35
|
+
MagicCarpet: 'magic_carpet',
|
|
36
|
+
TBar: 't_bar',
|
|
37
|
+
Platter: 'platter',
|
|
38
|
+
RopeTow: 'rope_tow',
|
|
39
|
+
Funicular: 'funicular'
|
|
40
|
+
};
|
|
41
|
+
function instanceOfLiftType(value) {
|
|
42
|
+
for (const key in exports.LiftType) {
|
|
43
|
+
if (Object.prototype.hasOwnProperty.call(exports.LiftType, key)) {
|
|
44
|
+
if (exports.LiftType[key] === value) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
20
51
|
function LiftTypeFromJSON(json) {
|
|
21
52
|
return LiftTypeFromJSONTyped(json, false);
|
|
22
53
|
}
|
|
23
54
|
function LiftTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 't_bar')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'double')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'rope_tow')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
if (typeof json === 'string' && (json === 'eight_pack')) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
if (typeof json === 'string' && (json === 'six_pack')) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
if (typeof json === 'string' && (json === 'triple')) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
if (typeof json === 'string' && (json === 'gondola')) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
if (typeof json === 'string' && (json === 'surface_lift')) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
if (typeof json === 'string' && (json === 'platter')) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
if (typeof json === 'string' && (json === 'tram')) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
if (typeof json === 'string' && (json === 'funicular')) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
if (typeof json === 'string' && (json === 'magic_carpet')) {
|
|
61
|
-
return json;
|
|
62
|
-
}
|
|
63
|
-
if (typeof json === 'string' && (json === 'quad')) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {};
|
|
55
|
+
return json;
|
|
67
56
|
}
|
|
68
|
-
function LiftTypeToJSON(
|
|
69
|
-
return
|
|
57
|
+
function LiftTypeToJSON(value) {
|
|
58
|
+
return value;
|
|
70
59
|
}
|
|
71
|
-
function LiftTypeToJSONTyped(value, ignoreDiscriminator
|
|
72
|
-
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
if (typeof value === 'string' && (value === 't_bar')) {
|
|
76
|
-
return value;
|
|
77
|
-
}
|
|
78
|
-
if (typeof value === 'string' && (value === 'double')) {
|
|
79
|
-
return value;
|
|
80
|
-
}
|
|
81
|
-
if (typeof value === 'string' && (value === 'rope_tow')) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
if (typeof value === 'string' && (value === 'eight_pack')) {
|
|
85
|
-
return value;
|
|
86
|
-
}
|
|
87
|
-
if (typeof value === 'string' && (value === 'six_pack')) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
if (typeof value === 'string' && (value === 'triple')) {
|
|
91
|
-
return value;
|
|
92
|
-
}
|
|
93
|
-
if (typeof value === 'string' && (value === 'gondola')) {
|
|
94
|
-
return value;
|
|
95
|
-
}
|
|
96
|
-
if (typeof value === 'string' && (value === 'surface_lift')) {
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
if (typeof value === 'string' && (value === 'platter')) {
|
|
100
|
-
return value;
|
|
101
|
-
}
|
|
102
|
-
if (typeof value === 'string' && (value === 'tram')) {
|
|
103
|
-
return value;
|
|
104
|
-
}
|
|
105
|
-
if (typeof value === 'string' && (value === 'funicular')) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
if (typeof value === 'string' && (value === 'magic_carpet')) {
|
|
109
|
-
return value;
|
|
110
|
-
}
|
|
111
|
-
if (typeof value === 'string' && (value === 'quad')) {
|
|
112
|
-
return value;
|
|
113
|
-
}
|
|
114
|
-
return {};
|
|
60
|
+
function LiftTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
return value;
|
|
115
62
|
}
|
|
@@ -10,15 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type ResortStatusType
|
|
14
13
|
* Current operational status of the resort.
|
|
15
14
|
*
|
|
16
15
|
* Calculated automatically based on the current time relative to
|
|
17
16
|
* the resort's scheduled operating hours.
|
|
18
17
|
* @export
|
|
19
18
|
*/
|
|
20
|
-
export
|
|
19
|
+
export declare const ResortStatusType: {
|
|
20
|
+
readonly Open: "open";
|
|
21
|
+
readonly Closed: "closed";
|
|
22
|
+
};
|
|
23
|
+
export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
|
|
24
|
+
export declare function instanceOfResortStatusType(value: any): boolean;
|
|
21
25
|
export declare function ResortStatusTypeFromJSON(json: any): ResortStatusType;
|
|
22
26
|
export declare function ResortStatusTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResortStatusType;
|
|
23
|
-
export declare function ResortStatusTypeToJSON(
|
|
24
|
-
export declare function ResortStatusTypeToJSONTyped(value
|
|
27
|
+
export declare function ResortStatusTypeToJSON(value?: ResortStatusType | null): any;
|
|
28
|
+
export declare function ResortStatusTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResortStatusType;
|
|
@@ -13,37 +13,42 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ResortStatusType = void 0;
|
|
17
|
+
exports.instanceOfResortStatusType = instanceOfResortStatusType;
|
|
16
18
|
exports.ResortStatusTypeFromJSON = ResortStatusTypeFromJSON;
|
|
17
19
|
exports.ResortStatusTypeFromJSONTyped = ResortStatusTypeFromJSONTyped;
|
|
18
20
|
exports.ResortStatusTypeToJSON = ResortStatusTypeToJSON;
|
|
19
21
|
exports.ResortStatusTypeToJSONTyped = ResortStatusTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Current operational status of the resort.
|
|
24
|
+
*
|
|
25
|
+
* Calculated automatically based on the current time relative to
|
|
26
|
+
* the resort's scheduled operating hours.
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.ResortStatusType = {
|
|
30
|
+
Open: 'open',
|
|
31
|
+
Closed: 'closed'
|
|
32
|
+
};
|
|
33
|
+
function instanceOfResortStatusType(value) {
|
|
34
|
+
for (const key in exports.ResortStatusType) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(exports.ResortStatusType, key)) {
|
|
36
|
+
if (exports.ResortStatusType[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
20
43
|
function ResortStatusTypeFromJSON(json) {
|
|
21
44
|
return ResortStatusTypeFromJSONTyped(json, false);
|
|
22
45
|
}
|
|
23
46
|
function ResortStatusTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'open')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {};
|
|
47
|
+
return json;
|
|
34
48
|
}
|
|
35
|
-
function ResortStatusTypeToJSON(
|
|
36
|
-
return
|
|
49
|
+
function ResortStatusTypeToJSON(value) {
|
|
50
|
+
return value;
|
|
37
51
|
}
|
|
38
|
-
function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator
|
|
39
|
-
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'open')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
52
|
+
function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
49
54
|
}
|
|
@@ -10,14 +10,21 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type RunDifficulty
|
|
14
13
|
* Difficulty rating for a ski run or trail.
|
|
15
14
|
*
|
|
16
15
|
* Based on the standard North American ski trail rating system.
|
|
17
16
|
* @export
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
18
|
+
export declare const RunDifficulty: {
|
|
19
|
+
readonly Beginner: "beginner";
|
|
20
|
+
readonly Intermediate: "intermediate";
|
|
21
|
+
readonly Advanced: "advanced";
|
|
22
|
+
readonly Expert: "expert";
|
|
23
|
+
readonly TerrainPark: "terrain_park";
|
|
24
|
+
};
|
|
25
|
+
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
26
|
+
export declare function instanceOfRunDifficulty(value: any): boolean;
|
|
20
27
|
export declare function RunDifficultyFromJSON(json: any): RunDifficulty;
|
|
21
28
|
export declare function RunDifficultyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunDifficulty;
|
|
22
|
-
export declare function RunDifficultyToJSON(
|
|
23
|
-
export declare function RunDifficultyToJSONTyped(value
|
|
29
|
+
export declare function RunDifficultyToJSON(value?: RunDifficulty | null): any;
|
|
30
|
+
export declare function RunDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): RunDifficulty;
|
|
@@ -13,55 +13,44 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RunDifficulty = void 0;
|
|
17
|
+
exports.instanceOfRunDifficulty = instanceOfRunDifficulty;
|
|
16
18
|
exports.RunDifficultyFromJSON = RunDifficultyFromJSON;
|
|
17
19
|
exports.RunDifficultyFromJSONTyped = RunDifficultyFromJSONTyped;
|
|
18
20
|
exports.RunDifficultyToJSON = RunDifficultyToJSON;
|
|
19
21
|
exports.RunDifficultyToJSONTyped = RunDifficultyToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Difficulty rating for a ski run or trail.
|
|
24
|
+
*
|
|
25
|
+
* Based on the standard North American ski trail rating system.
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.RunDifficulty = {
|
|
29
|
+
Beginner: 'beginner',
|
|
30
|
+
Intermediate: 'intermediate',
|
|
31
|
+
Advanced: 'advanced',
|
|
32
|
+
Expert: 'expert',
|
|
33
|
+
TerrainPark: 'terrain_park'
|
|
34
|
+
};
|
|
35
|
+
function instanceOfRunDifficulty(value) {
|
|
36
|
+
for (const key in exports.RunDifficulty) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(exports.RunDifficulty, key)) {
|
|
38
|
+
if (exports.RunDifficulty[key] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
20
45
|
function RunDifficultyFromJSON(json) {
|
|
21
46
|
return RunDifficultyFromJSONTyped(json, false);
|
|
22
47
|
}
|
|
23
48
|
function RunDifficultyFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'expert')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'beginner')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'advanced')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
if (typeof json === 'string' && (json === 'terrain_park')) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
if (typeof json === 'string' && (json === 'intermediate')) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
49
|
+
return json;
|
|
43
50
|
}
|
|
44
|
-
function RunDifficultyToJSON(
|
|
45
|
-
return
|
|
51
|
+
function RunDifficultyToJSON(value) {
|
|
52
|
+
return value;
|
|
46
53
|
}
|
|
47
|
-
function RunDifficultyToJSONTyped(value, ignoreDiscriminator
|
|
48
|
-
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'expert')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
if (typeof value === 'string' && (value === 'beginner')) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
if (typeof value === 'string' && (value === 'advanced')) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
if (typeof value === 'string' && (value === 'terrain_park')) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
if (typeof value === 'string' && (value === 'intermediate')) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
return {};
|
|
54
|
+
function RunDifficultyToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
67
56
|
}
|
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type RunStatus
|
|
14
13
|
* Operational status of a ski run.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const RunStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type RunStatus = typeof RunStatus[keyof typeof RunStatus];
|
|
22
|
+
export declare function instanceOfRunStatus(value: any): boolean;
|
|
18
23
|
export declare function RunStatusFromJSON(json: any): RunStatus;
|
|
19
24
|
export declare function RunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunStatus;
|
|
20
|
-
export declare function RunStatusToJSON(
|
|
21
|
-
export declare function RunStatusToJSONTyped(value
|
|
25
|
+
export declare function RunStatusToJSON(value?: RunStatus | null): any;
|
|
26
|
+
export declare function RunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RunStatus;
|
package/dist/models/RunStatus.js
CHANGED
|
@@ -13,43 +13,40 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RunStatus = void 0;
|
|
17
|
+
exports.instanceOfRunStatus = instanceOfRunStatus;
|
|
16
18
|
exports.RunStatusFromJSON = RunStatusFromJSON;
|
|
17
19
|
exports.RunStatusFromJSONTyped = RunStatusFromJSONTyped;
|
|
18
20
|
exports.RunStatusToJSON = RunStatusToJSON;
|
|
19
21
|
exports.RunStatusToJSONTyped = RunStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Operational status of a ski run.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RunStatus = {
|
|
27
|
+
Open: 'open',
|
|
28
|
+
Closed: 'closed',
|
|
29
|
+
Unknown: 'unknown'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfRunStatus(value) {
|
|
32
|
+
for (const key in exports.RunStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.RunStatus, key)) {
|
|
34
|
+
if (exports.RunStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
20
41
|
function RunStatusFromJSON(json) {
|
|
21
42
|
return RunStatusFromJSONTyped(json, false);
|
|
22
43
|
}
|
|
23
44
|
function RunStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'unknown')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'open')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {};
|
|
45
|
+
return json;
|
|
37
46
|
}
|
|
38
|
-
function RunStatusToJSON(
|
|
39
|
-
return
|
|
47
|
+
function RunStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
40
49
|
}
|
|
41
|
-
function RunStatusToJSONTyped(value, ignoreDiscriminator
|
|
42
|
-
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'unknown')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string' && (value === 'open')) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {};
|
|
50
|
+
function RunStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
55
52
|
}
|
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SeasonType
|
|
14
13
|
* Current operating season of the resort.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
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;
|
|
18
23
|
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
19
24
|
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
20
|
-
export declare function SeasonTypeToJSON(
|
|
21
|
-
export declare function SeasonTypeToJSONTyped(value
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -13,43 +13,40 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SeasonType = void 0;
|
|
17
|
+
exports.instanceOfSeasonType = instanceOfSeasonType;
|
|
16
18
|
exports.SeasonTypeFromJSON = SeasonTypeFromJSON;
|
|
17
19
|
exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
|
|
18
20
|
exports.SeasonTypeToJSON = SeasonTypeToJSON;
|
|
19
21
|
exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Current operating season of the resort.
|
|
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
|
+
}
|
|
20
41
|
function SeasonTypeFromJSON(json) {
|
|
21
42
|
return SeasonTypeFromJSONTyped(json, false);
|
|
22
43
|
}
|
|
23
44
|
function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'winter')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'summer')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {};
|
|
45
|
+
return json;
|
|
37
46
|
}
|
|
38
|
-
function SeasonTypeToJSON(
|
|
39
|
-
return
|
|
47
|
+
function SeasonTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
40
49
|
}
|
|
41
|
-
function SeasonTypeToJSONTyped(value, ignoreDiscriminator
|
|
42
|
-
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'winter')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value === 'string' && (value === 'summer')) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {};
|
|
50
|
+
function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
55
52
|
}
|
|
@@ -10,12 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SummerTrailDifficulty
|
|
14
13
|
* Difficulty rating for a summer trail.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SummerTrailDifficulty: {
|
|
17
|
+
readonly Beginner: "beginner";
|
|
18
|
+
readonly Intermediate: "intermediate";
|
|
19
|
+
readonly Advanced: "advanced";
|
|
20
|
+
readonly Expert: "expert";
|
|
21
|
+
readonly TerrainPark: "terrain_park";
|
|
22
|
+
};
|
|
23
|
+
export type SummerTrailDifficulty = typeof SummerTrailDifficulty[keyof typeof SummerTrailDifficulty];
|
|
24
|
+
export declare function instanceOfSummerTrailDifficulty(value: any): boolean;
|
|
18
25
|
export declare function SummerTrailDifficultyFromJSON(json: any): SummerTrailDifficulty;
|
|
19
26
|
export declare function SummerTrailDifficultyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailDifficulty;
|
|
20
|
-
export declare function SummerTrailDifficultyToJSON(
|
|
21
|
-
export declare function SummerTrailDifficultyToJSONTyped(value
|
|
27
|
+
export declare function SummerTrailDifficultyToJSON(value?: SummerTrailDifficulty | null): any;
|
|
28
|
+
export declare function SummerTrailDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailDifficulty;
|