@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.
- 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/PublicResortStatus.d.ts +19 -0
- package/dist/esm/models/PublicResortStatus.js +6 -0
- 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/PublicResortStatus.d.ts +19 -0
- package/dist/models/PublicResortStatus.js +6 -0
- 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
|
@@ -11,39 +11,34 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Current operating season of the resort.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SeasonType = {
|
|
19
|
+
Winter: 'winter',
|
|
20
|
+
Summer: 'summer',
|
|
21
|
+
Closed: 'closed'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSeasonType(value) {
|
|
24
|
+
for (const key in SeasonType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SeasonType, key)) {
|
|
26
|
+
if (SeasonType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
14
33
|
export function SeasonTypeFromJSON(json) {
|
|
15
34
|
return SeasonTypeFromJSONTyped(json, false);
|
|
16
35
|
}
|
|
17
36
|
export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'winter')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'summer')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
return {};
|
|
37
|
+
return json;
|
|
31
38
|
}
|
|
32
|
-
export function SeasonTypeToJSON(
|
|
33
|
-
return
|
|
39
|
+
export function SeasonTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
34
41
|
}
|
|
35
|
-
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator
|
|
36
|
-
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'winter')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'summer')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
42
|
+
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
49
44
|
}
|
|
@@ -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;
|
|
@@ -11,51 +11,36 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Difficulty rating for a summer trail.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SummerTrailDifficulty = {
|
|
19
|
+
Beginner: 'beginner',
|
|
20
|
+
Intermediate: 'intermediate',
|
|
21
|
+
Advanced: 'advanced',
|
|
22
|
+
Expert: 'expert',
|
|
23
|
+
TerrainPark: 'terrain_park'
|
|
24
|
+
};
|
|
25
|
+
export function instanceOfSummerTrailDifficulty(value) {
|
|
26
|
+
for (const key in SummerTrailDifficulty) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailDifficulty, key)) {
|
|
28
|
+
if (SummerTrailDifficulty[key] === value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
14
35
|
export function SummerTrailDifficultyFromJSON(json) {
|
|
15
36
|
return SummerTrailDifficultyFromJSONTyped(json, false);
|
|
16
37
|
}
|
|
17
38
|
export function SummerTrailDifficultyFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
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 {};
|
|
39
|
+
return json;
|
|
37
40
|
}
|
|
38
|
-
export function SummerTrailDifficultyToJSON(
|
|
39
|
-
return
|
|
41
|
+
export function SummerTrailDifficultyToJSON(value) {
|
|
42
|
+
return value;
|
|
40
43
|
}
|
|
41
|
-
export function SummerTrailDifficultyToJSONTyped(value, ignoreDiscriminator
|
|
42
|
-
|
|
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 {};
|
|
44
|
+
export function SummerTrailDifficultyToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
return value;
|
|
61
46
|
}
|
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SummerTrailStatus
|
|
14
13
|
* Operational status of a summer trail.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SummerTrailStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
};
|
|
21
|
+
export type SummerTrailStatus = typeof SummerTrailStatus[keyof typeof SummerTrailStatus];
|
|
22
|
+
export declare function instanceOfSummerTrailStatus(value: any): boolean;
|
|
18
23
|
export declare function SummerTrailStatusFromJSON(json: any): SummerTrailStatus;
|
|
19
24
|
export declare function SummerTrailStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailStatus;
|
|
20
|
-
export declare function SummerTrailStatusToJSON(
|
|
21
|
-
export declare function SummerTrailStatusToJSONTyped(value
|
|
25
|
+
export declare function SummerTrailStatusToJSON(value?: SummerTrailStatus | null): any;
|
|
26
|
+
export declare function SummerTrailStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailStatus;
|
|
@@ -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 summer trail.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SummerTrailStatus = {
|
|
19
|
+
Open: 'open',
|
|
20
|
+
Closed: 'closed',
|
|
21
|
+
Unknown: 'unknown'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSummerTrailStatus(value) {
|
|
24
|
+
for (const key in SummerTrailStatus) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailStatus, key)) {
|
|
26
|
+
if (SummerTrailStatus[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
14
33
|
export function SummerTrailStatusFromJSON(json) {
|
|
15
34
|
return SummerTrailStatusFromJSONTyped(json, false);
|
|
16
35
|
}
|
|
17
36
|
export function SummerTrailStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
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 SummerTrailStatusToJSON(
|
|
33
|
-
return
|
|
39
|
+
export function SummerTrailStatusToJSON(value) {
|
|
40
|
+
return value;
|
|
34
41
|
}
|
|
35
|
-
export function SummerTrailStatusToJSONTyped(value, ignoreDiscriminator
|
|
36
|
-
|
|
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 SummerTrailStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
49
44
|
}
|
|
@@ -10,12 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SummerTrailType
|
|
14
13
|
* Type of summer trail activity.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SummerTrailType: {
|
|
17
|
+
readonly Hiking: "hiking";
|
|
18
|
+
readonly MountainBiking: "mountain_biking";
|
|
19
|
+
};
|
|
20
|
+
export type SummerTrailType = typeof SummerTrailType[keyof typeof SummerTrailType];
|
|
21
|
+
export declare function instanceOfSummerTrailType(value: any): boolean;
|
|
18
22
|
export declare function SummerTrailTypeFromJSON(json: any): SummerTrailType;
|
|
19
23
|
export declare function SummerTrailTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailType;
|
|
20
|
-
export declare function SummerTrailTypeToJSON(
|
|
21
|
-
export declare function SummerTrailTypeToJSONTyped(value
|
|
24
|
+
export declare function SummerTrailTypeToJSON(value?: SummerTrailType | null): any;
|
|
25
|
+
export declare function SummerTrailTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailType;
|
|
@@ -11,33 +11,33 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Type of summer trail activity.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SummerTrailType = {
|
|
19
|
+
Hiking: 'hiking',
|
|
20
|
+
MountainBiking: 'mountain_biking'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfSummerTrailType(value) {
|
|
23
|
+
for (const key in SummerTrailType) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailType, key)) {
|
|
25
|
+
if (SummerTrailType[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
14
32
|
export function SummerTrailTypeFromJSON(json) {
|
|
15
33
|
return SummerTrailTypeFromJSONTyped(json, false);
|
|
16
34
|
}
|
|
17
35
|
export function SummerTrailTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'mountain_biking')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'hiking')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {};
|
|
36
|
+
return json;
|
|
28
37
|
}
|
|
29
|
-
export function SummerTrailTypeToJSON(
|
|
30
|
-
return
|
|
38
|
+
export function SummerTrailTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
31
40
|
}
|
|
32
|
-
export function SummerTrailTypeToJSONTyped(value, ignoreDiscriminator
|
|
33
|
-
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
if (typeof value === 'string' && (value === 'mountain_biking')) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'hiking')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
41
|
+
export function SummerTrailTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
43
|
}
|
|
@@ -10,15 +10,32 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SurfaceCondition
|
|
14
13
|
* Snow surface condition codes.
|
|
15
14
|
*
|
|
16
15
|
* Industry-standard two-letter codes describing snow surface conditions.
|
|
17
16
|
* These codes are commonly used across ski resorts and snow reporting systems.
|
|
18
17
|
* @export
|
|
19
18
|
*/
|
|
20
|
-
export
|
|
19
|
+
export declare const SurfaceCondition: {
|
|
20
|
+
readonly Bs: "BS";
|
|
21
|
+
readonly Co: "CO";
|
|
22
|
+
readonly Fg: "FG";
|
|
23
|
+
readonly Hp: "HP";
|
|
24
|
+
readonly Ip: "IP";
|
|
25
|
+
readonly Is: "IS";
|
|
26
|
+
readonly Lg: "LG";
|
|
27
|
+
readonly Mg: "MG";
|
|
28
|
+
readonly P: "P";
|
|
29
|
+
readonly Pp: "PP";
|
|
30
|
+
readonly Sc: "SC";
|
|
31
|
+
readonly Tc: "TC";
|
|
32
|
+
readonly V: "V";
|
|
33
|
+
readonly Wg: "WG";
|
|
34
|
+
readonly Wp: "WP";
|
|
35
|
+
};
|
|
36
|
+
export type SurfaceCondition = typeof SurfaceCondition[keyof typeof SurfaceCondition];
|
|
37
|
+
export declare function instanceOfSurfaceCondition(value: any): boolean;
|
|
21
38
|
export declare function SurfaceConditionFromJSON(json: any): SurfaceCondition;
|
|
22
39
|
export declare function SurfaceConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurfaceCondition;
|
|
23
|
-
export declare function SurfaceConditionToJSON(
|
|
24
|
-
export declare function SurfaceConditionToJSONTyped(value
|
|
40
|
+
export declare function SurfaceConditionToJSON(value?: SurfaceCondition | null): any;
|
|
41
|
+
export declare function SurfaceConditionToJSONTyped(value: any, ignoreDiscriminator: boolean): SurfaceCondition;
|
|
@@ -11,111 +11,49 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Snow surface condition codes.
|
|
16
|
+
*
|
|
17
|
+
* Industry-standard two-letter codes describing snow surface conditions.
|
|
18
|
+
* These codes are commonly used across ski resorts and snow reporting systems.
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const SurfaceCondition = {
|
|
22
|
+
Bs: 'BS',
|
|
23
|
+
Co: 'CO',
|
|
24
|
+
Fg: 'FG',
|
|
25
|
+
Hp: 'HP',
|
|
26
|
+
Ip: 'IP',
|
|
27
|
+
Is: 'IS',
|
|
28
|
+
Lg: 'LG',
|
|
29
|
+
Mg: 'MG',
|
|
30
|
+
P: 'P',
|
|
31
|
+
Pp: 'PP',
|
|
32
|
+
Sc: 'SC',
|
|
33
|
+
Tc: 'TC',
|
|
34
|
+
V: 'V',
|
|
35
|
+
Wg: 'WG',
|
|
36
|
+
Wp: 'WP'
|
|
37
|
+
};
|
|
38
|
+
export function instanceOfSurfaceCondition(value) {
|
|
39
|
+
for (const key in SurfaceCondition) {
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(SurfaceCondition, key)) {
|
|
41
|
+
if (SurfaceCondition[key] === value) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
14
48
|
export function SurfaceConditionFromJSON(json) {
|
|
15
49
|
return SurfaceConditionFromJSONTyped(json, false);
|
|
16
50
|
}
|
|
17
51
|
export function SurfaceConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'IP')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'P')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'SC')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'WP')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json === 'string' && (json === 'PP')) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
if (typeof json === 'string' && (json === 'CO')) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
if (typeof json === 'string' && (json === 'FG')) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
if (typeof json === 'string' && (json === 'BS')) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
if (typeof json === 'string' && (json === 'V')) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
if (typeof json === 'string' && (json === 'WG')) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
if (typeof json === 'string' && (json === 'MG')) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
if (typeof json === 'string' && (json === 'HP')) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
if (typeof json === 'string' && (json === 'IS')) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
if (typeof json === 'string' && (json === 'LG')) {
|
|
61
|
-
return json;
|
|
62
|
-
}
|
|
63
|
-
if (typeof json === 'string' && (json === 'TC')) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {};
|
|
52
|
+
return json;
|
|
67
53
|
}
|
|
68
|
-
export function SurfaceConditionToJSON(
|
|
69
|
-
return
|
|
54
|
+
export function SurfaceConditionToJSON(value) {
|
|
55
|
+
return value;
|
|
70
56
|
}
|
|
71
|
-
export function SurfaceConditionToJSONTyped(value, ignoreDiscriminator
|
|
72
|
-
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
if (typeof value === 'string' && (value === 'IP')) {
|
|
76
|
-
return value;
|
|
77
|
-
}
|
|
78
|
-
if (typeof value === 'string' && (value === 'P')) {
|
|
79
|
-
return value;
|
|
80
|
-
}
|
|
81
|
-
if (typeof value === 'string' && (value === 'SC')) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
if (typeof value === 'string' && (value === 'WP')) {
|
|
85
|
-
return value;
|
|
86
|
-
}
|
|
87
|
-
if (typeof value === 'string' && (value === 'PP')) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
if (typeof value === 'string' && (value === 'CO')) {
|
|
91
|
-
return value;
|
|
92
|
-
}
|
|
93
|
-
if (typeof value === 'string' && (value === 'FG')) {
|
|
94
|
-
return value;
|
|
95
|
-
}
|
|
96
|
-
if (typeof value === 'string' && (value === 'BS')) {
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
if (typeof value === 'string' && (value === 'V')) {
|
|
100
|
-
return value;
|
|
101
|
-
}
|
|
102
|
-
if (typeof value === 'string' && (value === 'WG')) {
|
|
103
|
-
return value;
|
|
104
|
-
}
|
|
105
|
-
if (typeof value === 'string' && (value === 'MG')) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
if (typeof value === 'string' && (value === 'HP')) {
|
|
109
|
-
return value;
|
|
110
|
-
}
|
|
111
|
-
if (typeof value === 'string' && (value === 'IS')) {
|
|
112
|
-
return value;
|
|
113
|
-
}
|
|
114
|
-
if (typeof value === 'string' && (value === 'LG')) {
|
|
115
|
-
return value;
|
|
116
|
-
}
|
|
117
|
-
if (typeof value === 'string' && (value === 'TC')) {
|
|
118
|
-
return value;
|
|
119
|
-
}
|
|
120
|
-
return {};
|
|
57
|
+
export function SurfaceConditionToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
return value;
|
|
121
59
|
}
|
|
@@ -10,13 +10,56 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type WeatherConditionCode
|
|
14
13
|
* Apple WeatherKit condition codes
|
|
15
14
|
* Represents all possible weather conditions from the WeatherKit API
|
|
16
15
|
* @export
|
|
17
16
|
*/
|
|
18
|
-
export
|
|
17
|
+
export declare const WeatherConditionCode: {
|
|
18
|
+
readonly Clear: "Clear";
|
|
19
|
+
readonly MostlyClear: "MostlyClear";
|
|
20
|
+
readonly PartlyCloudy: "PartlyCloudy";
|
|
21
|
+
readonly MostlyCloudy: "MostlyCloudy";
|
|
22
|
+
readonly Cloudy: "Cloudy";
|
|
23
|
+
readonly Dust: "Dust";
|
|
24
|
+
readonly Fog: "Fog";
|
|
25
|
+
readonly Haze: "Haze";
|
|
26
|
+
readonly Smoke: "Smoke";
|
|
27
|
+
readonly Breezy: "Breezy";
|
|
28
|
+
readonly Windy: "Windy";
|
|
29
|
+
readonly Drizzle: "Drizzle";
|
|
30
|
+
readonly Rain: "Rain";
|
|
31
|
+
readonly Showers: "Showers";
|
|
32
|
+
readonly ScatteredShowers: "ScatteredShowers";
|
|
33
|
+
readonly HeavyRain: "HeavyRain";
|
|
34
|
+
readonly Flurries: "Flurries";
|
|
35
|
+
readonly Snow: "Snow";
|
|
36
|
+
readonly SnowShowers: "SnowShowers";
|
|
37
|
+
readonly ScatteredSnowShowers: "ScatteredSnowShowers";
|
|
38
|
+
readonly HeavySnow: "HeavySnow";
|
|
39
|
+
readonly Blizzard: "Blizzard";
|
|
40
|
+
readonly BlowingSnow: "BlowingSnow";
|
|
41
|
+
readonly MixedRainAndSleet: "MixedRainAndSleet";
|
|
42
|
+
readonly MixedRainAndSnow: "MixedRainAndSnow";
|
|
43
|
+
readonly MixedRainfall: "MixedRainfall";
|
|
44
|
+
readonly MixedSnowAndSleet: "MixedSnowAndSleet";
|
|
45
|
+
readonly Sleet: "Sleet";
|
|
46
|
+
readonly FreezingDrizzle: "FreezingDrizzle";
|
|
47
|
+
readonly FreezingRain: "FreezingRain";
|
|
48
|
+
readonly Frigid: "Frigid";
|
|
49
|
+
readonly Hail: "Hail";
|
|
50
|
+
readonly ScatteredThunderstorms: "ScatteredThunderstorms";
|
|
51
|
+
readonly IsolatedThunderstorms: "IsolatedThunderstorms";
|
|
52
|
+
readonly Thunderstorm: "Thunderstorm";
|
|
53
|
+
readonly SevereThunderstorm: "SevereThunderstorm";
|
|
54
|
+
readonly Hurricane: "Hurricane";
|
|
55
|
+
readonly Tornado: "Tornado";
|
|
56
|
+
readonly TropicalStorm: "TropicalStorm";
|
|
57
|
+
readonly Hot: "Hot";
|
|
58
|
+
readonly Unknown: "Unknown";
|
|
59
|
+
};
|
|
60
|
+
export type WeatherConditionCode = typeof WeatherConditionCode[keyof typeof WeatherConditionCode];
|
|
61
|
+
export declare function instanceOfWeatherConditionCode(value: any): boolean;
|
|
19
62
|
export declare function WeatherConditionCodeFromJSON(json: any): WeatherConditionCode;
|
|
20
63
|
export declare function WeatherConditionCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WeatherConditionCode;
|
|
21
|
-
export declare function WeatherConditionCodeToJSON(
|
|
22
|
-
export declare function WeatherConditionCodeToJSONTyped(value
|
|
64
|
+
export declare function WeatherConditionCodeToJSON(value?: WeatherConditionCode | null): any;
|
|
65
|
+
export declare function WeatherConditionCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): WeatherConditionCode;
|
|
@@ -11,33 +11,73 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Apple WeatherKit condition codes
|
|
16
|
+
* Represents all possible weather conditions from the WeatherKit API
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const WeatherConditionCode = {
|
|
20
|
+
Clear: 'Clear',
|
|
21
|
+
MostlyClear: 'MostlyClear',
|
|
22
|
+
PartlyCloudy: 'PartlyCloudy',
|
|
23
|
+
MostlyCloudy: 'MostlyCloudy',
|
|
24
|
+
Cloudy: 'Cloudy',
|
|
25
|
+
Dust: 'Dust',
|
|
26
|
+
Fog: 'Fog',
|
|
27
|
+
Haze: 'Haze',
|
|
28
|
+
Smoke: 'Smoke',
|
|
29
|
+
Breezy: 'Breezy',
|
|
30
|
+
Windy: 'Windy',
|
|
31
|
+
Drizzle: 'Drizzle',
|
|
32
|
+
Rain: 'Rain',
|
|
33
|
+
Showers: 'Showers',
|
|
34
|
+
ScatteredShowers: 'ScatteredShowers',
|
|
35
|
+
HeavyRain: 'HeavyRain',
|
|
36
|
+
Flurries: 'Flurries',
|
|
37
|
+
Snow: 'Snow',
|
|
38
|
+
SnowShowers: 'SnowShowers',
|
|
39
|
+
ScatteredSnowShowers: 'ScatteredSnowShowers',
|
|
40
|
+
HeavySnow: 'HeavySnow',
|
|
41
|
+
Blizzard: 'Blizzard',
|
|
42
|
+
BlowingSnow: 'BlowingSnow',
|
|
43
|
+
MixedRainAndSleet: 'MixedRainAndSleet',
|
|
44
|
+
MixedRainAndSnow: 'MixedRainAndSnow',
|
|
45
|
+
MixedRainfall: 'MixedRainfall',
|
|
46
|
+
MixedSnowAndSleet: 'MixedSnowAndSleet',
|
|
47
|
+
Sleet: 'Sleet',
|
|
48
|
+
FreezingDrizzle: 'FreezingDrizzle',
|
|
49
|
+
FreezingRain: 'FreezingRain',
|
|
50
|
+
Frigid: 'Frigid',
|
|
51
|
+
Hail: 'Hail',
|
|
52
|
+
ScatteredThunderstorms: 'ScatteredThunderstorms',
|
|
53
|
+
IsolatedThunderstorms: 'IsolatedThunderstorms',
|
|
54
|
+
Thunderstorm: 'Thunderstorm',
|
|
55
|
+
SevereThunderstorm: 'SevereThunderstorm',
|
|
56
|
+
Hurricane: 'Hurricane',
|
|
57
|
+
Tornado: 'Tornado',
|
|
58
|
+
TropicalStorm: 'TropicalStorm',
|
|
59
|
+
Hot: 'Hot',
|
|
60
|
+
Unknown: 'Unknown'
|
|
61
|
+
};
|
|
62
|
+
export function instanceOfWeatherConditionCode(value) {
|
|
63
|
+
for (const key in WeatherConditionCode) {
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(WeatherConditionCode, key)) {
|
|
65
|
+
if (WeatherConditionCode[key] === value) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
14
72
|
export function WeatherConditionCodeFromJSON(json) {
|
|
15
73
|
return WeatherConditionCodeFromJSONTyped(json, false);
|
|
16
74
|
}
|
|
17
75
|
export function WeatherConditionCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'Clear' || json === 'MostlyClear' || json === 'PartlyCloudy' || json === 'MostlyCloudy' || json === 'Cloudy' || json === 'Dust' || json === 'Fog' || json === 'Haze' || json === 'Smoke' || json === 'Breezy' || json === 'Windy' || json === 'Drizzle' || json === 'Rain' || json === 'Showers' || json === 'ScatteredShowers' || json === 'HeavyRain' || json === 'Flurries' || json === 'Snow' || json === 'SnowShowers' || json === 'ScatteredSnowShowers' || json === 'HeavySnow' || json === 'Blizzard' || json === 'BlowingSnow' || json === 'MixedRainAndSleet' || json === 'MixedRainAndSnow' || json === 'MixedRainfall' || json === 'MixedSnowAndSleet' || json === 'Sleet' || json === 'FreezingDrizzle' || json === 'FreezingRain' || json === 'Frigid' || json === 'Hail' || json === 'ScatteredThunderstorms' || json === 'IsolatedThunderstorms' || json === 'Thunderstorm' || json === 'SevereThunderstorm' || json === 'Hurricane' || json === 'Tornado' || json === 'TropicalStorm' || json === 'Hot')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'Unknown')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {};
|
|
76
|
+
return json;
|
|
28
77
|
}
|
|
29
|
-
export function WeatherConditionCodeToJSON(
|
|
30
|
-
return
|
|
78
|
+
export function WeatherConditionCodeToJSON(value) {
|
|
79
|
+
return value;
|
|
31
80
|
}
|
|
32
|
-
export function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator
|
|
33
|
-
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
if (typeof value === 'string' && (value === 'Clear' || value === 'MostlyClear' || value === 'PartlyCloudy' || value === 'MostlyCloudy' || value === 'Cloudy' || value === 'Dust' || value === 'Fog' || value === 'Haze' || value === 'Smoke' || value === 'Breezy' || value === 'Windy' || value === 'Drizzle' || value === 'Rain' || value === 'Showers' || value === 'ScatteredShowers' || value === 'HeavyRain' || value === 'Flurries' || value === 'Snow' || value === 'SnowShowers' || value === 'ScatteredSnowShowers' || value === 'HeavySnow' || value === 'Blizzard' || value === 'BlowingSnow' || value === 'MixedRainAndSleet' || value === 'MixedRainAndSnow' || value === 'MixedRainfall' || value === 'MixedSnowAndSleet' || value === 'Sleet' || value === 'FreezingDrizzle' || value === 'FreezingRain' || value === 'Frigid' || value === 'Hail' || value === 'ScatteredThunderstorms' || value === 'IsolatedThunderstorms' || value === 'Thunderstorm' || value === 'SevereThunderstorm' || value === 'Hurricane' || value === 'Tornado' || value === 'TropicalStorm' || value === 'Hot')) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'Unknown')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
81
|
+
export function WeatherConditionCodeToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
return value;
|
|
43
83
|
}
|