@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,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.1",
|
|
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",
|