@mtnmanager/sdk 0.0.1 → 0.0.4

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 (98) hide show
  1. package/README.md +19 -5
  2. package/dist/esm/models/CurrentWeather.d.ts +85 -0
  3. package/dist/esm/models/CurrentWeather.js +77 -0
  4. package/dist/esm/models/DailyForecast.d.ts +76 -0
  5. package/dist/esm/models/DailyForecast.js +73 -0
  6. package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
  7. package/dist/esm/models/DailyForecastImperial.js +63 -0
  8. package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
  9. package/dist/esm/models/DailyForecastMetric.js +63 -0
  10. package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  11. package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
  12. package/dist/esm/models/HourlyForecast.d.ts +70 -0
  13. package/dist/esm/models/HourlyForecast.js +69 -0
  14. package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
  15. package/dist/esm/models/HourlyForecastImperial.js +63 -0
  16. package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
  17. package/dist/esm/models/HourlyForecastMetric.js +63 -0
  18. package/dist/esm/models/ImperialUnits.d.ts +68 -0
  19. package/dist/esm/models/ImperialUnits.js +65 -0
  20. package/dist/esm/models/MetricUnits.d.ts +68 -0
  21. package/dist/esm/models/MetricUnits.js +65 -0
  22. package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
  23. package/dist/esm/models/OperatingHoursResponse.js +7 -11
  24. package/dist/esm/models/PublicResortResponse.d.ts +7 -0
  25. package/dist/esm/models/PublicResortResponse.js +3 -0
  26. package/dist/esm/models/PublicResortStatus.d.ts +43 -1
  27. package/dist/esm/models/PublicResortStatus.js +24 -0
  28. package/dist/esm/models/PublicRun.d.ts +6 -0
  29. package/dist/esm/models/PublicRun.js +2 -0
  30. package/dist/esm/models/PublicSnowReport.d.ts +12 -0
  31. package/dist/esm/models/PublicSnowReport.js +4 -0
  32. package/dist/esm/models/RecurrencePattern.d.ts +24 -0
  33. package/dist/esm/models/RecurrencePattern.js +58 -0
  34. package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
  35. package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
  36. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
  37. package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
  38. package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
  39. package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
  40. package/dist/esm/models/Schedule.d.ts +81 -0
  41. package/dist/esm/models/Schedule.js +76 -0
  42. package/dist/esm/models/SurfaceCondition.d.ts +16 -7
  43. package/dist/esm/models/SurfaceCondition.js +16 -7
  44. package/dist/esm/models/WeatherData.d.ts +59 -0
  45. package/dist/esm/models/WeatherData.js +62 -0
  46. package/dist/esm/models/index.d.ts +16 -2
  47. package/dist/esm/models/index.js +16 -2
  48. package/dist/models/CurrentWeather.d.ts +85 -0
  49. package/dist/models/CurrentWeather.js +84 -0
  50. package/dist/models/DailyForecast.d.ts +76 -0
  51. package/dist/models/DailyForecast.js +80 -0
  52. package/dist/models/DailyForecastImperial.d.ts +62 -0
  53. package/dist/models/DailyForecastImperial.js +70 -0
  54. package/dist/models/DailyForecastMetric.d.ts +62 -0
  55. package/dist/models/DailyForecastMetric.js +70 -0
  56. package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
  57. package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
  58. package/dist/models/HourlyForecast.d.ts +70 -0
  59. package/dist/models/HourlyForecast.js +76 -0
  60. package/dist/models/HourlyForecastImperial.d.ts +62 -0
  61. package/dist/models/HourlyForecastImperial.js +70 -0
  62. package/dist/models/HourlyForecastMetric.d.ts +62 -0
  63. package/dist/models/HourlyForecastMetric.js +70 -0
  64. package/dist/models/ImperialUnits.d.ts +68 -0
  65. package/dist/models/ImperialUnits.js +72 -0
  66. package/dist/models/MetricUnits.d.ts +68 -0
  67. package/dist/models/MetricUnits.js +72 -0
  68. package/dist/models/OperatingHoursResponse.d.ts +6 -12
  69. package/dist/models/OperatingHoursResponse.js +7 -11
  70. package/dist/models/PublicResortResponse.d.ts +7 -0
  71. package/dist/models/PublicResortResponse.js +3 -0
  72. package/dist/models/PublicResortStatus.d.ts +43 -1
  73. package/dist/models/PublicResortStatus.js +24 -0
  74. package/dist/models/PublicRun.d.ts +6 -0
  75. package/dist/models/PublicRun.js +2 -0
  76. package/dist/models/PublicSnowReport.d.ts +12 -0
  77. package/dist/models/PublicSnowReport.js +4 -0
  78. package/dist/models/RecurrencePattern.d.ts +24 -0
  79. package/dist/models/RecurrencePattern.js +64 -0
  80. package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
  81. package/dist/models/RecurrencePatternOneOf.js +57 -0
  82. package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
  83. package/dist/models/RecurrencePatternOneOf1.js +57 -0
  84. package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
  85. package/dist/models/RecurrencePatternOneOf2.js +61 -0
  86. package/dist/models/Schedule.d.ts +81 -0
  87. package/dist/models/Schedule.js +83 -0
  88. package/dist/models/SurfaceCondition.d.ts +16 -7
  89. package/dist/models/SurfaceCondition.js +16 -7
  90. package/dist/models/WeatherData.d.ts +59 -0
  91. package/dist/models/WeatherData.js +69 -0
  92. package/dist/models/index.d.ts +16 -2
  93. package/dist/models/index.js +16 -2
  94. package/package.json +7 -10
  95. package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
  96. package/dist/esm/models/RegularHoursDescription.js +0 -55
  97. package/dist/models/RegularHoursDescription.d.ts +0 -50
  98. package/dist/models/RegularHoursDescription.js +0 -62
