@mtnmanager/sdk 1.8.2 → 1.8.4

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 (65) hide show
  1. package/README.md +6 -2
  2. package/dist/apis/MtnManagerApi.d.ts +28 -28
  3. package/dist/esm/apis/MtnManagerApi.d.ts +28 -28
  4. package/dist/esm/models/Amenity.d.ts +8 -0
  5. package/dist/esm/models/Amenity.js +5 -0
  6. package/dist/esm/models/AmenityStatus.d.ts +27 -0
  7. package/dist/esm/models/{SummerTrailType.js → AmenityStatus.js} +14 -13
  8. package/dist/esm/models/CurrentWeather.d.ts +1 -1
  9. package/dist/esm/models/DailyForecast.d.ts +1 -1
  10. package/dist/esm/models/HourlyForecast.d.ts +1 -1
  11. package/dist/esm/models/Lift.d.ts +1 -0
  12. package/dist/esm/models/Overview.d.ts +24 -0
  13. package/dist/esm/models/Overview.js +10 -0
  14. package/dist/esm/models/OverviewRuns.d.ts +1 -1
  15. package/dist/esm/models/OverviewTerrainParks.d.ts +2 -1
  16. package/dist/esm/models/PowderAlerts.d.ts +40 -0
  17. package/dist/esm/models/PowderAlerts.js +47 -0
  18. package/dist/esm/models/Run.d.ts +19 -2
  19. package/dist/esm/models/Run.js +4 -0
  20. package/dist/esm/models/SeasonPeriod.d.ts +45 -0
  21. package/dist/esm/models/SeasonPeriod.js +52 -0
  22. package/dist/esm/models/SummerTrail.d.ts +14 -5
  23. package/dist/esm/models/SummerTrail.js +7 -4
  24. package/dist/esm/models/SummerTrailActivity.d.ts +32 -0
  25. package/dist/esm/models/SummerTrailActivity.js +50 -0
  26. package/dist/esm/models/SummerTrailDifficultyType.d.ts +27 -0
  27. package/dist/esm/models/SummerTrailDifficultyType.js +45 -0
  28. package/dist/esm/models/TerrainPark.d.ts +19 -2
  29. package/dist/esm/models/TerrainPark.js +4 -0
  30. package/dist/esm/models/TerrainParkFeature.d.ts +2 -1
  31. package/dist/esm/models/index.d.ts +5 -1
  32. package/dist/esm/models/index.js +5 -1
  33. package/dist/models/Amenity.d.ts +8 -0
  34. package/dist/models/Amenity.js +5 -0
  35. package/dist/models/AmenityStatus.d.ts +27 -0
  36. package/dist/models/AmenityStatus.js +53 -0
  37. package/dist/models/CurrentWeather.d.ts +1 -1
  38. package/dist/models/DailyForecast.d.ts +1 -1
  39. package/dist/models/HourlyForecast.d.ts +1 -1
  40. package/dist/models/Lift.d.ts +1 -0
  41. package/dist/models/Overview.d.ts +24 -0
  42. package/dist/models/Overview.js +10 -0
  43. package/dist/models/OverviewRuns.d.ts +1 -1
  44. package/dist/models/OverviewTerrainParks.d.ts +2 -1
  45. package/dist/models/PowderAlerts.d.ts +40 -0
  46. package/dist/models/PowderAlerts.js +54 -0
  47. package/dist/models/Run.d.ts +19 -2
  48. package/dist/models/Run.js +4 -0
  49. package/dist/models/SeasonPeriod.d.ts +45 -0
  50. package/dist/models/SeasonPeriod.js +59 -0
  51. package/dist/models/SummerTrail.d.ts +14 -5
  52. package/dist/models/SummerTrail.js +7 -4
  53. package/dist/models/SummerTrailActivity.d.ts +32 -0
  54. package/dist/models/SummerTrailActivity.js +58 -0
  55. package/dist/models/SummerTrailDifficultyType.d.ts +27 -0
  56. package/dist/models/SummerTrailDifficultyType.js +53 -0
  57. package/dist/models/TerrainPark.d.ts +19 -2
  58. package/dist/models/TerrainPark.js +4 -0
  59. package/dist/models/TerrainParkFeature.d.ts +2 -1
  60. package/dist/models/index.d.ts +5 -1
  61. package/dist/models/index.js +5 -1
  62. package/package.json +1 -1
  63. package/dist/esm/models/SummerTrailType.d.ts +0 -26
  64. package/dist/models/SummerTrailType.d.ts +0 -26
  65. package/dist/models/SummerTrailType.js +0 -52
