@mtnmanager/sdk 1.4.5 → 1.4.7

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.
Files changed (34) hide show
  1. package/README.md +2 -4
  2. package/dist/esm/models/TrailMapElement.d.ts +3 -1
  3. package/dist/esm/models/TrailMapElement.js +14 -0
  4. package/dist/esm/models/TrailMapElementOneOf4.d.ts +42 -4
  5. package/dist/esm/models/TrailMapElementOneOf4.js +28 -5
  6. package/dist/esm/models/TrailMapElementOneOf5.d.ts +77 -0
  7. package/dist/esm/models/{PointMarkerOneOf1.js → TrailMapElementOneOf5.js} +16 -16
  8. package/dist/esm/models/TrailMapElementOneOf6.d.ts +82 -0
  9. package/dist/esm/models/{PointMarkerOneOf2.js → TrailMapElementOneOf6.js} +16 -16
  10. package/dist/esm/models/index.d.ts +2 -4
  11. package/dist/esm/models/index.js +2 -4
  12. package/dist/models/TrailMapElement.d.ts +3 -1
  13. package/dist/models/TrailMapElement.js +14 -0
  14. package/dist/models/TrailMapElementOneOf4.d.ts +42 -4
  15. package/dist/models/TrailMapElementOneOf4.js +28 -5
  16. package/dist/models/TrailMapElementOneOf5.d.ts +77 -0
  17. package/dist/models/{PointMarkerOneOf1.js → TrailMapElementOneOf5.js} +22 -22
  18. package/dist/models/TrailMapElementOneOf6.d.ts +82 -0
  19. package/dist/models/{PointMarkerOneOf2.js → TrailMapElementOneOf6.js} +22 -22
  20. package/dist/models/index.d.ts +2 -4
  21. package/dist/models/index.js +2 -4
  22. package/package.json +1 -1
  23. package/dist/esm/models/PointMarker.d.ts +0 -24
  24. package/dist/esm/models/PointMarker.js +0 -58
  25. package/dist/esm/models/PointMarkerOneOf.d.ts +0 -77
  26. package/dist/esm/models/PointMarkerOneOf.js +0 -71
  27. package/dist/esm/models/PointMarkerOneOf1.d.ts +0 -77
  28. package/dist/esm/models/PointMarkerOneOf2.d.ts +0 -82
  29. package/dist/models/PointMarker.d.ts +0 -24
  30. package/dist/models/PointMarker.js +0 -64
  31. package/dist/models/PointMarkerOneOf.d.ts +0 -77
  32. package/dist/models/PointMarkerOneOf.js +0 -79
  33. package/dist/models/PointMarkerOneOf1.d.ts +0 -77
  34. package/dist/models/PointMarkerOneOf2.d.ts +0 -82
package/README.md CHANGED
@@ -104,10 +104,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
104
104
  - [ParkingLot](docs/ParkingLot.md)
105
105
  - [ParkingLotStatus](docs/ParkingLotStatus.md)
106
106
  - [PathUuid](docs/PathUuid.md)
107
- - [PointMarker](docs/PointMarker.md)
108
- - [PointMarkerOneOf](docs/PointMarkerOneOf.md)
109
- - [PointMarkerOneOf1](docs/PointMarkerOneOf1.md)
110
- - [PointMarkerOneOf2](docs/PointMarkerOneOf2.md)
111
107
  - [Region](docs/Region.md)
112
108
  - [ResortInfo](docs/ResortInfo.md)
113
109
  - [ResortStatus](docs/ResortStatus.md)
@@ -134,6 +130,8 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
134
130
  - [TrailMapElementOneOf2](docs/TrailMapElementOneOf2.md)
135
131
  - [TrailMapElementOneOf3](docs/TrailMapElementOneOf3.md)
136
132
  - [TrailMapElementOneOf4](docs/TrailMapElementOneOf4.md)
133
+ - [TrailMapElementOneOf5](docs/TrailMapElementOneOf5.md)
134
+ - [TrailMapElementOneOf6](docs/TrailMapElementOneOf6.md)
137
135
  - [TrailMapSummary](docs/TrailMapSummary.md)
138
136
  - [UnitPreference](docs/UnitPreference.md)
