@mtnmanager/sdk 0.0.25 → 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.
Files changed (50) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/models/LiftStatus.d.ts +10 -4
  3. package/dist/esm/models/LiftStatus.js +25 -35
  4. package/dist/esm/models/LiftType.d.ts +19 -4
  5. package/dist/esm/models/LiftType.js +34 -89
  6. package/dist/esm/models/PublicResortStatus.d.ts +19 -0
  7. package/dist/esm/models/PublicResortStatus.js +6 -0
  8. package/dist/esm/models/ResortStatusType.d.ts +8 -4
  9. package/dist/esm/models/ResortStatusType.js +26 -23
  10. package/dist/esm/models/RunDifficulty.d.ts +11 -4
  11. package/dist/esm/models/RunDifficulty.js +28 -41
  12. package/dist/esm/models/RunStatus.d.ts +9 -4
  13. package/dist/esm/models/RunStatus.js +24 -29
  14. package/dist/esm/models/SeasonType.d.ts +9 -4
  15. package/dist/esm/models/SeasonType.js +24 -29
  16. package/dist/esm/models/SummerTrailDifficulty.d.ts +11 -4
  17. package/dist/esm/models/SummerTrailDifficulty.js +26 -41
  18. package/dist/esm/models/SummerTrailStatus.d.ts +9 -4
  19. package/dist/esm/models/SummerTrailStatus.js +24 -29
  20. package/dist/esm/models/SummerTrailType.d.ts +8 -4
  21. package/dist/esm/models/SummerTrailType.js +23 -23
  22. package/dist/esm/models/SurfaceCondition.d.ts +21 -4
  23. package/dist/esm/models/SurfaceCondition.js +39 -101
  24. package/dist/esm/models/WeatherConditionCode.d.ts +47 -4
  25. package/dist/esm/models/WeatherConditionCode.js +63 -23
  26. package/dist/models/LiftStatus.d.ts +10 -4
  27. package/dist/models/LiftStatus.js +27 -35
  28. package/dist/models/LiftType.d.ts +19 -4
  29. package/dist/models/LiftType.js +36 -89
  30. package/dist/models/PublicResortStatus.d.ts +19 -0
  31. package/dist/models/PublicResortStatus.js +6 -0
  32. package/dist/models/ResortStatusType.d.ts +8 -4
  33. package/dist/models/ResortStatusType.js +28 -23
  34. package/dist/models/RunDifficulty.d.ts +11 -4
  35. package/dist/models/RunDifficulty.js +30 -41
  36. package/dist/models/RunStatus.d.ts +9 -4
  37. package/dist/models/RunStatus.js +26 -29
  38. package/dist/models/SeasonType.d.ts +9 -4
  39. package/dist/models/SeasonType.js +26 -29
  40. package/dist/models/SummerTrailDifficulty.d.ts +11 -4
  41. package/dist/models/SummerTrailDifficulty.js +28 -41
  42. package/dist/models/SummerTrailStatus.d.ts +9 -4
  43. package/dist/models/SummerTrailStatus.js +26 -29
  44. package/dist/models/SummerTrailType.d.ts +8 -4
  45. package/dist/models/SummerTrailType.js +25 -23
  46. package/dist/models/SurfaceCondition.d.ts +21 -4
  47. package/dist/models/SurfaceCondition.js +41 -101
  48. package/dist/models/WeatherConditionCode.d.ts +47 -4
  49. package/dist/models/WeatherConditionCode.js +65 -23
  50. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @mtnmanager/sdk@0.0.25
1
+ # @mtnmanager/sdk@0.0.27
2
2
 
3
3
  A TypeScript SDK client for the your-resort.mtnmanager.com API.
4
4
 