@@ -57,17 +57,34 @@ export interface Run {
57
57
  status: RunStatus;
58
58
  /**
59
59
  * When the run was last groomed.
60
- * `null` if never groomed, or if the runs grooming feature is disabled.
60
+ * `null` if not groomed this season (since the snow year began: Aug 1, or
61
+ * Jan 1 in the southern hemisphere), or if the runs grooming feature is disabled.
61
62
  * @type {Date}
62
63
  * @memberof Run
63
64
  */
64
65
  lastGroomed?: Date | null;
65
66
  /**
66
- * Whether the run was groomed within the last 24 hours.
67
+ * Whether the run has been groomed since the resort last closed (or,
68
+ * for a resort with no operating hours set, within the last 24 hours).
67
69
  * @type {boolean}
68
70
  * @memberof Run
69
71
  */
70
72
  groomedToday: boolean;
73
+ /**
74
+ * New snow (cm) reported since `last_groomed` ("groomed with fresh").
75
+ * Absent unless the run was groomed within the last 24 hours and the
76
+ * resort keeps a snow report.
77
+ * @type {number}
78
+ * @memberof Run
79
+ */
80
+ snowSinceGroomedCm?: number | null;
81
+ /**
82
+ * New snow (inches) reported since `last_groomed`; see
83
+ * `snow_since_groomed_cm`.
84
+ * @type {number}
85
+ * @memberof Run
86
+ */
87
+ snowSinceGroomedIn?: number | null;
71
88
  /**
72
89
  * Whether the run has snowmaking capabilities.
73
90
  * @type {boolean}
@@ -63,6 +63,8 @@ function RunFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
64
64
  'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
65
65
  'groomedToday': json['groomed_today'],
66
+ 'snowSinceGroomedCm': json['snow_since_groomed_cm'] === undefined ? undefined : json['snow_since_groomed_cm'] === null ? null : json['snow_since_groomed_cm'],
67
+ 'snowSinceGroomedIn': json['snow_since_groomed_in'] === undefined ? undefined : json['snow_since_groomed_in'] === null ? null : json['snow_since_groomed_in'],
66
68
  'snowmaking': json['snowmaking'],
67
69
  'nightSkiing': json['night_skiing'],
68
70
  'conditionNotes': json['condition_notes'],
@@ -89,6 +91,8 @@ function RunToJSONTyped(value, ignoreDiscriminator = false) {
89
91
  'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
90
92
  'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
91
93
  'groomed_today': value['groomedToday'],
94
+ 'snow_since_groomed_cm': value['snowSinceGroomedCm'],
95
+ 'snow_since_groomed_in': value['snowSinceGroomedIn'],
92
96
  'snowmaking': value['snowmaking'],
93
97
  'night_skiing': value['nightSkiing'],
94
98
  'condition_notes': value['conditionNotes'],
@@ -0,0 +1,45 @@
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 { SeasonType } from './SeasonType';
13
+ /**
14
+ * A season the resort's operating hours define: its type and its days.
15
+ * @export
16
+ * @interface SeasonPeriod
17
+ */
18
+ export interface SeasonPeriod {
19
+ /**
20
+ * The season's type (`winter` or `summer`; never `closed`).
21
+ * @type {SeasonType}
22
+ * @memberof SeasonPeriod
23
+ */
24
+ seasonType: SeasonType;
25
+ /**
26
+ * The season's first day (YYYY-MM-DD), in the resort's local timezone.
27
+ * @type {Date}
28
+ * @memberof SeasonPeriod
29
+ */
30
+ startsOn: Date;
31
+ /**
32
+ * The season's last day (YYYY-MM-DD), in the resort's local timezone.
33
+ * @type {Date}
34
+ * @memberof SeasonPeriod
35
+ */
36
+ endsOn: Date;
37
+ }
38
+ /**
39
+ * Check if a given object implements the SeasonPeriod interface.
40
+ */
41
+ export declare function instanceOfSeasonPeriod(value: object): value is SeasonPeriod;
42
+ export declare function SeasonPeriodFromJSON(json: any): SeasonPeriod;
43
+ export declare function SeasonPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonPeriod;
44
+ export declare function SeasonPeriodToJSON(json: any): SeasonPeriod;
45
+ export declare function SeasonPeriodToJSONTyped(value?: SeasonPeriod | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfSeasonPeriod = instanceOfSeasonPeriod;
17
+ exports.SeasonPeriodFromJSON = SeasonPeriodFromJSON;
18
+ exports.SeasonPeriodFromJSONTyped = SeasonPeriodFromJSONTyped;
19
+ exports.SeasonPeriodToJSON = SeasonPeriodToJSON;
20
+ exports.SeasonPeriodToJSONTyped = SeasonPeriodToJSONTyped;
21
+ const SeasonType_1 = require("./SeasonType");
22
+ /**
23
+ * Check if a given object implements the SeasonPeriod interface.
24
+ */
25
+ function instanceOfSeasonPeriod(value) {
26
+ if ((!('seasonType' in value) && !('season_type' in value)) || (value['seasonType'] === undefined && value['season_type'] === undefined))
27
+ return false;
28
+ if ((!('startsOn' in value) && !('starts_on' in value)) || (value['startsOn'] === undefined && value['starts_on'] === undefined))
29
+ return false;
30
+ if ((!('endsOn' in value) && !('ends_on' in value)) || (value['endsOn'] === undefined && value['ends_on'] === undefined))
31
+ return false;
32
+ return true;
33
+ }
34
+ function SeasonPeriodFromJSON(json) {
35
+ return SeasonPeriodFromJSONTyped(json, false);
36
+ }
37
+ function SeasonPeriodFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'seasonType': (0, SeasonType_1.SeasonTypeFromJSON)(json['season_type']),
43
+ 'startsOn': (new Date(json['starts_on'])),
44
+ 'endsOn': (new Date(json['ends_on'])),
45
+ };
46
+ }
47
+ function SeasonPeriodToJSON(json) {
48
+ return SeasonPeriodToJSONTyped(json, false);
49
+ }
50
+ function SeasonPeriodToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'season_type': (0, SeasonType_1.SeasonTypeToJSON)(value['seasonType']),
56
+ 'starts_on': value['startsOn'].toISOString().substring(0, 10),
57
+ 'ends_on': value['endsOn'].toISOString().substring(0, 10),
58
+ };
59
+ }
@@ -9,13 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SummerTrailActivity } from './SummerTrailActivity';
13
+ import type { SummerTrailDifficultyType } from './SummerTrailDifficultyType';
12
14
  import type { SummerTrailStatus } from './SummerTrailStatus';
13
- import type { SummerTrailType } from './SummerTrailType';
14
15
  import type { EntityImage } from './EntityImage';
15
16
  import type { SummerTrailDifficulty } from './SummerTrailDifficulty';
16
17
  /**
17
18
  * Represents a single summer trail at the resort with its current status,
18
- * type (e.g. hiking, mountain biking), and optional difficulty rating.
19
+ * activities (e.g. hiking, mountain biking, dogs), and optional difficulty rating.
19
20
  * @export
20
21
  * @interface SummerTrail
21
22
  */
@@ -45,17 +46,25 @@ export interface SummerTrail {
45
46
  */
46
47
  number?: number | null;
47
48
  /**
48
- * Type of trail activity (e.g. hiking, mountain_biking). Can have multiple.
49
- * @type {Array<SummerTrailType>}
49
+ * Activities the trail is open to (e.g. hiking, mountain_biking,
50
+ * on_leash_dogs). Can have multiple.
51
+ * @type {Array<SummerTrailActivity>}
50
52
  * @memberof SummerTrail
51
53
  */
52
- trailType: Array<SummerTrailType>;
54
+ activities: Array<SummerTrailActivity>;
53
55
  /**
54
56
  * Difficulty rating of the trail (optional for summer trails).
55
57
  * @type {SummerTrailDifficulty}
56
58
  * @memberof SummerTrail
57
59
  */
58
60
  difficulty?: SummerTrailDifficulty | null;
61
+ /**
62
+ * The rating system the difficulty is shown in, which picks its icon:
63
+ * `null` for the standard one, or a mountain-bike freeride / technical one.
64
+ * @type {SummerTrailDifficultyType}
65
+ * @memberof SummerTrail
66
+ */
67
+ difficultyType?: SummerTrailDifficultyType | null;
59
68
  /**
60
69
  * Current operational status (open, closed, or unknown).
61
70
  * @type {SummerTrailStatus}
@@ -18,8 +18,9 @@ exports.SummerTrailFromJSON = SummerTrailFromJSON;
18
18
  exports.SummerTrailFromJSONTyped = SummerTrailFromJSONTyped;
19
19
  exports.SummerTrailToJSON = SummerTrailToJSON;
20
20
  exports.SummerTrailToJSONTyped = SummerTrailToJSONTyped;
21
+ const SummerTrailActivity_1 = require("./SummerTrailActivity");
22
+ const SummerTrailDifficultyType_1 = require("./SummerTrailDifficultyType");
21
23
  const SummerTrailStatus_1 = require("./SummerTrailStatus");
22
- const SummerTrailType_1 = require("./SummerTrailType");
23
24
  const EntityImage_1 = require("./EntityImage");
24
25
  const SummerTrailDifficulty_1 = require("./SummerTrailDifficulty");
25
26
  /**
@@ -32,7 +33,7 @@ function instanceOfSummerTrail(value) {
32
33
  return false;
33
34
  if (!('slug' in value) || value['slug'] === undefined)
34
35
  return false;
35
- if ((!('trailType' in value) && !('trail_type' in value)) || (value['trailType'] === undefined && value['trail_type'] === undefined))
36
+ if (!('activities' in value) || value['activities'] === undefined)
36
37
  return false;
37
38
  if (!('status' in value) || value['status'] === undefined)
38
39
  return false;
@@ -54,8 +55,9 @@ function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
54
55
  'name': json['name'],
55
56
  'slug': json['slug'],
56
57
  'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
57
- 'trailType': (json['trail_type'].map(SummerTrailType_1.SummerTrailTypeFromJSON)),
58
+ 'activities': (json['activities'].map(SummerTrailActivity_1.SummerTrailActivityFromJSON)),
58
59
  'difficulty': json['difficulty'] === undefined ? undefined : json['difficulty'] === null ? null : (0, SummerTrailDifficulty_1.SummerTrailDifficultyFromJSON)(json['difficulty']),
60
+ 'difficultyType': json['difficulty_type'] === undefined ? undefined : json['difficulty_type'] === null ? null : (0, SummerTrailDifficultyType_1.SummerTrailDifficultyTypeFromJSON)(json['difficulty_type']),
59
61
  'status': (0, SummerTrailStatus_1.SummerTrailStatusFromJSON)(json['status']),
60
62
  'conditionNotes': json['condition_notes'],
61
63
  'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
@@ -77,8 +79,9 @@ function SummerTrailToJSONTyped(value, ignoreDiscriminator = false) {
77
79
  'name': value['name'],
78
80
  'slug': value['slug'],
79
81
  'number': value['number'],
80
- 'trail_type': (value['trailType'].map(SummerTrailType_1.SummerTrailTypeToJSON)),
82
+ 'activities': (value['activities'].map(SummerTrailActivity_1.SummerTrailActivityToJSON)),
81
83
  'difficulty': (0, SummerTrailDifficulty_1.SummerTrailDifficultyToJSON)(value['difficulty']),
84
+ 'difficulty_type': (0, SummerTrailDifficultyType_1.SummerTrailDifficultyTypeToJSON)(value['difficultyType']),
82
85
  'status': (0, SummerTrailStatus_1.SummerTrailStatusToJSON)(value['status']),
83
86
  'condition_notes': value['conditionNotes'],
84
87
  'area_uuid': value['areaUuid'],
@@ -0,0 +1,32 @@
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
+ * An activity (or permission, like dogs) a summer trail is open to.
14
+ * @export
15
+ */
16
+ export declare const SummerTrailActivity: {
17
+ readonly Hiking: "hiking";
18
+ readonly MountainBiking: "mountain_biking";
19
+ readonly EBiking: "e_biking";
20
+ readonly GravelBiking: "gravel_biking";
21
+ readonly TrailRunning: "trail_running";
22
+ readonly OnLeashDogs: "on_leash_dogs";
23
+ readonly OffLeashDogs: "off_leash_dogs";
24
+ readonly HorsebackRiding: "horseback_riding";
25
+ readonly UnknownDefaultOpenApi: "11184809";
26
+ };
27
+ export type SummerTrailActivity = typeof SummerTrailActivity[keyof typeof SummerTrailActivity];
28
+ export declare function instanceOfSummerTrailActivity(value: any): boolean;
29
+ export declare function SummerTrailActivityFromJSON(json: any): SummerTrailActivity;
30
+ export declare function SummerTrailActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailActivity;
31
+ export declare function SummerTrailActivityToJSON(value?: SummerTrailActivity | null): any;
32
+ export declare function SummerTrailActivityToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailActivity;
@@ -0,0 +1,58 @@
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.SummerTrailActivity = void 0;
17
+ exports.instanceOfSummerTrailActivity = instanceOfSummerTrailActivity;
18
+ exports.SummerTrailActivityFromJSON = SummerTrailActivityFromJSON;
19
+ exports.SummerTrailActivityFromJSONTyped = SummerTrailActivityFromJSONTyped;
20
+ exports.SummerTrailActivityToJSON = SummerTrailActivityToJSON;
21
+ exports.SummerTrailActivityToJSONTyped = SummerTrailActivityToJSONTyped;
22
+ /**
23
+ * An activity (or permission, like dogs) a summer trail is open to.
24
+ * @export
25
+ */
26
+ exports.SummerTrailActivity = {
27
+ Hiking: 'hiking',
28
+ MountainBiking: 'mountain_biking',
29
+ EBiking: 'e_biking',
30
+ GravelBiking: 'gravel_biking',
31
+ TrailRunning: 'trail_running',
32
+ OnLeashDogs: 'on_leash_dogs',
33
+ OffLeashDogs: 'off_leash_dogs',
34
+ HorsebackRiding: 'horseback_riding',
35
+ UnknownDefaultOpenApi: '11184809'
36
+ };
37
+ function instanceOfSummerTrailActivity(value) {
38
+ for (const key in exports.SummerTrailActivity) {
39
+ if (Object.prototype.hasOwnProperty.call(exports.SummerTrailActivity, key)) {
40
+ if (exports.SummerTrailActivity[key] === value) {
41
+ return true;
42
+ }
43
+ }
44
+ }
45
+ return false;
46
+ }
47
+ function SummerTrailActivityFromJSON(json) {
48
+ return SummerTrailActivityFromJSONTyped(json, false);
49
+ }
50
+ function SummerTrailActivityFromJSONTyped(json, ignoreDiscriminator) {
51
+ return json;
52
+ }
53
+ function SummerTrailActivityToJSON(value) {
54
+ return value;
55
+ }
56
+ function SummerTrailActivityToJSONTyped(value, ignoreDiscriminator) {
57
+ return value;
58
+ }
@@ -0,0 +1,27 @@
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
+ * The rating system a summer trail's difficulty is shown in, which picks its
14
+ * difficulty icon. `None` (on the trail) is the standard system.
15
+ * @export
16
+ */
17
+ export declare const SummerTrailDifficultyType: {
18
+ readonly MtbFreeride: "mtb_freeride";
19
+ readonly MtbTechnical: "mtb_technical";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type SummerTrailDifficultyType = typeof SummerTrailDifficultyType[keyof typeof SummerTrailDifficultyType];
23
+ export declare function instanceOfSummerTrailDifficultyType(value: any): boolean;
24
+ export declare function SummerTrailDifficultyTypeFromJSON(json: any): SummerTrailDifficultyType;
25
+ export declare function SummerTrailDifficultyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailDifficultyType;
26
+ export declare function SummerTrailDifficultyTypeToJSON(value?: SummerTrailDifficultyType | null): any;
27
+ export declare function SummerTrailDifficultyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailDifficultyType;
@@ -0,0 +1,53 @@
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.SummerTrailDifficultyType = void 0;
17
+ exports.instanceOfSummerTrailDifficultyType = instanceOfSummerTrailDifficultyType;
18
+ exports.SummerTrailDifficultyTypeFromJSON = SummerTrailDifficultyTypeFromJSON;
19
+ exports.SummerTrailDifficultyTypeFromJSONTyped = SummerTrailDifficultyTypeFromJSONTyped;
20
+ exports.SummerTrailDifficultyTypeToJSON = SummerTrailDifficultyTypeToJSON;
21
+ exports.SummerTrailDifficultyTypeToJSONTyped = SummerTrailDifficultyTypeToJSONTyped;
22
+ /**
23
+ * The rating system a summer trail's difficulty is shown in, which picks its
24
+ * difficulty icon. `None` (on the trail) is the standard system.
25
+ * @export
26
+ */
27
+ exports.SummerTrailDifficultyType = {
28
+ MtbFreeride: 'mtb_freeride',
29
+ MtbTechnical: 'mtb_technical',
30
+ UnknownDefaultOpenApi: '11184809'
31
+ };
32
+ function instanceOfSummerTrailDifficultyType(value) {
33
+ for (const key in exports.SummerTrailDifficultyType) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.SummerTrailDifficultyType, key)) {
35
+ if (exports.SummerTrailDifficultyType[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function SummerTrailDifficultyTypeFromJSON(json) {
43
+ return SummerTrailDifficultyTypeFromJSONTyped(json, false);
44
+ }
45
+ function SummerTrailDifficultyTypeFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function SummerTrailDifficultyTypeToJSON(value) {
49
+ return value;
50
+ }
51
+ function SummerTrailDifficultyTypeToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -51,17 +51,34 @@ export interface TerrainPark {
51
51
  status: TerrainParkStatus;
52
52
  /**
53
53
  * When the terrain park was last groomed.
54
- * `null` if never groomed, or if the terrain park grooming feature is disabled.
54
+ * `null` if not groomed this season (since the snow year began: Aug 1, or
55
+ * Jan 1 in the southern hemisphere), or if the terrain park grooming feature
56
+ * is disabled.
55
57
  * @type {Date}
56
58
  * @memberof TerrainPark
57
59
  */
58
60
  lastGroomed?: Date | null;
59
61
  /**
60
- * Whether the terrain park was groomed within the last 24 hours.
62
+ * Whether the terrain park has been groomed since the resort last closed
63
+ * (or, for a resort with no operating hours set, within the last 24 hours).
61
64
  * @type {boolean}
62
65
  * @memberof TerrainPark
63
66
  */
64
67
  groomedToday: boolean;
68
+ /**
69
+ * New snow (cm) reported since `last_groomed`. Absent unless the park
70
+ * was groomed within the last 24 hours and the resort keeps a snow report.
71
+ * @type {number}
72
+ * @memberof TerrainPark
73
+ */
74
+ snowSinceGroomedCm?: number | null;
75
+ /**
76
+ * New snow (inches) reported since `last_groomed`; see
77
+ * `snow_since_groomed_cm`.
78
+ * @type {number}
79
+ * @memberof TerrainPark
80
+ */
81
+ snowSinceGroomedIn?: number | null;
65
82
  /**
66
83
  * Notes about current conditions in this terrain park.
67
84
  * @type {string}
@@ -58,6 +58,8 @@ function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'status': (0, TerrainParkStatus_1.TerrainParkStatusFromJSON)(json['status']),
59
59
  'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
60
60
  'groomedToday': json['groomed_today'],
61
+ 'snowSinceGroomedCm': json['snow_since_groomed_cm'] === undefined ? undefined : json['snow_since_groomed_cm'] === null ? null : json['snow_since_groomed_cm'],
62
+ 'snowSinceGroomedIn': json['snow_since_groomed_in'] === undefined ? undefined : json['snow_since_groomed_in'] === null ? null : json['snow_since_groomed_in'],
61
63
  'conditionNotes': json['condition_notes'],
62
64
  'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
63
65
  'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
@@ -82,6 +84,8 @@ function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
82
84
  'status': (0, TerrainParkStatus_1.TerrainParkStatusToJSON)(value['status']),
83
85
  'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
84
86
  'groomed_today': value['groomedToday'],
87
+ 'snow_since_groomed_cm': value['snowSinceGroomedCm'],
88
+ 'snow_since_groomed_in': value['snowSinceGroomedIn'],
85
89
  'condition_notes': value['conditionNotes'],
86
90
  'area_uuid': value['areaUuid'],
87
91
  'area_name': value['areaName'],
@@ -58,7 +58,8 @@ export interface TerrainParkFeature {
58
58
  size?: FeatureSize | null;
59
59
  /**
60
60
  * Current operational status (open, closed, or unknown).
61
- * `unknown` unless the terrain park feature status is enabled.
61
+ * `unknown` unless the terrain park feature status is enabled; `closed`
62
+ * whenever its terrain park is closed.
62
63
  * @type {TerrainParkFeatureStatus}
63
64
  * @memberof TerrainParkFeature
64
65
  */
@@ -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 './AmenityStatus';
5
6
  export * from './AppConfig';
6
7
  export * from './CalendarDay';
7
8
  export * from './ClosureReason';
@@ -37,6 +38,7 @@ export * from './OverviewTerrainParks';
37
38
  export * from './ParkingLot';
38
39
  export * from './ParkingLotStatus';
39
40
  export * from './PathUuid';
41
+ export * from './PowderAlerts';
40
42
  export * from './Region';
41
43
  export * from './ResortInfo';
42
44
  export * from './ResortStatus';
@@ -44,13 +46,15 @@ export * from './Run';
44
46
  export * from './RunDifficulty';
45
47
  export * from './RunStatus';
46
48
  export * from './Schedule';
49
+ export * from './SeasonPeriod';
47
50
  export * from './SeasonType';
48
51
  export * from './SnowMetrics';
49
52
  export * from './SnowReport';
50
53
  export * from './SummerTrail';
54
+ export * from './SummerTrailActivity';
51
55
  export * from './SummerTrailDifficulty';
56
+ export * from './SummerTrailDifficultyType';
52
57
  export * from './SummerTrailStatus';
53
- export * from './SummerTrailType';
54
58
  export * from './SurfaceCondition';
55
59
  export * from './TerrainPark';
56
60
  export * from './TerrainParkFeature';
@@ -20,6 +20,7 @@ __exportStar(require("./Amenity"), exports);
20
20
  __exportStar(require("./AmenityCalendarEntry"), exports);
21
21
  __exportStar(require("./AmenityCategory"), exports);
22
22
  __exportStar(require("./AmenitySchedule"), exports);
23
+ __exportStar(require("./AmenityStatus"), exports);
23
24
  __exportStar(require("./AppConfig"), exports);
24
25
  __exportStar(require("./CalendarDay"), exports);
25
26
  __exportStar(require("./ClosureReason"), exports);
@@ -55,6 +56,7 @@ __exportStar(require("./OverviewTerrainParks"), exports);
55
56
  __exportStar(require("./ParkingLot"), exports);
56
57
  __exportStar(require("./ParkingLotStatus"), exports);
57
58
  __exportStar(require("./PathUuid"), exports);
59
+ __exportStar(require("./PowderAlerts"), exports);
58
60
  __exportStar(require("./Region"), exports);
59
61
  __exportStar(require("./ResortInfo"), exports);
60
62
  __exportStar(require("./ResortStatus"), exports);
@@ -62,13 +64,15 @@ __exportStar(require("./Run"), exports);
62
64
  __exportStar(require("./RunDifficulty"), exports);
63
65
  __exportStar(require("./RunStatus"), exports);
64
66
  __exportStar(require("./Schedule"), exports);
67
+ __exportStar(require("./SeasonPeriod"), exports);
65
68
  __exportStar(require("./SeasonType"), exports);
66
69
  __exportStar(require("./SnowMetrics"), exports);
67
70
  __exportStar(require("./SnowReport"), exports);
68
71
  __exportStar(require("./SummerTrail"), exports);
72
+ __exportStar(require("./SummerTrailActivity"), exports);
69
73
  __exportStar(require("./SummerTrailDifficulty"), exports);
74
+ __exportStar(require("./SummerTrailDifficultyType"), exports);
70
75
  __exportStar(require("./SummerTrailStatus"), exports);
71
- __exportStar(require("./SummerTrailType"), exports);
72
76
  __exportStar(require("./SurfaceCondition"), exports);
73
77
  __exportStar(require("./TerrainPark"), exports);
74
78
  __exportStar(require("./TerrainParkFeature"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
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",
@@ -1,26 +0,0 @@
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 SummerTrailType: {
17
- readonly Hiking: "hiking";
18
- readonly MountainBiking: "mountain_biking";
19
- readonly UnknownDefaultOpenApi: "11184809";
20
- };
21
- export type SummerTrailType = typeof SummerTrailType[keyof typeof SummerTrailType];
22
- export declare function instanceOfSummerTrailType(value: any): boolean;
23
- export declare function SummerTrailTypeFromJSON(json: any): SummerTrailType;
24
- export declare function SummerTrailTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailType;
25
- export declare function SummerTrailTypeToJSON(value?: SummerTrailType | null): any;
26
- export declare function SummerTrailTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailType;
@@ -1,26 +0,0 @@
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 SummerTrailType: {
17
- readonly Hiking: "hiking";
18
- readonly MountainBiking: "mountain_biking";
19
- readonly UnknownDefaultOpenApi: "11184809";
20
- };
21
- export type SummerTrailType = typeof SummerTrailType[keyof typeof SummerTrailType];
22
- export declare function instanceOfSummerTrailType(value: any): boolean;
23
- export declare function SummerTrailTypeFromJSON(json: any): SummerTrailType;
24
- export declare function SummerTrailTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailType;
25
- export declare function SummerTrailTypeToJSON(value?: SummerTrailType | null): any;
26
- export declare function SummerTrailTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailType;