@mtnmanager/sdk 1.7.4 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +10 -0
  2. package/dist/esm/models/AppConfig.d.ts +41 -0
  3. package/dist/esm/models/AppConfig.js +47 -0
  4. package/dist/esm/models/GeometryMode.d.ts +26 -0
  5. package/dist/esm/models/GeometryMode.js +44 -0
  6. package/dist/esm/models/Overview.d.ts +6 -3
  7. package/dist/esm/models/Overview.js +2 -2
  8. package/dist/esm/models/OverviewNews.d.ts +27 -2
  9. package/dist/esm/models/OverviewNews.js +10 -0
  10. package/dist/esm/models/SnowReport.d.ts +0 -6
  11. package/dist/esm/models/SnowReport.js +0 -4
  12. package/dist/esm/models/TrailMapStaticElementOneOf.d.ts +64 -0
  13. package/dist/esm/models/TrailMapStaticElementOneOf.js +66 -0
  14. package/dist/esm/models/TrailMapStaticElementOneOf1.d.ts +78 -0
  15. package/dist/esm/models/TrailMapStaticElementOneOf1.js +72 -0
  16. package/dist/esm/models/TrailMapStaticElementOneOf2.d.ts +78 -0
  17. package/dist/esm/models/TrailMapStaticElementOneOf2.js +72 -0
  18. package/dist/esm/models/TrailMapStaticElementOneOf3.d.ts +64 -0
  19. package/dist/esm/models/TrailMapStaticElementOneOf3.js +66 -0
  20. package/dist/esm/models/TrailMapStaticElementOneOf4.d.ts +83 -0
  21. package/dist/esm/models/TrailMapStaticElementOneOf4.js +75 -0
  22. package/dist/esm/models/TrailMapStaticElementOneOf5.d.ts +83 -0
  23. package/dist/esm/models/TrailMapStaticElementOneOf5.js +75 -0
  24. package/dist/esm/models/TrailMapStaticElementOneOf6.d.ts +83 -0
  25. package/dist/esm/models/TrailMapStaticElementOneOf6.js +75 -0
  26. package/dist/esm/models/TrailMapStaticPath.d.ts +40 -0
  27. package/dist/esm/models/TrailMapStaticPath.js +47 -0
  28. package/dist/esm/models/index.d.ts +10 -0
  29. package/dist/esm/models/index.js +10 -0
  30. package/dist/models/AppConfig.d.ts +41 -0
  31. package/dist/models/AppConfig.js +54 -0
  32. package/dist/models/GeometryMode.d.ts +26 -0
  33. package/dist/models/GeometryMode.js +52 -0
  34. package/dist/models/Overview.d.ts +6 -3
  35. package/dist/models/Overview.js +2 -2
  36. package/dist/models/OverviewNews.d.ts +27 -2
  37. package/dist/models/OverviewNews.js +10 -0
  38. package/dist/models/SnowReport.d.ts +0 -6
  39. package/dist/models/SnowReport.js +0 -4
  40. package/dist/models/TrailMapStaticElementOneOf.d.ts +64 -0
  41. package/dist/models/TrailMapStaticElementOneOf.js +74 -0
  42. package/dist/models/TrailMapStaticElementOneOf1.d.ts +78 -0
  43. package/dist/models/TrailMapStaticElementOneOf1.js +80 -0
  44. package/dist/models/TrailMapStaticElementOneOf2.d.ts +78 -0
  45. package/dist/models/TrailMapStaticElementOneOf2.js +80 -0
  46. package/dist/models/TrailMapStaticElementOneOf3.d.ts +64 -0
  47. package/dist/models/TrailMapStaticElementOneOf3.js +74 -0
  48. package/dist/models/TrailMapStaticElementOneOf4.d.ts +83 -0
  49. package/dist/models/TrailMapStaticElementOneOf4.js +83 -0
  50. package/dist/models/TrailMapStaticElementOneOf5.d.ts +83 -0
  51. package/dist/models/TrailMapStaticElementOneOf5.js +83 -0
  52. package/dist/models/TrailMapStaticElementOneOf6.d.ts +83 -0
  53. package/dist/models/TrailMapStaticElementOneOf6.js +83 -0
  54. package/dist/models/TrailMapStaticPath.d.ts +40 -0
  55. package/dist/models/TrailMapStaticPath.js +54 -0
  56. package/dist/models/index.d.ts +10 -0
  57. package/dist/models/index.js +10 -0
  58. package/package.json +1 -1
