@mtnmanager/sdk 1.5.2 → 1.7.0

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 (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/dist/apis/MtnManagerApi.d.ts +85 -4
  4. package/dist/apis/MtnManagerApi.js +89 -1
  5. package/dist/esm/apis/MtnManagerApi.d.ts +85 -4
  6. package/dist/esm/apis/MtnManagerApi.js +89 -1
  7. package/dist/esm/models/Amenity.d.ts +15 -0
  8. package/dist/esm/models/Amenity.js +7 -0
  9. package/dist/esm/models/EntityImage.d.ts +39 -0
  10. package/dist/esm/models/EntityImage.js +47 -0
  11. package/dist/esm/models/FullReport.d.ts +5 -3
  12. package/dist/esm/models/FullReport.js +2 -2
  13. package/dist/esm/models/Lift.d.ts +8 -0
  14. package/dist/esm/models/Lift.js +3 -0
  15. package/dist/esm/models/MarkerIcon.d.ts +1 -0
  16. package/dist/esm/models/MarkerIcon.js +2 -1
  17. package/dist/esm/models/ParkingLot.d.ts +8 -0
  18. package/dist/esm/models/ParkingLot.js +3 -0
  19. package/dist/esm/models/Run.d.ts +8 -0
  20. package/dist/esm/models/Run.js +3 -0
  21. package/dist/esm/models/SummerTrail.d.ts +8 -0
  22. package/dist/esm/models/SummerTrail.js +3 -0
  23. package/dist/esm/models/TerrainPark.d.ts +8 -0
  24. package/dist/esm/models/TerrainPark.js +3 -0
  25. package/dist/esm/models/TerrainParkFeature.d.ts +8 -0
  26. package/dist/esm/models/TerrainParkFeature.js +3 -0
  27. package/dist/esm/models/TrailMapElementOneOf6.d.ts +4 -9
  28. package/dist/esm/models/TrailMapElementOneOf6.js +5 -8
  29. package/dist/esm/models/TrailMapElementOneOf7.d.ts +88 -0
  30. package/dist/esm/models/TrailMapElementOneOf7.js +76 -0
  31. package/dist/esm/models/Weather.d.ts +18 -0
  32. package/dist/esm/models/Weather.js +6 -0
  33. package/dist/esm/models/Webcam.d.ts +88 -0
  34. package/dist/esm/models/Webcam.js +71 -0
  35. package/dist/esm/models/WebcamHistoryFrame.d.ts +44 -0
  36. package/dist/esm/models/WebcamHistoryFrame.js +51 -0
  37. package/dist/esm/models/WebcamHistoryQuery.d.ts +38 -0
  38. package/dist/esm/models/WebcamHistoryQuery.js +43 -0
  39. package/dist/esm/models/WebcamHistoryResponse.d.ts +39 -0
  40. package/dist/esm/models/WebcamHistoryResponse.js +48 -0
  41. package/dist/esm/models/index.d.ts +6 -0
  42. package/dist/esm/models/index.js +6 -0
  43. package/dist/models/Amenity.d.ts +15 -0
  44. package/dist/models/Amenity.js +7 -0
  45. package/dist/models/EntityImage.d.ts +39 -0
  46. package/dist/models/EntityImage.js +54 -0
  47. package/dist/models/FullReport.d.ts +5 -3
  48. package/dist/models/FullReport.js +2 -2
  49. package/dist/models/Lift.d.ts +8 -0
  50. package/dist/models/Lift.js +3 -0
  51. package/dist/models/MarkerIcon.d.ts +1 -0
  52. package/dist/models/MarkerIcon.js +2 -1
  53. package/dist/models/ParkingLot.d.ts +8 -0
  54. package/dist/models/ParkingLot.js +3 -0
  55. package/dist/models/Run.d.ts +8 -0
  56. package/dist/models/Run.js +3 -0
  57. package/dist/models/SummerTrail.d.ts +8 -0
  58. package/dist/models/SummerTrail.js +3 -0
  59. package/dist/models/TerrainPark.d.ts +8 -0
  60. package/dist/models/TerrainPark.js +3 -0
  61. package/dist/models/TerrainParkFeature.d.ts +8 -0
  62. package/dist/models/TerrainParkFeature.js +3 -0
  63. package/dist/models/TrailMapElementOneOf6.d.ts +4 -9
  64. package/dist/models/TrailMapElementOneOf6.js +5 -8
  65. package/dist/models/TrailMapElementOneOf7.d.ts +88 -0
  66. package/dist/models/TrailMapElementOneOf7.js +84 -0
  67. package/dist/models/Weather.d.ts +18 -0
  68. package/dist/models/Weather.js +6 -0
  69. package/dist/models/Webcam.d.ts +88 -0
  70. package/dist/models/Webcam.js +78 -0
  71. package/dist/models/WebcamHistoryFrame.d.ts +44 -0
  72. package/dist/models/WebcamHistoryFrame.js +58 -0
  73. package/dist/models/WebcamHistoryQuery.d.ts +38 -0
  74. package/dist/models/WebcamHistoryQuery.js +50 -0
  75. package/dist/models/WebcamHistoryResponse.d.ts +39 -0
  76. package/dist/models/WebcamHistoryResponse.js +55 -0
  77. package/dist/models/index.d.ts +6 -0
  78. package/dist/models/index.js +6 -0
  79. package/package.json +1 -1
@@ -38,6 +38,9 @@ export function WeatherFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return json;
39
39
  }
