@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,46 @@
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 { HoursInfo } from './HoursInfo';
13
+ import type { RegularHoursDescription } from './RegularHoursDescription';
14
+ /**
15
+ * Calculated operating hours response
16
+ * @export
17
+ * @interface OperatingHoursResponse
18
+ */
19
+ export interface OperatingHoursResponse {
20
+ /**
21
+ *
22
+ * @type {Array<HoursInfo>}
23
+ * @memberof OperatingHoursResponse
24
+ */
25
+ openDays: Array<HoursInfo>;
26
+ /**
27
+ *
28
+ * @type {Array<RegularHoursDescription>}
29
+ * @memberof OperatingHoursResponse
30
+ */
31
+ regularHours: Array<RegularHoursDescription>;
32
+ /**
33
+ *
34
+ * @type {HoursInfo}
35
+ * @memberof OperatingHoursResponse
36
+ */
37
+ today: HoursInfo;
38
+ }
39
+ /**
40
+ * Check if a given object implements the OperatingHoursResponse interface.
41
+ */
42
+ export declare function instanceOfOperatingHoursResponse(value: object): value is OperatingHoursResponse;
43
+ export declare function OperatingHoursResponseFromJSON(json: any): OperatingHoursResponse;
44
+ export declare function OperatingHoursResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperatingHoursResponse;
45
+ export declare function OperatingHoursResponseToJSON(json: any): OperatingHoursResponse;
46
+ export declare function OperatingHoursResponseToJSONTyped(value?: OperatingHoursResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 { HoursInfoFromJSON, HoursInfoToJSON, } from './HoursInfo';
15
+ import { RegularHoursDescriptionFromJSON, RegularHoursDescriptionToJSON, } from './RegularHoursDescription';
16
+ /**
17
+ * Check if a given object implements the OperatingHoursResponse interface.
18
+ */
19
+ export function instanceOfOperatingHoursResponse(value) {
20
+ if (!('openDays' in value) || value['openDays'] === undefined)
21
+ return false;
22
+ if (!('regularHours' in value) || value['regularHours'] === undefined)
23
+ return false;
24
+ if (!('today' in value) || value['today'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function OperatingHoursResponseFromJSON(json) {
29
+ return OperatingHoursResponseFromJSONTyped(json, false);
30
+ }
31
+ export function OperatingHoursResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'openDays': (json['open_days'].map(HoursInfoFromJSON)),
37
+ 'regularHours': (json['regular_hours'].map(RegularHoursDescriptionFromJSON)),
38
+ 'today': HoursInfoFromJSON(json['today']),
39
+ };
40
+ }
41
+ export function OperatingHoursResponseToJSON(json) {
42
+ return OperatingHoursResponseToJSONTyped(json, false);
43
+ }
44
+ export function OperatingHoursResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'open_days': (value['openDays'].map(HoursInfoToJSON)),
50
+ 'regular_hours': (value['regularHours'].map(RegularHoursDescriptionToJSON)),
51
+ 'today': HoursInfoToJSON(value['today']),
52
+ };
53
+ }
@@ -0,0 +1,88 @@
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 { LiftStatus } from './LiftStatus';
13
+ import type { LiftType } from './LiftType';
14
+ /**
15
+ * Lift information with area context
16
+ * @export
17
+ * @interface PublicLift
18
+ */
19
+ export interface PublicLift {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof PublicLift
24
+ */
25
+ areaId?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PublicLift
30
+ */
31
+ areaName?: string | null;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof PublicLift
36
+ */
37
+ capacityPerHour?: number | null;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof PublicLift
42
+ */
43
+ highSpeed: boolean;
44
+ /**
45
+ *
46
+ * @type {LiftType}
47
+ * @memberof PublicLift
48
+ */
49
+ liftType: LiftType;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PublicLift
54
+ */
55
+ name: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PublicLift
60
+ */
61
+ slug: string;
62
+ /**
63
+ *
64
+ * @type {LiftStatus}
65
+ * @memberof PublicLift
66
+ */
67
+ status: LiftStatus;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof PublicLift
72
+ */
73
+ uuid: string;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof PublicLift
78
+ */
79
+ waitTimeMinutes?: number | null;
80
+ }
81
+ /**
82
+ * Check if a given object implements the PublicLift interface.
83
+ */
84
+ export declare function instanceOfPublicLift(value: object): value is PublicLift;
85
+ export declare function PublicLiftFromJSON(json: any): PublicLift;
86
+ export declare function PublicLiftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicLift;
87
+ export declare function PublicLiftToJSON(json: any): PublicLift;
88
+ export declare function PublicLiftToJSONTyped(value?: PublicLift | null, ignoreDiscriminator?: boolean): any;
@@ -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 { LiftStatusFromJSON, LiftStatusToJSON, } from './LiftStatus';
15
+ import { LiftTypeFromJSON, LiftTypeToJSON, } from './LiftType';
16
+ /**
17
+ * Check if a given object implements the PublicLift interface.
18
+ */
19
+ export function instanceOfPublicLift(value) {
20
+ if (!('highSpeed' in value) || value['highSpeed'] === undefined)
21
+ return false;
22
+ if (!('liftType' in value) || value['liftType'] === 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 PublicLiftFromJSON(json) {
35
+ return PublicLiftFromJSONTyped(json, false);
36
+ }
37
+ export function PublicLiftFromJSONTyped(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
+ 'capacityPerHour': json['capacity_per_hour'] == null ? undefined : json['capacity_per_hour'],
45
+ 'highSpeed': json['high_speed'],
46
+ 'liftType': LiftTypeFromJSON(json['lift_type']),
47
+ 'name': json['name'],
48
+ 'slug': json['slug'],
49
+ 'status': LiftStatusFromJSON(json['status']),
50
+ 'uuid': json['uuid'],
51
+ 'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
52
+ };
53
+ }
54
+ export function PublicLiftToJSON(json) {
55
+ return PublicLiftToJSONTyped(json, false);
56
+ }
57
+ export function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'area_id': value['areaId'],
63
+ 'area_name': value['areaName'],
64
+ 'capacity_per_hour': value['capacityPerHour'],
65
+ 'high_speed': value['highSpeed'],
66
+ 'lift_type': LiftTypeToJSON(value['liftType']),
67
+ 'name': value['name'],
68
+ 'slug': value['slug'],
69
+ 'status': LiftStatusToJSON(value['status']),
70
+ 'uuid': value['uuid'],
71
+ 'wait_time_minutes': value['waitTimeMinutes'],
72
+ };
73
+ }
@@ -0,0 +1,57 @@
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 { UnitPreference } from './UnitPreference';
13
+ /**
14
+ * Basic resort information for public display
15
+ * @export
16
+ * @interface PublicResortInfo
17
+ */
18
+ export interface PublicResortInfo {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PublicResortInfo
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PublicResortInfo
29
+ */
30
+ slug: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PublicResortInfo
35
+ */
36
+ timezone: string;
37
+ /**
38
+ *
39
+ * @type {UnitPreference}
40
+ * @memberof PublicResortInfo
41
+ */
42
+ unitPreference: UnitPreference;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PublicResortInfo
47
+ */
48
+ uuid: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the PublicResortInfo interface.
52
+ */
53
+ export declare function instanceOfPublicResortInfo(value: object): value is PublicResortInfo;
54
+ export declare function PublicResortInfoFromJSON(json: any): PublicResortInfo;
55
+ export declare function PublicResortInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortInfo;
56
+ export declare function PublicResortInfoToJSON(json: any): PublicResortInfo;
57
+ export declare function PublicResortInfoToJSONTyped(value?: PublicResortInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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 { UnitPreferenceFromJSON, UnitPreferenceToJSON, } from './UnitPreference';
15
+ /**
16
+ * Check if a given object implements the PublicResortInfo interface.
17
+ */
18
+ export function instanceOfPublicResortInfo(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('slug' in value) || value['slug'] === undefined)
22
+ return false;
23
+ if (!('timezone' in value) || value['timezone'] === undefined)
24
+ return false;
25
+ if (!('unitPreference' in value) || value['unitPreference'] === undefined)
26
+ return false;
27
+ if (!('uuid' in value) || value['uuid'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function PublicResortInfoFromJSON(json) {
32
+ return PublicResortInfoFromJSONTyped(json, false);
33
+ }
34
+ export function PublicResortInfoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'slug': json['slug'],
41
+ 'timezone': json['timezone'],
42
+ 'unitPreference': UnitPreferenceFromJSON(json['unit_preference']),
43
+ 'uuid': json['uuid'],
44
+ };
45
+ }
46
+ export function PublicResortInfoToJSON(json) {
47
+ return PublicResortInfoToJSONTyped(json, false);
48
+ }
49
+ export function PublicResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'slug': value['slug'],
56
+ 'timezone': value['timezone'],
57
+ 'unit_preference': UnitPreferenceToJSON(value['unitPreference']),
58
+ 'uuid': value['uuid'],
59
+ };
60
+ }
@@ -0,0 +1,68 @@
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 { PublicRun } from './PublicRun';
13
+ import type { OperatingHoursResponse } from './OperatingHoursResponse';
14
+ import type { PublicLift } from './PublicLift';
15
+ import type { PublicResortStatus } from './PublicResortStatus';
16
+ import type { PublicSnowReport } from './PublicSnowReport';
17
+ import type { PublicResortInfo } from './PublicResortInfo';
18
+ /**
19
+ * Comprehensive resort response (all-in-one)
20
+ * @export
21
+ * @interface PublicResortResponse
22
+ */
23
+ export interface PublicResortResponse {
24
+ /**
25
+ *
26
+ * @type {OperatingHoursResponse}
27
+ * @memberof PublicResortResponse
28
+ */
29
+ hours?: OperatingHoursResponse | null;
30
+ /**
31
+ *
32
+ * @type {Array<PublicLift>}
33
+ * @memberof PublicResortResponse
34
+ */
35
+ lifts?: Array<PublicLift>;
36
+ /**
37
+ *
38
+ * @type {PublicResortInfo}
39
+ * @memberof PublicResortResponse
40
+ */
41
+ resort: PublicResortInfo;
42
+ /**
43
+ *
44
+ * @type {Array<PublicRun>}
45
+ * @memberof PublicResortResponse
46
+ */
47
+ runs?: Array<PublicRun>;
48
+ /**
49
+ *
50
+ * @type {Array<PublicSnowReport>}
51
+ * @memberof PublicResortResponse
52
+ */
53
+ snow?: Array<PublicSnowReport>;
54
+ /**
55
+ *
56
+ * @type {PublicResortStatus}
57
+ * @memberof PublicResortResponse
58
+ */
59
+ status?: PublicResortStatus | null;
60
+ }
61
+ /**
62
+ * Check if a given object implements the PublicResortResponse interface.
63
+ */
64
+ export declare function instanceOfPublicResortResponse(value: object): value is PublicResortResponse;
65
+ export declare function PublicResortResponseFromJSON(json: any): PublicResortResponse;
66
+ export declare function PublicResortResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortResponse;
67
+ export declare function PublicResortResponseToJSON(json: any): PublicResortResponse;
68
+ export declare function PublicResortResponseToJSONTyped(value?: PublicResortResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 { PublicRunFromJSON, PublicRunToJSON, } from './PublicRun';
15
+ import { OperatingHoursResponseFromJSON, OperatingHoursResponseToJSON, } from './OperatingHoursResponse';
16
+ import { PublicLiftFromJSON, PublicLiftToJSON, } from './PublicLift';
17
+ import { PublicResortStatusFromJSON, PublicResortStatusToJSON, } from './PublicResortStatus';
18
+ import { PublicSnowReportFromJSON, PublicSnowReportToJSON, } from './PublicSnowReport';
19
+ import { PublicResortInfoFromJSON, PublicResortInfoToJSON, } from './PublicResortInfo';
20
+ /**
21
+ * Check if a given object implements the PublicResortResponse interface.
22
+ */
23
+ export function instanceOfPublicResortResponse(value) {
24
+ if (!('resort' in value) || value['resort'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PublicResortResponseFromJSON(json) {
29
+ return PublicResortResponseFromJSONTyped(json, false);
30
+ }
31
+ export function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'hours': json['hours'] == null ? undefined : OperatingHoursResponseFromJSON(json['hours']),
37
+ 'lifts': json['lifts'] == null ? undefined : (json['lifts'].map(PublicLiftFromJSON)),
38
+ 'resort': PublicResortInfoFromJSON(json['resort']),
39
+ 'runs': json['runs'] == null ? undefined : (json['runs'].map(PublicRunFromJSON)),
40
+ 'snow': json['snow'] == null ? undefined : (json['snow'].map(PublicSnowReportFromJSON)),
41
+ 'status': json['status'] == null ? undefined : PublicResortStatusFromJSON(json['status']),
42
+ };
43
+ }
44
+ export function PublicResortResponseToJSON(json) {
45
+ return PublicResortResponseToJSONTyped(json, false);
46
+ }
47
+ export function PublicResortResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'hours': OperatingHoursResponseToJSON(value['hours']),
53
+ 'lifts': value['lifts'] == null ? undefined : (value['lifts'].map(PublicLiftToJSON)),
54
+ 'resort': PublicResortInfoToJSON(value['resort']),
55
+ 'runs': value['runs'] == null ? undefined : (value['runs'].map(PublicRunToJSON)),
56
+ 'snow': value['snow'] == null ? undefined : (value['snow'].map(PublicSnowReportToJSON)),
57
+ 'status': PublicResortStatusToJSON(value['status']),
58
+ };
59
+ }
@@ -0,0 +1,45 @@
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 { ResortStatusType } from './ResortStatusType';
13
+ /**
14
+ * Resort status with optional metadata
15
+ * @export
16
+ * @interface PublicResortStatus
17
+ */
18
+ export interface PublicResortStatus {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PublicResortStatus
23
+ */
24
+ notes?: string | null;
25
+ /**
26
+ *
27
+ * @type {ResortStatusType}
28
+ * @memberof PublicResortStatus
29
+ */
30
+ status: ResortStatusType;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof PublicResortStatus
35
+ */
36
+ updatedAt?: Date | null;
37
+ }
38
+ /**
39
+ * Check if a given object implements the PublicResortStatus interface.
40
+ */
41
+ export declare function instanceOfPublicResortStatus(value: object): value is PublicResortStatus;
42
+ export declare function PublicResortStatusFromJSON(json: any): PublicResortStatus;
43
+ export declare function PublicResortStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicResortStatus;
44
+ export declare function PublicResortStatusToJSON(json: any): PublicResortStatus;
45
+ export declare function PublicResortStatusToJSONTyped(value?: PublicResortStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { ResortStatusTypeFromJSON, ResortStatusTypeToJSON, } from './ResortStatusType';
15
+ /**
16
+ * Check if a given object implements the PublicResortStatus interface.
17
+ */
18
+ export function instanceOfPublicResortStatus(value) {
19
+ if (!('status' in value) || value['status'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function PublicResortStatusFromJSON(json) {
24
+ return PublicResortStatusFromJSONTyped(json, false);
25
+ }
26
+ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'notes': json['notes'] == null ? undefined : json['notes'],
32
+ 'status': ResortStatusTypeFromJSON(json['status']),
33
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
34
+ };
35
+ }
36
+ export function PublicResortStatusToJSON(json) {
37
+ return PublicResortStatusToJSONTyped(json, false);
38
+ }
39
+ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'notes': value['notes'],
45
+ 'status': ResortStatusTypeToJSON(value['status']),
46
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
47
+ };
48
+ }
@@ -0,0 +1,88 @@
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 { RunStatus } from './RunStatus';
13
+ import type { RunDifficulty } from './RunDifficulty';
14
+ /**
15
+ * Run/trail information with area context
16
+ * @export
17
+ * @interface PublicRun
18
+ */
19
+ export interface PublicRun {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof PublicRun
24
+ */
25
+ areaId?: number | null;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PublicRun
30
+ */
31
+ areaName?: string | null;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof PublicRun
36
+ */
37
+ conditionNotes?: string | null;
38
+ /**
39
+ *
40
+ * @type {RunDifficulty}
41
+ * @memberof PublicRun
42
+ */
43
+ difficulty: RunDifficulty;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof PublicRun
48
+ */
49
+ groomedToday: boolean;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof PublicRun
54
+ */
55
+ lastGroomed?: Date | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PublicRun
60
+ */
61
+ name: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PublicRun
66
+ */
67
+ slug: string;
68
+ /**
69
+ *
70
+ * @type {RunStatus}
71
+ * @memberof PublicRun
72
+ */
73
+ status: RunStatus;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof PublicRun
78
+ */
79
+ uuid: string;
80
+ }
81
+ /**
82
+ * Check if a given object implements the PublicRun interface.
83
+ */
84
+ export declare function instanceOfPublicRun(value: object): value is PublicRun;
85
+ export declare function PublicRunFromJSON(json: any): PublicRun;
86
+ export declare function PublicRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicRun;
87
+ export declare function PublicRunToJSON(json: any): PublicRun;
88
+ export declare function PublicRunToJSONTyped(value?: PublicRun | null, ignoreDiscriminator?: boolean): any;