@@ -0,0 +1,75 @@
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 { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
15
+ /**
16
+ * @export
17
+ */
18
+ export const TrailMapStaticElementOneOf6TypeEnum = {
19
+ WebcamMarker: 'webcam_marker',
20
+ UnknownDefaultOpenApi: '11184809'
21
+ };
22
+ /**
23
+ * Check if a given object implements the TrailMapStaticElementOneOf6 interface.
24
+ */
25
+ export function instanceOfTrailMapStaticElementOneOf6(value) {
26
+ if (!('type' in value) || value['type'] === undefined)
27
+ return false;
28
+ if (value['type'] !== 'webcam_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)
35
+ return false;
36
+ if ((!('webcamUuid' in value) && !('webcam_uuid' in value)) || (value['webcamUuid'] === undefined && value['webcam_uuid'] === undefined))
37
+ return false;
38
+ return true;
39
+ }
40
+ export function TrailMapStaticElementOneOf6FromJSON(json) {
41
+ return TrailMapStaticElementOneOf6FromJSONTyped(json, false);
42
+ }
43
+ export function TrailMapStaticElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'type': json['type'],
49
+ 'uuid': json['uuid'],
50
+ 'x': json['x'],
51
+ 'y': json['y'],
52
+ 'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
53
+ 'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
54
+ 'webcamUuid': json['webcam_uuid'],
55
+ 'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
56
+ };
57
+ }
58
+ export function TrailMapStaticElementOneOf6ToJSON(json) {
59
+ return TrailMapStaticElementOneOf6ToJSONTyped(json, false);
60
+ }
61
+ export function TrailMapStaticElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'type': value['type'],
67
+ 'uuid': value['uuid'],
68
+ 'x': value['x'],
69
+ 'y': value['y'],
70
+ 'icon': MarkerIconToJSON(value['icon']),
71
+ 'color': value['color'],
72
+ 'webcam_uuid': value['webcamUuid'],
73
+ 'group_label': value['groupLabel'],
74
+ };
75
+ }
@@ -0,0 +1,40 @@
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
+ * Path params for the versioned static endpoint: the map's UUID plus the
14
+ * specific `version` the client is asking for. The version lives in the URL so
15
+ * each version is an immutable resource (see `get_trail_map_static`).
16
+ * @export
17
+ * @interface TrailMapStaticPath
18
+ */
19
+ export interface TrailMapStaticPath {
20
+ /**
21
+ * Trail map UUID
22
+ * @type {string}
23
+ * @memberof TrailMapStaticPath
24
+ */
25
+ uuid: string;
26
+ /**
27
+ * The map version being requested (from `TrailMapSummary.version`)
28
+ * @type {number}
29
+ * @memberof TrailMapStaticPath
30
+ */
31
+ version: number;
32
+ }
33
+ /**
34
+ * Check if a given object implements the TrailMapStaticPath interface.
35
+ */
36
+ export declare function instanceOfTrailMapStaticPath(value: object): value is TrailMapStaticPath;
37
+ export declare function TrailMapStaticPathFromJSON(json: any): TrailMapStaticPath;
38
+ export declare function TrailMapStaticPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticPath;
39
+ export declare function TrailMapStaticPathToJSON(json: any): TrailMapStaticPath;
40
+ export declare function TrailMapStaticPathToJSONTyped(value?: TrailMapStaticPath | 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 TrailMapStaticPath interface.
16
+ */
17
+ export function instanceOfTrailMapStaticPath(value) {
18
+ if (!('uuid' in value) || value['uuid'] === undefined)
19
+ return false;
20
+ if (!('version' in value) || value['version'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function TrailMapStaticPathFromJSON(json) {
25
+ return TrailMapStaticPathFromJSONTyped(json, false);
26
+ }
27
+ export function TrailMapStaticPathFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'uuid': json['uuid'],
33
+ 'version': json['version'],
34
+ };
35
+ }
36
+ export function TrailMapStaticPathToJSON(json) {
37
+ return TrailMapStaticPathToJSONTyped(json, false);
38
+ }
39
+ export function TrailMapStaticPathToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'uuid': value['uuid'],
45
+ 'version': value['version'],
46
+ };
47
+ }
@@ -2,6 +2,7 @@ export * from './Amenity';
2
2
  export * from './AmenityCalendarEntry';
