@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
|
@@ -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,76 @@
|
|
|
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 { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TrailMapElementOneOf7TypeEnum = {
|
|
19
|
+
GenericMarker: 'generic_marker'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TrailMapElementOneOf7 interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfTrailMapElementOneOf7(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (value['type'] !== 'generic_marker')
|
|
28
|
+
return false;
|
|
29
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function TrailMapElementOneOf7FromJSON(json) {
|
|
40
|
+
return TrailMapElementOneOf7FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function TrailMapElementOneOf7FromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'uuid': json['uuid'],
|
|
49
|
+
'x': json['x'],
|
|
50
|
+
'y': json['y'],
|
|
51
|
+
'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
|
|
52
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
53
|
+
'label': json['label'],
|
|
54
|
+
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
55
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function TrailMapElementOneOf7ToJSON(json) {
|
|
59
|
+
return TrailMapElementOneOf7ToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function TrailMapElementOneOf7ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'uuid': value['uuid'],
|
|
68
|
+
'x': value['x'],
|
|
69
|
+
'y': value['y'],
|
|
70
|
+
'icon': MarkerIconToJSON(value['icon']),
|
|
71
|
+
'color': value['color'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
'searchable': value['searchable'],
|
|
74
|
+
'group_label': value['groupLabel'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -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,87 @@
|
|
|
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
|
+
if ((!('latestThumbhash' in value) && !('latest_thumbhash' in value)) || (value['latestThumbhash'] === undefined && value['latest_thumbhash'] === undefined))
|
|
31
|
+
return false;
|
|
32
|
+
if ((!('latestDaylightThumbhash' in value) && !('latest_daylight_thumbhash' in value)) || (value['latestDaylightThumbhash'] === undefined && value['latest_daylight_thumbhash'] === undefined))
|
|
33
|
+
return false;
|
|
34
|
+
if ((!('hasHistory' in value) && !('has_history' in value)) || (value['hasHistory'] === undefined && value['has_history'] === undefined))
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function WebcamFromJSON(json) {
|
|
39
|
+
return WebcamFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function WebcamFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'uuid': json['uuid'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
49
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
50
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
51
|
+
'latestImageUrl': json['latest_image_url'],
|
|
52
|
+
'latestDaylightImageUrl': json['latest_daylight_image_url'],
|
|
53
|
+
'latestThumbUrl': json['latest_thumb_url'],
|
|
54
|
+
'latestDaylightThumbUrl': json['latest_daylight_thumb_url'],
|
|
55
|
+
'latestThumbhash': json['latest_thumbhash'],
|
|
56
|
+
'latestDaylightThumbhash': json['latest_daylight_thumbhash'],
|
|
57
|
+
'hasHistory': json['has_history'],
|
|
58
|
+
'elevationFt': json['elevation_ft'] == null ? undefined : json['elevation_ft'],
|
|
59
|
+
'elevationM': json['elevation_m'] == null ? undefined : json['elevation_m'],
|
|
60
|
+
'lastFrameAt': json['last_frame_at'] == null ? undefined : json['last_frame_at'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function WebcamToJSON(json) {
|
|
64
|
+
return WebcamToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'uuid': value['uuid'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'area_uuid': value['areaUuid'],
|
|
74
|
+
'area_name': value['areaName'],
|
|
75
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
76
|
+
'latest_image_url': value['latestImageUrl'],
|
|
77
|
+
'latest_daylight_image_url': value['latestDaylightImageUrl'],
|
|
78
|
+
'latest_thumb_url': value['latestThumbUrl'],
|
|
79
|
+
'latest_daylight_thumb_url': value['latestDaylightThumbUrl'],
|
|
80
|
+
'latest_thumbhash': value['latestThumbhash'],
|
|
81
|
+
'latest_daylight_thumbhash': value['latestDaylightThumbhash'],
|
|
82
|
+
'has_history': value['hasHistory'],
|
|
83
|
+
'elevation_ft': value['elevationFt'],
|
|
84
|
+
'elevation_m': value['elevationM'],
|
|
85
|
+
'last_frame_at': value['lastFrameAt'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -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,55 @@
|
|
|
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
|
+
if (!('thumbhash' in value) || value['thumbhash'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function WebcamHistoryFrameFromJSON(json) {
|
|
29
|
+
return WebcamHistoryFrameFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function WebcamHistoryFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'capturedAt': json['captured_at'],
|
|
37
|
+
'imageUrl': json['image_url'],
|
|
38
|
+
'thumbUrl': json['thumb_url'],
|
|
39
|
+
'thumbhash': json['thumbhash'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function WebcamHistoryFrameToJSON(json) {
|
|
43
|
+
return WebcamHistoryFrameToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function WebcamHistoryFrameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'captured_at': value['capturedAt'],
|
|
51
|
+
'image_url': value['imageUrl'],
|
|
52
|
+
'thumb_url': value['thumbUrl'],
|
|
53
|
+
'thumbhash': value['thumbhash'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -61,7 +61,12 @@ export * from './TrailMapElementOneOf3';
|
|
|
61
61
|
export * from './TrailMapElementOneOf4';
|
|
62
62
|
export * from './TrailMapElementOneOf5';
|
|
63
63
|
export * from './TrailMapElementOneOf6';
|
|
64
|
+
export * from './TrailMapElementOneOf7';
|
|
64
65
|
export * from './TrailMapSummary';
|
|
65
66
|
export * from './UnitPreference';
|
|
66
67
|
export * from './Weather';
|
|
67
68
|
export * from './WeatherConditionCode';
|
|
69
|
+
export * from './Webcam';
|
|
70
|
+
export * from './WebcamHistoryFrame';
|
|
71
|
+
export * from './WebcamHistoryQuery';
|
|
72
|
+
export * from './WebcamHistoryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -63,7 +63,12 @@ export * from './TrailMapElementOneOf3';
|
|
|
63
63
|
export * from './TrailMapElementOneOf4';
|
|
64
64
|
export * from './TrailMapElementOneOf5';
|
|
65
65
|
export * from './TrailMapElementOneOf6';
|
|
66
|
+
export * from './TrailMapElementOneOf7';
|
|
66
67
|
export * from './TrailMapSummary';
|
|
67
68
|
export * from './UnitPreference';
|
|
68
69
|
export * from './Weather';
|
|
69
70
|
export * from './WeatherConditionCode';
|
|
71
|
+
export * from './Webcam';
|
|
72
|
+
export * from './WebcamHistoryFrame';
|
|
73
|
+
export * from './WebcamHistoryQuery';
|
|
74
|
+
export * from './WebcamHistoryResponse';
|