40
40
  return {
41
+ 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
42
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
43
+ 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
41
44
  'current': CurrentWeatherFromJSON(json['current']),
42
45
  'hourlyForecast': (json['hourly_forecast'].map(HourlyForecastFromJSON)),
43
46
  'dailyForecast': (json['daily_forecast'].map(DailyForecastFromJSON)),
@@ -53,6 +56,9 @@ export function WeatherToJSONTyped(value, ignoreDiscriminator = false) {
53
56
  return value;
54
57
  }
55
58
  return {
59
+ 'area_uuid': value['areaUuid'],
60
+ 'area_name': value['areaName'],
61
+ 'area_display_order': value['areaDisplayOrder'],
56
62
  'current': CurrentWeatherToJSON(value['current']),
57
63
  'hourly_forecast': (value['hourlyForecast'].map(HourlyForecastToJSON)),
58
64
  'daily_forecast': (value['dailyForecast'].map(DailyForecastToJSON)),
@@ -0,0 +1,88 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A public webcam entry. Consumers pick `latest` (always the newest frame) or
14
+ * `latest-daylight` (the last daylight frame, never a black night shot)
15
+ * depending on whether they want the freshest or a guaranteed-lit image.
16
+ * @export
17
+ * @interface Webcam
18
+ */
19
+ export interface Webcam {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof Webcam
24
+ */
25
+ uuid: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof Webcam
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Webcam
36
+ */
37
+ areaUuid?: string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Webcam
42
+ */
43
+ areaName?: string | null;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof Webcam
48
+ */
49
+ areaDisplayOrder?: number | null;
50
+ /**
51
+ * URL of the newest frame (refreshes within ~60s via the edge cache).
52
+ * @type {string}
53
+ * @memberof Webcam
54
+ */
55
+ latestImageUrl: string;
56
+ /**
57
+ * URL of the last daylight frame.
58
+ * @type {string}
59
+ * @memberof Webcam
60
+ */
61
+ latestDaylightImageUrl: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof Webcam
66
+ */
67
+ latestThumbUrl: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof Webcam
72
+ */
73
+ latestDaylightThumbUrl: string;
74
+ /**
75
+ * Time of the most recently published frame; omitted until the first frame.
76
+ * @type {string}
77
+ * @memberof Webcam
78
+ */
79
+ lastFrameAt?: string | null;
80
+ }
81
+ /**
82
+ * Check if a given object implements the Webcam interface.
83
+ */
84
+ export declare function instanceOfWebcam(value: object): value is Webcam;
85
+ export declare function WebcamFromJSON(json: any): Webcam;
86
+ export declare function WebcamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Webcam;
87
+ export declare function WebcamToJSON(json: any): Webcam;
88
+ export declare function WebcamToJSONTyped(value?: Webcam | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the Webcam interface.
16
+ */
17
+ export function instanceOfWebcam(value) {
18
+ if (!('uuid' in value) || value['uuid'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if ((!('latestImageUrl' in value) && !('latest_image_url' in value)) || (value['latestImageUrl'] === undefined && value['latest_image_url'] === undefined))
23
+ return false;
24
+ if ((!('latestDaylightImageUrl' in value) && !('latest_daylight_image_url' in value)) || (value['latestDaylightImageUrl'] === undefined && value['latest_daylight_image_url'] === undefined))
25
+ return false;
26
+ if ((!('latestThumbUrl' in value) && !('latest_thumb_url' in value)) || (value['latestThumbUrl'] === undefined && value['latest_thumb_url'] === undefined))
27
+ return false;
28
+ if ((!('latestDaylightThumbUrl' in value) && !('latest_daylight_thumb_url' in value)) || (value['latestDaylightThumbUrl'] === undefined && value['latest_daylight_thumb_url'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ export function WebcamFromJSON(json) {
33
+ return WebcamFromJSONTyped(json, false);
34
+ }
35
+ export function WebcamFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'uuid': json['uuid'],
41
+ 'name': json['name'],
42
+ 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
43
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
44
+ 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
45
+ 'latestImageUrl': json['latest_image_url'],
46
+ 'latestDaylightImageUrl': json['latest_daylight_image_url'],
47
+ 'latestThumbUrl': json['latest_thumb_url'],
48
+ 'latestDaylightThumbUrl': json['latest_daylight_thumb_url'],
49
+ 'lastFrameAt': json['last_frame_at'] == null ? undefined : json['last_frame_at'],
50
+ };
51
+ }
52
+ export function WebcamToJSON(json) {
53
+ return WebcamToJSONTyped(json, false);
54
+ }
55
+ export function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'uuid': value['uuid'],
61
+ 'name': value['name'],
62
+ 'area_uuid': value['areaUuid'],
63
+ 'area_name': value['areaName'],
64
+ 'area_display_order': value['areaDisplayOrder'],
65
+ 'latest_image_url': value['latestImageUrl'],
66
+ 'latest_daylight_image_url': value['latestDaylightImageUrl'],
67
+ 'latest_thumb_url': value['latestThumbUrl'],
68
+ 'latest_daylight_thumb_url': value['latestDaylightThumbUrl'],
69
+ 'last_frame_at': value['lastFrameAt'],
70
+ };
71
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A single archived historical frame.
14
+ * @export
15
+ * @interface WebcamHistoryFrame
16
+ */
17
+ export interface WebcamHistoryFrame {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebcamHistoryFrame
22
+ */
23
+ capturedAt: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WebcamHistoryFrame
28
+ */
29
+ imageUrl: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WebcamHistoryFrame
34
+ */
35
+ thumbUrl: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the WebcamHistoryFrame interface.
39
+ */
40
+ export declare function instanceOfWebcamHistoryFrame(value: object): value is WebcamHistoryFrame;
41
+ export declare function WebcamHistoryFrameFromJSON(json: any): WebcamHistoryFrame;
42
+ export declare function WebcamHistoryFrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryFrame;
43
+ export declare function WebcamHistoryFrameToJSON(json: any): WebcamHistoryFrame;
44
+ export declare function WebcamHistoryFrameToJSONTyped(value?: WebcamHistoryFrame | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the WebcamHistoryFrame interface.
16
+ */
17
+ export function instanceOfWebcamHistoryFrame(value) {
18
+ if ((!('capturedAt' in value) && !('captured_at' in value)) || (value['capturedAt'] === undefined && value['captured_at'] === undefined))
19
+ return false;
20
+ if ((!('imageUrl' in value) && !('image_url' in value)) || (value['imageUrl'] === undefined && value['image_url'] === undefined))
21
+ return false;
22
+ if ((!('thumbUrl' in value) && !('thumb_url' in value)) || (value['thumbUrl'] === undefined && value['thumb_url'] === undefined))
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WebcamHistoryFrameFromJSON(json) {
27
+ return WebcamHistoryFrameFromJSONTyped(json, false);
28
+ }
29
+ export function WebcamHistoryFrameFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'capturedAt': json['captured_at'],
35
+ 'imageUrl': json['image_url'],
36
+ 'thumbUrl': json['thumb_url'],
37
+ };
38
+ }
39
+ export function WebcamHistoryFrameToJSON(json) {
40
+ return WebcamHistoryFrameToJSONTyped(json, false);
41
+ }
42
+ export function WebcamHistoryFrameToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'captured_at': value['capturedAt'],
48
+ 'image_url': value['imageUrl'],
49
+ 'thumb_url': value['thumbUrl'],
50
+ };
51
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Query parameters for the history endpoint.
14
+ * @export
15
+ * @interface WebcamHistoryQuery
16
+ */
17
+ export interface WebcamHistoryQuery {
18
+ /**
19
+ * Inclusive lower bound on `captured_at` (RFC 3339).
20
+ * @type {string}
21
+ * @memberof WebcamHistoryQuery
22
+ */
23
+ from?: string | null;
24
+ /**
25
+ * Inclusive upper bound on `captured_at` (RFC 3339).
26
+ * @type {string}
27
+ * @memberof WebcamHistoryQuery
28
+ */
29
+ to?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the WebcamHistoryQuery interface.
33
+ */
34
+ export declare function instanceOfWebcamHistoryQuery(value: object): value is WebcamHistoryQuery;
35
+ export declare function WebcamHistoryQueryFromJSON(json: any): WebcamHistoryQuery;
36
+ export declare function WebcamHistoryQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryQuery;
37
+ export declare function WebcamHistoryQueryToJSON(json: any): WebcamHistoryQuery;
38
+ export declare function WebcamHistoryQueryToJSONTyped(value?: WebcamHistoryQuery | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the WebcamHistoryQuery interface.
16
+ */
17
+ export function instanceOfWebcamHistoryQuery(value) {
18
+ return true;
19
+ }
20
+ export function WebcamHistoryQueryFromJSON(json) {
21
+ return WebcamHistoryQueryFromJSONTyped(json, false);
22
+ }
23
+ export function WebcamHistoryQueryFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'from': json['from'] == null ? undefined : json['from'],
29
+ 'to': json['to'] == null ? undefined : json['to'],
30
+ };
31
+ }
32
+ export function WebcamHistoryQueryToJSON(json) {
33
+ return WebcamHistoryQueryToJSONTyped(json, false);
34
+ }
35
+ export function WebcamHistoryQueryToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'from': value['from'],
41
+ 'to': value['to'],
42
+ };
43
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { WebcamHistoryFrame } from './WebcamHistoryFrame';
13
+ /**
14
+ * The historical frame listing for one camera over a time range.
15
+ * @export
16
+ * @interface WebcamHistoryResponse
17
+ */
18
+ export interface WebcamHistoryResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WebcamHistoryResponse
23
+ */
24
+ webcamUuid: string;
25
+ /**
26
+ * Newest first.
27
+ * @type {Array<WebcamHistoryFrame>}
28
+ * @memberof WebcamHistoryResponse
29
+ */
30
+ frames: Array<WebcamHistoryFrame>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the WebcamHistoryResponse interface.
34
+ */
35
+ export declare function instanceOfWebcamHistoryResponse(value: object): value is WebcamHistoryResponse;
36
+ export declare function WebcamHistoryResponseFromJSON(json: any): WebcamHistoryResponse;
37
+ export declare function WebcamHistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryResponse;
38
+ export declare function WebcamHistoryResponseToJSON(json: any): WebcamHistoryResponse;
39
+ export declare function WebcamHistoryResponseToJSONTyped(value?: WebcamHistoryResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { WebcamHistoryFrameFromJSON, WebcamHistoryFrameToJSON, } from './WebcamHistoryFrame';
15
+ /**
16
+ * Check if a given object implements the WebcamHistoryResponse interface.
17
+ */
18
+ export function instanceOfWebcamHistoryResponse(value) {
19
+ if ((!('webcamUuid' in value) && !('webcam_uuid' in value)) || (value['webcamUuid'] === undefined && value['webcam_uuid'] === undefined))
20
+ return false;
21
+ if (!('frames' in value) || value['frames'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function WebcamHistoryResponseFromJSON(json) {
26
+ return WebcamHistoryResponseFromJSONTyped(json, false);
27
+ }
28
+ export function WebcamHistoryResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'webcamUuid': json['webcam_uuid'],
34
+ 'frames': (json['frames'].map(WebcamHistoryFrameFromJSON)),
35
+ };
36
+ }
37
+ export function WebcamHistoryResponseToJSON(json) {
38
+ return WebcamHistoryResponseToJSONTyped(json, false);
39
+ }
40
+ export function WebcamHistoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'webcam_uuid': value['webcamUuid'],
46
+ 'frames': (value['frames'].map(WebcamHistoryFrameToJSON)),
47
+ };
48
+ }
@@ -11,6 +11,7 @@ export * from './DailyForecast';
11
11
  export * from './DailyForecastImperial';
12
12
  export * from './DailyForecastMetric';
13
13
  export * from './DayOfWeek';
14
+ export * from './EntityImage';
14
15
  export * from './FeatureSize';
15
16
  export * from './FeatureType';
16
17
  export * from './FullReport';
@@ -60,7 +61,12 @@ export * from './TrailMapElementOneOf3';
60
61
  export * from './TrailMapElementOneOf4';
61
62
  export * from './TrailMapElementOneOf5';
62
63
  export * from './TrailMapElementOneOf6';
64
+ export * from './TrailMapElementOneOf7';
63
65
  export * from './TrailMapSummary';
64
66
  export * from './UnitPreference';
65
67
  export * from './Weather';
66
68
  export * from './WeatherConditionCode';
69
+ export * from './Webcam';
70
+ export * from './WebcamHistoryFrame';
71
+ export * from './WebcamHistoryQuery';
72
+ export * from './WebcamHistoryResponse';
@@ -13,6 +13,7 @@ export * from './DailyForecast';
13
13
  export * from './DailyForecastImperial';
14
14
  export * from './DailyForecastMetric';
15
15
  export * from './DayOfWeek';
16
+ export * from './EntityImage';
16
17
  export * from './FeatureSize';
17
18
  export * from './FeatureType';
18
19
  export * from './FullReport';
@@ -62,7 +63,12 @@ export * from './TrailMapElementOneOf3';
62
63
  export * from './TrailMapElementOneOf4';
63
64
  export * from './TrailMapElementOneOf5';
64
65
  export * from './TrailMapElementOneOf6';
66
+ export * from './TrailMapElementOneOf7';
65
67
  export * from './TrailMapSummary';
66
68
  export * from './UnitPreference';
67
69
  export * from './Weather';
68
70
  export * from './WeatherConditionCode';
71
+ export * from './Webcam';
72
+ export * from './WebcamHistoryFrame';
73
+ export * from './WebcamHistoryQuery';
74
+ export * from './WebcamHistoryResponse';
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { AmenityCategory } from './AmenityCategory';
13
13
  import type { Schedule } from './Schedule';
14
+ import type { EntityImage } from './EntityImage';
14
15
  /**
15
16
  * Represents an amenity at the resort (e.g. lodge, restaurant, ski school)
16
17
  * with its category, description, website, and hours.
@@ -48,6 +49,13 @@ export interface Amenity {
48
49
  * @memberof Amenity
49
50
  */
50
51
  website: string;
52
+ /**
53
+ * Whether this amenity reports operating hours. When false, clients should
54
+ * not expect `opens_at`, `closes_at`, or `schedules` to ever be populated.
55
+ * @type {boolean}
56
+ * @memberof Amenity
57
+ */
58
+ hasOperatingHours: boolean;
51
59
  /**
52
60
  * Today's scheduled opening time in 24-hour format (HH:MM), in resort's local timezone.
53
61
  * @type {string}
@@ -67,6 +75,13 @@ export interface Amenity {
67
75
  * @memberof Amenity
68
76
  */
69
77
  schedules: Array<Schedule>;
78
+ /**
79
+ * Images attached to this amenity, ordered for display. Each includes a
80
+ * ThumbHash for rendering a blurred placeholder while the image loads.
81
+ * @type {Array<EntityImage>}
82
+ * @memberof Amenity
83
+ */
84
+ images?: Array<EntityImage>;
70
85
  }
71
86
  /**
72
87
  * Check if a given object implements the Amenity interface.
@@ -20,6 +20,7 @@ exports.AmenityToJSON = AmenityToJSON;
20
20
  exports.AmenityToJSONTyped = AmenityToJSONTyped;
21
21
  const AmenityCategory_1 = require("./AmenityCategory");
22
22
  const Schedule_1 = require("./Schedule");
23
+ const EntityImage_1 = require("./EntityImage");
23
24
  /**
24
25
  * Check if a given object implements the Amenity interface.
25
26
  */
@@ -34,6 +35,8 @@ function instanceOfAmenity(value) {
34
35
  return false;
35
36
  if (!('website' in value) || value['website'] === undefined)
36
37
  return false;
38
+ if ((!('hasOperatingHours' in value) && !('has_operating_hours' in value)) || (value['hasOperatingHours'] === undefined && value['has_operating_hours'] === undefined))
39
+ return false;
37
40
  if (!('schedules' in value) || value['schedules'] === undefined)
38
41
  return false;
39
42
  return true;
@@ -51,9 +54,11 @@ function AmenityFromJSONTyped(json, ignoreDiscriminator) {
51
54
  'name': json['name'],
52
55
  'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
53
56
  'website': json['website'],
57
+ 'hasOperatingHours': json['has_operating_hours'],
54
58
  'opensAt': json['opens_at'] == null ? undefined : json['opens_at'],
55
59
  'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
56
60
  'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
61
+ 'images': json['images'] == null ? undefined : (json['images'].map(EntityImage_1.EntityImageFromJSON)),
57
62
  };
58
63
  }
59
64
  function AmenityToJSON(json) {
@@ -69,8 +74,10 @@ function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
69
74
  'name': value['name'],
70
75
  'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
71
76
  'website': value['website'],
77
+ 'has_operating_hours': value['hasOperatingHours'],
72
78
  'opens_at': value['opensAt'],
73
79
  'closes_at': value['closesAt'],
74
80
  'schedules': (value['schedules'].map(Schedule_1.ScheduleToJSON)),
81
+ 'images': value['images'] == null ? undefined : (value['images'].map(EntityImage_1.EntityImageToJSON)),
75
82
  };
76
83
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A single image attached to a resort entity, with a client-supplied ThumbHash
14
+ * for rendering a blurred placeholder while the full image loads.
15
+ * @export
16
+ * @interface EntityImage
17
+ */
18
+ export interface EntityImage {
19
+ /**
20
+ * Full public URL to the image.
21
+ * @type {string}
22
+ * @memberof EntityImage
23
+ */
24
+ url: string;
25
+ /**
26
+ * Base64-encoded ThumbHash for placeholder rendering.
27
+ * @type {string}
28
+ * @memberof EntityImage
29
+ */
30
+ thumbHash: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the EntityImage interface.
34
+ */
35
+ export declare function instanceOfEntityImage(value: object): value is EntityImage;
36
+ export declare function EntityImageFromJSON(json: any): EntityImage;
37
+ export declare function EntityImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityImage;
38
+ export declare function EntityImageToJSON(json: any): EntityImage;
39
+ export declare function EntityImageToJSONTyped(value?: EntityImage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@mtnmanager.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEntityImage = instanceOfEntityImage;
17
+ exports.EntityImageFromJSON = EntityImageFromJSON;
18
+ exports.EntityImageFromJSONTyped = EntityImageFromJSONTyped;
19
+ exports.EntityImageToJSON = EntityImageToJSON;
20
+ exports.EntityImageToJSONTyped = EntityImageToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the EntityImage interface.
23
+ */
24
+ function instanceOfEntityImage(value) {
25
+ if (!('url' in value) || value['url'] === undefined)
26
+ return false;
27
+ if ((!('thumbHash' in value) && !('thumb_hash' in value)) || (value['thumbHash'] === undefined && value['thumb_hash'] === undefined))
28
+ return false;
29
+ return true;
30
+ }
31
+ function EntityImageFromJSON(json) {
32
+ return EntityImageFromJSONTyped(json, false);
33
+ }
34
+ function EntityImageFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'url': json['url'],
40
+ 'thumbHash': json['thumb_hash'],
41
+ };
42
+ }
43
+ function EntityImageToJSON(json) {
44
+ return EntityImageToJSONTyped(json, false);
45
+ }
46
+ function EntityImageToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'url': value['url'],
52
+ 'thumb_hash': value['thumbHash'],
53
+ };
54
+ }