139
137
  - [Weather](docs/Weather.md)
@@ -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;
@@ -16,6 +16,8 @@ import { instanceOfTrailMapElementOneOf1, TrailMapElementOneOf1FromJSONTyped, Tr
16
16
  import { instanceOfTrailMapElementOneOf2, TrailMapElementOneOf2FromJSONTyped, TrailMapElementOneOf2ToJSON, } from './TrailMapElementOneOf2';
17
17
  import { instanceOfTrailMapElementOneOf3, TrailMapElementOneOf3FromJSONTyped, TrailMapElementOneOf3ToJSON, } from './TrailMapElementOneOf3';
18
18
  import { instanceOfTrailMapElementOneOf4, TrailMapElementOneOf4FromJSONTyped, TrailMapElementOneOf4ToJSON, } from './TrailMapElementOneOf4';
19
+ import { instanceOfTrailMapElementOneOf5, TrailMapElementOneOf5FromJSONTyped, TrailMapElementOneOf5ToJSON, } from './TrailMapElementOneOf5';
20
+ import { instanceOfTrailMapElementOneOf6, TrailMapElementOneOf6FromJSONTyped, TrailMapElementOneOf6ToJSON, } from './TrailMapElementOneOf6';
19
21
  export function TrailMapElementFromJSON(json) {
20
22
  return TrailMapElementFromJSONTyped(json, false);
21
23
  }
@@ -41,6 +43,12 @@ export function TrailMapElementFromJSONTyped(json, ignoreDiscriminator) {
41
43
  if (instanceOfTrailMapElementOneOf4(json)) {
42
44
  return TrailMapElementOneOf4FromJSONTyped(json, true);
43
45
  }
46
+ if (instanceOfTrailMapElementOneOf5(json)) {
47
+ return TrailMapElementOneOf5FromJSONTyped(json, true);
48
+ }
49
+ if (instanceOfTrailMapElementOneOf6(json)) {
50
+ return TrailMapElementOneOf6FromJSONTyped(json, true);
51
+ }
44
52
  return {};
45
53
  }
46
54
  export function TrailMapElementToJSON(json) {
@@ -68,5 +76,11 @@ export function TrailMapElementToJSONTyped(value, ignoreDiscriminator = false) {
68
76
  if (instanceOfTrailMapElementOneOf4(value)) {
69
77
  return TrailMapElementOneOf4ToJSON(value);
70
78
  }
79
+ if (instanceOfTrailMapElementOneOf5(value)) {
80
+ return TrailMapElementOneOf5ToJSON(value);
81
+ }
82
+ if (instanceOfTrailMapElementOneOf6(value)) {
83
+ return TrailMapElementOneOf6ToJSON(value);
84
+ }
71
85
  return {};
72
86
  }
@@ -9,24 +9,62 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PointMarker } from './PointMarker';
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 type TrailMapElementOneOf4 = PointMarker & {
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
+ }
25
63
  /**
26
64
  * @export
27
65
  */
28
66
  export declare const TrailMapElementOneOf4TypeEnum: {
29
- readonly PointMarker: "point_marker";
67
+ readonly AmenityMarker: "amenity_marker";
30
68
  };
31
69
  export type TrailMapElementOneOf4TypeEnum = typeof TrailMapElementOneOf4TypeEnum[keyof typeof TrailMapElementOneOf4TypeEnum];
32
70
  /**
@@ -11,12 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { PointMarkerFromJSONTyped, PointMarkerToJSONTyped, } from './PointMarker';
14
+ import { AmenityFromJSON, AmenityToJSON, } from './Amenity';
15
+ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
15
16
  /**
16
17
  * @export
17
18
  */
18
19
  export const TrailMapElementOneOf4TypeEnum = {
19
- PointMarker: 'point_marker'
20
+ AmenityMarker: 'amenity_marker'
20
21
  };
21
22
  /**
22
23
  * Check if a given object implements the TrailMapElementOneOf4 interface.
@@ -24,7 +25,13 @@ export const TrailMapElementOneOf4TypeEnum = {
24
25
  export function instanceOfTrailMapElementOneOf4(value) {
25
26
  if (!('type' in value) || value['type'] === undefined)
26
27
  return false;
27
- if (value['type'] !== 'point_marker')
28
+ if (value['type'] !== 'amenity_marker')
29
+ return false;
30
+ if (!('uuid' in value) || value['uuid'] === undefined)
31
+ return false;
32
+ if (!('x' in value) || value['x'] === undefined)
33
+ return false;
34
+ if (!('y' in value) || value['y'] === undefined)
28
35
  return false;
29
36
  return true;
30
37
  }
@@ -35,7 +42,15 @@ export function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
35
42
  if (json == null) {
36
43
  return json;
37
44
  }
38
- return Object.assign(Object.assign({}, PointMarkerFromJSONTyped(json, true)), { 'type': json['type'] });
45
+ return {
46
+ 'type': json['type'],
47
+ 'uuid': json['uuid'],
48
+ 'x': json['x'],
49
+ 'y': json['y'],
50
+ 'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
51
+ 'color': json['color'] == null ? undefined : json['color'],
52
+ 'amenity': json['amenity'] == null ? undefined : AmenityFromJSON(json['amenity']),
53
+ };
39
54
  }
40
55
  export function TrailMapElementOneOf4ToJSON(json) {
41
56
  return TrailMapElementOneOf4ToJSONTyped(json, false);
@@ -44,5 +59,13 @@ export function TrailMapElementOneOf4ToJSONTyped(value, ignoreDiscriminator = fa
44
59
  if (value == null) {
45
60
  return value;
46
61
  }
47
- return Object.assign(Object.assign({}, PointMarkerToJSONTyped(value, true)), { 'type': value['type'] });
62
+ return {
63
+ 'type': value['type'],
64
+ 'uuid': value['uuid'],
65
+ 'x': value['x'],
66
+ 'y': value['y'],
67
+ 'icon': MarkerIconToJSON(value['icon']),
68
+ 'color': value['color'],
69
+ 'amenity': AmenityToJSON(value['amenity']),
70
+ };
48
71
  }
@@ -0,0 +1,77 @@
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
+ * @export
65
+ */
66
+ export declare const TrailMapElementOneOf5TypeEnum: {
67
+ readonly ParkingLotMarker: "parking_lot_marker";
68
+ };
69
+ export type TrailMapElementOneOf5TypeEnum = typeof TrailMapElementOneOf5TypeEnum[keyof typeof TrailMapElementOneOf5TypeEnum];
70
+ /**
71
+ * Check if a given object implements the TrailMapElementOneOf5 interface.
72
+ */
73
+ export declare function instanceOfTrailMapElementOneOf5(value: object): value is TrailMapElementOneOf5;
74
+ export declare function TrailMapElementOneOf5FromJSON(json: any): TrailMapElementOneOf5;
75
+ export declare function TrailMapElementOneOf5FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf5;
76
+ export declare function TrailMapElementOneOf5ToJSON(json: any): TrailMapElementOneOf5;
77
+ export declare function TrailMapElementOneOf5ToJSONTyped(value?: TrailMapElementOneOf5 | null, ignoreDiscriminator?: boolean): any;
@@ -16,56 +16,56 @@ import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
16
16
  /**
17
17
  * @export
18
18
  */
19
- export const PointMarkerOneOf1KindEnum = {
20
- ParkingLot: 'parking_lot'
19
+ export const TrailMapElementOneOf5TypeEnum = {
20
+ ParkingLotMarker: 'parking_lot_marker'
21
21
  };
22
22
  /**
23
- * Check if a given object implements the PointMarkerOneOf1 interface.
23
+ * Check if a given object implements the TrailMapElementOneOf5 interface.
24
24
  */
25
- export function instanceOfPointMarkerOneOf1(value) {
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 PointMarkerOneOf1FromJSON(json) {
39
- return PointMarkerOneOf1FromJSONTyped(json, false);
38
+ export function TrailMapElementOneOf5FromJSON(json) {
39
+ return TrailMapElementOneOf5FromJSONTyped(json, false);
40
40
  }
41
- export function PointMarkerOneOf1FromJSONTyped(json, ignoreDiscriminator) {
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
- 'kind': json['kind'],
53
53
  };
54
54
  }
55
- export function PointMarkerOneOf1ToJSON(json) {
56
- return PointMarkerOneOf1ToJSONTyped(json, false);
55
+ export function TrailMapElementOneOf5ToJSON(json) {
56
+ return TrailMapElementOneOf5ToJSONTyped(json, false);
57
57
  }
58
- export function PointMarkerOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
58
+ export function TrailMapElementOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
59
59
  if (value == null) {
60
60
  return value;
61
61
  }
62
62
  return {
63
+ 'type': value['type'],
63
64
  'uuid': value['uuid'],
64
65
  'x': value['x'],
65
66
  'y': value['y'],
66
67
  'icon': MarkerIconToJSON(value['icon']),
67
68
  'color': value['color'],
68
69
  'parking_lot': ParkingLotToJSON(value['parkingLot']),
69
- 'kind': value['kind'],
70
70
  };
71
71
  }
@@ -0,0 +1,82 @@
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
+ * @export
70
+ */
71
+ export declare const TrailMapElementOneOf6TypeEnum: {
72
+ readonly GenericMarker: "generic_marker";
73
+ };
74
+ export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
75
+ /**
76
+ * Check if a given object implements the TrailMapElementOneOf6 interface.
77
+ */
78
+ export declare function instanceOfTrailMapElementOneOf6(value: object): value is TrailMapElementOneOf6;
79
+ export declare function TrailMapElementOneOf6FromJSON(json: any): TrailMapElementOneOf6;
80
+ export declare function TrailMapElementOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElementOneOf6;
81
+ export declare function TrailMapElementOneOf6ToJSON(json: any): TrailMapElementOneOf6;
82
+ 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 PointMarkerOneOf2KindEnum = {
19
- Generic: 'generic'
18
+ export const TrailMapElementOneOf6TypeEnum = {
19
+ GenericMarker: 'generic_marker'
20
20
  };
21
21
  /**
22
- * Check if a given object implements the PointMarkerOneOf2 interface.
22
+ * Check if a given object implements the TrailMapElementOneOf6 interface.
23
23
  */
24
- export function instanceOfPointMarkerOneOf2(value) {
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 PointMarkerOneOf2FromJSON(json) {
40
- return PointMarkerOneOf2FromJSONTyped(json, false);
39
+ export function TrailMapElementOneOf6FromJSON(json) {
40
+ return TrailMapElementOneOf6FromJSONTyped(json, false);
41
41
  }
42
- export function PointMarkerOneOf2FromJSONTyped(json, ignoreDiscriminator) {
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,17 @@ 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
- 'kind': json['kind'],
55
55
  };
56
56
  }
57
- export function PointMarkerOneOf2ToJSON(json) {
58
- return PointMarkerOneOf2ToJSONTyped(json, false);
57
+ export function TrailMapElementOneOf6ToJSON(json) {
58
+ return TrailMapElementOneOf6ToJSONTyped(json, false);
59
59
  }
60
- export function PointMarkerOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
60
+ export function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
61
61
  if (value == null) {
62
62
  return value;
63
63
  }
64
64
  return {
65
+ 'type': value['type'],
65
66
  'uuid': value['uuid'],
66
67
  'x': value['x'],
67
68
  'y': value['y'],
@@ -69,6 +70,5 @@ export function PointMarkerOneOf2ToJSONTyped(value, ignoreDiscriminator = false)
69
70
  'color': value['color'],
70
71
  'label': value['label'],
71
72
  'searchable': value['searchable'],
72
- 'kind': value['kind'],
73
73
  };
74
74
  }
@@ -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';
@@ -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,62 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PointMarker } from './PointMarker';
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 type TrailMapElementOneOf4 = PointMarker & {
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
+ }
25
63
  /**
26
64
  * @export
27
65
  */
28
66
  export declare const TrailMapElementOneOf4TypeEnum: {
29
- readonly PointMarker: "point_marker";
67
+ readonly AmenityMarker: "amenity_marker";
30
68
  };
31
69
  export type TrailMapElementOneOf4TypeEnum = typeof TrailMapElementOneOf4TypeEnum[keyof typeof TrailMapElementOneOf4TypeEnum];
32
70
  /**