@mtnmanager/sdk 1.9.0 → 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.
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Guest powder alerts the resort offers. Both are `false` when the resort
14
- * doesn't offer powder alerts.
13
+ * Guest powder alerts the resort offers. Both channels are `false` (and
14
+ * `privacy_policy_url` is `null`) when the resort doesn't offer powder alerts.
15
15
  * @export
16
16
  * @interface PowderAlerts
17
17
  */
@@ -29,6 +29,13 @@ export interface PowderAlerts {
29
29
  * @memberof PowderAlerts
30
30
  */
31
31
  push: boolean;
32
+ /**
33
+ * Privacy policy to show guests when they sign up for powder alerts.
34
+ * Present whenever at least one channel is offered.
35
+ * @type {string}
36
+ * @memberof PowderAlerts
37
+ */
38
+ privacyPolicyUrl?: string | null;
32
39
  }
33
40
  /**
34
41
  * Check if a given object implements the PowderAlerts interface.
@@ -31,6 +31,7 @@ export function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return {
32
32
  'text': json['text'],
33
33
  'push': json['push'],
34
+ 'privacyPolicyUrl': json['privacy_policy_url'] === undefined ? undefined : json['privacy_policy_url'] === null ? null : json['privacy_policy_url'],
34
35
  };
35
36
  }
36
37
  export function PowderAlertsToJSON(json) {
@@ -43,5 +44,6 @@ export function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
43
44
  return {
44
45
  'text': value['text'],
45
46
  'push': value['push'],
47
+ 'privacy_policy_url': value['privacyPolicyUrl'],
46
48
  };
47
49
  }
@@ -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
  */
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Guest powder alerts the resort offers. Both are `false` when the resort
14
- * doesn't offer powder alerts.
13
+ * Guest powder alerts the resort offers. Both channels are `false` (and
14
+ * `privacy_policy_url` is `null`) when the resort doesn't offer powder alerts.
15
15
  * @export
16
16
  * @interface PowderAlerts
17
17
  */
@@ -29,6 +29,13 @@ export interface PowderAlerts {
29
29
  * @memberof PowderAlerts
30
30
  */
31
31
  push: boolean;
32
+ /**
33
+ * Privacy policy to show guests when they sign up for powder alerts.
34
+ * Present whenever at least one channel is offered.
35
+ * @type {string}
36
+ * @memberof PowderAlerts
37
+ */
38
+ privacyPolicyUrl?: string | null;
32
39
  }
33
40
  /**
34
41
  * Check if a given object implements the PowderAlerts interface.
@@ -38,6 +38,7 @@ function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'text': json['text'],
40
40
  'push': json['push'],
41
+ 'privacyPolicyUrl': json['privacy_policy_url'] === undefined ? undefined : json['privacy_policy_url'] === null ? null : json['privacy_policy_url'],
41
42
  };
42
43
  }
43
44
  function PowderAlertsToJSON(json) {
@@ -50,5 +51,6 @@ function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
50
51
  return {
51
52
  'text': value['text'],
52
53
  'push': value['push'],
54
+ 'privacy_policy_url': value['privacyPolicyUrl'],
53
55
  };
54
56
  }
@@ -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.0",
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",