@@ -107,7 +107,7 @@ and is automatically generated by the
107
107
  [OpenAPI Generator](https://openapi-generator.tech) project:
108
108
 
109
109
  - API version: `1.0.0`
110
- - Package version: `0.0.25`
110
+ - Package version: `0.0.27`
111
111
  - Generator version: `7.18.0`
112
112
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
113
113
 
@@ -10,12 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * @type LiftStatus
14
13
  * Operational status of a ski lift.
15
14
  * @export
16
15
  */
17
- export type LiftStatus = string;
16
+ export declare const LiftStatus: {
17
+ readonly Open: "open";
18
+ readonly Closed: "closed";
19
+ readonly OnHold: "on_hold";
20
+ readonly Unknown: "unknown";
21
+ };
22
+ export type LiftStatus = typeof LiftStatus[keyof typeof LiftStatus];
23
+ export declare function instanceOfLiftStatus(value: any): boolean;
18
24
  export declare function LiftStatusFromJSON(json: any): LiftStatus;
19
25
  export declare function LiftStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiftStatus;
20
- export declare function LiftStatusToJSON(json: any): any;
21
- export declare function LiftStatusToJSONTyped(value?: LiftStatus | null, ignoreDiscriminator?: boolean): any;
26
+ export declare function LiftStatusToJSON(value?: LiftStatus | null): any;
27
+ export declare function LiftStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): LiftStatus;
@@ -11,45 +11,35 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Operational status of a ski lift.
16
+ * @export
17
+ */
18
+ export const LiftStatus = {
19
+ Open: 'open',
20
+ Closed: 'closed',
21
+ OnHold: 'on_hold',
22
+ Unknown: 'unknown'
23
+ };
24
+ export function instanceOfLiftStatus(value) {
25
+ for (const key in LiftStatus) {
26
+ if (Object.prototype.hasOwnProperty.call(LiftStatus, key)) {
27
+ if (LiftStatus[key] === value) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ return false;
33
+ }
14
34
  export function LiftStatusFromJSON(json) {
15
35
  return LiftStatusFromJSONTyped(json, false);
16
36
  }
17
37
  export function LiftStatusFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 'unknown')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'open')) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'closed')) {
28
- return json;
29
- }
30
- if (typeof json === 'string' && (json === 'on_hold')) {
31
- return json;
32
- }
33
- return {};
38
+ return json;
34
39
  }
35
- export function LiftStatusToJSON(json) {
36
- return LiftStatusToJSONTyped(json, false);
40
+ export function LiftStatusToJSON(value) {
41
+ return value;
37
42
  }
38
- export function LiftStatusToJSONTyped(value, ignoreDiscriminator = false) {
39
- if (value == null) {
40
- return value;
41
- }
42
- if (typeof value === 'string' && (value === 'unknown')) {
43
- return value;
44
- }
45
- if (typeof value === 'string' && (value === 'open')) {
46
- return value;
47
- }
48
- if (typeof value === 'string' && (value === 'closed')) {
49
- return value;
50
- }
51
- if (typeof value === 'string' && (value === 'on_hold')) {
52
- return value;
53
- }
54
- return {};
43
+ export function LiftStatusToJSONTyped(value, ignoreDiscriminator) {
44
+ return value;
55
45
  }
@@ -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 type LiftType = string;
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(json: any): any;
21
- export declare function LiftTypeToJSONTyped(value?: LiftType | null, ignoreDiscriminator?: boolean): any;
35
+ export declare function LiftTypeToJSON(value?: LiftType | null): any;
36
+ export declare function LiftTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): LiftType;
@@ -11,99 +11,44 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Type of ski lift
16
+ * @export
17
+ */
18
+ export const LiftType = {
19
+ Gondola: 'gondola',
20
+ Tram: 'tram',
21
+ EightPack: 'eight_pack',
22
+ SixPack: 'six_pack',
23
+ Quad: 'quad',
24
+ Triple: 'triple',
25
+ Double: 'double',
26
+ SurfaceLift: 'surface_lift',
27
+ MagicCarpet: 'magic_carpet',
28
+ TBar: 't_bar',
29
+ Platter: 'platter',
30
+ RopeTow: 'rope_tow',
31
+ Funicular: 'funicular'
32
+ };
33
+ export function instanceOfLiftType(value) {
34
+ for (const key in LiftType) {
35
+ if (Object.prototype.hasOwnProperty.call(LiftType, key)) {
36
+ if (LiftType[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
14
43
  export function LiftTypeFromJSON(json) {
15
44
  return LiftTypeFromJSONTyped(json, false);
16
45
  }
17
46
  export function LiftTypeFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 't_bar')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'double')) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'rope_tow')) {
28
- return json;
29
- }
30
- if (typeof json === 'string' && (json === 'eight_pack')) {
31
- return json;
32
- }
33
- if (typeof json === 'string' && (json === 'six_pack')) {
34
- return json;
35
- }
36
- if (typeof json === 'string' && (json === 'triple')) {
37
- return json;
38
- }
39
- if (typeof json === 'string' && (json === 'gondola')) {
40
- return json;
41
- }
42
- if (typeof json === 'string' && (json === 'surface_lift')) {
43
- return json;
44
- }
45
- if (typeof json === 'string' && (json === 'platter')) {
46
- return json;
47
- }
48
- if (typeof json === 'string' && (json === 'tram')) {
49
- return json;
50
- }
51
- if (typeof json === 'string' && (json === 'funicular')) {
52
- return json;
53
- }
54
- if (typeof json === 'string' && (json === 'magic_carpet')) {
55
- return json;
56
- }
57
- if (typeof json === 'string' && (json === 'quad')) {
58
- return json;
59
- }
60
- return {};
47
+ return json;
61
48
  }
