@mtnmanager/sdk 1.4.6 → 1.4.8
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/README.md +9 -6
- package/dist/apis/MtnManagerApi.d.ts +135 -72
- package/dist/apis/MtnManagerApi.js +111 -72
- package/dist/esm/apis/MtnManagerApi.d.ts +135 -72
- package/dist/esm/apis/MtnManagerApi.js +111 -72
- package/dist/esm/models/Schedule.d.ts +1 -1
- package/dist/esm/models/TrailMapElement.d.ts +3 -1
- package/dist/esm/models/TrailMapElement.js +14 -0
- package/dist/esm/models/TrailMapElementOneOf4.d.ts +48 -4
- package/dist/esm/models/TrailMapElementOneOf4.js +30 -5
- package/dist/esm/models/TrailMapElementOneOf5.d.ts +83 -0
- package/dist/esm/models/{PointMarkerOneOf1.js → TrailMapElementOneOf5.js} +18 -16
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +88 -0
- package/dist/esm/models/{PointMarkerOneOf2.js → TrailMapElementOneOf6.js} +18 -16
- package/dist/esm/models/index.d.ts +2 -4
- package/dist/esm/models/index.js +2 -4
- package/dist/models/Schedule.d.ts +1 -1
- package/dist/models/TrailMapElement.d.ts +3 -1
- package/dist/models/TrailMapElement.js +14 -0
- package/dist/models/TrailMapElementOneOf4.d.ts +48 -4
- package/dist/models/TrailMapElementOneOf4.js +30 -5
- package/dist/models/TrailMapElementOneOf5.d.ts +83 -0
- package/dist/models/{PointMarkerOneOf1.js → TrailMapElementOneOf5.js} +24 -22
- package/dist/models/TrailMapElementOneOf6.d.ts +88 -0
- package/dist/models/{PointMarkerOneOf2.js → TrailMapElementOneOf6.js} +24 -22
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/package.json +1 -1
- package/dist/esm/models/PointMarker.d.ts +0 -24
- package/dist/esm/models/PointMarker.js +0 -58
- package/dist/esm/models/PointMarkerOneOf.d.ts +0 -77
- package/dist/esm/models/PointMarkerOneOf.js +0 -71
- package/dist/esm/models/PointMarkerOneOf1.d.ts +0 -77
- package/dist/esm/models/PointMarkerOneOf2.d.ts +0 -82
- package/dist/models/PointMarker.d.ts +0 -24
- package/dist/models/PointMarker.js +0 -64
- package/dist/models/PointMarkerOneOf.d.ts +0 -77
- package/dist/models/PointMarkerOneOf.js +0 -79
- package/dist/models/PointMarkerOneOf1.d.ts +0 -77
- package/dist/models/PointMarkerOneOf2.d.ts +0 -82
|
@@ -0,0 +1,83 @@
|
|
|
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 { ParkingLot } from './ParkingLot';
|
|
13
|
+
import type { MarkerIcon } from './MarkerIcon';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TrailMapElementOneOf5
|
|
18
|
+
*/
|
|
19
|
+
export interface TrailMapElementOneOf5 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {TrailMapElementOneOf5TypeEnum}
|
|
23
|
+
* @memberof TrailMapElementOneOf5
|
|
24
|
+
*/
|
|
25
|
+
type: TrailMapElementOneOf5TypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TrailMapElementOneOf5
|
|
30
|
+
*/
|
|
31
|
+
uuid: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof TrailMapElementOneOf5
|
|
36
|
+
*/
|
|
37
|
+
x: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TrailMapElementOneOf5
|
|
42
|
+
*/
|
|
43
|
+
y: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {MarkerIcon}
|
|
47
|
+
* @memberof TrailMapElementOneOf5
|
|
48
|
+
*/
|
|
49
|
+
icon?: MarkerIcon | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TrailMapElementOneOf5
|
|
54
|
+
*/
|
|
55
|
+
color?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ParkingLot}
|
|
59
|
+
* @memberof TrailMapElementOneOf5
|
|
60
|
+
*/
|
|
61
|
+
parkingLot?: ParkingLot | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TrailMapElementOneOf5
|
|
66
|
+
*/
|
|
67
|
+
groupLabel?: string | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const TrailMapElementOneOf5TypeEnum: {
|
|
73
|
+
readonly ParkingLotMarker: "parking_lot_marker";
|
|
74
|
+
};
|
|
75
|
+
export type TrailMapElementOneOf5TypeEnum = typeof TrailMapElementOneOf5TypeEnum[keyof typeof TrailMapElementOneOf5TypeEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the TrailMapElementOneOf5 interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfTrailMapElementOneOf5(value: object): value is TrailMapElementOneOf5;
|
|
80
|
+
export declare function TrailMapElementOneOf5FromJSON(json: any): TrailMapElementOneOf5;
|
|
81
|
+
export declare function TrailMapElementOneOf5FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf5;
|
|
82
|
+
export declare function TrailMapElementOneOf5ToJSON(json: any): TrailMapElementOneOf5;
|
|
83
|
+
export declare function TrailMapElementOneOf5ToJSONTyped(value?: TrailMapElementOneOf5 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -16,56 +16,58 @@ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
|
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export const
|
|
20
|
-
|
|
19
|
+
export const TrailMapElementOneOf5TypeEnum = {
|
|
20
|
+
ParkingLotMarker: 'parking_lot_marker'
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the TrailMapElementOneOf5 interface.
|
|
24
24
|
*/
|
|
25
|
-
export function
|
|
25
|
+
export function instanceOfTrailMapElementOneOf5(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (value['type'] !== 'parking_lot_marker')
|
|
29
|
+
return false;
|
|
26
30
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
27
31
|
return false;
|
|
28
32
|
if (!('x' in value) || value['x'] === undefined)
|
|
29
33
|
return false;
|
|
30
34
|
if (!('y' in value) || value['y'] === undefined)
|
|
31
35
|
return false;
|
|
32
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (value['kind'] !== 'parking_lot')
|
|
35
|
-
return false;
|
|
36
36
|
return true;
|
|
37
37
|
}
|
|
38
|
-
export function
|
|
39
|
-
return
|
|
38
|
+
export function TrailMapElementOneOf5FromJSON(json) {
|
|
39
|
+
return TrailMapElementOneOf5FromJSONTyped(json, false);
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
41
|
+
export function TrailMapElementOneOf5FromJSONTyped(json, ignoreDiscriminator) {
|
|
42
42
|
if (json == null) {
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
+
'type': json['type'],
|
|
46
47
|
'uuid': json['uuid'],
|
|
47
48
|
'x': json['x'],
|
|
48
49
|
'y': json['y'],
|
|
49
50
|
'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
|
|
50
51
|
'color': json['color'] == null ? undefined : json['color'],
|
|
51
52
|
'parkingLot': json['parking_lot'] == null ? undefined : ParkingLotFromJSON(json['parking_lot']),
|
|
52
|
-
'
|
|
53
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
|
-
export function
|
|
56
|
-
return
|
|
56
|
+
export function TrailMapElementOneOf5ToJSON(json) {
|
|
57
|
+
return TrailMapElementOneOf5ToJSONTyped(json, false);
|
|
57
58
|
}
|
|
58
|
-
export function
|
|
59
|
+
export function TrailMapElementOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
60
|
if (value == null) {
|
|
60
61
|
return value;
|
|
61
62
|
}
|
|
62
63
|
return {
|
|
64
|
+
'type': value['type'],
|
|
63
65
|
'uuid': value['uuid'],
|
|
64
66
|
'x': value['x'],
|
|
65
67
|
'y': value['y'],
|
|
66
68
|
'icon': MarkerIconToJSON(value['icon']),
|
|
67
69
|
'color': value['color'],
|
|
68
70
|
'parking_lot': ParkingLotToJSON(value['parkingLot']),
|
|
69
|
-
'
|
|
71
|
+
'group_label': value['groupLabel'],
|
|
70
72
|
};
|
|
71
73
|
}
|
|
@@ -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 TrailMapElementOneOf6
|
|
17
|
+
*/
|
|
18
|
+
export interface TrailMapElementOneOf6 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TrailMapElementOneOf6TypeEnum}
|
|
22
|
+
* @memberof TrailMapElementOneOf6
|
|
23
|
+
*/
|
|
24
|
+
type: TrailMapElementOneOf6TypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TrailMapElementOneOf6
|
|
29
|
+
*/
|
|
30
|
+
uuid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TrailMapElementOneOf6
|
|
35
|
+
*/
|
|
36
|
+
x: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TrailMapElementOneOf6
|
|
41
|
+
*/
|
|
42
|
+
y: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MarkerIcon}
|
|
46
|
+
* @memberof TrailMapElementOneOf6
|
|
47
|
+
*/
|
|
48
|
+
icon?: MarkerIcon | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TrailMapElementOneOf6
|
|
53
|
+
*/
|
|
54
|
+
color?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TrailMapElementOneOf6
|
|
59
|
+
*/
|
|
60
|
+
label: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof TrailMapElementOneOf6
|
|
65
|
+
*/
|
|
66
|
+
searchable?: boolean | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TrailMapElementOneOf6
|
|
71
|
+
*/
|
|
72
|
+
groupLabel?: string | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const TrailMapElementOneOf6TypeEnum: {
|
|
78
|
+
readonly GenericMarker: "generic_marker";
|
|
79
|
+
};
|
|
80
|
+
export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the TrailMapElementOneOf6 interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfTrailMapElementOneOf6(value: object): value is TrailMapElementOneOf6;
|
|
85
|
+
export declare function TrailMapElementOneOf6FromJSON(json: any): TrailMapElementOneOf6;
|
|
86
|
+
export declare function TrailMapElementOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf6;
|
|
87
|
+
export declare function TrailMapElementOneOf6ToJSON(json: any): TrailMapElementOneOf6;
|
|
88
|
+
export declare function TrailMapElementOneOf6ToJSONTyped(value?: TrailMapElementOneOf6 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -15,13 +15,17 @@ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
|
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
19
|
-
|
|
18
|
+
export const TrailMapElementOneOf6TypeEnum = {
|
|
19
|
+
GenericMarker: 'generic_marker'
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the TrailMapElementOneOf6 interface.
|
|
23
23
|
*/
|
|
24
|
-
export function
|
|
24
|
+
export function instanceOfTrailMapElementOneOf6(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (value['type'] !== 'generic_marker')
|
|
28
|
+
return false;
|
|
25
29
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
30
|
return false;
|
|
27
31
|
if (!('x' in value) || value['x'] === undefined)
|
|
@@ -30,20 +34,17 @@ export function instanceOfPointMarkerOneOf2(value) {
|
|
|
30
34
|
return false;
|
|
31
35
|
if (!('label' in value) || value['label'] === undefined)
|
|
32
36
|
return false;
|
|
33
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (value['kind'] !== 'generic')
|
|
36
|
-
return false;
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function TrailMapElementOneOf6FromJSON(json) {
|
|
40
|
+
return TrailMapElementOneOf6FromJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
43
43
|
if (json == null) {
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
+
'type': json['type'],
|
|
47
48
|
'uuid': json['uuid'],
|
|
48
49
|
'x': json['x'],
|
|
49
50
|
'y': json['y'],
|
|
@@ -51,17 +52,18 @@ export function PointMarkerOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
'color': json['color'] == null ? undefined : json['color'],
|
|
52
53
|
'label': json['label'],
|
|
53
54
|
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
54
|
-
'
|
|
55
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
export function
|
|
58
|
-
return
|
|
58
|
+
export function TrailMapElementOneOf6ToJSON(json) {
|
|
59
|
+
return TrailMapElementOneOf6ToJSONTyped(json, false);
|
|
59
60
|
}
|
|
60
|
-
export function
|
|
61
|
+
export function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
62
|
if (value == null) {
|
|
62
63
|
return value;
|
|
63
64
|
}
|
|
64
65
|
return {
|
|
66
|
+
'type': value['type'],
|
|
65
67
|
'uuid': value['uuid'],
|
|
66
68
|
'x': value['x'],
|
|
67
69
|
'y': value['y'],
|
|
@@ -69,6 +71,6 @@ export function PointMarkerOneOf2ToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
69
71
|
'color': value['color'],
|
|
70
72
|
'label': value['label'],
|
|
71
73
|
'searchable': value['searchable'],
|
|
72
|
-
'
|
|
74
|
+
'group_label': value['groupLabel'],
|
|
73
75
|
};
|
|
74
76
|
}
|
|
@@ -35,10 +35,6 @@ export * from './OverviewTerrainParks';
|
|
|
35
35
|
export * from './ParkingLot';
|
|
36
36
|
export * from './ParkingLotStatus';
|
|
37
37
|
export * from './PathUuid';
|
|
38
|
-
export * from './PointMarker';
|
|
39
|
-
export * from './PointMarkerOneOf';
|
|
40
|
-
export * from './PointMarkerOneOf1';
|
|
41
|
-
export * from './PointMarkerOneOf2';
|
|
42
38
|
export * from './Region';
|
|
43
39
|
export * from './ResortInfo';
|
|
44
40
|
export * from './ResortStatus';
|
|
@@ -65,6 +61,8 @@ export * from './TrailMapElementOneOf1';
|
|
|
65
61
|
export * from './TrailMapElementOneOf2';
|
|
66
62
|
export * from './TrailMapElementOneOf3';
|
|
67
63
|
export * from './TrailMapElementOneOf4';
|
|
64
|
+
export * from './TrailMapElementOneOf5';
|
|
65
|
+
export * from './TrailMapElementOneOf6';
|
|
68
66
|
export * from './TrailMapSummary';
|
|
69
67
|
export * from './UnitPreference';
|
|
70
68
|
export * from './Weather';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -37,10 +37,6 @@ export * from './OverviewTerrainParks';
|
|
|
37
37
|
export * from './ParkingLot';
|
|
38
38
|
export * from './ParkingLotStatus';
|
|
39
39
|
export * from './PathUuid';
|
|
40
|
-
export * from './PointMarker';
|
|
41
|
-
export * from './PointMarkerOneOf';
|
|
42
|
-
export * from './PointMarkerOneOf1';
|
|
43
|
-
export * from './PointMarkerOneOf2';
|
|
44
40
|
export * from './Region';
|
|
45
41
|
export * from './ResortInfo';
|
|
46
42
|
export * from './ResortStatus';
|
|
@@ -67,6 +63,8 @@ export * from './TrailMapElementOneOf1';
|
|
|
67
63
|
export * from './TrailMapElementOneOf2';
|
|
68
64
|
export * from './TrailMapElementOneOf3';
|
|
69
65
|
export * from './TrailMapElementOneOf4';
|
|
66
|
+
export * from './TrailMapElementOneOf5';
|
|
67
|
+
export * from './TrailMapElementOneOf6';
|
|
70
68
|
export * from './TrailMapSummary';
|
|
71
69
|
export * from './UnitPreference';
|
|
72
70
|
export * from './Weather';
|
|
@@ -14,12 +14,14 @@ import type { TrailMapElementOneOf1 } from './TrailMapElementOneOf1';
|
|
|
14
14
|
import type { TrailMapElementOneOf2 } from './TrailMapElementOneOf2';
|
|
15
15
|
import type { TrailMapElementOneOf3 } from './TrailMapElementOneOf3';
|
|
16
16
|
import type { TrailMapElementOneOf4 } from './TrailMapElementOneOf4';
|
|
17
|
+
import type { TrailMapElementOneOf5 } from './TrailMapElementOneOf5';
|
|
18
|
+
import type { TrailMapElementOneOf6 } from './TrailMapElementOneOf6';
|
|
17
19
|
/**
|
|
18
20
|
* @type TrailMapElement
|
|
19
21
|
* A trail map element with full entity data from existing public models.
|
|
20
22
|
* @export
|
|
21
23
|
*/
|
|
22
|
-
export type TrailMapElement = TrailMapElementOneOf | TrailMapElementOneOf1 | TrailMapElementOneOf2 | TrailMapElementOneOf3 | TrailMapElementOneOf4;
|
|
24
|
+
export type TrailMapElement = TrailMapElementOneOf | TrailMapElementOneOf1 | TrailMapElementOneOf2 | TrailMapElementOneOf3 | TrailMapElementOneOf4 | TrailMapElementOneOf5 | TrailMapElementOneOf6;
|
|
23
25
|
export declare function TrailMapElementFromJSON(json: any): TrailMapElement;
|
|
24
26
|
export declare function TrailMapElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElement;
|
|
25
27
|
export declare function TrailMapElementToJSON(json: any): any;
|
|
@@ -22,6 +22,8 @@ const TrailMapElementOneOf1_1 = require("./TrailMapElementOneOf1");
|
|
|
22
22
|
const TrailMapElementOneOf2_1 = require("./TrailMapElementOneOf2");
|
|
23
23
|
const TrailMapElementOneOf3_1 = require("./TrailMapElementOneOf3");
|
|
24
24
|
const TrailMapElementOneOf4_1 = require("./TrailMapElementOneOf4");
|
|
25
|
+
const TrailMapElementOneOf5_1 = require("./TrailMapElementOneOf5");
|
|
26
|
+
const TrailMapElementOneOf6_1 = require("./TrailMapElementOneOf6");
|
|
25
27
|
function TrailMapElementFromJSON(json) {
|
|
26
28
|
return TrailMapElementFromJSONTyped(json, false);
|
|
27
29
|
}
|
|
@@ -47,6 +49,12 @@ function TrailMapElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
if ((0, TrailMapElementOneOf4_1.instanceOfTrailMapElementOneOf4)(json)) {
|
|
48
50
|
return (0, TrailMapElementOneOf4_1.TrailMapElementOneOf4FromJSONTyped)(json, true);
|
|
49
51
|
}
|
|
52
|
+
if ((0, TrailMapElementOneOf5_1.instanceOfTrailMapElementOneOf5)(json)) {
|
|
53
|
+
return (0, TrailMapElementOneOf5_1.TrailMapElementOneOf5FromJSONTyped)(json, true);
|
|
54
|
+
}
|
|
55
|
+
if ((0, TrailMapElementOneOf6_1.instanceOfTrailMapElementOneOf6)(json)) {
|
|
56
|
+
return (0, TrailMapElementOneOf6_1.TrailMapElementOneOf6FromJSONTyped)(json, true);
|
|
57
|
+
}
|
|
50
58
|
return {};
|
|
51
59
|
}
|
|
52
60
|
function TrailMapElementToJSON(json) {
|
|
@@ -74,5 +82,11 @@ function TrailMapElementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
82
|
if ((0, TrailMapElementOneOf4_1.instanceOfTrailMapElementOneOf4)(value)) {
|
|
75
83
|
return (0, TrailMapElementOneOf4_1.TrailMapElementOneOf4ToJSON)(value);
|
|
76
84
|
}
|
|
85
|
+
if ((0, TrailMapElementOneOf5_1.instanceOfTrailMapElementOneOf5)(value)) {
|
|
86
|
+
return (0, TrailMapElementOneOf5_1.TrailMapElementOneOf5ToJSON)(value);
|
|
87
|
+
}
|
|
88
|
+
if ((0, TrailMapElementOneOf6_1.instanceOfTrailMapElementOneOf6)(value)) {
|
|
89
|
+
return (0, TrailMapElementOneOf6_1.TrailMapElementOneOf6ToJSON)(value);
|
|
90
|
+
}
|
|
77
91
|
return {};
|
|
78
92
|
}
|
|
@@ -9,24 +9,68 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { Amenity } from './Amenity';
|
|
13
|
+
import type { MarkerIcon } from './MarkerIcon';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
17
|
+
* @interface TrailMapElementOneOf4
|
|
16
18
|
*/
|
|
17
|
-
export
|
|
19
|
+
export interface TrailMapElementOneOf4 {
|
|
18
20
|
/**
|
|
19
21
|
*
|
|
20
22
|
* @type {TrailMapElementOneOf4TypeEnum}
|
|
21
23
|
* @memberof TrailMapElementOneOf4
|
|
22
24
|
*/
|
|
23
25
|
type: TrailMapElementOneOf4TypeEnum;
|
|
24
|
-
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TrailMapElementOneOf4
|
|
30
|
+
*/
|
|
31
|
+
uuid: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof TrailMapElementOneOf4
|
|
36
|
+
*/
|
|
37
|
+
x: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TrailMapElementOneOf4
|
|
42
|
+
*/
|
|
43
|
+
y: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {MarkerIcon}
|
|
47
|
+
* @memberof TrailMapElementOneOf4
|
|
48
|
+
*/
|
|
49
|
+
icon?: MarkerIcon | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TrailMapElementOneOf4
|
|
54
|
+
*/
|
|
55
|
+
color?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Amenity}
|
|
59
|
+
* @memberof TrailMapElementOneOf4
|
|
60
|
+
*/
|
|
61
|
+
amenity?: Amenity | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TrailMapElementOneOf4
|
|
66
|
+
*/
|
|
67
|
+
groupLabel?: string | null;
|
|
68
|
+
}
|
|
25
69
|
/**
|
|
26
70
|
* @export
|
|
27
71
|
*/
|
|
28
72
|
export declare const TrailMapElementOneOf4TypeEnum: {
|
|
29
|
-
readonly
|
|
73
|
+
readonly AmenityMarker: "amenity_marker";
|
|
30
74
|
};
|
|
31
75
|
export type TrailMapElementOneOf4TypeEnum = typeof TrailMapElementOneOf4TypeEnum[keyof typeof TrailMapElementOneOf4TypeEnum];
|
|
32
76
|
/**
|
|
@@ -19,12 +19,13 @@ exports.TrailMapElementOneOf4FromJSON = TrailMapElementOneOf4FromJSON;
|
|
|
19
19
|
exports.TrailMapElementOneOf4FromJSONTyped = TrailMapElementOneOf4FromJSONTyped;
|
|
20
20
|
exports.TrailMapElementOneOf4ToJSON = TrailMapElementOneOf4ToJSON;
|
|
21
21
|
exports.TrailMapElementOneOf4ToJSONTyped = TrailMapElementOneOf4ToJSONTyped;
|
|
22
|
-
const
|
|
22
|
+
const Amenity_1 = require("./Amenity");
|
|
23
|
+
const MarkerIcon_1 = require("./MarkerIcon");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
26
27
|
exports.TrailMapElementOneOf4TypeEnum = {
|
|
27
|
-
|
|
28
|
+
AmenityMarker: 'amenity_marker'
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Check if a given object implements the TrailMapElementOneOf4 interface.
|
|
@@ -32,7 +33,13 @@ exports.TrailMapElementOneOf4TypeEnum = {
|
|
|
32
33
|
function instanceOfTrailMapElementOneOf4(value) {
|
|
33
34
|
if (!('type' in value) || value['type'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (value['type'] !== '
|
|
36
|
+
if (value['type'] !== 'amenity_marker')
|
|
37
|
+
return false;
|
|
38
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
36
43
|
return false;
|
|
37
44
|
return true;
|
|
38
45
|
}
|
|
@@ -43,7 +50,16 @@ function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
50
|
if (json == null) {
|
|
44
51
|
return json;
|
|
45
52
|
}
|
|
46
|
-
return
|
|
53
|
+
return {
|
|
54
|
+
'type': json['type'],
|
|
55
|
+
'uuid': json['uuid'],
|
|
56
|
+
'x': json['x'],
|
|
57
|
+
'y': json['y'],
|
|
58
|
+
'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
|
|
59
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
60
|
+
'amenity': json['amenity'] == null ? undefined : (0, Amenity_1.AmenityFromJSON)(json['amenity']),
|
|
61
|
+
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
62
|
+
};
|
|
47
63
|
}
|
|
48
64
|
function TrailMapElementOneOf4ToJSON(json) {
|
|
49
65
|
return TrailMapElementOneOf4ToJSONTyped(json, false);
|
|
@@ -52,5 +68,14 @@ function TrailMapElementOneOf4ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
68
|
if (value == null) {
|
|
53
69
|
return value;
|
|
54
70
|
}
|
|
55
|
-
return
|
|
71
|
+
return {
|
|
72
|
+
'type': value['type'],
|
|
73
|
+
'uuid': value['uuid'],
|
|
74
|
+
'x': value['x'],
|
|
75
|
+
'y': value['y'],
|
|
76
|
+
'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
|
|
77
|
+
'color': value['color'],
|
|
78
|
+
'amenity': (0, Amenity_1.AmenityToJSON)(value['amenity']),
|
|
79
|
+
'group_label': value['groupLabel'],
|
|
80
|
+
};
|
|
56
81
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { ParkingLot } from './ParkingLot';
|
|
13
|
+
import type { MarkerIcon } from './MarkerIcon';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TrailMapElementOneOf5
|
|
18
|
+
*/
|
|
19
|
+
export interface TrailMapElementOneOf5 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {TrailMapElementOneOf5TypeEnum}
|
|
23
|
+
* @memberof TrailMapElementOneOf5
|
|
24
|
+
*/
|
|
25
|
+
type: TrailMapElementOneOf5TypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TrailMapElementOneOf5
|
|
30
|
+
*/
|
|
31
|
+
uuid: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof TrailMapElementOneOf5
|
|
36
|
+
*/
|
|
37
|
+
x: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TrailMapElementOneOf5
|
|
42
|
+
*/
|
|
43
|
+
y: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {MarkerIcon}
|
|
47
|
+
* @memberof TrailMapElementOneOf5
|
|
48
|
+
*/
|
|
49
|
+
icon?: MarkerIcon | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TrailMapElementOneOf5
|
|
54
|
+
*/
|
|
55
|
+
color?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ParkingLot}
|
|
59
|
+
* @memberof TrailMapElementOneOf5
|
|
60
|
+
*/
|
|
61
|
+
parkingLot?: ParkingLot | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof TrailMapElementOneOf5
|
|
66
|
+
*/
|
|
67
|
+
groupLabel?: string | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const TrailMapElementOneOf5TypeEnum: {
|
|
73
|
+
readonly ParkingLotMarker: "parking_lot_marker";
|
|
74
|
+
};
|
|
75
|
+
export type TrailMapElementOneOf5TypeEnum = typeof TrailMapElementOneOf5TypeEnum[keyof typeof TrailMapElementOneOf5TypeEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the TrailMapElementOneOf5 interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfTrailMapElementOneOf5(value: object): value is TrailMapElementOneOf5;
|
|
80
|
+
export declare function TrailMapElementOneOf5FromJSON(json: any): TrailMapElementOneOf5;
|
|
81
|
+
export declare function TrailMapElementOneOf5FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf5;
|
|
82
|
+
export declare function TrailMapElementOneOf5ToJSON(json: any): TrailMapElementOneOf5;
|
|
83
|
+
export declare function TrailMapElementOneOf5ToJSONTyped(value?: TrailMapElementOneOf5 | null, ignoreDiscriminator?: boolean): any;
|