@@ -0,0 +1,45 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RecurrencePatternOneOf2
16
+ */
17
+ export interface RecurrencePatternOneOf2 {
18
+ /**
19
+ *
20
+ * @type {Array<number>}
21
+ * @memberof RecurrencePatternOneOf2
22
+ */
23
+ days: Array<number>;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RecurrencePatternOneOf2
28
+ */
29
+ type: RecurrencePatternOneOf2TypeEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const RecurrencePatternOneOf2TypeEnum: {
35
+ readonly Weekly: "weekly";
36
+ };
37
+ export type RecurrencePatternOneOf2TypeEnum = typeof RecurrencePatternOneOf2TypeEnum[keyof typeof RecurrencePatternOneOf2TypeEnum];
38
+ /**
39
+ * Check if a given object implements the RecurrencePatternOneOf2 interface.
40
+ */
41
+ export declare function instanceOfRecurrencePatternOneOf2(value: object): value is RecurrencePatternOneOf2;
42
+ export declare function RecurrencePatternOneOf2FromJSON(json: any): RecurrencePatternOneOf2;
43
+ export declare function RecurrencePatternOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf2;
44
+ export declare function RecurrencePatternOneOf2ToJSON(json: any): RecurrencePatternOneOf2;
45
+ export declare function RecurrencePatternOneOf2ToJSONTyped(value?: RecurrencePatternOneOf2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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: 0.1.0
8
+ *
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
+ * @export
16
+ */
17
+ export const RecurrencePatternOneOf2TypeEnum = {
18
+ Weekly: 'weekly'
19
+ };
20
+ /**
21
+ * Check if a given object implements the RecurrencePatternOneOf2 interface.
22
+ */
23
+ export function instanceOfRecurrencePatternOneOf2(value) {
24
+ if (!('days' in value) || value['days'] === undefined)
25
+ return false;
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function RecurrencePatternOneOf2FromJSON(json) {
31
+ return RecurrencePatternOneOf2FromJSONTyped(json, false);
32
+ }
33
+ export function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'days': json['days'],
39
+ 'type': json['type'],
40
+ };
41
+ }
42
+ export function RecurrencePatternOneOf2ToJSON(json) {
43
+ return RecurrencePatternOneOf2ToJSONTyped(json, false);
44
+ }
45
+ export function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'days': value['days'],
51
+ 'type': value['type'],
52
+ };
53
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { RecurrencePattern } from './RecurrencePattern';
13
+ /**
14
+ * Recurring schedule with human-readable and machine-readable values
15
+ * @export
16
+ * @interface Schedule
17
+ */
18
+ export interface Schedule {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Schedule
23
+ */
24
+ closesAt: string;
25
+ /**
26
+ *
27
+ * @type {RecurrencePattern}
28
+ * @memberof Schedule
29
+ */
30
+ daysRecurrence: RecurrencePattern;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Schedule
35
+ */
36
+ daysString: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof Schedule
41
+ */
42
+ effectiveFrom: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof Schedule
47
+ */
48
+ effectiveString: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof Schedule
53
+ */
54
+ effectiveTo: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof Schedule
59
+ */
60
+ inEffect: boolean;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof Schedule
65
+ */
66
+ opensAt: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof Schedule
71
+ */
72
+ timeString: string;
73
+ }
74
+ /**
75
+ * Check if a given object implements the Schedule interface.
76
+ */
77
+ export declare function instanceOfSchedule(value: object): value is Schedule;
78
+ export declare function ScheduleFromJSON(json: any): Schedule;
79
+ export declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
80
+ export declare function ScheduleToJSON(json: any): Schedule;
81
+ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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: 0.1.0
8
+ *
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 { RecurrencePatternFromJSON, RecurrencePatternToJSON, } from './RecurrencePattern';
15
+ /**
16
+ * Check if a given object implements the Schedule interface.
17
+ */
18
+ export function instanceOfSchedule(value) {
19
+ if (!('closesAt' in value) || value['closesAt'] === undefined)
20
+ return false;
21
+ if (!('daysRecurrence' in value) || value['daysRecurrence'] === undefined)
22
+ return false;
23
+ if (!('daysString' in value) || value['daysString'] === undefined)
24
+ return false;
25
+ if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
26
+ return false;
27
+ if (!('effectiveString' in value) || value['effectiveString'] === undefined)
28
+ return false;
29
+ if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
30
+ return false;
31
+ if (!('inEffect' in value) || value['inEffect'] === undefined)
32
+ return false;
33
+ if (!('opensAt' in value) || value['opensAt'] === undefined)
34
+ return false;
35
+ if (!('timeString' in value) || value['timeString'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function ScheduleFromJSON(json) {
40
+ return ScheduleFromJSONTyped(json, false);
41
+ }
42
+ export function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'closesAt': json['closes_at'],
48
+ 'daysRecurrence': RecurrencePatternFromJSON(json['days_recurrence']),
49
+ 'daysString': json['days_string'],
50
+ 'effectiveFrom': json['effective_from'],
51
+ 'effectiveString': json['effective_string'],
52
+ 'effectiveTo': json['effective_to'],
53
+ 'inEffect': json['in_effect'],
54
+ 'opensAt': json['opens_at'],
55
+ 'timeString': json['time_string'],
56
+ };
57
+ }
58
+ export function ScheduleToJSON(json) {
59
+ return ScheduleToJSONTyped(json, false);
60
+ }
61
+ export function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'closes_at': value['closesAt'],
67
+ 'days_recurrence': RecurrencePatternToJSON(value['daysRecurrence']),
68
+ 'days_string': value['daysString'],
69
+ 'effective_from': value['effectiveFrom'],
70
+ 'effective_string': value['effectiveString'],
71
+ 'effective_to': value['effectiveTo'],
72
+ 'in_effect': value['inEffect'],
73
+ 'opens_at': value['opensAt'],
74
+ 'time_string': value['timeString'],
75
+ };
76
+ }
@@ -10,16 +10,25 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Surface condition types for snow reports
13
+ * Surface condition types for snow reports (following industry standard codes)
14
14
  * @export