3
3
  export * from './AmenityCategory';
4
4
  export * from './AmenitySchedule';
5
+ export * from './AppConfig';
5
6
  export * from './CalendarDay';
6
7
  export * from './ClosureReason';
7
8
  export * from './CurrentWeather';
@@ -17,6 +18,7 @@ export * from './FeatureType';
17
18
  export * from './FullReport';
18
19
  export * from './GeoBounds';
19
20
  export * from './GeoPoint';
21
+ export * from './GeometryMode';
20
22
  export * from './HourlyForecast';
21
23
  export * from './HourlyForecastImperial';
22
24
  export * from './HourlyForecastMetric';
@@ -62,6 +64,14 @@ export * from './TrailMapElementOneOf4';
62
64
  export * from './TrailMapElementOneOf5';
63
65
  export * from './TrailMapElementOneOf6';
64
66
  export * from './TrailMapElementOneOf7';
67
+ export * from './TrailMapStaticElementOneOf';
68
+ export * from './TrailMapStaticElementOneOf1';
69
+ export * from './TrailMapStaticElementOneOf2';
70
+ export * from './TrailMapStaticElementOneOf3';
71
+ export * from './TrailMapStaticElementOneOf4';
72
+ export * from './TrailMapStaticElementOneOf5';
73
+ export * from './TrailMapStaticElementOneOf6';
74
+ export * from './TrailMapStaticPath';
65
75
  export * from './TrailMapSummary';
66
76
  export * from './UnitPreference';
67
77
  export * from './Weather';
@@ -4,6 +4,7 @@ export * from './Amenity';
4
4
  export * from './AmenityCalendarEntry';
5
5
  export * from './AmenityCategory';
6
6
  export * from './AmenitySchedule';
7
+ export * from './AppConfig';
7
8
  export * from './CalendarDay';
8
9
  export * from './ClosureReason';
9
10
  export * from './CurrentWeather';
@@ -19,6 +20,7 @@ export * from './FeatureType';
19
20
  export * from './FullReport';
20
21
  export * from './GeoBounds';
21
22
  export * from './GeoPoint';
23
+ export * from './GeometryMode';
22
24
  export * from './HourlyForecast';
23
25
  export * from './HourlyForecastImperial';
24
26
  export * from './HourlyForecastMetric';
@@ -64,6 +66,14 @@ export * from './TrailMapElementOneOf4';
64
66
  export * from './TrailMapElementOneOf5';
65
67
  export * from './TrailMapElementOneOf6';
66
68
  export * from './TrailMapElementOneOf7';
69
+ export * from './TrailMapStaticElementOneOf';
70
+ export * from './TrailMapStaticElementOneOf1';
71
+ export * from './TrailMapStaticElementOneOf2';
72
+ export * from './TrailMapStaticElementOneOf3';
73
+ export * from './TrailMapStaticElementOneOf4';
74
+ export * from './TrailMapStaticElementOneOf5';
75
+ export * from './TrailMapStaticElementOneOf6';
76
+ export * from './TrailMapStaticPath';
67
77
  export * from './TrailMapSummary';
68
78
  export * from './UnitPreference';
69
79
  export * from './Weather';
