@mtnmanager/sdk 1.7.4 → 1.8.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 (74) hide show
  1. package/README.md +10 -0
  2. package/dist/esm/models/AppConfig.d.ts +41 -0
  3. package/dist/esm/models/AppConfig.js +47 -0
  4. package/dist/esm/models/GeometryMode.d.ts +26 -0
  5. package/dist/esm/models/GeometryMode.js +44 -0
  6. package/dist/esm/models/Lift.d.ts +6 -0
  7. package/dist/esm/models/Lift.js +2 -0
  8. package/dist/esm/models/Overview.d.ts +6 -3
  9. package/dist/esm/models/Overview.js +2 -2
  10. package/dist/esm/models/OverviewNews.d.ts +27 -2
  11. package/dist/esm/models/OverviewNews.js +10 -0
  12. package/dist/esm/models/ResortStatus.d.ts +1 -1
  13. package/dist/esm/models/ResortStatus.js +1 -1
  14. package/dist/esm/models/RunDifficulty.d.ts +1 -1
  15. package/dist/esm/models/RunDifficulty.js +1 -1
  16. package/dist/esm/models/RunStatus.d.ts +1 -1
  17. package/dist/esm/models/RunStatus.js +1 -1
  18. package/dist/esm/models/SnowReport.d.ts +0 -6
  19. package/dist/esm/models/SnowReport.js +0 -4
  20. package/dist/esm/models/TrailMapStaticElementOneOf.d.ts +64 -0
  21. package/dist/esm/models/TrailMapStaticElementOneOf.js +66 -0
  22. package/dist/esm/models/TrailMapStaticElementOneOf1.d.ts +78 -0
  23. package/dist/esm/models/TrailMapStaticElementOneOf1.js +72 -0
  24. package/dist/esm/models/TrailMapStaticElementOneOf2.d.ts +78 -0
  25. package/dist/esm/models/TrailMapStaticElementOneOf2.js +72 -0
  26. package/dist/esm/models/TrailMapStaticElementOneOf3.d.ts +64 -0
  27. package/dist/esm/models/TrailMapStaticElementOneOf3.js +66 -0
  28. package/dist/esm/models/TrailMapStaticElementOneOf4.d.ts +83 -0
  29. package/dist/esm/models/TrailMapStaticElementOneOf4.js +75 -0
  30. package/dist/esm/models/TrailMapStaticElementOneOf5.d.ts +83 -0
  31. package/dist/esm/models/TrailMapStaticElementOneOf5.js +75 -0
  32. package/dist/esm/models/TrailMapStaticElementOneOf6.d.ts +83 -0
  33. package/dist/esm/models/TrailMapStaticElementOneOf6.js +75 -0
  34. package/dist/esm/models/TrailMapStaticPath.d.ts +40 -0
  35. package/dist/esm/models/TrailMapStaticPath.js +47 -0
  36. package/dist/esm/models/index.d.ts +10 -0
  37. package/dist/esm/models/index.js +10 -0
  38. package/dist/models/AppConfig.d.ts +41 -0
  39. package/dist/models/AppConfig.js +54 -0
  40. package/dist/models/GeometryMode.d.ts +26 -0
  41. package/dist/models/GeometryMode.js +52 -0
  42. package/dist/models/Lift.d.ts +6 -0
  43. package/dist/models/Lift.js +2 -0
  44. package/dist/models/Overview.d.ts +6 -3
  45. package/dist/models/Overview.js +2 -2
  46. package/dist/models/OverviewNews.d.ts +27 -2
  47. package/dist/models/OverviewNews.js +10 -0
  48. package/dist/models/ResortStatus.d.ts +1 -1
  49. package/dist/models/ResortStatus.js +1 -1
  50. package/dist/models/RunDifficulty.d.ts +1 -1
  51. package/dist/models/RunDifficulty.js +1 -1
  52. package/dist/models/RunStatus.d.ts +1 -1
  53. package/dist/models/RunStatus.js +1 -1
  54. package/dist/models/SnowReport.d.ts +0 -6
  55. package/dist/models/SnowReport.js +0 -4
  56. package/dist/models/TrailMapStaticElementOneOf.d.ts +64 -0
  57. package/dist/models/TrailMapStaticElementOneOf.js +74 -0
  58. package/dist/models/TrailMapStaticElementOneOf1.d.ts +78 -0
  59. package/dist/models/TrailMapStaticElementOneOf1.js +80 -0
  60. package/dist/models/TrailMapStaticElementOneOf2.d.ts +78 -0
  61. package/dist/models/TrailMapStaticElementOneOf2.js +80 -0
  62. package/dist/models/TrailMapStaticElementOneOf3.d.ts +64 -0
  63. package/dist/models/TrailMapStaticElementOneOf3.js +74 -0
  64. package/dist/models/TrailMapStaticElementOneOf4.d.ts +83 -0
  65. package/dist/models/TrailMapStaticElementOneOf4.js +83 -0
  66. package/dist/models/TrailMapStaticElementOneOf5.d.ts +83 -0
  67. package/dist/models/TrailMapStaticElementOneOf5.js +83 -0
  68. package/dist/models/TrailMapStaticElementOneOf6.d.ts +83 -0
  69. package/dist/models/TrailMapStaticElementOneOf6.js +83 -0
  70. package/dist/models/TrailMapStaticPath.d.ts +40 -0
  71. package/dist/models/TrailMapStaticPath.js +54 -0
  72. package/dist/models/index.d.ts +10 -0
  73. package/dist/models/index.js +10 -0
  74. package/package.json +1 -1