15
15
  */
16
16
  export declare const SurfaceCondition: {
17
- readonly Powder: "powder";
18
- readonly PackedPowder: "packed_powder";
19
- readonly Groomed: "groomed";
20
- readonly Variable: "variable";
21
- readonly Icy: "icy";
22
- readonly SpringConditions: "spring_conditions";
17
+ readonly Bs: "BS";
18
+ readonly Co: "CO";
19
+ readonly Fg: "FG";
20
+ readonly Hp: "HP";
21
+ readonly Ip: "IP";
22
+ readonly Is: "IS";
23
+ readonly Lg: "LG";
24
+ readonly Mg: "MG";
25
+ readonly P: "P";
26
+ readonly Pp: "PP";
27
+ readonly Sc: "SC";
28
+ readonly Tc: "TC";
29
+ readonly V: "V";
30
+ readonly Wg: "WG";
31
+ readonly Wp: "WP";
23
32
  };
24
33
  export type SurfaceCondition = typeof SurfaceCondition[keyof typeof SurfaceCondition];
25
34
  export declare function instanceOfSurfaceCondition(value: any): boolean;
@@ -12,16 +12,25 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Surface condition types for snow reports
15
+ * Surface condition types for snow reports (following industry standard codes)
16
16
  * @export
17
17
  */
