@mtnmanager/sdk 1.9.1 → 1.9.2

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.
@@ -111,6 +111,14 @@ export interface Webcam {
111
111
  * @memberof Webcam
112
112
  */
113
113
  lastFrameAt?: string | null;
114
+ /**
115
+ * Whether it is currently daylight at the resort, counting civil twilight
116
+ * (the sun within 6° below the horizon) as daylight. Always `true` when the
117
+ * resort has no location configured.
118
+ * @type {boolean}
119
+ * @memberof Webcam
120
+ */
121
+ isDaylight: boolean;
114
122
  }
115
123
  /**
116
124
  * Check if a given object implements the Webcam interface.
@@ -33,6 +33,8 @@ export function instanceOfWebcam(value) {
33
33
  return false;
34
34
  if ((!('hasHistory' in value) && !('has_history' in value)) || (value['hasHistory'] === undefined && value['has_history'] === undefined))
35
35
  return false;
36
+ if ((!('isDaylight' in value) && !('is_daylight' in value)) || (value['isDaylight'] === undefined && value['is_daylight'] === undefined))
37
+ return false;
36
38
  return true;
37
39
  }
38
40
  export function WebcamFromJSON(json) {
@@ -58,6 +60,7 @@ export function WebcamFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'elevationFt': json['elevation_ft'] === undefined ? undefined : json['elevation_ft'] === null ? null : json['elevation_ft'],
59
61
  'elevationM': json['elevation_m'] === undefined ? undefined : json['elevation_m'] === null ? null : json['elevation_m'],
60
62
  'lastFrameAt': json['last_frame_at'] === undefined ? undefined : json['last_frame_at'] === null ? null : json['last_frame_at'],
63
+ 'isDaylight': json['is_daylight'],
61
64
  };
62
65
  }
63
66
  export function WebcamToJSON(json) {
@@ -83,5 +86,6 @@ export function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  'elevation_ft': value['elevationFt'],
84
87
  'elevation_m': value['elevationM'],
85
88
  'last_frame_at': value['lastFrameAt'],
89
+ 'is_daylight': value['isDaylight'],
86
90
  };
87
91
  }
@@ -34,8 +34,7 @@ export interface WebcamHistoryFrame {
34
34
  */
35
35
  thumbUrl: string;
36
36
  /**
37
- * ThumbHash of the frame (standard base64), recovered from the thumb object's
38
- * key. Empty string for legacy frames archived without one.
37
+ * ThumbHash of the frame (standard base64).
39
38
  * @type {string}
40
39
  * @memberof WebcamHistoryFrame
41
40
  */
@@ -111,6 +111,14 @@ export interface Webcam {
111
111
  * @memberof Webcam
112
112
  */
113
113
  lastFrameAt?: string | null;
114
+ /**
115
+ * Whether it is currently daylight at the resort, counting civil twilight
116
+ * (the sun within 6° below the horizon) as daylight. Always `true` when the
117
+ * resort has no location configured.
118
+ * @type {boolean}
119
+ * @memberof Webcam
120
+ */
121
+ isDaylight: boolean;
114
122
  }
115
123
  /**
116
124
  * Check if a given object implements the Webcam interface.
@@ -40,6 +40,8 @@ function instanceOfWebcam(value) {
40
40
  return false;
41
41
  if ((!('hasHistory' in value) && !('has_history' in value)) || (value['hasHistory'] === undefined && value['has_history'] === undefined))
42
42
  return false;
43
+ if ((!('isDaylight' in value) && !('is_daylight' in value)) || (value['isDaylight'] === undefined && value['is_daylight'] === undefined))
44
+ return false;
43
45
  return true;
44
46
  }
45
47
  function WebcamFromJSON(json) {
@@ -65,6 +67,7 @@ function WebcamFromJSONTyped(json, ignoreDiscriminator) {
65
67
  'elevationFt': json['elevation_ft'] === undefined ? undefined : json['elevation_ft'] === null ? null : json['elevation_ft'],
66
68
  'elevationM': json['elevation_m'] === undefined ? undefined : json['elevation_m'] === null ? null : json['elevation_m'],
67
69
  'lastFrameAt': json['last_frame_at'] === undefined ? undefined : json['last_frame_at'] === null ? null : json['last_frame_at'],
70
+ 'isDaylight': json['is_daylight'],
68
71
  };
69
72
  }
70
73
  function WebcamToJSON(json) {
@@ -90,5 +93,6 @@ function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
90
93
  'elevation_ft': value['elevationFt'],
91
94
  'elevation_m': value['elevationM'],
92
95
  'last_frame_at': value['lastFrameAt'],
96
+ 'is_daylight': value['isDaylight'],
93
97
  };
94
98
  }
@@ -34,8 +34,7 @@ export interface WebcamHistoryFrame {
34
34
  */
35
35
  thumbUrl: string;
36
36
  /**
37
- * ThumbHash of the frame (standard base64), recovered from the thumb object's
38
- * key. Empty string for legacy frames archived without one.
37
+ * ThumbHash of the frame (standard base64).
39
38
  * @type {string}
40
39
  * @memberof WebcamHistoryFrame
41
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",