@mtnmanager/sdk 1.6.0 → 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.
- 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/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 +88 -0
- package/dist/esm/models/Webcam.js +71 -0
- package/dist/esm/models/WebcamHistoryFrame.d.ts +44 -0
- package/dist/esm/models/WebcamHistoryFrame.js +51 -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/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 +88 -0
- package/dist/models/Webcam.js +78 -0
- package/dist/models/WebcamHistoryFrame.d.ts +44 -0
- package/dist/models/WebcamHistoryFrame.js +58 -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,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,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
|
+
}
|
|
@@ -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';
|
|
@@ -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
|
}
|