18
18
  export const SurfaceCondition = {
19
- Powder: 'powder',
20
- PackedPowder: 'packed_powder',
21
- Groomed: 'groomed',
22
- Variable: 'variable',
23
- Icy: 'icy',
24
- SpringConditions: 'spring_conditions'
19
+ Bs: 'BS',
20
+ Co: 'CO',
21
+ Fg: 'FG',
22
+ Hp: 'HP',
23
+ Ip: 'IP',
24
+ Is: 'IS',
25
+ Lg: 'LG',
26
+ Mg: 'MG',
27
+ P: 'P',
28
+ Pp: 'PP',
29
+ Sc: 'SC',
30
+ Tc: 'TC',
31
+ V: 'V',
32
+ Wg: 'WG',
33
+ Wp: 'WP'
25
34
  };
26
35
  export function instanceOfSurfaceCondition(value) {
27
36
  for (const key in SurfaceCondition) {
@@ -0,0 +1,59 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CurrentWeather } from './CurrentWeather';
13
+ import type { HourlyForecast } from './HourlyForecast';
14
+ import type { DailyForecast } from './DailyForecast';
15
+ /**
16
+ * Complete weather data for a resort (unit-agnostic, includes both systems)
17
+ * @export
18
+ * @interface WeatherData
19
+ */
20
+ export interface WeatherData {
21
+ /**
22
+ * Data source attribution
23
+ * @type {string}
24
+ * @memberof WeatherData
25
+ */
26
+ attribution: string;
27
+ /**
28
+ * Current weather conditions
29
+ * @type {CurrentWeather}
30
+ * @memberof WeatherData
31
+ */
32
+ current: CurrentWeather;
33
+ /**
34
+ * Daily forecast for next 5 days
35
+ * @type {Array<DailyForecast>}
36
+ * @memberof WeatherData
37
+ */
38
+ dailyForecast: Array<DailyForecast>;
39
+ /**
40
+ * Hourly forecast for next 24 hours
41
+ * @type {Array<HourlyForecast>}
42
+ * @memberof WeatherData
43
+ */
44
+ hourlyForecast: Array<HourlyForecast>;
45
+ /**
46
+ * When this data was last updated
47
+ * @type {Date}
48
+ * @memberof WeatherData
49
+ */
50
+ lastUpdated: Date;
51
+ }
52
+ /**
53
+ * Check if a given object implements the WeatherData interface.
54
+ */
55
+ export declare function instanceOfWeatherData(value: object): value is WeatherData;
56
+ export declare function WeatherDataFromJSON(json: any): WeatherData;
57
+ export declare function WeatherDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): WeatherData;
58
+ export declare function WeatherDataToJSON(json: any): WeatherData;
59
+ export declare function WeatherDataToJSONTyped(value?: WeatherData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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: 0.1.0
8
+ *
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 { CurrentWeatherFromJSON, CurrentWeatherToJSON, } from './CurrentWeather';
15
+ import { HourlyForecastFromJSON, HourlyForecastToJSON, } from './HourlyForecast';
16
+ import { DailyForecastFromJSON, DailyForecastToJSON, } from './DailyForecast';
17
+ /**
18
+ * Check if a given object implements the WeatherData interface.
19
+ */
20
+ export function instanceOfWeatherData(value) {
21
+ if (!('attribution' in value) || value['attribution'] === undefined)
22
+ return false;
23
+ if (!('current' in value) || value['current'] === undefined)
24
+ return false;
25
+ if (!('dailyForecast' in value) || value['dailyForecast'] === undefined)
26
+ return false;
27
+ if (!('hourlyForecast' in value) || value['hourlyForecast'] === undefined)
28
+ return false;
29
+ if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function WeatherDataFromJSON(json) {
34
+ return WeatherDataFromJSONTyped(json, false);
35
+ }
36
+ export function WeatherDataFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'attribution': json['attribution'],
42
+ 'current': CurrentWeatherFromJSON(json['current']),
43
+ 'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
44
+ 'hourlyForecast': (json['hourly_forecast'].map(HourlyForecastFromJSON)),
45
+ 'lastUpdated': (new Date(json['last_updated'])),
46
+ };
47
+ }
48
+ export function WeatherDataToJSON(json) {
49
+ return WeatherDataToJSONTyped(json, false);
50
+ }
51
+ export function WeatherDataToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'attribution': value['attribution'],
57
+ 'current': CurrentWeatherToJSON(value['current']),
58
+ 'daily_forecast': (value['dailyForecast'].map(DailyForecastToJSON)),
59
+ 'hourly_forecast': (value['hourlyForecast'].map(HourlyForecastToJSON)),
60
+ 'last_updated': value['lastUpdated'].toISOString(),
61
+ };
62
+ }
@@ -1,6 +1,15 @@
1
- export * from './HoursInfo';
1
+ export * from './CurrentWeather';
2
+ export * from './DailyForecast';
3
+ export * from './DailyForecastImperial';
4
+ export * from './DailyForecastMetric';
5
+ export * from './DayHours';
6
+ export * from './HourlyForecast';
7
+ export * from './HourlyForecastImperial';
8
+ export * from './HourlyForecastMetric';
9
+ export * from './ImperialUnits';
2
10
  export * from './LiftStatus';