@@ -0,0 +1,41 @@
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
+ * App-level configuration bundled into the aggregated report.
14
+ * @export
15
+ * @interface AppConfig
16
+ */
17
+ export interface AppConfig {
18
+ /**
19
+ * The resort's hosted base URL — scheme + host with no path, e.g.
20
+ * `https://powder-mountain.mtnmanager.net`, or the resort's own custom
21
+ * domain when one is configured.
22
+ * @type {string}
23
+ * @memberof AppConfig
24
+ */
25
+ hostedBaseUrl: string;
26
+ /**
27
+ * Last time the static trail-map assets were re-published, ISO 8601 UTC.
28
+ * Bumped when those assets change so clients can cache-bust.
29
+ * @type {string}
30
+ * @memberof AppConfig
31
+ */
32
+ trailMapAssetsUpdatedAt: string;
33
+ }
34
+ /**
35
+ * Check if a given object implements the AppConfig interface.
36
+ */
37
+ export declare function instanceOfAppConfig(value: object): value is AppConfig;
38
+ export declare function AppConfigFromJSON(json: any): AppConfig;
39
+ export declare function AppConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppConfig;
40
+ export declare function AppConfigToJSON(json: any): AppConfig;
41
+ export declare function AppConfigToJSONTyped(value?: AppConfig | 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.instanceOfAppConfig = instanceOfAppConfig;
17
+ exports.AppConfigFromJSON = AppConfigFromJSON;
18
+ exports.AppConfigFromJSONTyped = AppConfigFromJSONTyped;
19
+ exports.AppConfigToJSON = AppConfigToJSON;
20
+ exports.AppConfigToJSONTyped = AppConfigToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AppConfig interface.
23
+ */
24
+ function instanceOfAppConfig(value) {
25
+ if ((!('hostedBaseUrl' in value) && !('hosted_base_url' in value)) || (value['hostedBaseUrl'] === undefined && value['hosted_base_url'] === undefined))
26
+ return false;
27
+ if ((!('trailMapAssetsUpdatedAt' in value) && !('trail_map_assets_updated_at' in value)) || (value['trailMapAssetsUpdatedAt'] === undefined && value['trail_map_assets_updated_at'] === undefined))
28
+ return false;
29
+ return true;
30
+ }
31
+ function AppConfigFromJSON(json) {
32
+ return AppConfigFromJSONTyped(json, false);
33
+ }
34
+ function AppConfigFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'hostedBaseUrl': json['hosted_base_url'],
40
+ 'trailMapAssetsUpdatedAt': json['trail_map_assets_updated_at'],
41
+ };
42
+ }
43
+ function AppConfigToJSON(json) {
44
+ return AppConfigToJSONTyped(json, false);
45
+ }
46
+ function AppConfigToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'hosted_base_url': value['hostedBaseUrl'],
52
+ 'trail_map_assets_updated_at': value['trailMapAssetsUpdatedAt'],
53
+ };
54
+ }
@@ -0,0 +1,26 @@
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
+ *
14
+ * @export
15
+ */
16
+ export declare const GeometryMode: {
17
+ readonly Path: "path";
18
+ readonly Polygon: "polygon";
19
+ readonly UnknownDefaultOpenApi: "11184809";
20
+ };
21
+ export type GeometryMode = typeof GeometryMode[keyof typeof GeometryMode];
22
+ export declare function instanceOfGeometryMode(value: any): boolean;
23
+ export declare function GeometryModeFromJSON(json: any): GeometryMode;
24
+ export declare function GeometryModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeometryMode;
25
+ export declare function GeometryModeToJSON(value?: GeometryMode | null): any;
26
+ export declare function GeometryModeToJSONTyped(value: any, ignoreDiscriminator: boolean): GeometryMode;
@@ -0,0 +1,52 @@
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.GeometryMode = void 0;
17
+ exports.instanceOfGeometryMode = instanceOfGeometryMode;
18
+ exports.GeometryModeFromJSON = GeometryModeFromJSON;
19
+ exports.GeometryModeFromJSONTyped = GeometryModeFromJSONTyped;
20
+ exports.GeometryModeToJSON = GeometryModeToJSON;
21
+ exports.GeometryModeToJSONTyped = GeometryModeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.GeometryMode = {
27
+ Path: 'path',
28
+ Polygon: 'polygon',
29
+ UnknownDefaultOpenApi: '11184809'
30
+ };
31
+ function instanceOfGeometryMode(value) {
32
+ for (const key in exports.GeometryMode) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.GeometryMode, key)) {
34
+ if (exports.GeometryMode[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function GeometryModeFromJSON(json) {
42
+ return GeometryModeFromJSONTyped(json, false);
43
+ }
44
+ function GeometryModeFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function GeometryModeToJSON(value) {
48
+ return value;
49
+ }
50
+ function GeometryModeToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -52,11 +52,14 @@ export interface Overview {
52
52
  */
53
53
  season: SeasonType;
54
54
  /**
55
- * Written news — daily update, announcements, etc.
56
- * @type {OverviewNews}
55
+ * Written news — daily update, announcements, etc. The resort's primary
56
+ * news comes first, followed by any others it publishes, in the order they
57
+ * were added. News with nothing written is still listed, with empty
58
+ * `raw` and `html`.
59
+ * @type {Array<OverviewNews>}
57
60
  * @memberof Overview
58
61
  */
59
- news: OverviewNews;
62
+ news: Array<OverviewNews>;
60
63
  /**
61
64
  * Run statistics: counts, acres, and last-updated timestamp.
62
65
  * @type {OverviewRuns}
@@ -57,7 +57,7 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
58
58
  'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
59
59
  'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
60
- 'news': (0, OverviewNews_1.OverviewNewsFromJSON)(json['news']),
60
+ 'news': (json['news'].map(OverviewNews_1.OverviewNewsFromJSON)),
61
61
  'runs': (0, OverviewRuns_1.OverviewRunsFromJSON)(json['runs']),
62
62
  'lifts': (0, OverviewLifts_1.OverviewLiftsFromJSON)(json['lifts']),
63
63
  'summerTrails': (0, OverviewSummerTrails_1.OverviewSummerTrailsFromJSON)(json['summer_trails']),
@@ -76,7 +76,7 @@ function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
76
76
  'opens_at': value['opensAt'],
77
77
  'closes_at': value['closesAt'],
78
78
  'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
79
- 'news': (0, OverviewNews_1.OverviewNewsToJSON)(value['news']),
79
+ 'news': (value['news'].map(OverviewNews_1.OverviewNewsToJSON)),
80
80
  'runs': (0, OverviewRuns_1.OverviewRunsToJSON)(value['runs']),
81
81
  'lifts': (0, OverviewLifts_1.OverviewLiftsToJSON)(value['lifts']),
82
82
  'summer_trails': (0, OverviewSummerTrails_1.OverviewSummerTrailsToJSON)(value['summerTrails']),
@@ -11,18 +11,43 @@
11
11
  */
12
12
  /**
13
13
  * Written news — daily update, announcements, etc.
14
+ *
15
+ * A resort can publish its news in several languages. The one served is the
16
+ * best match for the request's `Accept-Language` header among them, falling
17
+ * back to the resort's primary language when nothing matches or the match has
18
+ * no news.
14
19
  * @export
15
20
  * @interface OverviewNews
16
21
  */
17
22
  export interface OverviewNews {
18
23
  /**
19
- * Raw Markdown source.
24
+ * Stable identifier of this news feed.
25
+ * @type {string}
26
+ * @memberof OverviewNews
27
+ */
28
+ uuid: string;
29
+ /**
30
+ * The name the resort gave this news feed, for telling several apart.
31
+ * May be `null` on the primary news feed.
32
+ * @type {string}
33
+ * @memberof OverviewNews
34
+ */
35
+ name?: string | null;
36
+ /**
37
+ * Whether this is the resort's primary news feed. Exactly one news is.
38
+ * @type {boolean}
39
+ * @memberof OverviewNews
40
+ */
41
+ isPrimary: boolean;
42
+ /**
43
+ * Markdown source. Images the resort uploaded point at their public URLs,
44
+ * so any Markdown renderer can display them.
20
45
  * @type {string}
21
46
  * @memberof OverviewNews
22
47
  */
23
48
  raw: string;
24
49
  /**
25
- * Rendered HTML (from Markdown).
50
+ * Rendered HTML (from Markdown)
26
51
  * @type {string}
27
52
  * @memberof OverviewNews
28
53
  */
@@ -22,6 +22,10 @@ exports.OverviewNewsToJSONTyped = OverviewNewsToJSONTyped;
22
22
  * Check if a given object implements the OverviewNews interface.
23
23
  */
24
24
  function instanceOfOverviewNews(value) {
25
+ if (!('uuid' in value) || value['uuid'] === undefined)
26
+ return false;
27
+ if ((!('isPrimary' in value) && !('is_primary' in value)) || (value['isPrimary'] === undefined && value['is_primary'] === undefined))
28
+ return false;
25
29
  if (!('raw' in value) || value['raw'] === undefined)
26
30
  return false;
27
31
  if (!('html' in value) || value['html'] === undefined)
@@ -38,6 +42,9 @@ function OverviewNewsFromJSONTyped(json, ignoreDiscriminator) {
38
42
  return json;
39
43
  }
40
44
  return {
45
+ 'uuid': json['uuid'],
46
+ 'name': json['name'] === undefined ? undefined : json['name'] === null ? null : json['name'],
47
+ 'isPrimary': json['is_primary'],
41
48
  'raw': json['raw'],
42
49
  'html': json['html'],
43
50
  'updatedAt': (new Date(json['updated_at'])),
@@ -51,6 +58,9 @@ function OverviewNewsToJSONTyped(value, ignoreDiscriminator = false) {
51
58
  return value;
52
59
  }
53
60
  return {
61
+ 'uuid': value['uuid'],
62
+ 'name': value['name'],
63
+ 'is_primary': value['isPrimary'],
54
64
  'raw': value['raw'],
55
65
  'html': value['html'],
56
66
  'updated_at': value['updatedAt'].toISOString(),
@@ -104,12 +104,6 @@ export interface SnowReport {
104
104
  * @memberof SnowReport
105
105
  */
106
106
  secondarySurfaceCondition?: SurfaceCondition | null;
107
- /**
108
- * Additional notes about current snow conditions, e.g. groomer's notes
109
- * @type {string}
110
- * @memberof SnowReport
111
- */
112
- conditionNotes: string;
113
107
  /**
114
108
  * Snowfall accumulation metrics in centimeters.
115
109
  * @type {SnowMetrics}
@@ -26,8 +26,6 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
26
26
  function instanceOfSnowReport(value) {
27
27
  if (!('uuid' in value) || value['uuid'] === undefined)
28
28
  return false;
29
- if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
30
- return false;
31
29
  if ((!('snowfallCm' in value) && !('snowfall_cm' in value)) || (value['snowfallCm'] === undefined && value['snowfall_cm'] === undefined))
32
30
  return false;
33
31
  if ((!('snowfallIn' in value) && !('snowfall_in' in value)) || (value['snowfallIn'] === undefined && value['snowfall_in'] === undefined))
@@ -52,7 +50,6 @@ function SnowReportFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'baseDepthIn': json['base_depth_in'] === undefined ? undefined : json['base_depth_in'] === null ? null : json['base_depth_in'],
53
51
  'surfaceCondition': json['surface_condition'] === undefined ? undefined : json['surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
54
52
  'secondarySurfaceCondition': json['secondary_surface_condition'] === undefined ? undefined : json['secondary_surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
55
- 'conditionNotes': json['condition_notes'],
56
53
  'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
57
54
  'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
58
55
  'reportedAt': (new Date(json['reported_at'])),
@@ -74,7 +71,6 @@ function SnowReportToJSONTyped(value, ignoreDiscriminator = false) {
74
71
  'base_depth_in': value['baseDepthIn'],
75
72
  'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
76
73
  'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
77
- 'condition_notes': value['conditionNotes'],
78
74
  'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
79
75
  'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
80
76
  'reported_at': value['reportedAt'].toISOString(),
@@ -0,0 +1,64 @@
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
+ *
14
+ * @export
15
+ * @interface TrailMapStaticElementOneOf
16
+ */
17
+ export interface TrailMapStaticElementOneOf {
18
+ /**
19
+ *
20
+ * @type {TrailMapStaticElementOneOfTypeEnum}
21
+ * @memberof TrailMapStaticElementOneOf
22
+ */
23
+ type: TrailMapStaticElementOneOfTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TrailMapStaticElementOneOf
28
+ */
29
+ uuid: string;
30
+ /**
31
+ *
32
+ * @type {Array<number>}
33
+ * @memberof TrailMapStaticElementOneOf
34
+ */
35
+ points: Array<number>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TrailMapStaticElementOneOf
40
+ */
41
+ tension?: number | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TrailMapStaticElementOneOf
46
+ */
47
+ liftUuid: string;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const TrailMapStaticElementOneOfTypeEnum: {
53
+ readonly Lift: "lift";
54
+ readonly UnknownDefaultOpenApi: "11184809";
55
+ };
56
+ export type TrailMapStaticElementOneOfTypeEnum = typeof TrailMapStaticElementOneOfTypeEnum[keyof typeof TrailMapStaticElementOneOfTypeEnum];
57
+ /**
58
+ * Check if a given object implements the TrailMapStaticElementOneOf interface.
59
+ */
60
+ export declare function instanceOfTrailMapStaticElementOneOf(value: object): value is TrailMapStaticElementOneOf;
61
+ export declare function TrailMapStaticElementOneOfFromJSON(json: any): TrailMapStaticElementOneOf;
62
+ export declare function TrailMapStaticElementOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf;
63
+ export declare function TrailMapStaticElementOneOfToJSON(json: any): TrailMapStaticElementOneOf;
64
+ export declare function TrailMapStaticElementOneOfToJSONTyped(value?: TrailMapStaticElementOneOf | null, ignoreDiscriminator?: boolean): any;