62
- export function LiftTypeToJSON(json) {
63
- return LiftTypeToJSONTyped(json, false);
49
+ export function LiftTypeToJSON(value) {
50
+ return value;
64
51
  }
65
- export function LiftTypeToJSONTyped(value, ignoreDiscriminator = false) {
66
- if (value == null) {
67
- return value;
68
- }
69
- if (typeof value === 'string' && (value === 't_bar')) {
70
- return value;
71
- }
72
- if (typeof value === 'string' && (value === 'double')) {
73
- return value;
74
- }
75
- if (typeof value === 'string' && (value === 'rope_tow')) {
76
- return value;
77
- }
78
- if (typeof value === 'string' && (value === 'eight_pack')) {
79
- return value;
80
- }
81
- if (typeof value === 'string' && (value === 'six_pack')) {
82
- return value;
83
- }
84
- if (typeof value === 'string' && (value === 'triple')) {
85
- return value;
86
- }
87
- if (typeof value === 'string' && (value === 'gondola')) {
88
- return value;
89
- }
90
- if (typeof value === 'string' && (value === 'surface_lift')) {
91
- return value;
92
- }
93
- if (typeof value === 'string' && (value === 'platter')) {
94
- return value;
95
- }
96
- if (typeof value === 'string' && (value === 'tram')) {
97
- return value;
98
- }
99
- if (typeof value === 'string' && (value === 'funicular')) {
100
- return value;
101
- }
102
- if (typeof value === 'string' && (value === 'magic_carpet')) {
103
- return value;
104
- }
105
- if (typeof value === 'string' && (value === 'quad')) {
106
- return value;
107
- }
108
- return {};
52
+ export function LiftTypeToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
109
54
  }
@@ -105,6 +105,25 @@ export interface PublicResortStatus {
105
105
  * @memberof PublicResortStatus
106
106
  */
107
107
  liftsUpdatedAt?: Date | null;
108
+ /**
109
+ * Number of summer trails currently open.
110
+ * Only included if the summer trails feature is enabled.
111
+ * @type {number}
112
+ * @memberof PublicResortStatus
113
+ */
114
+ openSummerTrails?: number | null;
115
+ /**
116
+ * Total number of summer trails at the resort.
117
+ * @type {number}
118
+ * @memberof PublicResortStatus
119
+ */
120
+ totalSummerTrails?: number | null;
121
+ /**
122
+ * When summer trail statuses were last updated.
123
+ * @type {Date}
124
+ * @memberof PublicResortStatus
125
+ */
126
+ summerTrailsUpdatedAt?: Date | null;
108
127
  }
109
128
  /**
110
129
  * Check if a given object implements the PublicResortStatus interface.
@@ -50,6 +50,9 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'openLifts': json['open_lifts'] == null ? undefined : json['open_lifts'],
51
51
  'totalLifts': json['total_lifts'],
52
52
  'liftsUpdatedAt': json['lifts_updated_at'] == null ? undefined : (new Date(json['lifts_updated_at'])),
53
+ 'openSummerTrails': json['open_summer_trails'] == null ? undefined : json['open_summer_trails'],
54
+ 'totalSummerTrails': json['total_summer_trails'] == null ? undefined : json['total_summer_trails'],
55
+ 'summerTrailsUpdatedAt': json['summer_trails_updated_at'] == null ? undefined : (new Date(json['summer_trails_updated_at'])),
53
56
  };
54
57
  }
55
58
  export function PublicResortStatusToJSON(json) {
@@ -73,5 +76,8 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
73
76
  'open_lifts': value['openLifts'],
74
77
  'total_lifts': value['totalLifts'],
75
78
  'lifts_updated_at': value['liftsUpdatedAt'] == null ? value['liftsUpdatedAt'] : value['liftsUpdatedAt'].toISOString(),
79
+ 'open_summer_trails': value['openSummerTrails'],
80
+ 'total_summer_trails': value['totalSummerTrails'],
81
+ 'summer_trails_updated_at': value['summerTrailsUpdatedAt'] == null ? value['summerTrailsUpdatedAt'] : value['summerTrailsUpdatedAt'].toISOString(),
76
82
  };
77
83
  }
@@ -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 type ResortStatusType = string;
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(json: any): any;
24
- export declare function ResortStatusTypeToJSONTyped(value?: ResortStatusType | null, ignoreDiscriminator?: boolean): any;
27
+ export declare function ResortStatusTypeToJSON(value?: ResortStatusType | null): any;
28
+ export declare function ResortStatusTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResortStatusType;
@@ -11,33 +11,36 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Current operational status of the resort.
16
+ *
17
+ * Calculated automatically based on the current time relative to
18
+ * the resort's scheduled operating hours.
19
+ * @export
20
+ */
21
+ export const ResortStatusType = {
22
+ Open: 'open',
23
+ Closed: 'closed'
24
+ };
25
+ export function instanceOfResortStatusType(value) {
26
+ for (const key in ResortStatusType) {
27
+ if (Object.prototype.hasOwnProperty.call(ResortStatusType, key)) {
28
+ if (ResortStatusType[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
14
35
  export function ResortStatusTypeFromJSON(json) {
15
36
  return ResortStatusTypeFromJSONTyped(json, false);
16
37
  }
17
38
  export function ResortStatusTypeFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 'open')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'closed')) {
25
- return json;
26
- }
27
- return {};
39
+ return json;
28
40
  }
29
- export function ResortStatusTypeToJSON(json) {
30
- return ResortStatusTypeToJSONTyped(json, false);
41
+ export function ResortStatusTypeToJSON(value) {
42
+ return value;
31
43
  }
32
- export function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator = false) {
33
- if (value == null) {
34
- return value;
35
- }
36
- if (typeof value === 'string' && (value === 'open')) {
37
- return value;
38
- }
39
- if (typeof value === 'string' && (value === 'closed')) {
40
- return value;
41
- }
42
- return {};
44
+ export function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator) {
45
+ return value;
43
46
  }
@@ -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 type RunDifficulty = string;
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(json: any): any;
23
- export declare function RunDifficultyToJSONTyped(value?: RunDifficulty | null, ignoreDiscriminator?: boolean): any;
29
+ export declare function RunDifficultyToJSON(value?: RunDifficulty | null): any;
30
+ export declare function RunDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): RunDifficulty;
@@ -11,51 +11,38 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Difficulty rating for a ski run or trail.
16
+ *
17
+ * Based on the standard North American ski trail rating system.
18
+ * @export
19
+ */
20
+ export const RunDifficulty = {
21
+ Beginner: 'beginner',
22
+ Intermediate: 'intermediate',
23
+ Advanced: 'advanced',
24
+ Expert: 'expert',
25
+ TerrainPark: 'terrain_park'
26
+ };
27
+ export function instanceOfRunDifficulty(value) {
28
+ for (const key in RunDifficulty) {
29
+ if (Object.prototype.hasOwnProperty.call(RunDifficulty, key)) {
30
+ if (RunDifficulty[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
14
37
  export function RunDifficultyFromJSON(json) {
15
38
  return RunDifficultyFromJSONTyped(json, false);
16
39
  }
17
40
  export function RunDifficultyFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 'expert')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'beginner')) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'advanced')) {
28
- return json;
29
- }
30
- if (typeof json === 'string' && (json === 'terrain_park')) {
31
- return json;
32
- }
33
- if (typeof json === 'string' && (json === 'intermediate')) {
34
- return json;
35
- }
36
- return {};
41
+ return json;
37
42
  }