@@ -20,7 +20,7 @@ exports.RunDifficultyFromJSONTyped = RunDifficultyFromJSONTyped;
20
20
  exports.RunDifficultyToJSON = RunDifficultyToJSON;
21
21
  exports.RunDifficultyToJSONTyped = RunDifficultyToJSONTyped;
22
22
  /**
23
- * Difficulty rating for a ski run.
23
+ * Difficulty rating for a ski run. Stored as TEXT in `runs.difficulty`.
24
24
  * @export
25
25
  */
26
26
  exports.RunDifficulty = {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Operational status of a ski run.
13
+ * Operational status of a ski run. Stored as TEXT in `runs.status`.
14
14
  * @export
15
15
  */
16
16
  export declare const RunStatus: {
@@ -20,7 +20,7 @@ exports.RunStatusFromJSONTyped = RunStatusFromJSONTyped;
20
20
  exports.RunStatusToJSON = RunStatusToJSON;
21
21
  exports.RunStatusToJSONTyped = RunStatusToJSONTyped;
22
22
  /**
23
- * Operational status of a ski run.
23
+ * Operational status of a ski run. Stored as TEXT in `runs.status`.
24
24
  * @export
25
25
  */
26
26
  exports.RunStatus = {
@@ -104,12 +104,6 @@ export interface SnowReport {
104
104
  * @memberof SnowReport
105
105
  */
106
106
  secondarySurfaceCondition?: SurfaceCondition | null;
107
- /**
108
- * Additional notes about current snow conditions, e.g. groomer's notes
109
- * @type {string}
110
- * @memberof SnowReport
111
- */
112
- conditionNotes: string;
113
107
  /**
114
108
  * Snowfall accumulation metrics in centimeters.
115
109
  * @type {SnowMetrics}
@@ -26,8 +26,6 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
26
26
  function instanceOfSnowReport(value) {
27
27
  if (!('uuid' in value) || value['uuid'] === undefined)
28
28
  return false;
29
- if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
30
- return false;
31
29
  if ((!('snowfallCm' in value) && !('snowfall_cm' in value)) || (value['snowfallCm'] === undefined && value['snowfall_cm'] === undefined))
32
30
  return false;
33
31
  if ((!('snowfallIn' in value) && !('snowfall_in' in value)) || (value['snowfallIn'] === undefined && value['snowfall_in'] === undefined))
@@ -52,7 +50,6 @@ function SnowReportFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'baseDepthIn': json['base_depth_in'] === undefined ? undefined : json['base_depth_in'] === null ? null : json['base_depth_in'],
53
51
  'surfaceCondition': json['surface_condition'] === undefined ? undefined : json['surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
54
52
  'secondarySurfaceCondition': json['secondary_surface_condition'] === undefined ? undefined : json['secondary_surface_condition'] === null ? null : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
55
- 'conditionNotes': json['condition_notes'],
56
53
  'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
57
54
  'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
58
55
  'reportedAt': (new Date(json['reported_at'])),
@@ -74,7 +71,6 @@ function SnowReportToJSONTyped(value, ignoreDiscriminator = false) {
74
71
  'base_depth_in': value['baseDepthIn'],
75
72
  'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
76
73
  'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
77
- 'condition_notes': value['conditionNotes'],
78
74
  'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
79
75
  'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
80
76
  'reported_at': value['reportedAt'].toISOString(),
@@ -0,0 +1,64 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TrailMapStaticElementOneOf
16
+ */
17
+ export interface TrailMapStaticElementOneOf {
18
+ /**
19
+ *
20
+ * @type {TrailMapStaticElementOneOfTypeEnum}
21
+ * @memberof TrailMapStaticElementOneOf
22
+ */
23
+ type: TrailMapStaticElementOneOfTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TrailMapStaticElementOneOf
28
+ */
29
+ uuid: string;
30
+ /**
31
+ *
32
+ * @type {Array<number>}
33
+ * @memberof TrailMapStaticElementOneOf
34
+ */
35
+ points: Array<number>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TrailMapStaticElementOneOf
40
+ */
41
+ tension?: number | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TrailMapStaticElementOneOf
46
+ */
47
+ liftUuid: string;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const TrailMapStaticElementOneOfTypeEnum: {
53
+ readonly Lift: "lift";
54
+ readonly UnknownDefaultOpenApi: "11184809";
55
+ };
56
+ export type TrailMapStaticElementOneOfTypeEnum = typeof TrailMapStaticElementOneOfTypeEnum[keyof typeof TrailMapStaticElementOneOfTypeEnum];
57
+ /**
58
+ * Check if a given object implements the TrailMapStaticElementOneOf interface.
59
+ */
60
+ export declare function instanceOfTrailMapStaticElementOneOf(value: object): value is TrailMapStaticElementOneOf;
61
+ export declare function TrailMapStaticElementOneOfFromJSON(json: any): TrailMapStaticElementOneOf;
62
+ export declare function TrailMapStaticElementOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf;
63
+ export declare function TrailMapStaticElementOneOfToJSON(json: any): TrailMapStaticElementOneOf;
64
+ export declare function TrailMapStaticElementOneOfToJSONTyped(value?: TrailMapStaticElementOneOf | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.TrailMapStaticElementOneOfTypeEnum = void 0;
17
+ exports.instanceOfTrailMapStaticElementOneOf = instanceOfTrailMapStaticElementOneOf;
18
+ exports.TrailMapStaticElementOneOfFromJSON = TrailMapStaticElementOneOfFromJSON;
19
+ exports.TrailMapStaticElementOneOfFromJSONTyped = TrailMapStaticElementOneOfFromJSONTyped;
20
+ exports.TrailMapStaticElementOneOfToJSON = TrailMapStaticElementOneOfToJSON;
21
+ exports.TrailMapStaticElementOneOfToJSONTyped = TrailMapStaticElementOneOfToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.TrailMapStaticElementOneOfTypeEnum = {
26
+ Lift: 'lift',
27
+ UnknownDefaultOpenApi: '11184809'
28
+ };
29
+ /**
30
+ * Check if a given object implements the TrailMapStaticElementOneOf interface.
31
+ */
32
+ function instanceOfTrailMapStaticElementOneOf(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (value['type'] !== 'lift')
36
+ return false;
37
+ if (!('uuid' in value) || value['uuid'] === undefined)
38
+ return false;
39
+ if (!('points' in value) || value['points'] === undefined)
40
+ return false;
41
+ if ((!('liftUuid' in value) && !('lift_uuid' in value)) || (value['liftUuid'] === undefined && value['lift_uuid'] === undefined))
42
+ return false;
43
+ return true;
44
+ }
45
+ function TrailMapStaticElementOneOfFromJSON(json) {
46
+ return TrailMapStaticElementOneOfFromJSONTyped(json, false);
47
+ }
48
+ function TrailMapStaticElementOneOfFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'type': json['type'],
54
+ 'uuid': json['uuid'],
55
+ 'points': json['points'],
56
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
57
+ 'liftUuid': json['lift_uuid'],
58
+ };
59
+ }
60
+ function TrailMapStaticElementOneOfToJSON(json) {
61
+ return TrailMapStaticElementOneOfToJSONTyped(json, false);
62
+ }
63
+ function TrailMapStaticElementOneOfToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'type': value['type'],
69
+ 'uuid': value['uuid'],
70
+ 'points': value['points'],
71
+ 'tension': value['tension'],
72
+ 'lift_uuid': value['liftUuid'],
73
+ };
74
+ }
@@ -0,0 +1,78 @@
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 { LabelOffset } from './LabelOffset';
13
+ import type { GeometryMode } from './GeometryMode';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TrailMapStaticElementOneOf1
18
+ */
19
+ export interface TrailMapStaticElementOneOf1 {
20
+ /**
21
+ *
22
+ * @type {TrailMapStaticElementOneOf1TypeEnum}
23
+ * @memberof TrailMapStaticElementOneOf1
24
+ */
25
+ type: TrailMapStaticElementOneOf1TypeEnum;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TrailMapStaticElementOneOf1
30
+ */
31
+ uuid: string;
32
+ /**
33
+ *
34
+ * @type {Array<number>}
35
+ * @memberof TrailMapStaticElementOneOf1
36
+ */
37
+ points: Array<number>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof TrailMapStaticElementOneOf1
42
+ */
43
+ tension?: number | null;
44
+ /**
45
+ *
46
+ * @type {GeometryMode}
47
+ * @memberof TrailMapStaticElementOneOf1
48
+ */
49
+ geometry?: GeometryMode | null;
50
+ /**
51
+ *
52
+ * @type {LabelOffset}
53
+ * @memberof TrailMapStaticElementOneOf1
54
+ */
55
+ labelOffset?: LabelOffset | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof TrailMapStaticElementOneOf1
60
+ */
61
+ runUuid: string;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const TrailMapStaticElementOneOf1TypeEnum: {
67
+ readonly Run: "run";
68
+ readonly UnknownDefaultOpenApi: "11184809";
69
+ };
70
+ export type TrailMapStaticElementOneOf1TypeEnum = typeof TrailMapStaticElementOneOf1TypeEnum[keyof typeof TrailMapStaticElementOneOf1TypeEnum];
71
+ /**
72
+ * Check if a given object implements the TrailMapStaticElementOneOf1 interface.
73
+ */
74
+ export declare function instanceOfTrailMapStaticElementOneOf1(value: object): value is TrailMapStaticElementOneOf1;
75
+ export declare function TrailMapStaticElementOneOf1FromJSON(json: any): TrailMapStaticElementOneOf1;
76
+ export declare function TrailMapStaticElementOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf1;
77
+ export declare function TrailMapStaticElementOneOf1ToJSON(json: any): TrailMapStaticElementOneOf1;
78
+ export declare function TrailMapStaticElementOneOf1ToJSONTyped(value?: TrailMapStaticElementOneOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.TrailMapStaticElementOneOf1TypeEnum = void 0;
17
+ exports.instanceOfTrailMapStaticElementOneOf1 = instanceOfTrailMapStaticElementOneOf1;
18
+ exports.TrailMapStaticElementOneOf1FromJSON = TrailMapStaticElementOneOf1FromJSON;
19
+ exports.TrailMapStaticElementOneOf1FromJSONTyped = TrailMapStaticElementOneOf1FromJSONTyped;
20
+ exports.TrailMapStaticElementOneOf1ToJSON = TrailMapStaticElementOneOf1ToJSON;
21
+ exports.TrailMapStaticElementOneOf1ToJSONTyped = TrailMapStaticElementOneOf1ToJSONTyped;
22
+ const LabelOffset_1 = require("./LabelOffset");
23
+ const GeometryMode_1 = require("./GeometryMode");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.TrailMapStaticElementOneOf1TypeEnum = {
28
+ Run: 'run',
29
+ UnknownDefaultOpenApi: '11184809'
30
+ };
31
+ /**
32
+ * Check if a given object implements the TrailMapStaticElementOneOf1 interface.
33
+ */
34
+ function instanceOfTrailMapStaticElementOneOf1(value) {
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (value['type'] !== 'run')
38
+ return false;
39
+ if (!('uuid' in value) || value['uuid'] === undefined)
40
+ return false;
41
+ if (!('points' in value) || value['points'] === undefined)
42
+ return false;
43
+ if ((!('runUuid' in value) && !('run_uuid' in value)) || (value['runUuid'] === undefined && value['run_uuid'] === undefined))
44
+ return false;
45
+ return true;
46
+ }
47
+ function TrailMapStaticElementOneOf1FromJSON(json) {
48
+ return TrailMapStaticElementOneOf1FromJSONTyped(json, false);
49
+ }
50
+ function TrailMapStaticElementOneOf1FromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'type': json['type'],
56
+ 'uuid': json['uuid'],
57
+ 'points': json['points'],
58
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
59
+ 'geometry': json['geometry'] === undefined ? undefined : json['geometry'] === null ? null : (0, GeometryMode_1.GeometryModeFromJSON)(json['geometry']),
60
+ 'labelOffset': json['label_offset'] === undefined ? undefined : json['label_offset'] === null ? null : (0, LabelOffset_1.LabelOffsetFromJSON)(json['label_offset']),
61
+ 'runUuid': json['run_uuid'],
62
+ };
63
+ }
64
+ function TrailMapStaticElementOneOf1ToJSON(json) {
65
+ return TrailMapStaticElementOneOf1ToJSONTyped(json, false);
66
+ }
67
+ function TrailMapStaticElementOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'type': value['type'],
73
+ 'uuid': value['uuid'],
74
+ 'points': value['points'],
75
+ 'tension': value['tension'],
76
+ 'geometry': (0, GeometryMode_1.GeometryModeToJSON)(value['geometry']),
77
+ 'label_offset': (0, LabelOffset_1.LabelOffsetToJSON)(value['labelOffset']),
78
+ 'run_uuid': value['runUuid'],
79
+ };
80
+ }
@@ -0,0 +1,78 @@
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 { LabelOffset } from './LabelOffset';
13
+ import type { GeometryMode } from './GeometryMode';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TrailMapStaticElementOneOf2
18
+ */
19
+ export interface TrailMapStaticElementOneOf2 {
20
+ /**
21
+ *
22
+ * @type {TrailMapStaticElementOneOf2TypeEnum}
23
+ * @memberof TrailMapStaticElementOneOf2
24
+ */
25
+ type: TrailMapStaticElementOneOf2TypeEnum;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof TrailMapStaticElementOneOf2
30
+ */
31
+ uuid: string;
32
+ /**
33
+ *
34
+ * @type {Array<number>}
35
+ * @memberof TrailMapStaticElementOneOf2
36
+ */
37
+ points: Array<number>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof TrailMapStaticElementOneOf2
42
+ */
43
+ tension?: number | null;
44
+ /**
45
+ *
46
+ * @type {GeometryMode}
47
+ * @memberof TrailMapStaticElementOneOf2
48
+ */
49
+ geometry?: GeometryMode | null;
50
+ /**
51
+ *
52
+ * @type {LabelOffset}
53
+ * @memberof TrailMapStaticElementOneOf2
54
+ */
55
+ labelOffset?: LabelOffset | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof TrailMapStaticElementOneOf2
60
+ */
61
+ terrainParkUuid: string;
62
+ }
63
+ /**
64
+ * @export
65
+ */
66
+ export declare const TrailMapStaticElementOneOf2TypeEnum: {
67
+ readonly TerrainPark: "terrain_park";
68
+ readonly UnknownDefaultOpenApi: "11184809";
69
+ };
70
+ export type TrailMapStaticElementOneOf2TypeEnum = typeof TrailMapStaticElementOneOf2TypeEnum[keyof typeof TrailMapStaticElementOneOf2TypeEnum];
71
+ /**
72
+ * Check if a given object implements the TrailMapStaticElementOneOf2 interface.
73
+ */
74
+ export declare function instanceOfTrailMapStaticElementOneOf2(value: object): value is TrailMapStaticElementOneOf2;
75
+ export declare function TrailMapStaticElementOneOf2FromJSON(json: any): TrailMapStaticElementOneOf2;
76
+ export declare function TrailMapStaticElementOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf2;
77
+ export declare function TrailMapStaticElementOneOf2ToJSON(json: any): TrailMapStaticElementOneOf2;
78
+ export declare function TrailMapStaticElementOneOf2ToJSONTyped(value?: TrailMapStaticElementOneOf2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.TrailMapStaticElementOneOf2TypeEnum = void 0;
17
+ exports.instanceOfTrailMapStaticElementOneOf2 = instanceOfTrailMapStaticElementOneOf2;
18
+ exports.TrailMapStaticElementOneOf2FromJSON = TrailMapStaticElementOneOf2FromJSON;
19
+ exports.TrailMapStaticElementOneOf2FromJSONTyped = TrailMapStaticElementOneOf2FromJSONTyped;
20
+ exports.TrailMapStaticElementOneOf2ToJSON = TrailMapStaticElementOneOf2ToJSON;
21
+ exports.TrailMapStaticElementOneOf2ToJSONTyped = TrailMapStaticElementOneOf2ToJSONTyped;
22
+ const LabelOffset_1 = require("./LabelOffset");
23
+ const GeometryMode_1 = require("./GeometryMode");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.TrailMapStaticElementOneOf2TypeEnum = {
28
+ TerrainPark: 'terrain_park',
29
+ UnknownDefaultOpenApi: '11184809'
30
+ };
31
+ /**
32
+ * Check if a given object implements the TrailMapStaticElementOneOf2 interface.
33
+ */
34
+ function instanceOfTrailMapStaticElementOneOf2(value) {
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (value['type'] !== 'terrain_park')
38
+ return false;
39
+ if (!('uuid' in value) || value['uuid'] === undefined)
40
+ return false;
41
+ if (!('points' in value) || value['points'] === undefined)
42
+ return false;
43
+ if ((!('terrainParkUuid' in value) && !('terrain_park_uuid' in value)) || (value['terrainParkUuid'] === undefined && value['terrain_park_uuid'] === undefined))
44
+ return false;
45
+ return true;
46
+ }
47
+ function TrailMapStaticElementOneOf2FromJSON(json) {
48
+ return TrailMapStaticElementOneOf2FromJSONTyped(json, false);
49
+ }
50
+ function TrailMapStaticElementOneOf2FromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'type': json['type'],
56
+ 'uuid': json['uuid'],
57
+ 'points': json['points'],
58
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
59
+ 'geometry': json['geometry'] === undefined ? undefined : json['geometry'] === null ? null : (0, GeometryMode_1.GeometryModeFromJSON)(json['geometry']),
60
+ 'labelOffset': json['label_offset'] === undefined ? undefined : json['label_offset'] === null ? null : (0, LabelOffset_1.LabelOffsetFromJSON)(json['label_offset']),
61
+ 'terrainParkUuid': json['terrain_park_uuid'],
62
+ };
63
+ }
64
+ function TrailMapStaticElementOneOf2ToJSON(json) {
65
+ return TrailMapStaticElementOneOf2ToJSONTyped(json, false);
66
+ }
67
+ function TrailMapStaticElementOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'type': value['type'],
73
+ 'uuid': value['uuid'],
74
+ 'points': value['points'],
75
+ 'tension': value['tension'],
76
+ 'geometry': (0, GeometryMode_1.GeometryModeToJSON)(value['geometry']),
77
+ 'label_offset': (0, LabelOffset_1.LabelOffsetToJSON)(value['labelOffset']),
78
+ 'terrain_park_uuid': value['terrainParkUuid'],
79
+ };
80
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * MtnManager API
3
+ * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@mtnmanager.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TrailMapStaticElementOneOf3
16
+ */
17
+ export interface TrailMapStaticElementOneOf3 {
18
+ /**
19
+ *
20
+ * @type {TrailMapStaticElementOneOf3TypeEnum}
21
+ * @memberof TrailMapStaticElementOneOf3
22
+ */
23
+ type: TrailMapStaticElementOneOf3TypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TrailMapStaticElementOneOf3
28
+ */
29
+ uuid: string;
30
+ /**
31
+ *
32
+ * @type {Array<number>}
33
+ * @memberof TrailMapStaticElementOneOf3
34
+ */
35
+ points: Array<number>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TrailMapStaticElementOneOf3
40
+ */
41
+ tension?: number | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TrailMapStaticElementOneOf3
46
+ */
47
+ summerTrailUuid: string;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const TrailMapStaticElementOneOf3TypeEnum: {
53
+ readonly SummerTrail: "summer_trail";
54
+ readonly UnknownDefaultOpenApi: "11184809";
55
+ };
56
+ export type TrailMapStaticElementOneOf3TypeEnum = typeof TrailMapStaticElementOneOf3TypeEnum[keyof typeof TrailMapStaticElementOneOf3TypeEnum];
57
+ /**
58
+ * Check if a given object implements the TrailMapStaticElementOneOf3 interface.
59
+ */
60
+ export declare function instanceOfTrailMapStaticElementOneOf3(value: object): value is TrailMapStaticElementOneOf3;
61
+ export declare function TrailMapStaticElementOneOf3FromJSON(json: any): TrailMapStaticElementOneOf3;
62
+ export declare function TrailMapStaticElementOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf3;
63
+ export declare function TrailMapStaticElementOneOf3ToJSON(json: any): TrailMapStaticElementOneOf3;
64
+ export declare function TrailMapStaticElementOneOf3ToJSONTyped(value?: TrailMapStaticElementOneOf3 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.TrailMapStaticElementOneOf3TypeEnum = void 0;
17
+ exports.instanceOfTrailMapStaticElementOneOf3 = instanceOfTrailMapStaticElementOneOf3;
18
+ exports.TrailMapStaticElementOneOf3FromJSON = TrailMapStaticElementOneOf3FromJSON;
19
+ exports.TrailMapStaticElementOneOf3FromJSONTyped = TrailMapStaticElementOneOf3FromJSONTyped;
20
+ exports.TrailMapStaticElementOneOf3ToJSON = TrailMapStaticElementOneOf3ToJSON;
21
+ exports.TrailMapStaticElementOneOf3ToJSONTyped = TrailMapStaticElementOneOf3ToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.TrailMapStaticElementOneOf3TypeEnum = {
26
+ SummerTrail: 'summer_trail',
27
+ UnknownDefaultOpenApi: '11184809'
28
+ };
29
+ /**
30
+ * Check if a given object implements the TrailMapStaticElementOneOf3 interface.
31
+ */
32
+ function instanceOfTrailMapStaticElementOneOf3(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (value['type'] !== 'summer_trail')
36
+ return false;
37
+ if (!('uuid' in value) || value['uuid'] === undefined)
38
+ return false;
39
+ if (!('points' in value) || value['points'] === undefined)
40
+ return false;
41
+ if ((!('summerTrailUuid' in value) && !('summer_trail_uuid' in value)) || (value['summerTrailUuid'] === undefined && value['summer_trail_uuid'] === undefined))
42
+ return false;
43
+ return true;
44
+ }
45
+ function TrailMapStaticElementOneOf3FromJSON(json) {
46
+ return TrailMapStaticElementOneOf3FromJSONTyped(json, false);
47
+ }
48
+ function TrailMapStaticElementOneOf3FromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'type': json['type'],
54
+ 'uuid': json['uuid'],
55
+ 'points': json['points'],
56
+ 'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
57
+ 'summerTrailUuid': json['summer_trail_uuid'],
58
+ };
59
+ }
60
+ function TrailMapStaticElementOneOf3ToJSON(json) {
61
+ return TrailMapStaticElementOneOf3ToJSONTyped(json, false);
62
+ }
63
+ function TrailMapStaticElementOneOf3ToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'type': value['type'],
69
+ 'uuid': value['uuid'],
70
+ 'points': value['points'],
71
+ 'tension': value['tension'],
72
+ 'summer_trail_uuid': value['summerTrailUuid'],
73
+ };
74
+ }