@mtnmanager/sdk 1.4.1 → 1.4.3

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 CHANGED
@@ -82,7 +82,9 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
82
82
  - [FeatureSize](docs/FeatureSize.md)
83
83
  - [FeatureType](docs/FeatureType.md)
84
84
  - [FullReport](docs/FullReport.md)
85
+ - [GeoBounds](docs/GeoBounds.md)
85
86
  - [GeoControlPoint](docs/GeoControlPoint.md)
87
+ - [GeoPoint](docs/GeoPoint.md)
86
88
  - [HourlyForecast](docs/HourlyForecast.md)
87
89
  - [HourlyForecastImperial](docs/HourlyForecastImperial.md)
88
90
  - [HourlyForecastMetric](docs/HourlyForecastMetric.md)
@@ -0,0 +1,57 @@
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 { GeoPoint } from './GeoPoint';
13
+ /**
14
+ * Lat/lng bounding box and centroid for a trail map's georeferenced area.
15
+ * @export
16
+ * @interface GeoBounds
17
+ */
18
+ export interface GeoBounds {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GeoBounds
23
+ */
24
+ minLat: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GeoBounds
29
+ */
30
+ maxLat: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GeoBounds
35
+ */
36
+ minLng: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GeoBounds
41
+ */
42
+ maxLng: number;
43
+ /**
44
+ *
45
+ * @type {GeoPoint}
46
+ * @memberof GeoBounds
47
+ */
48
+ center: GeoPoint;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GeoBounds interface.
52
+ */
53
+ export declare function instanceOfGeoBounds(value: object): value is GeoBounds;
54
+ export declare function GeoBoundsFromJSON(json: any): GeoBounds;
55
+ export declare function GeoBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoBounds;
56
+ export declare function GeoBoundsToJSON(json: any): GeoBounds;
57
+ export declare function GeoBoundsToJSONTyped(value?: GeoBounds | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { GeoPointFromJSON, GeoPointToJSON, } from './GeoPoint';
15
+ /**
16
+ * Check if a given object implements the GeoBounds interface.
17
+ */
18
+ export function instanceOfGeoBounds(value) {
19
+ if ((!('minLat' in value) && !('min_lat' in value)) || (value['minLat'] === undefined && value['min_lat'] === undefined))
20
+ return false;
21
+ if ((!('maxLat' in value) && !('max_lat' in value)) || (value['maxLat'] === undefined && value['max_lat'] === undefined))
22
+ return false;
23
+ if ((!('minLng' in value) && !('min_lng' in value)) || (value['minLng'] === undefined && value['min_lng'] === undefined))
24
+ return false;
25
+ if ((!('maxLng' in value) && !('max_lng' in value)) || (value['maxLng'] === undefined && value['max_lng'] === undefined))
26
+ return false;
27
+ if (!('center' in value) || value['center'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GeoBoundsFromJSON(json) {
32
+ return GeoBoundsFromJSONTyped(json, false);
33
+ }
34
+ export function GeoBoundsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'minLat': json['min_lat'],
40
+ 'maxLat': json['max_lat'],
41
+ 'minLng': json['min_lng'],
42
+ 'maxLng': json['max_lng'],
43
+ 'center': GeoPointFromJSON(json['center']),
44
+ };
45
+ }
46
+ export function GeoBoundsToJSON(json) {
47
+ return GeoBoundsToJSONTyped(json, false);
48
+ }
49
+ export function GeoBoundsToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'min_lat': value['minLat'],
55
+ 'max_lat': value['maxLat'],
56
+ 'min_lng': value['minLng'],
57
+ 'max_lng': value['maxLng'],
58
+ 'center': GeoPointToJSON(value['center']),
59
+ };
60
+ }
@@ -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
+ * A latitude/longitude point.
14
+ * @export
15
+ * @interface GeoPoint
16
+ */
17
+ export interface GeoPoint {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GeoPoint
22
+ */
23
+ lat: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GeoPoint
28
+ */
29
+ lng: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GeoPoint interface.
33
+ */
34
+ export declare function instanceOfGeoPoint(value: object): value is GeoPoint;
35
+ export declare function GeoPointFromJSON(json: any): GeoPoint;
36
+ export declare function GeoPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoPoint;
37
+ export declare function GeoPointToJSON(json: any): GeoPoint;
38
+ export declare function GeoPointToJSONTyped(value?: GeoPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@mtnmanager.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GeoPoint interface.
16
+ */
17
+ export function instanceOfGeoPoint(value) {
18
+ if (!('lat' in value) || value['lat'] === undefined)
19
+ return false;
20
+ if (!('lng' in value) || value['lng'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GeoPointFromJSON(json) {
25
+ return GeoPointFromJSONTyped(json, false);
26
+ }
27
+ export function GeoPointFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'lat': json['lat'],
33
+ 'lng': json['lng'],
34
+ };
35
+ }
36
+ export function GeoPointToJSON(json) {
37
+ return GeoPointToJSONTyped(json, false);
38
+ }
39
+ export function GeoPointToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'lat': value['lat'],
45
+ 'lng': value['lng'],
46
+ };
47
+ }
@@ -10,12 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * @type SeasonType
14
13
  * Current operating season of the resort.
15
14
  * @export
16
15
  */
17
- export type SeasonType = string;
16
+ export declare const SeasonType: {
17
+ readonly Winter: "winter";
18
+ readonly Summer: "summer";
19
+ readonly Closed: "closed";
20
+ };
21
+ export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
22
+ export declare function instanceOfSeasonType(value: any): boolean;
18
23
  export declare function SeasonTypeFromJSON(json: any): SeasonType;
19
24
  export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
20
- export declare function SeasonTypeToJSON(json: any): any;
21
- export declare function SeasonTypeToJSONTyped(value?: SeasonType | null, ignoreDiscriminator?: boolean): any;
25
+ export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
26
+ export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
@@ -11,33 +11,34 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * Current operating season of the resort.
16
+ * @export
17
+ */
18
+ export const SeasonType = {
19
+ Winter: 'winter',
20
+ Summer: 'summer',
21
+ Closed: 'closed'
22
+ };
23
+ export function instanceOfSeasonType(value) {
24
+ for (const key in SeasonType) {
25
+ if (Object.prototype.hasOwnProperty.call(SeasonType, key)) {
26
+ if (SeasonType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
14
33
  export function SeasonTypeFromJSON(json) {
15
34
  return SeasonTypeFromJSONTyped(json, false);
16
35
  }
17
36
  export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json == null) {
19
- return json;
20
- }
21
- if (typeof json === 'string' && (json === 'winter' || json === 'summer')) {
22
- return json;
23
- }
24
- if (typeof json === 'string' && (json === 'closed')) {
25
- return json;
26
- }
27
- return {};
37
+ return json;
28
38
  }
29
- export function SeasonTypeToJSON(json) {
30
- return SeasonTypeToJSONTyped(json, false);
39
+ export function SeasonTypeToJSON(value) {
40
+ return value;
31
41
  }
32
- export function SeasonTypeToJSONTyped(value, ignoreDiscriminator = false) {
33
- if (value == null) {
34
- return value;
35
- }
36
- if (typeof value === 'string' && (value === 'winter' || value === 'summer')) {
37
- return value;
38
- }
39
- if (typeof value === 'string' && (value === 'closed')) {
40
- return value;
41
- }
42
- return {};
42
+ export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
43
44
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { SeasonType } from './SeasonType';
13
+ import type { GeoBounds } from './GeoBounds';
13
14
  /**
14
15
  * Summary metadata for a trail map.
15
16
  * @export
@@ -46,6 +47,21 @@ export interface TrailMapSummary {
46
47
  * @memberof TrailMapSummary
47
48
  */
48
49
  hostedUrl: string;
50
+ /**
51
+ * Lat/lng bounding box of this map's georeferenced area, plus the
52
+ * centroid of its control points (used for tie-breaking when multiple
53
+ * maps cover the same point). Omitted when the map has no georeferencing.
54
+ * @type {GeoBounds}
55
+ * @memberof TrailMapSummary
56
+ */
57
+ geoBounds?: GeoBounds | null;
58
+ /**
59
+ * Deduplicated UUIDs of every entity (lift, run, terrain park,
60
+ * summer trail, amenity, parking lot) referenced by this map's elements.
61
+ * @type {Array<string>}
62
+ * @memberof TrailMapSummary
63
+ */
64
+ entityUuids: Array<string>;
49
65
  }
50
66
  /**
51
67
  * Check if a given object implements the TrailMapSummary interface.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
15
+ import { GeoBoundsFromJSON, GeoBoundsToJSON, } from './GeoBounds';
15
16
  /**
16
17
  * Check if a given object implements the TrailMapSummary interface.
17
18
  */
@@ -26,6 +27,8 @@ export function instanceOfTrailMapSummary(value) {
26
27
  return false;
27
28
  if ((!('hostedUrl' in value) && !('hosted_url' in value)) || (value['hostedUrl'] === undefined && value['hosted_url'] === undefined))
28
29
  return false;
30
+ if ((!('entityUuids' in value) && !('entity_uuids' in value)) || (value['entityUuids'] === undefined && value['entity_uuids'] === undefined))
31
+ return false;
29
32
  return true;
30
33
  }
31
34
  export function TrailMapSummaryFromJSON(json) {
@@ -41,6 +44,8 @@ export function TrailMapSummaryFromJSONTyped(json, ignoreDiscriminator) {
41
44
  'season': SeasonTypeFromJSON(json['season']),
42
45
  'displayOrder': json['display_order'],
43
46
  'hostedUrl': json['hosted_url'],
47
+ 'geoBounds': json['geo_bounds'] == null ? undefined : GeoBoundsFromJSON(json['geo_bounds']),
48
+ 'entityUuids': json['entity_uuids'],
44
49
  };
45
50
  }
46
51
  export function TrailMapSummaryToJSON(json) {
@@ -56,5 +61,7 @@ export function TrailMapSummaryToJSONTyped(value, ignoreDiscriminator = false) {
56
61
  'season': SeasonTypeToJSON(value['season']),
57
62
  'display_order': value['displayOrder'],
58
63
  'hosted_url': value['hostedUrl'],
64
+ 'geo_bounds': GeoBoundsToJSON(value['geoBounds']),
65
+ 'entity_uuids': value['entityUuids'],
59
66
  };
60
67
  }
@@ -14,7 +14,9 @@ export * from './DayOfWeek';
14
14
  export * from './FeatureSize';
15
15
  export * from './FeatureType';
16
16
  export * from './FullReport';
17
+ export * from './GeoBounds';
17
18
  export * from './GeoControlPoint';
19
+ export * from './GeoPoint';
18
20
  export * from './HourlyForecast';
19
21
  export * from './HourlyForecastImperial';
20
22
  export * from './HourlyForecastMetric';
@@ -16,7 +16,9 @@ export * from './DayOfWeek';
16
16
  export * from './FeatureSize';
17
17
  export * from './FeatureType';
18
18
  export * from './FullReport';
19
+ export * from './GeoBounds';
19
20
  export * from './GeoControlPoint';
21
+ export * from './GeoPoint';
20
22
  export * from './HourlyForecast';
21
23
  export * from './HourlyForecastImperial';
22
24
  export * from './HourlyForecastMetric';
@@ -0,0 +1,57 @@
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 { GeoPoint } from './GeoPoint';
13
+ /**
14
+ * Lat/lng bounding box and centroid for a trail map's georeferenced area.
15
+ * @export
16
+ * @interface GeoBounds
17
+ */
18
+ export interface GeoBounds {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GeoBounds
23
+ */
24
+ minLat: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GeoBounds
29
+ */
30
+ maxLat: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GeoBounds
35
+ */
36
+ minLng: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GeoBounds
41
+ */
42
+ maxLng: number;
43
+ /**
44
+ *
45
+ * @type {GeoPoint}
46
+ * @memberof GeoBounds
47
+ */
48
+ center: GeoPoint;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GeoBounds interface.
52
+ */
53
+ export declare function instanceOfGeoBounds(value: object): value is GeoBounds;
54
+ export declare function GeoBoundsFromJSON(json: any): GeoBounds;
55
+ export declare function GeoBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoBounds;
56
+ export declare function GeoBoundsToJSON(json: any): GeoBounds;
57
+ export declare function GeoBoundsToJSONTyped(value?: GeoBounds | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfGeoBounds = instanceOfGeoBounds;
17
+ exports.GeoBoundsFromJSON = GeoBoundsFromJSON;
18
+ exports.GeoBoundsFromJSONTyped = GeoBoundsFromJSONTyped;
19
+ exports.GeoBoundsToJSON = GeoBoundsToJSON;
20
+ exports.GeoBoundsToJSONTyped = GeoBoundsToJSONTyped;
21
+ const GeoPoint_1 = require("./GeoPoint");
22
+ /**
23
+ * Check if a given object implements the GeoBounds interface.
24
+ */
25
+ function instanceOfGeoBounds(value) {
26
+ if ((!('minLat' in value) && !('min_lat' in value)) || (value['minLat'] === undefined && value['min_lat'] === undefined))
27
+ return false;
28
+ if ((!('maxLat' in value) && !('max_lat' in value)) || (value['maxLat'] === undefined && value['max_lat'] === undefined))
29
+ return false;
30
+ if ((!('minLng' in value) && !('min_lng' in value)) || (value['minLng'] === undefined && value['min_lng'] === undefined))
31
+ return false;
32
+ if ((!('maxLng' in value) && !('max_lng' in value)) || (value['maxLng'] === undefined && value['max_lng'] === undefined))
33
+ return false;
34
+ if (!('center' in value) || value['center'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GeoBoundsFromJSON(json) {
39
+ return GeoBoundsFromJSONTyped(json, false);
40
+ }
41
+ function GeoBoundsFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'minLat': json['min_lat'],
47
+ 'maxLat': json['max_lat'],
48
+ 'minLng': json['min_lng'],
49
+ 'maxLng': json['max_lng'],
50
+ 'center': (0, GeoPoint_1.GeoPointFromJSON)(json['center']),
51
+ };
52
+ }
53
+ function GeoBoundsToJSON(json) {
54
+ return GeoBoundsToJSONTyped(json, false);
55
+ }
56
+ function GeoBoundsToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'min_lat': value['minLat'],
62
+ 'max_lat': value['maxLat'],
63
+ 'min_lng': value['minLng'],
64
+ 'max_lng': value['maxLng'],
65
+ 'center': (0, GeoPoint_1.GeoPointToJSON)(value['center']),
66
+ };
67
+ }
@@ -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
+ * A latitude/longitude point.
14
+ * @export
15
+ * @interface GeoPoint
16
+ */
17
+ export interface GeoPoint {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GeoPoint
22
+ */
23
+ lat: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GeoPoint
28
+ */
29
+ lng: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GeoPoint interface.
33
+ */
34
+ export declare function instanceOfGeoPoint(value: object): value is GeoPoint;
35
+ export declare function GeoPointFromJSON(json: any): GeoPoint;
36
+ export declare function GeoPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoPoint;
37
+ export declare function GeoPointToJSON(json: any): GeoPoint;
38
+ export declare function GeoPointToJSONTyped(value?: GeoPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfGeoPoint = instanceOfGeoPoint;
17
+ exports.GeoPointFromJSON = GeoPointFromJSON;
18
+ exports.GeoPointFromJSONTyped = GeoPointFromJSONTyped;
19
+ exports.GeoPointToJSON = GeoPointToJSON;
20
+ exports.GeoPointToJSONTyped = GeoPointToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GeoPoint interface.
23
+ */
24
+ function instanceOfGeoPoint(value) {
25
+ if (!('lat' in value) || value['lat'] === undefined)
26
+ return false;
27
+ if (!('lng' in value) || value['lng'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GeoPointFromJSON(json) {
32
+ return GeoPointFromJSONTyped(json, false);
33
+ }
34
+ function GeoPointFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'lat': json['lat'],
40
+ 'lng': json['lng'],
41
+ };
42
+ }
43
+ function GeoPointToJSON(json) {
44
+ return GeoPointToJSONTyped(json, false);
45
+ }
46
+ function GeoPointToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'lat': value['lat'],
52
+ 'lng': value['lng'],
53
+ };
54
+ }
@@ -10,12 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * @type SeasonType
14
13
  * Current operating season of the resort.
15
14
  * @export
16
15
  */
17
- export type SeasonType = string;
16
+ export declare const SeasonType: {
17
+ readonly Winter: "winter";
18
+ readonly Summer: "summer";
19
+ readonly Closed: "closed";
20
+ };
21
+ export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
22
+ export declare function instanceOfSeasonType(value: any): boolean;
18
23
  export declare function SeasonTypeFromJSON(json: any): SeasonType;
19
24
  export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
20
- export declare function SeasonTypeToJSON(json: any): any;
21
- export declare function SeasonTypeToJSONTyped(value?: SeasonType | null, ignoreDiscriminator?: boolean): any;
25
+ export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
26
+ export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
@@ -13,37 +13,40 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SeasonType = void 0;
17
+ exports.instanceOfSeasonType = instanceOfSeasonType;
16
18
  exports.SeasonTypeFromJSON = SeasonTypeFromJSON;
17
19
  exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
18
20
  exports.SeasonTypeToJSON = SeasonTypeToJSON;
19
21
  exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
22
+ /**
23
+ * Current operating season of the resort.
24
+ * @export
25
+ */
26
+ exports.SeasonType = {
27
+ Winter: 'winter',
28
+ Summer: 'summer',
29
+ Closed: 'closed'
30
+ };
31
+ function instanceOfSeasonType(value) {
32
+ for (const key in exports.SeasonType) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SeasonType, key)) {
34
+ if (exports.SeasonType[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
20
41
  function SeasonTypeFromJSON(json) {
21
42
  return SeasonTypeFromJSONTyped(json, false);
22
43
  }
23
44
  function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- if (typeof json === 'string' && (json === 'winter' || json === 'summer')) {
28
- return json;
29
- }
30
- if (typeof json === 'string' && (json === 'closed')) {
31
- return json;
32
- }
33
- return {};
45
+ return json;
34
46
  }
35
- function SeasonTypeToJSON(json) {
36
- return SeasonTypeToJSONTyped(json, false);
47
+ function SeasonTypeToJSON(value) {
48
+ return value;
37
49
  }
38
- function SeasonTypeToJSONTyped(value, ignoreDiscriminator = false) {
39
- if (value == null) {
40
- return value;
41
- }
42
- if (typeof value === 'string' && (value === 'winter' || value === 'summer')) {
43
- return value;
44
- }
45
- if (typeof value === 'string' && (value === 'closed')) {
46
- return value;
47
- }
48
- return {};
50
+ function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
49
52
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { SeasonType } from './SeasonType';
13
+ import type { GeoBounds } from './GeoBounds';
13
14
  /**
14
15
  * Summary metadata for a trail map.
15
16
  * @export
@@ -46,6 +47,21 @@ export interface TrailMapSummary {
46
47
  * @memberof TrailMapSummary
47
48
  */
48
49
  hostedUrl: string;
50
+ /**
51
+ * Lat/lng bounding box of this map's georeferenced area, plus the
52
+ * centroid of its control points (used for tie-breaking when multiple
53
+ * maps cover the same point). Omitted when the map has no georeferencing.
54
+ * @type {GeoBounds}
55
+ * @memberof TrailMapSummary
56
+ */
57
+ geoBounds?: GeoBounds | null;
58
+ /**
59
+ * Deduplicated UUIDs of every entity (lift, run, terrain park,
60
+ * summer trail, amenity, parking lot) referenced by this map's elements.
61
+ * @type {Array<string>}
62
+ * @memberof TrailMapSummary
63
+ */
64
+ entityUuids: Array<string>;
49
65
  }
50
66
  /**
51
67
  * Check if a given object implements the TrailMapSummary interface.
@@ -19,6 +19,7 @@ exports.TrailMapSummaryFromJSONTyped = TrailMapSummaryFromJSONTyped;
19
19
  exports.TrailMapSummaryToJSON = TrailMapSummaryToJSON;
20
20
  exports.TrailMapSummaryToJSONTyped = TrailMapSummaryToJSONTyped;
21
21
  const SeasonType_1 = require("./SeasonType");
22
+ const GeoBounds_1 = require("./GeoBounds");
22
23
  /**
23
24
  * Check if a given object implements the TrailMapSummary interface.
24
25
  */
@@ -33,6 +34,8 @@ function instanceOfTrailMapSummary(value) {
33
34
  return false;
34
35
  if ((!('hostedUrl' in value) && !('hosted_url' in value)) || (value['hostedUrl'] === undefined && value['hosted_url'] === undefined))
35
36
  return false;
37
+ if ((!('entityUuids' in value) && !('entity_uuids' in value)) || (value['entityUuids'] === undefined && value['entity_uuids'] === undefined))
38
+ return false;
36
39
  return true;
37
40
  }
38
41
  function TrailMapSummaryFromJSON(json) {
@@ -48,6 +51,8 @@ function TrailMapSummaryFromJSONTyped(json, ignoreDiscriminator) {
48
51
  'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
49
52
  'displayOrder': json['display_order'],
50
53
  'hostedUrl': json['hosted_url'],
54
+ 'geoBounds': json['geo_bounds'] == null ? undefined : (0, GeoBounds_1.GeoBoundsFromJSON)(json['geo_bounds']),
55
+ 'entityUuids': json['entity_uuids'],
51
56
  };
52
57
  }
53
58
  function TrailMapSummaryToJSON(json) {
@@ -63,5 +68,7 @@ function TrailMapSummaryToJSONTyped(value, ignoreDiscriminator = false) {
63
68
  'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
64
69
  'display_order': value['displayOrder'],
65
70
  'hosted_url': value['hostedUrl'],
71
+ 'geo_bounds': (0, GeoBounds_1.GeoBoundsToJSON)(value['geoBounds']),
72
+ 'entity_uuids': value['entityUuids'],
66
73
  };
67
74
  }
@@ -14,7 +14,9 @@ export * from './DayOfWeek';
14
14
  export * from './FeatureSize';
15
15
  export * from './FeatureType';
16
16
  export * from './FullReport';
17
+ export * from './GeoBounds';
17
18
  export * from './GeoControlPoint';
19
+ export * from './GeoPoint';
18
20
  export * from './HourlyForecast';
19
21
  export * from './HourlyForecastImperial';
20
22
  export * from './HourlyForecastMetric';
@@ -32,7 +32,9 @@ __exportStar(require("./DayOfWeek"), exports);
32
32
  __exportStar(require("./FeatureSize"), exports);
33
33
  __exportStar(require("./FeatureType"), exports);
34
34
  __exportStar(require("./FullReport"), exports);
35
+ __exportStar(require("./GeoBounds"), exports);
35
36
  __exportStar(require("./GeoControlPoint"), exports);
37
+ __exportStar(require("./GeoPoint"), exports);
36
38
  __exportStar(require("./HourlyForecast"), exports);
37
39
  __exportStar(require("./HourlyForecastImperial"), exports);
38
40
  __exportStar(require("./HourlyForecastMetric"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
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",