3
11
  export * from './LiftType';
12
+ export * from './MetricUnits';
4
13
  export * from './OperatingHoursResponse';
5
14
  export * from './PublicLift';
6
15
  export * from './PublicResortInfo';
@@ -9,10 +18,15 @@ export * from './PublicResortStatus';
9
18
  export * from './PublicRun';
10
19
  export * from './PublicSnowReport';
11
20
  export * from './PublicSnowResponse';
12
- export * from './RegularHoursDescription';
21
+ export * from './RecurrencePattern';
22
+ export * from './RecurrencePatternOneOf';
23
+ export * from './RecurrencePatternOneOf1';
24
+ export * from './RecurrencePatternOneOf2';
13
25
  export * from './ResortStatusType';
14
26
  export * from './RunDifficulty';
15
27
  export * from './RunStatus';
28
+ export * from './Schedule';
16
29
  export * from './SnowMetrics';
17
30
  export * from './SurfaceCondition';
18
31
  export * from './UnitPreference';
32
+ export * from './WeatherData';
@@ -1,8 +1,17 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './HoursInfo';
3
+ export * from './CurrentWeather';
4
+ export * from './DailyForecast';
5
+ export * from './DailyForecastImperial';
6
+ export * from './DailyForecastMetric';
7
+ export * from './DayHours';
8
+ export * from './HourlyForecast';
9
+ export * from './HourlyForecastImperial';
10
+ export * from './HourlyForecastMetric';
11
+ export * from './ImperialUnits';
4
12
  export * from './LiftStatus';
5
13
  export * from './LiftType';
14
+ export * from './MetricUnits';
6
15
  export * from './OperatingHoursResponse';
7
16
  export * from './PublicLift';
8
17
  export * from './PublicResortInfo';
@@ -11,10 +20,15 @@ export * from './PublicResortStatus';
11
20
  export * from './PublicRun';
12
21
  export * from './PublicSnowReport';
13
22
  export * from './PublicSnowResponse';
14
- export * from './RegularHoursDescription';
23
+ export * from './RecurrencePattern';
24
+ export * from './RecurrencePatternOneOf';
25
+ export * from './RecurrencePatternOneOf1';
26
+ export * from './RecurrencePatternOneOf2';
15
27
  export * from './ResortStatusType';
16
28
  export * from './RunDifficulty';
17
29
  export * from './RunStatus';
30
+ export * from './Schedule';
18
31
  export * from './SnowMetrics';
19
32
  export * from './SurfaceCondition';
20
33
  export * from './UnitPreference';
