@mtnmanager/sdk 0.0.1

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 (94) hide show
  1. package/README.md +134 -0
  2. package/dist/apis/PublicApi.d.ts +174 -0
  3. package/dist/apis/PublicApi.js +218 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +19 -0
  6. package/dist/esm/apis/PublicApi.d.ts +174 -0
  7. package/dist/esm/apis/PublicApi.js +214 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +3 -0
  10. package/dist/esm/index.d.ts +3 -0
  11. package/dist/esm/index.js +5 -0
  12. package/dist/esm/models/HoursInfo.d.ts +50 -0
  13. package/dist/esm/models/HoursInfo.js +51 -0
  14. package/dist/esm/models/LiftStatus.d.ts +25 -0
  15. package/dist/esm/models/LiftStatus.js +43 -0
  16. package/dist/esm/models/LiftType.d.ts +36 -0
  17. package/dist/esm/models/LiftType.js +54 -0
  18. package/dist/esm/models/OperatingHoursResponse.d.ts +46 -0
  19. package/dist/esm/models/OperatingHoursResponse.js +53 -0
  20. package/dist/esm/models/PublicLift.d.ts +88 -0
  21. package/dist/esm/models/PublicLift.js +73 -0
  22. package/dist/esm/models/PublicResortInfo.d.ts +57 -0
  23. package/dist/esm/models/PublicResortInfo.js +60 -0
  24. package/dist/esm/models/PublicResortResponse.d.ts +68 -0
  25. package/dist/esm/models/PublicResortResponse.js +59 -0
  26. package/dist/esm/models/PublicResortStatus.d.ts +45 -0
  27. package/dist/esm/models/PublicResortStatus.js +48 -0
  28. package/dist/esm/models/PublicRun.d.ts +88 -0
  29. package/dist/esm/models/PublicRun.js +73 -0
  30. package/dist/esm/models/PublicSnowReport.d.ts +82 -0
  31. package/dist/esm/models/PublicSnowReport.js +67 -0
  32. package/dist/esm/models/PublicSnowResponse.d.ts +33 -0
  33. package/dist/esm/models/PublicSnowResponse.js +44 -0
  34. package/dist/esm/models/RegularHoursDescription.d.ts +50 -0
  35. package/dist/esm/models/RegularHoursDescription.js +55 -0
  36. package/dist/esm/models/ResortStatusType.d.ts +26 -0
  37. package/dist/esm/models/ResortStatusType.js +44 -0
  38. package/dist/esm/models/RunDifficulty.d.ts +28 -0
  39. package/dist/esm/models/RunDifficulty.js +46 -0
  40. package/dist/esm/models/RunStatus.d.ts +25 -0
  41. package/dist/esm/models/RunStatus.js +43 -0
  42. package/dist/esm/models/SnowMetrics.d.ts +56 -0
  43. package/dist/esm/models/SnowMetrics.js +59 -0
  44. package/dist/esm/models/SurfaceCondition.d.ts +29 -0
  45. package/dist/esm/models/SurfaceCondition.js +47 -0
  46. package/dist/esm/models/UnitPreference.d.ts +25 -0
  47. package/dist/esm/models/UnitPreference.js +43 -0
  48. package/dist/esm/models/index.d.ts +18 -0
  49. package/dist/esm/models/index.js +20 -0
  50. package/dist/esm/runtime.d.ts +184 -0
  51. package/dist/esm/runtime.js +334 -0
  52. package/dist/index.d.ts +3 -0
  53. package/dist/index.js +21 -0
  54. package/dist/models/HoursInfo.d.ts +50 -0
  55. package/dist/models/HoursInfo.js +58 -0
  56. package/dist/models/LiftStatus.d.ts +25 -0
  57. package/dist/models/LiftStatus.js +51 -0
  58. package/dist/models/LiftType.d.ts +36 -0
  59. package/dist/models/LiftType.js +62 -0
  60. package/dist/models/OperatingHoursResponse.d.ts +46 -0
  61. package/dist/models/OperatingHoursResponse.js +60 -0
  62. package/dist/models/PublicLift.d.ts +88 -0
  63. package/dist/models/PublicLift.js +80 -0
  64. package/dist/models/PublicResortInfo.d.ts +57 -0
  65. package/dist/models/PublicResortInfo.js +67 -0
  66. package/dist/models/PublicResortResponse.d.ts +68 -0
  67. package/dist/models/PublicResortResponse.js +66 -0
  68. package/dist/models/PublicResortStatus.d.ts +45 -0
  69. package/dist/models/PublicResortStatus.js +55 -0
  70. package/dist/models/PublicRun.d.ts +88 -0
  71. package/dist/models/PublicRun.js +80 -0
  72. package/dist/models/PublicSnowReport.d.ts +82 -0
  73. package/dist/models/PublicSnowReport.js +74 -0
  74. package/dist/models/PublicSnowResponse.d.ts +33 -0
  75. package/dist/models/PublicSnowResponse.js +51 -0
  76. package/dist/models/RegularHoursDescription.d.ts +50 -0
  77. package/dist/models/RegularHoursDescription.js +62 -0
  78. package/dist/models/ResortStatusType.d.ts +26 -0
  79. package/dist/models/ResortStatusType.js +52 -0
  80. package/dist/models/RunDifficulty.d.ts +28 -0
  81. package/dist/models/RunDifficulty.js +54 -0
  82. package/dist/models/RunStatus.d.ts +25 -0
  83. package/dist/models/RunStatus.js +51 -0
  84. package/dist/models/SnowMetrics.d.ts +56 -0
  85. package/dist/models/SnowMetrics.js +66 -0
  86. package/dist/models/SurfaceCondition.d.ts +29 -0
  87. package/dist/models/SurfaceCondition.js +55 -0
  88. package/dist/models/UnitPreference.d.ts +25 -0
  89. package/dist/models/UnitPreference.js +51 -0
  90. package/dist/models/index.d.ts +18 -0
  91. package/dist/models/index.js +36 -0
  92. package/dist/runtime.d.ts +184 -0
  93. package/dist/runtime.js +350 -0
  94. package/package.json +25 -0
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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 { RunStatusFromJSON, RunStatusToJSON, } from './RunStatus';
15
+ import { RunDifficultyFromJSON, RunDifficultyToJSON, } from './RunDifficulty';
16
+ /**
17
+ * Check if a given object implements the PublicRun interface.
18
+ */
19
+ export function instanceOfPublicRun(value) {
20
+ if (!('difficulty' in value) || value['difficulty'] === undefined)
21
+ return false;
22
+ if (!('groomedToday' in value) || value['groomedToday'] === undefined)
23
+ return false;
24
+ if (!('name' in value) || value['name'] === undefined)
25
+ return false;
26
+ if (!('slug' in value) || value['slug'] === undefined)
27
+ return false;
28
+ if (!('status' in value) || value['status'] === undefined)
29
+ return false;
30
+ if (!('uuid' in value) || value['uuid'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function PublicRunFromJSON(json) {
35
+ return PublicRunFromJSONTyped(json, false);
36
+ }
37
+ export function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'areaId': json['area_id'] == null ? undefined : json['area_id'],
43
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
44
+ 'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
45
+ 'difficulty': RunDifficultyFromJSON(json['difficulty']),
46
+ 'groomedToday': json['groomed_today'],
47
+ 'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
48
+ 'name': json['name'],
49
+ 'slug': json['slug'],
50
+ 'status': RunStatusFromJSON(json['status']),
51
+ 'uuid': json['uuid'],
52
+ };
53
+ }
54
+ export function PublicRunToJSON(json) {
55
+ return PublicRunToJSONTyped(json, false);
56
+ }
57
+ export function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'area_id': value['areaId'],
63
+ 'area_name': value['areaName'],
64
+ 'condition_notes': value['conditionNotes'],
65
+ 'difficulty': RunDifficultyToJSON(value['difficulty']),
66
+ 'groomed_today': value['groomedToday'],
67
+ 'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
68
+ 'name': value['name'],
69
+ 'slug': value['slug'],
70
+ 'status': RunStatusToJSON(value['status']),
71
+ 'uuid': value['uuid'],
72
+ };
73
+ }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 { SnowMetrics } from './SnowMetrics';
13
+ import type { SurfaceCondition } from './SurfaceCondition';
14
+ /**
15
+ * Snow report with metrics
16
+ * @export
17
+ * @interface PublicSnowReport
18
+ */
19
+ export interface PublicSnowReport {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof PublicSnowReport
24
+ */
25
+ areaId?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PublicSnowReport
30
+ */
31
+ areaName?: string | null;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof PublicSnowReport
36
+ */
37
+ baseDepthCm?: number | null;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof PublicSnowReport
42
+ */
43
+ baseDepthIn?: number | null;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof PublicSnowReport
48
+ */
49
+ reportedAt: Date;
50
+ /**
51
+ *
52
+ * @type {SnowMetrics}
53
+ * @memberof PublicSnowReport
54
+ */
55
+ snowfallCm: SnowMetrics;
56
+ /**
57
+ *
58
+ * @type {SnowMetrics}
59
+ * @memberof PublicSnowReport
60
+ */
61
+ snowfallIn: SnowMetrics;
62
+ /**
63
+ *
64
+ * @type {SurfaceCondition}
65
+ * @memberof PublicSnowReport
66
+ */
67
+ surfaceCondition?: SurfaceCondition | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof PublicSnowReport
72
+ */
73
+ uuid: string;
74
+ }
75
+ /**
76
+ * Check if a given object implements the PublicSnowReport interface.
77
+ */
78
+ export declare function instanceOfPublicSnowReport(value: object): value is PublicSnowReport;
79
+ export declare function PublicSnowReportFromJSON(json: any): PublicSnowReport;
80
+ export declare function PublicSnowReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSnowReport;
81
+ export declare function PublicSnowReportToJSON(json: any): PublicSnowReport;
82
+ export declare function PublicSnowReportToJSONTyped(value?: PublicSnowReport | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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 { SnowMetricsFromJSON, SnowMetricsToJSON, } from './SnowMetrics';
15
+ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCondition';
16
+ /**
17
+ * Check if a given object implements the PublicSnowReport interface.
18
+ */
19
+ export function instanceOfPublicSnowReport(value) {
20
+ if (!('reportedAt' in value) || value['reportedAt'] === undefined)
21
+ return false;
22
+ if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
23
+ return false;
24
+ if (!('snowfallIn' in value) || value['snowfallIn'] === undefined)
25
+ return false;
26
+ if (!('uuid' in value) || value['uuid'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function PublicSnowReportFromJSON(json) {
31
+ return PublicSnowReportFromJSONTyped(json, false);
32
+ }
33
+ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'areaId': json['area_id'] == null ? undefined : json['area_id'],
39
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
40
+ 'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
41
+ 'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
42
+ 'reportedAt': (new Date(json['reported_at'])),
43
+ 'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
44
+ 'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
45
+ 'surfaceCondition': json['surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['surface_condition']),
46
+ 'uuid': json['uuid'],
47
+ };
48
+ }
49
+ export function PublicSnowReportToJSON(json) {
50
+ return PublicSnowReportToJSONTyped(json, false);
51
+ }
52
+ export function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'area_id': value['areaId'],
58
+ 'area_name': value['areaName'],
59
+ 'base_depth_cm': value['baseDepthCm'],
60
+ 'base_depth_in': value['baseDepthIn'],
61
+ 'reported_at': value['reportedAt'].toISOString(),
62
+ 'snowfall_cm': SnowMetricsToJSON(value['snowfallCm']),
63
+ 'snowfall_in': SnowMetricsToJSON(value['snowfallIn']),
64
+ 'surface_condition': SurfaceConditionToJSON(value['surfaceCondition']),
65
+ 'uuid': value['uuid'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 { PublicSnowReport } from './PublicSnowReport';
13
+ /**
14
+ * Snow conditions response (just reports with metrics)
15
+ * @export
16
+ * @interface PublicSnowResponse
17
+ */
18
+ export interface PublicSnowResponse {
19
+ /**
20
+ *
21
+ * @type {Array<PublicSnowReport>}
22
+ * @memberof PublicSnowResponse
23
+ */
24
+ reports: Array<PublicSnowReport>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PublicSnowResponse interface.
28
+ */
29
+ export declare function instanceOfPublicSnowResponse(value: object): value is PublicSnowResponse;
30
+ export declare function PublicSnowResponseFromJSON(json: any): PublicSnowResponse;
31
+ export declare function PublicSnowResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicSnowResponse;
32
+ export declare function PublicSnowResponseToJSON(json: any): PublicSnowResponse;
33
+ export declare function PublicSnowResponseToJSONTyped(value?: PublicSnowResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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 { PublicSnowReportFromJSON, PublicSnowReportToJSON, } from './PublicSnowReport';
15
+ /**
16
+ * Check if a given object implements the PublicSnowResponse interface.
17
+ */
18
+ export function instanceOfPublicSnowResponse(value) {
19
+ if (!('reports' in value) || value['reports'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PublicSnowResponseFromJSON(json) {
24
+ return PublicSnowResponseFromJSONTyped(json, false);
25
+ }
26
+ export function PublicSnowResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'reports': (json['reports'].map(PublicSnowReportFromJSON)),
32
+ };
33
+ }
34
+ export function PublicSnowResponseToJSON(json) {
35
+ return PublicSnowResponseToJSONTyped(json, false);
36
+ }
37
+ export function PublicSnowResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'reports': (value['reports'].map(PublicSnowReportToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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
+ * Human-readable schedule description
14
+ * @export
15
+ * @interface RegularHoursDescription
16
+ */
17
+ export interface RegularHoursDescription {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RegularHoursDescription
22
+ */
23
+ days: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RegularHoursDescription
28
+ */
29
+ effective: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof RegularHoursDescription
34
+ */
35
+ inEffect: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RegularHoursDescription
40
+ */
41
+ time: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the RegularHoursDescription interface.
45
+ */
46
+ export declare function instanceOfRegularHoursDescription(value: object): value is RegularHoursDescription;
47
+ export declare function RegularHoursDescriptionFromJSON(json: any): RegularHoursDescription;
48
+ export declare function RegularHoursDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegularHoursDescription;
49
+ export declare function RegularHoursDescriptionToJSON(json: any): RegularHoursDescription;
50
+ export declare function RegularHoursDescriptionToJSONTyped(value?: RegularHoursDescription | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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 RegularHoursDescription interface.
16
+ */
17
+ export function instanceOfRegularHoursDescription(value) {
18
+ if (!('days' in value) || value['days'] === undefined)
19
+ return false;
20
+ if (!('effective' in value) || value['effective'] === undefined)
21
+ return false;
22
+ if (!('inEffect' in value) || value['inEffect'] === undefined)
23
+ return false;
24
+ if (!('time' in value) || value['time'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function RegularHoursDescriptionFromJSON(json) {
29
+ return RegularHoursDescriptionFromJSONTyped(json, false);
30
+ }
31
+ export function RegularHoursDescriptionFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'days': json['days'],
37
+ 'effective': json['effective'],
38
+ 'inEffect': json['in_effect'],
39
+ 'time': json['time'],
40
+ };
41
+ }
42
+ export function RegularHoursDescriptionToJSON(json) {
43
+ return RegularHoursDescriptionToJSONTyped(json, false);
44
+ }
45
+ export function RegularHoursDescriptionToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'days': value['days'],
51
+ 'effective': value['effective'],
52
+ 'in_effect': value['inEffect'],
53
+ 'time': value['time'],
54
+ };
55
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 ResortStatusType: {
17
+ readonly Open: "open";
18
+ readonly Closed: "closed";
19
+ readonly ClosedForSeason: "closed_for_season";
20
+ };
21
+ export type ResortStatusType = typeof ResortStatusType[keyof typeof ResortStatusType];
22
+ export declare function instanceOfResortStatusType(value: any): boolean;
23
+ export declare function ResortStatusTypeFromJSON(json: any): ResortStatusType;
24
+ export declare function ResortStatusTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResortStatusType;
25
+ export declare function ResortStatusTypeToJSON(value?: ResortStatusType | null): any;
26
+ export declare function ResortStatusTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ResortStatusType;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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
+ *
16
+ * @export
17
+ */
18
+ export const ResortStatusType = {
19
+ Open: 'open',
20
+ Closed: 'closed',
21
+ ClosedForSeason: 'closed_for_season'
22
+ };
23
+ export function instanceOfResortStatusType(value) {
24
+ for (const key in ResortStatusType) {
25
+ if (Object.prototype.hasOwnProperty.call(ResortStatusType, key)) {
26
+ if (ResortStatusType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function ResortStatusTypeFromJSON(json) {
34
+ return ResortStatusTypeFromJSONTyped(json, false);
35
+ }
36
+ export function ResortStatusTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function ResortStatusTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 RunDifficulty: {
17
+ readonly Beginner: "beginner";
18
+ readonly Intermediate: "intermediate";
19
+ readonly Advanced: "advanced";
20
+ readonly Expert: "expert";
21
+ readonly TerrainPark: "terrain_park";
22
+ };
23
+ export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
24
+ export declare function instanceOfRunDifficulty(value: any): boolean;
25
+ export declare function RunDifficultyFromJSON(json: any): RunDifficulty;
26
+ export declare function RunDifficultyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunDifficulty;
27
+ export declare function RunDifficultyToJSON(value?: RunDifficulty | null): any;
28
+ export declare function RunDifficultyToJSONTyped(value: any, ignoreDiscriminator: boolean): RunDifficulty;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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
+ *
16
+ * @export
17
+ */
18
+ export const RunDifficulty = {
19
+ Beginner: 'beginner',
20
+ Intermediate: 'intermediate',
21
+ Advanced: 'advanced',
22
+ Expert: 'expert',
23
+ TerrainPark: 'terrain_park'
24
+ };
25
+ export function instanceOfRunDifficulty(value) {
26
+ for (const key in RunDifficulty) {
27
+ if (Object.prototype.hasOwnProperty.call(RunDifficulty, key)) {
28
+ if (RunDifficulty[key] === value) {
29
+ return true;
30
+ }
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ export function RunDifficultyFromJSON(json) {
36
+ return RunDifficultyFromJSONTyped(json, false);
37
+ }
38
+ export function RunDifficultyFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ export function RunDifficultyToJSON(value) {
42
+ return value;
43
+ }
44
+ export function RunDifficultyToJSONTyped(value, ignoreDiscriminator) {
45
+ return value;
46
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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 RunStatus: {
17
+ readonly Open: "open";
18
+ readonly Closed: "closed";
19
+ };
20
+ export type RunStatus = typeof RunStatus[keyof typeof RunStatus];
21
+ export declare function instanceOfRunStatus(value: any): boolean;
22
+ export declare function RunStatusFromJSON(json: any): RunStatus;
23
+ export declare function RunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunStatus;
24
+ export declare function RunStatusToJSON(value?: RunStatus | null): any;
25
+ export declare function RunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RunStatus;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * MtnManager API
5
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
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
+ *
16
+ * @export
17
+ */
18
+ export const RunStatus = {
19
+ Open: 'open',
20
+ Closed: 'closed'
21
+ };
22
+ export function instanceOfRunStatus(value) {
23
+ for (const key in RunStatus) {
24
+ if (Object.prototype.hasOwnProperty.call(RunStatus, key)) {
25
+ if (RunStatus[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function RunStatusFromJSON(json) {
33
+ return RunStatusFromJSONTyped(json, false);
34
+ }
35
+ export function RunStatusFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function RunStatusToJSON(value) {
39
+ return value;
40
+ }
41
+ export function RunStatusToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * MtnManager API
3
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
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
+ * Snow metrics calculated from accumulations
14
+ * @export
15
+ * @interface SnowMetrics
16
+ */
17
+ export interface SnowMetrics {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SnowMetrics
22
+ */
23
+ last24h: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SnowMetrics
28
+ */
29
+ last48h: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SnowMetrics
34
+ */
35
+ last7days: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SnowMetrics
40
+ */
41
+ overnight: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SnowMetrics
46
+ */
47
+ seasonTotal: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SnowMetrics interface.
51
+ */
52
+ export declare function instanceOfSnowMetrics(value: object): value is SnowMetrics;
53
+ export declare function SnowMetricsFromJSON(json: any): SnowMetrics;
54
+ export declare function SnowMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnowMetrics;
55
+ export declare function SnowMetricsToJSON(json: any): SnowMetrics;
56
+ export declare function SnowMetricsToJSONTyped(value?: SnowMetrics | null, ignoreDiscriminator?: boolean): any;