@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,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.instanceOfPublicRun = instanceOfPublicRun;
17
+ exports.PublicRunFromJSON = PublicRunFromJSON;
18
+ exports.PublicRunFromJSONTyped = PublicRunFromJSONTyped;
19
+ exports.PublicRunToJSON = PublicRunToJSON;
20
+ exports.PublicRunToJSONTyped = PublicRunToJSONTyped;
21
+ const RunStatus_1 = require("./RunStatus");
22
+ const RunDifficulty_1 = require("./RunDifficulty");
23
+ /**
24
+ * Check if a given object implements the PublicRun interface.
25
+ */
26
+ function instanceOfPublicRun(value) {
27
+ if (!('difficulty' in value) || value['difficulty'] === undefined)
28
+ return false;
29
+ if (!('groomedToday' in value) || value['groomedToday'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('slug' in value) || value['slug'] === undefined)
34
+ return false;
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ if (!('uuid' in value) || value['uuid'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function PublicRunFromJSON(json) {
42
+ return PublicRunFromJSONTyped(json, false);
43
+ }
44
+ function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'areaId': json['area_id'] == null ? undefined : json['area_id'],
50
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
51
+ 'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
52
+ 'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
53
+ 'groomedToday': json['groomed_today'],
54
+ 'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
55
+ 'name': json['name'],
56
+ 'slug': json['slug'],
57
+ 'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
58
+ 'uuid': json['uuid'],
59
+ };
60
+ }
61
+ function PublicRunToJSON(json) {
62
+ return PublicRunToJSONTyped(json, false);
63
+ }
64
+ function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'area_id': value['areaId'],
70
+ 'area_name': value['areaName'],
71
+ 'condition_notes': value['conditionNotes'],
72
+ 'difficulty': (0, RunDifficulty_1.RunDifficultyToJSON)(value['difficulty']),
73
+ 'groomed_today': value['groomedToday'],
74
+ 'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
75
+ 'name': value['name'],
76
+ 'slug': value['slug'],
77
+ 'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
78
+ 'uuid': value['uuid'],
79
+ };
80
+ }
@@ -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,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.instanceOfPublicSnowReport = instanceOfPublicSnowReport;
17
+ exports.PublicSnowReportFromJSON = PublicSnowReportFromJSON;
18
+ exports.PublicSnowReportFromJSONTyped = PublicSnowReportFromJSONTyped;
19
+ exports.PublicSnowReportToJSON = PublicSnowReportToJSON;
20
+ exports.PublicSnowReportToJSONTyped = PublicSnowReportToJSONTyped;
21
+ const SnowMetrics_1 = require("./SnowMetrics");
22
+ const SurfaceCondition_1 = require("./SurfaceCondition");
23
+ /**
24
+ * Check if a given object implements the PublicSnowReport interface.
25
+ */
26
+ function instanceOfPublicSnowReport(value) {
27
+ if (!('reportedAt' in value) || value['reportedAt'] === undefined)
28
+ return false;
29
+ if (!('snowfallCm' in value) || value['snowfallCm'] === undefined)
30
+ return false;
31
+ if (!('snowfallIn' in value) || value['snowfallIn'] === undefined)
32
+ return false;
33
+ if (!('uuid' in value) || value['uuid'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PublicSnowReportFromJSON(json) {
38
+ return PublicSnowReportFromJSONTyped(json, false);
39
+ }
40
+ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'areaId': json['area_id'] == null ? undefined : json['area_id'],
46
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
47
+ 'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
48
+ 'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
49
+ 'reportedAt': (new Date(json['reported_at'])),
50
+ 'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
51
+ 'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
52
+ 'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
53
+ 'uuid': json['uuid'],
54
+ };
55
+ }
56
+ function PublicSnowReportToJSON(json) {
57
+ return PublicSnowReportToJSONTyped(json, false);
58
+ }
59
+ function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'area_id': value['areaId'],
65
+ 'area_name': value['areaName'],
66
+ 'base_depth_cm': value['baseDepthCm'],
67
+ 'base_depth_in': value['baseDepthIn'],
68
+ 'reported_at': value['reportedAt'].toISOString(),
69
+ 'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
70
+ 'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
71
+ 'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
72
+ 'uuid': value['uuid'],
73
+ };
74
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.instanceOfPublicSnowResponse = instanceOfPublicSnowResponse;
17
+ exports.PublicSnowResponseFromJSON = PublicSnowResponseFromJSON;
18
+ exports.PublicSnowResponseFromJSONTyped = PublicSnowResponseFromJSONTyped;
19
+ exports.PublicSnowResponseToJSON = PublicSnowResponseToJSON;
20
+ exports.PublicSnowResponseToJSONTyped = PublicSnowResponseToJSONTyped;
21
+ const PublicSnowReport_1 = require("./PublicSnowReport");
22
+ /**
23
+ * Check if a given object implements the PublicSnowResponse interface.
24
+ */
25
+ function instanceOfPublicSnowResponse(value) {
26
+ if (!('reports' in value) || value['reports'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function PublicSnowResponseFromJSON(json) {
31
+ return PublicSnowResponseFromJSONTyped(json, false);
32
+ }
33
+ function PublicSnowResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'reports': (json['reports'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
39
+ };
40
+ }
41
+ function PublicSnowResponseToJSON(json) {
42
+ return PublicSnowResponseToJSONTyped(json, false);
43
+ }
44
+ function PublicSnowResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'reports': (value['reports'].map(PublicSnowReport_1.PublicSnowReportToJSON)),
50
+ };
51
+ }
@@ -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,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.instanceOfRegularHoursDescription = instanceOfRegularHoursDescription;
17
+ exports.RegularHoursDescriptionFromJSON = RegularHoursDescriptionFromJSON;
18
+ exports.RegularHoursDescriptionFromJSONTyped = RegularHoursDescriptionFromJSONTyped;
19
+ exports.RegularHoursDescriptionToJSON = RegularHoursDescriptionToJSON;
20
+ exports.RegularHoursDescriptionToJSONTyped = RegularHoursDescriptionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RegularHoursDescription interface.
23
+ */
24
+ function instanceOfRegularHoursDescription(value) {
25
+ if (!('days' in value) || value['days'] === undefined)
26
+ return false;
27
+ if (!('effective' in value) || value['effective'] === undefined)
28
+ return false;
29
+ if (!('inEffect' in value) || value['inEffect'] === undefined)
30
+ return false;
31
+ if (!('time' in value) || value['time'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function RegularHoursDescriptionFromJSON(json) {
36
+ return RegularHoursDescriptionFromJSONTyped(json, false);
37
+ }
38
+ function RegularHoursDescriptionFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'days': json['days'],
44
+ 'effective': json['effective'],
45
+ 'inEffect': json['in_effect'],
46
+ 'time': json['time'],
47
+ };
48
+ }
49
+ function RegularHoursDescriptionToJSON(json) {
50
+ return RegularHoursDescriptionToJSONTyped(json, false);
51
+ }
52
+ function RegularHoursDescriptionToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'days': value['days'],
58
+ 'effective': value['effective'],
59
+ 'in_effect': value['inEffect'],
60
+ 'time': value['time'],
61
+ };
62
+ }
@@ -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,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.ResortStatusType = void 0;
17
+ exports.instanceOfResortStatusType = instanceOfResortStatusType;
18
+ exports.ResortStatusTypeFromJSON = ResortStatusTypeFromJSON;
19
+ exports.ResortStatusTypeFromJSONTyped = ResortStatusTypeFromJSONTyped;
20
+ exports.ResortStatusTypeToJSON = ResortStatusTypeToJSON;
21
+ exports.ResortStatusTypeToJSONTyped = ResortStatusTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ResortStatusType = {
27
+ Open: 'open',
28
+ Closed: 'closed',
29
+ ClosedForSeason: 'closed_for_season'
30
+ };
31
+ function instanceOfResortStatusType(value) {
32
+ for (const key in exports.ResortStatusType) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ResortStatusType, key)) {
34
+ if (exports.ResortStatusType[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ResortStatusTypeFromJSON(json) {
42
+ return ResortStatusTypeFromJSONTyped(json, false);
43
+ }
44
+ function ResortStatusTypeFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ResortStatusTypeToJSON(value) {
48
+ return value;
49
+ }
50
+ function ResortStatusTypeToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.RunDifficulty = void 0;
17
+ exports.instanceOfRunDifficulty = instanceOfRunDifficulty;
18
+ exports.RunDifficultyFromJSON = RunDifficultyFromJSON;
19
+ exports.RunDifficultyFromJSONTyped = RunDifficultyFromJSONTyped;
20
+ exports.RunDifficultyToJSON = RunDifficultyToJSON;
21
+ exports.RunDifficultyToJSONTyped = RunDifficultyToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.RunDifficulty = {
27
+ Beginner: 'beginner',
28
+ Intermediate: 'intermediate',
29
+ Advanced: 'advanced',
30
+ Expert: 'expert',
31
+ TerrainPark: 'terrain_park'
32
+ };
33
+ function instanceOfRunDifficulty(value) {
34
+ for (const key in exports.RunDifficulty) {
35
+ if (Object.prototype.hasOwnProperty.call(exports.RunDifficulty, key)) {
36
+ if (exports.RunDifficulty[key] === value) {
37
+ return true;
38
+ }
39
+ }
40
+ }
41
+ return false;
42
+ }
43
+ function RunDifficultyFromJSON(json) {
44
+ return RunDifficultyFromJSONTyped(json, false);
45
+ }
46
+ function RunDifficultyFromJSONTyped(json, ignoreDiscriminator) {
47
+ return json;
48
+ }
49
+ function RunDifficultyToJSON(value) {
50
+ return value;
51
+ }
52
+ function RunDifficultyToJSONTyped(value, ignoreDiscriminator) {
53
+ return value;
54
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * MtnManager API
6
+ * Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
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.RunStatus = void 0;
17
+ exports.instanceOfRunStatus = instanceOfRunStatus;
18
+ exports.RunStatusFromJSON = RunStatusFromJSON;
19
+ exports.RunStatusFromJSONTyped = RunStatusFromJSONTyped;
20
+ exports.RunStatusToJSON = RunStatusToJSON;
21
+ exports.RunStatusToJSONTyped = RunStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.RunStatus = {
27
+ Open: 'open',
28
+ Closed: 'closed'
29
+ };
30
+ function instanceOfRunStatus(value) {
31
+ for (const key in exports.RunStatus) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.RunStatus, key)) {
33
+ if (exports.RunStatus[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function RunStatusFromJSON(json) {
41
+ return RunStatusFromJSONTyped(json, false);
42
+ }
43
+ function RunStatusFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function RunStatusToJSON(value) {
47
+ return value;
48
+ }
49
+ function RunStatusToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }