@mtnmanager/sdk 1.6.0 → 1.7.1
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/apis/MtnManagerApi.d.ts +81 -0
- package/dist/apis/MtnManagerApi.js +88 -0
- package/dist/esm/apis/MtnManagerApi.d.ts +81 -0
- package/dist/esm/apis/MtnManagerApi.js +88 -0
- package/dist/esm/models/FullReport.d.ts +8 -0
- package/dist/esm/models/FullReport.js +3 -0
- package/dist/esm/models/MarkerIcon.d.ts +1 -0
- package/dist/esm/models/MarkerIcon.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/esm/models/TrailMapElementOneOf6.js +5 -8
- package/dist/esm/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/esm/models/TrailMapElementOneOf7.js +76 -0
- package/dist/esm/models/Webcam.d.ts +122 -0
- package/dist/esm/models/Webcam.js +87 -0
- package/dist/esm/models/WebcamHistoryFrame.d.ts +51 -0
- package/dist/esm/models/WebcamHistoryFrame.js +55 -0
- package/dist/esm/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/esm/models/WebcamHistoryQuery.js +43 -0
- package/dist/esm/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/esm/models/WebcamHistoryResponse.js +48 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/FullReport.d.ts +8 -0
- package/dist/models/FullReport.js +3 -0
- package/dist/models/MarkerIcon.d.ts +1 -0
- package/dist/models/MarkerIcon.js +2 -1
- package/dist/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/models/TrailMapElementOneOf6.js +5 -8
- package/dist/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/models/TrailMapElementOneOf7.js +84 -0
- package/dist/models/Webcam.d.ts +122 -0
- package/dist/models/Webcam.js +94 -0
- package/dist/models/WebcamHistoryFrame.d.ts +51 -0
- package/dist/models/WebcamHistoryFrame.js +62 -0
- package/dist/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/models/WebcamHistoryQuery.js +50 -0
- package/dist/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/models/WebcamHistoryResponse.js +55 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ import type { Weather } from './Weather';
|
|
|
14
14
|
import type { ResortInfo } from './ResortInfo';
|
|
15
15
|
import type { ParkingLot } from './ParkingLot';
|
|
16
16
|
import type { SnowReport } from './SnowReport';
|
|
17
|
+
import type { Webcam } from './Webcam';
|
|
17
18
|
import type { Overview } from './Overview';
|
|
18
19
|
import type { Run } from './Run';
|
|
19
20
|
import type { SummerTrail } from './SummerTrail';
|
|
@@ -95,6 +96,13 @@ export interface FullReport {
|
|
|
95
96
|
* @memberof FullReport
|
|
96
97
|
*/
|
|
97
98
|
weather?: Array<Weather>;
|
|
99
|
+
/**
|
|
100
|
+
* Enabled webcams with the URLs of their current and last-daylight frames
|
|
101
|
+
* plus thumbnails. Empty when the resort does not have webcams.
|
|
102
|
+
* @type {Array<Webcam>}
|
|
103
|
+
* @memberof FullReport
|
|
104
|
+
*/
|
|
105
|
+
webcams?: Array<Webcam>;
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
108
|
* Check if a given object implements the FullReport interface.
|
|
@@ -23,6 +23,7 @@ const Weather_1 = require("./Weather");
|
|
|
23
23
|
const ResortInfo_1 = require("./ResortInfo");
|
|
24
24
|
const ParkingLot_1 = require("./ParkingLot");
|
|
25
25
|
const SnowReport_1 = require("./SnowReport");
|
|
26
|
+
const Webcam_1 = require("./Webcam");
|
|
26
27
|
const Overview_1 = require("./Overview");
|
|
27
28
|
const Run_1 = require("./Run");
|
|
28
29
|
const SummerTrail_1 = require("./SummerTrail");
|
|
@@ -70,6 +71,7 @@ function FullReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
71
|
'summerTrails': (json['summer_trails'].map(SummerTrail_1.SummerTrailFromJSON)),
|
|
71
72
|
'hours': (0, OperatingHours_1.OperatingHoursFromJSON)(json['hours']),
|
|
72
73
|
'weather': json['weather'] == null ? undefined : (json['weather'].map(Weather_1.WeatherFromJSON)),
|
|
74
|
+
'webcams': json['webcams'] == null ? undefined : (json['webcams'].map(Webcam_1.WebcamFromJSON)),
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
77
|
function FullReportToJSON(json) {
|
|
@@ -90,5 +92,6 @@ function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
92
|
'summer_trails': (value['summerTrails'].map(SummerTrail_1.SummerTrailToJSON)),
|
|
91
93
|
'hours': (0, OperatingHours_1.OperatingHoursToJSON)(value['hours']),
|
|
92
94
|
'weather': value['weather'] == null ? undefined : (value['weather'].map(Weather_1.WeatherToJSON)),
|
|
95
|
+
'webcams': value['webcams'] == null ? undefined : (value['webcams'].map(Webcam_1.WebcamToJSON)),
|
|
93
96
|
};
|
|
94
97
|
}
|
|
@@ -36,6 +36,7 @@ export declare const MarkerIcon: {
|
|
|
36
36
|
readonly Retail: "retail";
|
|
37
37
|
readonly Atm: "atm";
|
|
38
38
|
readonly Star: "star";
|
|
39
|
+
readonly Webcam: "webcam";
|
|
39
40
|
};
|
|
40
41
|
export type MarkerIcon = typeof MarkerIcon[keyof typeof MarkerIcon];
|
|
41
42
|
export declare function instanceOfMarkerIcon(value: any): boolean;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Webcam } from './Webcam';
|
|
12
13
|
import type { MarkerIcon } from './MarkerIcon';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -54,16 +55,10 @@ export interface TrailMapElementOneOf6 {
|
|
|
54
55
|
color?: string | null;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
|
-
* @type {
|
|
58
|
-
* @memberof TrailMapElementOneOf6
|
|
59
|
-
*/
|
|
60
|
-
label: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
58
|
+
* @type {Webcam}
|
|
64
59
|
* @memberof TrailMapElementOneOf6
|
|
65
60
|
*/
|
|
66
|
-
|
|
61
|
+
webcam?: Webcam | null;
|
|
67
62
|
/**
|
|
68
63
|
*
|
|
69
64
|
* @type {string}
|
|
@@ -75,7 +70,7 @@ export interface TrailMapElementOneOf6 {
|
|
|
75
70
|
* @export
|
|
76
71
|
*/
|
|
77
72
|
export declare const TrailMapElementOneOf6TypeEnum: {
|
|
78
|
-
readonly
|
|
73
|
+
readonly WebcamMarker: "webcam_marker";
|
|
79
74
|
};
|
|
80
75
|
export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
|
|
81
76
|
/**
|
|
@@ -19,12 +19,13 @@ exports.TrailMapElementOneOf6FromJSON = TrailMapElementOneOf6FromJSON;
|
|
|
19
19
|
exports.TrailMapElementOneOf6FromJSONTyped = TrailMapElementOneOf6FromJSONTyped;
|
|
20
20
|
exports.TrailMapElementOneOf6ToJSON = TrailMapElementOneOf6ToJSON;
|
|
21
21
|
exports.TrailMapElementOneOf6ToJSONTyped = TrailMapElementOneOf6ToJSONTyped;
|
|
22
|
+
const Webcam_1 = require("./Webcam");
|
|
22
23
|
const MarkerIcon_1 = require("./MarkerIcon");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
26
27
|
exports.TrailMapElementOneOf6TypeEnum = {
|
|
27
|
-
|
|
28
|
+
WebcamMarker: 'webcam_marker'
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Check if a given object implements the TrailMapElementOneOf6 interface.
|
|
@@ -32,7 +33,7 @@ exports.TrailMapElementOneOf6TypeEnum = {
|
|
|
32
33
|
function instanceOfTrailMapElementOneOf6(value) {
|
|
33
34
|
if (!('type' in value) || value['type'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (value['type'] !== '
|
|
36
|
+
if (value['type'] !== 'webcam_marker')
|
|
36
37
|
return false;
|
|
37
38
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
38
39
|
return false;
|
|
@@ -40,8 +41,6 @@ function instanceOfTrailMapElementOneOf6(value) {
|
|
|
40
41
|
return false;
|
|
41
42
|
if (!('y' in value) || value['y'] === undefined)
|
|
42
43
|
return false;
|
|
43
|
-
if (!('label' in value) || value['label'] === undefined)
|
|
44
|
-
return false;
|
|
45
44
|
return true;
|
|
46
45
|
}
|
|
47
46
|
function TrailMapElementOneOf6FromJSON(json) {
|
|
@@ -58,8 +57,7 @@ function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
57
|
'y': json['y'],
|
|
59
58
|
'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
|
|
60
59
|
'color': json['color'] == null ? undefined : json['color'],
|
|
61
|
-
'
|
|
62
|
-
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
60
|
+
'webcam': json['webcam'] == null ? undefined : (0, Webcam_1.WebcamFromJSON)(json['webcam']),
|
|
63
61
|
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
64
62
|
};
|
|
65
63
|
}
|
|
@@ -77,8 +75,7 @@ function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
75
|
'y': value['y'],
|
|
78
76
|
'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
|
|
79
77
|
'color': value['color'],
|
|
80
|
-
'
|
|
81
|
-
'searchable': value['searchable'],
|
|
78
|
+
'webcam': (0, Webcam_1.WebcamToJSON)(value['webcam']),
|
|
82
79
|
'group_label': value['groupLabel'],
|
|
83
80
|
};
|
|
84
81
|
}
|
|
@@ -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
|
+
import type { MarkerIcon } from './MarkerIcon';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TrailMapElementOneOf7
|
|
17
|
+
*/
|
|
18
|
+
export interface TrailMapElementOneOf7 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TrailMapElementOneOf7TypeEnum}
|
|
22
|
+
* @memberof TrailMapElementOneOf7
|
|
23
|
+
*/
|
|
24
|
+
type: TrailMapElementOneOf7TypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TrailMapElementOneOf7
|
|
29
|
+
*/
|
|
30
|
+
uuid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TrailMapElementOneOf7
|
|
35
|
+
*/
|
|
36
|
+
x: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TrailMapElementOneOf7
|
|
41
|
+
*/
|
|
42
|
+
y: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MarkerIcon}
|
|
46
|
+
* @memberof TrailMapElementOneOf7
|
|
47
|
+
*/
|
|
48
|
+
icon?: MarkerIcon | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TrailMapElementOneOf7
|
|
53
|
+
*/
|
|
54
|
+
color?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TrailMapElementOneOf7
|
|
59
|
+
*/
|
|
60
|
+
label: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof TrailMapElementOneOf7
|
|
65
|
+
*/
|
|
66
|
+
searchable?: boolean | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TrailMapElementOneOf7
|
|
71
|
+
*/
|
|
72
|
+
groupLabel?: string | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const TrailMapElementOneOf7TypeEnum: {
|
|
78
|
+
readonly GenericMarker: "generic_marker";
|
|
79
|
+
};
|
|
80
|
+
export type TrailMapElementOneOf7TypeEnum = typeof TrailMapElementOneOf7TypeEnum[keyof typeof TrailMapElementOneOf7TypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the TrailMapElementOneOf7 interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfTrailMapElementOneOf7(value: object): value is TrailMapElementOneOf7;
|
|
85
|
+
export declare function TrailMapElementOneOf7FromJSON(json: any): TrailMapElementOneOf7;
|
|
86
|
+
export declare function TrailMapElementOneOf7FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf7;
|
|
87
|
+
export declare function TrailMapElementOneOf7ToJSON(json: any): TrailMapElementOneOf7;
|
|
88
|
+
export declare function TrailMapElementOneOf7ToJSONTyped(value?: TrailMapElementOneOf7 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.TrailMapElementOneOf7TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfTrailMapElementOneOf7 = instanceOfTrailMapElementOneOf7;
|
|
18
|
+
exports.TrailMapElementOneOf7FromJSON = TrailMapElementOneOf7FromJSON;
|
|
19
|
+
exports.TrailMapElementOneOf7FromJSONTyped = TrailMapElementOneOf7FromJSONTyped;
|
|
20
|
+
exports.TrailMapElementOneOf7ToJSON = TrailMapElementOneOf7ToJSON;
|
|
21
|
+
exports.TrailMapElementOneOf7ToJSONTyped = TrailMapElementOneOf7ToJSONTyped;
|
|
22
|
+
const MarkerIcon_1 = require("./MarkerIcon");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TrailMapElementOneOf7TypeEnum = {
|
|
27
|
+
GenericMarker: 'generic_marker'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the TrailMapElementOneOf7 interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfTrailMapElementOneOf7(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (value['type'] !== 'generic_marker')
|
|
36
|
+
return false;
|
|
37
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TrailMapElementOneOf7FromJSON(json) {
|
|
48
|
+
return TrailMapElementOneOf7FromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'uuid': json['uuid'],
|
|
57
|
+
'x': json['x'],
|
|
58
|
+
'y': json['y'],
|
|
59
|
+
'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
|
|
60
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
61
|
+
'label': json['label'],
|
|
62
|
+
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
63
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function TrailMapElementOneOf7ToJSON(json) {
|
|
67
|
+
return TrailMapElementOneOf7ToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function TrailMapElementOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'type': value['type'],
|
|
75
|
+
'uuid': value['uuid'],
|
|
76
|
+
'x': value['x'],
|
|
77
|
+
'y': value['y'],
|
|
78
|
+
'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
|
|
79
|
+
'color': value['color'],
|
|
80
|
+
'label': value['label'],
|
|
81
|
+
'searchable': value['searchable'],
|
|
82
|
+
'group_label': value['groupLabel'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
* ThumbHash of the `latest` frame (standard base64) — a compact blur
|
|
76
|
+
* placeholder to render while the image loads. Empty string until the first
|
|
77
|
+
* frame (or on cameras predating the feature).
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Webcam
|
|
80
|
+
*/
|
|
81
|
+
latestThumbhash: string;
|
|
82
|
+
/**
|
|
83
|
+
* ThumbHash of the `latest-daylight` frame (standard base64). Empty string
|
|
84
|
+
* until the first daylight frame.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof Webcam
|
|
87
|
+
*/
|
|
88
|
+
latestDaylightThumbhash: string;
|
|
89
|
+
/**
|
|
90
|
+
* Whether this camera archives frames — i.e. whether its history endpoint
|
|
91
|
+
* returns anything. When `false`, don't call the history API for it.
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof Webcam
|
|
94
|
+
*/
|
|
95
|
+
hasHistory: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Camera elevation in both units; omitted when unset.
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof Webcam
|
|
100
|
+
*/
|
|
101
|
+
elevationFt?: number | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof Webcam
|
|
106
|
+
*/
|
|
107
|
+
elevationM?: number | null;
|
|
108
|
+
/**
|
|
109
|
+
* Time of the most recently published frame; omitted until the first frame.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Webcam
|
|
112
|
+
*/
|
|
113
|
+
lastFrameAt?: string | null;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the Webcam interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfWebcam(value: object): value is Webcam;
|
|
119
|
+
export declare function WebcamFromJSON(json: any): Webcam;
|
|
120
|
+
export declare function WebcamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Webcam;
|
|
121
|
+
export declare function WebcamToJSON(json: any): Webcam;
|
|
122
|
+
export declare function WebcamToJSONTyped(value?: Webcam | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.instanceOfWebcam = instanceOfWebcam;
|
|
17
|
+
exports.WebcamFromJSON = WebcamFromJSON;
|
|
18
|
+
exports.WebcamFromJSONTyped = WebcamFromJSONTyped;
|
|
19
|
+
exports.WebcamToJSON = WebcamToJSON;
|
|
20
|
+
exports.WebcamToJSONTyped = WebcamToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Webcam interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebcam(value) {
|
|
25
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('latestImageUrl' in value) && !('latest_image_url' in value)) || (value['latestImageUrl'] === undefined && value['latest_image_url'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('latestDaylightImageUrl' in value) && !('latest_daylight_image_url' in value)) || (value['latestDaylightImageUrl'] === undefined && value['latest_daylight_image_url'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('latestThumbUrl' in value) && !('latest_thumb_url' in value)) || (value['latestThumbUrl'] === undefined && value['latest_thumb_url'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('latestDaylightThumbUrl' in value) && !('latest_daylight_thumb_url' in value)) || (value['latestDaylightThumbUrl'] === undefined && value['latest_daylight_thumb_url'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('latestThumbhash' in value) && !('latest_thumbhash' in value)) || (value['latestThumbhash'] === undefined && value['latest_thumbhash'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
if ((!('latestDaylightThumbhash' in value) && !('latest_daylight_thumbhash' in value)) || (value['latestDaylightThumbhash'] === undefined && value['latest_daylight_thumbhash'] === undefined))
|
|
40
|
+
return false;
|
|
41
|
+
if ((!('hasHistory' in value) && !('has_history' in value)) || (value['hasHistory'] === undefined && value['has_history'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function WebcamFromJSON(json) {
|
|
46
|
+
return WebcamFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function WebcamFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'uuid': json['uuid'],
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
56
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
57
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
58
|
+
'latestImageUrl': json['latest_image_url'],
|
|
59
|
+
'latestDaylightImageUrl': json['latest_daylight_image_url'],
|
|
60
|
+
'latestThumbUrl': json['latest_thumb_url'],
|
|
61
|
+
'latestDaylightThumbUrl': json['latest_daylight_thumb_url'],
|
|
62
|
+
'latestThumbhash': json['latest_thumbhash'],
|
|
63
|
+
'latestDaylightThumbhash': json['latest_daylight_thumbhash'],
|
|
64
|
+
'hasHistory': json['has_history'],
|
|
65
|
+
'elevationFt': json['elevation_ft'] == null ? undefined : json['elevation_ft'],
|
|
66
|
+
'elevationM': json['elevation_m'] == null ? undefined : json['elevation_m'],
|
|
67
|
+
'lastFrameAt': json['last_frame_at'] == null ? undefined : json['last_frame_at'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function WebcamToJSON(json) {
|
|
71
|
+
return WebcamToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'uuid': value['uuid'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'area_uuid': value['areaUuid'],
|
|
81
|
+
'area_name': value['areaName'],
|
|
82
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
83
|
+
'latest_image_url': value['latestImageUrl'],
|
|
84
|
+
'latest_daylight_image_url': value['latestDaylightImageUrl'],
|
|
85
|
+
'latest_thumb_url': value['latestThumbUrl'],
|
|
86
|
+
'latest_daylight_thumb_url': value['latestDaylightThumbUrl'],
|
|
87
|
+
'latest_thumbhash': value['latestThumbhash'],
|
|
88
|
+
'latest_daylight_thumbhash': value['latestDaylightThumbhash'],
|
|
89
|
+
'has_history': value['hasHistory'],
|
|
90
|
+
'elevation_ft': value['elevationFt'],
|
|
91
|
+
'elevation_m': value['elevationM'],
|
|
92
|
+
'last_frame_at': value['lastFrameAt'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* ThumbHash of the frame (standard base64), recovered from the thumb object's
|
|
38
|
+
* key. Empty string for legacy frames archived without one.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WebcamHistoryFrame
|
|
41
|
+
*/
|
|
42
|
+
thumbhash: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the WebcamHistoryFrame interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfWebcamHistoryFrame(value: object): value is WebcamHistoryFrame;
|
|
48
|
+
export declare function WebcamHistoryFrameFromJSON(json: any): WebcamHistoryFrame;
|
|
49
|
+
export declare function WebcamHistoryFrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryFrame;
|
|
50
|
+
export declare function WebcamHistoryFrameToJSON(json: any): WebcamHistoryFrame;
|
|
51
|
+
export declare function WebcamHistoryFrameToJSONTyped(value?: WebcamHistoryFrame | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfWebcamHistoryFrame = instanceOfWebcamHistoryFrame;
|
|
17
|
+
exports.WebcamHistoryFrameFromJSON = WebcamHistoryFrameFromJSON;
|
|
18
|
+
exports.WebcamHistoryFrameFromJSONTyped = WebcamHistoryFrameFromJSONTyped;
|
|
19
|
+
exports.WebcamHistoryFrameToJSON = WebcamHistoryFrameToJSON;
|
|
20
|
+
exports.WebcamHistoryFrameToJSONTyped = WebcamHistoryFrameToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebcamHistoryFrame interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebcamHistoryFrame(value) {
|
|
25
|
+
if ((!('capturedAt' in value) && !('captured_at' in value)) || (value['capturedAt'] === undefined && value['captured_at'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('imageUrl' in value) && !('image_url' in value)) || (value['imageUrl'] === undefined && value['image_url'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('thumbUrl' in value) && !('thumb_url' in value)) || (value['thumbUrl'] === undefined && value['thumb_url'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if (!('thumbhash' in value) || value['thumbhash'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function WebcamHistoryFrameFromJSON(json) {
|
|
36
|
+
return WebcamHistoryFrameFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function WebcamHistoryFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'capturedAt': json['captured_at'],
|
|
44
|
+
'imageUrl': json['image_url'],
|
|
45
|
+
'thumbUrl': json['thumb_url'],
|
|
46
|
+
'thumbhash': json['thumbhash'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function WebcamHistoryFrameToJSON(json) {
|
|
50
|
+
return WebcamHistoryFrameToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function WebcamHistoryFrameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'captured_at': value['capturedAt'],
|
|
58
|
+
'image_url': value['imageUrl'],
|
|
59
|
+
'thumb_url': value['thumbUrl'],
|
|
60
|
+
'thumbhash': value['thumbhash'],
|
|
61
|
+
};
|
|
62
|
+
}
|