34
+ export * from './WeatherData';
@@ -0,0 +1,85 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ImperialUnits } from './ImperialUnits';
13
+ import type { MetricUnits } from './MetricUnits';
14
+ /**
15
+ * Current weather conditions with both unit systems
16
+ * @export
17
+ * @interface CurrentWeather
18
+ */
19
+ export interface CurrentWeather {
20
+ /**
21
+ * Cloud cover percentage (0-100)
22
+ * @type {number}
23
+ * @memberof CurrentWeather
24
+ */
25
+ cloudCover: number;
26
+ /**
27
+ * Human-readable weather condition
28
+ * @type {string}
29
+ * @memberof CurrentWeather
30
+ */
31
+ condition: string;
32
+ /**
33
+ * Relative humidity percentage (0-100)
34
+ * @type {number}
35
+ * @memberof CurrentWeather
36
+ */
37
+ humidity: number;
38
+ /**
39
+ * Measurements in imperial units
40
+ * @type {ImperialUnits}
41
+ * @memberof CurrentWeather
42
+ */
43
+ imperial: ImperialUnits;
44
+ /**
45
+ * Measurements in metric units
46
+ * @type {MetricUnits}
47
+ * @memberof CurrentWeather
48
+ */
49
+ metric: MetricUnits;
50
+ /**
51
+ * Timestamp of observation
52
+ * @type {Date}
53
+ * @memberof CurrentWeather
54
+ */
55
+ timestamp: Date;
56
+ /**
57
+ * Weather condition code (unit-independent)
58
+ * 0=clear, 1=mainly clear, 2=partly cloudy, 3=overcast,
59
+ * 45/48=fog, 51-55=drizzle, 61-65=rain, 71-77=snow,
60
+ * 80-82=rain showers, 85-86=snow showers, 95-99=thunderstorm
61
+ * @type {number}
62
+ * @memberof CurrentWeather
63
+ */
64
+ weatherCode: number;
65
+ /**
66
+ * Wind direction in degrees (0-360)
67
+ * @type {number}
68
+ * @memberof CurrentWeather
69
+ */
70
+ windDirection: number;
71
+ /**
72
+ * Wind direction as cardinal direction (N, NE, E, SE, S, SW, W, NW)
73
+ * @type {string}
74
+ * @memberof CurrentWeather
75
+ */
76
+ windDirectionCardinal: string;
77
+ }
78
+ /**
79
+ * Check if a given object implements the CurrentWeather interface.
80
+ */
81
+ export declare function instanceOfCurrentWeather(value: object): value is CurrentWeather;
82
+ export declare function CurrentWeatherFromJSON(json: any): CurrentWeather;
83
+ export declare function CurrentWeatherFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentWeather;
84
+ export declare function CurrentWeatherToJSON(json: any): CurrentWeather;
85
+ export declare function CurrentWeatherToJSONTyped(value?: CurrentWeather | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCurrentWeather = instanceOfCurrentWeather;
17
+ exports.CurrentWeatherFromJSON = CurrentWeatherFromJSON;
18
+ exports.CurrentWeatherFromJSONTyped = CurrentWeatherFromJSONTyped;
19
+ exports.CurrentWeatherToJSON = CurrentWeatherToJSON;
20
+ exports.CurrentWeatherToJSONTyped = CurrentWeatherToJSONTyped;
21
+ const ImperialUnits_1 = require("./ImperialUnits");
22
+ const MetricUnits_1 = require("./MetricUnits");
23
+ /**
24
+ * Check if a given object implements the CurrentWeather interface.
25
+ */
26
+ function instanceOfCurrentWeather(value) {
27
+ if (!('cloudCover' in value) || value['cloudCover'] === undefined)
28
+ return false;
29
+ if (!('condition' in value) || value['condition'] === undefined)
30
+ return false;
31
+ if (!('humidity' in value) || value['humidity'] === undefined)
32
+ return false;
33
+ if (!('imperial' in value) || value['imperial'] === undefined)
34
+ return false;
35
+ if (!('metric' in value) || value['metric'] === undefined)
36
+ return false;
37
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
38
+ return false;
39
+ if (!('weatherCode' in value) || value['weatherCode'] === undefined)
40
+ return false;
41
+ if (!('windDirection' in value) || value['windDirection'] === undefined)
42
+ return false;
43
+ if (!('windDirectionCardinal' in value) || value['windDirectionCardinal'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function CurrentWeatherFromJSON(json) {
48
+ return CurrentWeatherFromJSONTyped(json, false);
49
+ }
50
+ function CurrentWeatherFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'cloudCover': json['cloud_cover'],
56
+ 'condition': json['condition'],
57
+ 'humidity': json['humidity'],
58
+ 'imperial': (0, ImperialUnits_1.ImperialUnitsFromJSON)(json['imperial']),
59
+ 'metric': (0, MetricUnits_1.MetricUnitsFromJSON)(json['metric']),
60
+ 'timestamp': (new Date(json['timestamp'])),
61
+ 'weatherCode': json['weather_code'],
62
+ 'windDirection': json['wind_direction'],
63
+ 'windDirectionCardinal': json['wind_direction_cardinal'],
64
+ };
65
+ }
66
+ function CurrentWeatherToJSON(json) {
67
+ return CurrentWeatherToJSONTyped(json, false);
68
+ }
69
+ function CurrentWeatherToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'cloud_cover': value['cloudCover'],
75
+ 'condition': value['condition'],
76
+ 'humidity': value['humidity'],
77
+ 'imperial': (0, ImperialUnits_1.ImperialUnitsToJSON)(value['imperial']),
78
+ 'metric': (0, MetricUnits_1.MetricUnitsToJSON)(value['metric']),
79
+ 'timestamp': value['timestamp'].toISOString(),
80
+ 'weather_code': value['weatherCode'],
81
+ 'wind_direction': value['windDirection'],
82
+ 'wind_direction_cardinal': value['windDirectionCardinal'],
83
+ };
84
+ }