38
- export function RunDifficultyToJSON(json) {
39
- return RunDifficultyToJSONTyped(json, false);
43
+ export function RunDifficultyToJSON(value) {
44
+ return value;
40
45
  }
41
- export function RunDifficultyToJSONTyped(value, ignoreDiscriminator = false) {
42
- if (value == null) {
43
- return value;
44
- }
45
- if (typeof value === 'string' && (value === 'expert')) {
46
- return value;
47
- }
48
- if (typeof value === 'string' && (value === 'beginner')) {
49
- return value;
50
- }
51
- if (typeof value === 'string' && (value === 'advanced')) {
52
- return value;
53
- }
54
- if (typeof value === 'string' && (value === 'terrain_park')) {
55
- return value;
56
- }
57
- if (typeof value === 'string' && (value === 'intermediate')) {
58
- return value;
59
- }
60
- return {};
46
+ export function RunDifficultyToJSONTyped(value, ignoreDiscriminator) {
47
+ return value;
61
48
  }
@@ -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 type RunStatus = string;
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(json: any): any;
21
- export declare function RunStatusToJSONTyped(value?: RunStatus | null, ignoreDiscriminator?: boolean): any;
25
+ export declare function RunStatusToJSON(value?: RunStatus | null): any;
26
+ export declare function RunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RunStatus;
@@ -11,39 +11,34 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Operational status of a ski run.
16
+ * @export
17
+ */
18
+ export const RunStatus = {
19
+ Open: 'open',
20
+ Closed: 'closed',
21
+ Unknown: 'unknown'
22
+ };
23
+ export function instanceOfRunStatus(value) {
24
+ for (const key in RunStatus) {
25
+ if (Object.prototype.hasOwnProperty.call(RunStatus, key)) {
26
+ if (RunStatus[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
14
33
  export function RunStatusFromJSON(json) {
15
34
  return RunStatusFromJSONTyped(json, false);
16
35
  }
17
36
  export function RunStatusFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 'unknown')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'open')) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'closed')) {
28
- return json;
29
- }
30
- return {};
37
+ return json;
31
38
  }
32
- export function RunStatusToJSON(json) {
33
- return RunStatusToJSONTyped(json, false);
39
+ export function RunStatusToJSON(value) {
40
+ return value;
34
41
  }
35
- export function RunStatusToJSONTyped(value, ignoreDiscriminator = false) {
36
- if (value == null) {
37
- return value;
38
- }
39
- if (typeof value === 'string' && (value === 'unknown')) {
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 {};
42
+ export function RunStatusToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
49
44
  }
@@ -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 type SeasonType = string;
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(json: any): any;
21
- export declare function SeasonTypeToJSONTyped(value?: SeasonType | null, ignoreDiscriminator?: boolean): any;
25
+ export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
26
+ export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;