@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,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,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,78 @@
|
|
|
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
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function WebcamFromJSON(json) {
|
|
40
|
+
return WebcamFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WebcamFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'uuid': json['uuid'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
50
|
+
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
51
|
+
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
52
|
+
'latestImageUrl': json['latest_image_url'],
|
|
53
|
+
'latestDaylightImageUrl': json['latest_daylight_image_url'],
|
|
54
|
+
'latestThumbUrl': json['latest_thumb_url'],
|
|
55
|
+
'latestDaylightThumbUrl': json['latest_daylight_thumb_url'],
|
|
56
|
+
'lastFrameAt': json['last_frame_at'] == null ? undefined : json['last_frame_at'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function WebcamToJSON(json) {
|
|
60
|
+
return WebcamToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function WebcamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'uuid': value['uuid'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'area_uuid': value['areaUuid'],
|
|
70
|
+
'area_name': value['areaName'],
|
|
71
|
+
'area_display_order': value['areaDisplayOrder'],
|
|
72
|
+
'latest_image_url': value['latestImageUrl'],
|
|
73
|
+
'latest_daylight_image_url': value['latestDaylightImageUrl'],
|
|
74
|
+
'latest_thumb_url': value['latestThumbUrl'],
|
|
75
|
+
'latest_daylight_thumb_url': value['latestDaylightThumbUrl'],
|
|
76
|
+
'last_frame_at': value['lastFrameAt'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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,58 @@
|
|
|
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
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function WebcamHistoryFrameFromJSON(json) {
|
|
34
|
+
return WebcamHistoryFrameFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function WebcamHistoryFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'capturedAt': json['captured_at'],
|
|
42
|
+
'imageUrl': json['image_url'],
|
|
43
|
+
'thumbUrl': json['thumb_url'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function WebcamHistoryFrameToJSON(json) {
|
|
47
|
+
return WebcamHistoryFrameToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function WebcamHistoryFrameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'captured_at': value['capturedAt'],
|
|
55
|
+
'image_url': value['imageUrl'],
|
|
56
|
+
'thumb_url': value['thumbUrl'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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,50 @@
|
|
|
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.instanceOfWebcamHistoryQuery = instanceOfWebcamHistoryQuery;
|
|
17
|
+
exports.WebcamHistoryQueryFromJSON = WebcamHistoryQueryFromJSON;
|
|
18
|
+
exports.WebcamHistoryQueryFromJSONTyped = WebcamHistoryQueryFromJSONTyped;
|
|
19
|
+
exports.WebcamHistoryQueryToJSON = WebcamHistoryQueryToJSON;
|
|
20
|
+
exports.WebcamHistoryQueryToJSONTyped = WebcamHistoryQueryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebcamHistoryQuery interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebcamHistoryQuery(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function WebcamHistoryQueryFromJSON(json) {
|
|
28
|
+
return WebcamHistoryQueryFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function WebcamHistoryQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'from': json['from'] == null ? undefined : json['from'],
|
|
36
|
+
'to': json['to'] == null ? undefined : json['to'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function WebcamHistoryQueryToJSON(json) {
|
|
40
|
+
return WebcamHistoryQueryToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WebcamHistoryQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'from': value['from'],
|
|
48
|
+
'to': value['to'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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,55 @@
|
|
|
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.instanceOfWebcamHistoryResponse = instanceOfWebcamHistoryResponse;
|
|
17
|
+
exports.WebcamHistoryResponseFromJSON = WebcamHistoryResponseFromJSON;
|
|
18
|
+
exports.WebcamHistoryResponseFromJSONTyped = WebcamHistoryResponseFromJSONTyped;
|
|
19
|
+
exports.WebcamHistoryResponseToJSON = WebcamHistoryResponseToJSON;
|
|
20
|
+
exports.WebcamHistoryResponseToJSONTyped = WebcamHistoryResponseToJSONTyped;
|
|
21
|
+
const WebcamHistoryFrame_1 = require("./WebcamHistoryFrame");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WebcamHistoryResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWebcamHistoryResponse(value) {
|
|
26
|
+
if ((!('webcamUuid' in value) && !('webcam_uuid' in value)) || (value['webcamUuid'] === undefined && value['webcam_uuid'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if (!('frames' in value) || value['frames'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function WebcamHistoryResponseFromJSON(json) {
|
|
33
|
+
return WebcamHistoryResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function WebcamHistoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'webcamUuid': json['webcam_uuid'],
|
|
41
|
+
'frames': (json['frames'].map(WebcamHistoryFrame_1.WebcamHistoryFrameFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function WebcamHistoryResponseToJSON(json) {
|
|
45
|
+
return WebcamHistoryResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function WebcamHistoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'webcam_uuid': value['webcamUuid'],
|
|
53
|
+
'frames': (value['frames'].map(WebcamHistoryFrame_1.WebcamHistoryFrameToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -79,7 +79,12 @@ __exportStar(require("./TrailMapElementOneOf3"), exports);
|
|
|
79
79
|
__exportStar(require("./TrailMapElementOneOf4"), exports);
|
|
80
80
|
__exportStar(require("./TrailMapElementOneOf5"), exports);
|
|
81
81
|
__exportStar(require("./TrailMapElementOneOf6"), exports);
|
|
82
|
+
__exportStar(require("./TrailMapElementOneOf7"), exports);
|
|
82
83
|
__exportStar(require("./TrailMapSummary"), exports);
|
|
83
84
|
__exportStar(require("./UnitPreference"), exports);
|
|
84
85
|
__exportStar(require("./Weather"), exports);
|
|
85
86
|
__exportStar(require("./WeatherConditionCode"), exports);
|
|
87
|
+
__exportStar(require("./Webcam"), exports);
|
|
88
|
+
__exportStar(require("./WebcamHistoryFrame"), exports);
|
|
89
|
+
__exportStar(require("./WebcamHistoryQuery"), exports);
|
|
90
|
+
__exportStar(require("./WebcamHistoryResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
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",
|