@mtnmanager/sdk 0.0.33 → 0.0.35
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.
- package/README.md +2 -2
- package/dist/esm/models/PublicLift.d.ts +6 -0
- package/dist/esm/models/PublicLift.js +2 -0
- package/dist/esm/models/PublicSnowReport.d.ts +4 -2
- package/dist/esm/models/PublicSnowReport.js +2 -6
- package/dist/models/PublicLift.d.ts +6 -0
- package/dist/models/PublicLift.js +2 -0
- package/dist/models/PublicSnowReport.d.ts +4 -2
- package/dist/models/PublicSnowReport.js +2 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.35
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-resort.mtnmanager.com API.
|
|
4
4
|
|
|
@@ -112,7 +112,7 @@ and is automatically generated by the
|
|
|
112
112
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
113
113
|
|
|
114
114
|
- API version: `1.0.0`
|
|
115
|
-
- Package version: `0.0.
|
|
115
|
+
- Package version: `0.0.35`
|
|
116
116
|
- Generator version: `7.18.0`
|
|
117
117
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
118
118
|
|
|
@@ -38,6 +38,12 @@ export interface PublicLift {
|
|
|
38
38
|
* @memberof PublicLift
|
|
39
39
|
*/
|
|
40
40
|
slug: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional lift number for map reference.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PublicLift
|
|
45
|
+
*/
|
|
46
|
+
number?: number | null;
|
|
41
47
|
/**
|
|
42
48
|
* Type of lift (gondola, quad, etc.).
|
|
43
49
|
* @type {LiftType}
|
|
@@ -42,6 +42,7 @@ export function PublicLiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'uuid': json['uuid'],
|
|
43
43
|
'name': json['name'],
|
|
44
44
|
'slug': json['slug'],
|
|
45
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
45
46
|
'liftType': LiftTypeFromJSON(json['lift_type']),
|
|
46
47
|
'status': LiftStatusFromJSON(json['status']),
|
|
47
48
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
@@ -63,6 +64,7 @@ export function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
64
|
'uuid': value['uuid'],
|
|
64
65
|
'name': value['name'],
|
|
65
66
|
'slug': value['slug'],
|
|
67
|
+
'number': value['number'],
|
|
66
68
|
'lift_type': LiftTypeToJSON(value['liftType']),
|
|
67
69
|
'status': LiftStatusToJSON(value['status']),
|
|
68
70
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
@@ -48,16 +48,18 @@ export interface PublicSnowReport {
|
|
|
48
48
|
areaDisplayOrder?: number | null;
|
|
49
49
|
/**
|
|
50
50
|
* Current base depth in centimeters.
|
|
51
|
+
* Only included if the base depth feature is enabled.
|
|
51
52
|
* @type {number}
|
|
52
53
|
* @memberof PublicSnowReport
|
|
53
54
|
*/
|
|
54
|
-
baseDepthCm
|
|
55
|
+
baseDepthCm?: number | null;
|
|
55
56
|
/**
|
|
56
57
|
* Current base depth in inches.
|
|
58
|
+
* Only included if the base depth feature is enabled.
|
|
57
59
|
* @type {number}
|
|
58
60
|
* @memberof PublicSnowReport
|
|
59
61
|
*/
|
|
60
|
-
baseDepthIn
|
|
62
|
+
baseDepthIn?: number | null;
|
|
61
63
|
/**
|
|
62
64
|
*
|
|
63
65
|
* @type {SurfaceCondition}
|
|
@@ -19,10 +19,6 @@ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCond
|
|
|
19
19
|
export function instanceOfPublicSnowReport(value) {
|
|
20
20
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('baseDepthCm' in value) || value['baseDepthCm'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('baseDepthIn' in value) || value['baseDepthIn'] === undefined)
|
|
25
|
-
return false;
|
|
26
22
|
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
27
23
|
return false;
|
|
28
24
|
if (!('reportedAt' in value) || value['reportedAt'] === undefined)
|
|
@@ -45,8 +41,8 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
41
|
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
46
42
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
47
43
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
48
|
-
'baseDepthCm': json['base_depth_cm'],
|
|
49
|
-
'baseDepthIn': json['base_depth_in'],
|
|
44
|
+
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
45
|
+
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
50
46
|
'surfaceCondition': json['surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['surface_condition']),
|
|
51
47
|
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
52
48
|
'conditionNotes': json['condition_notes'],
|
|
@@ -38,6 +38,12 @@ export interface PublicLift {
|
|
|
38
38
|
* @memberof PublicLift
|
|
39
39
|
*/
|
|
40
40
|
slug: string;
|
|
41
|
+
/**
|
|
42
|
+
* Optional lift number for map reference.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PublicLift
|
|
45
|
+
*/
|
|
46
|
+
number?: number | null;
|
|
41
47
|
/**
|
|
42
48
|
* Type of lift (gondola, quad, etc.).
|
|
43
49
|
* @type {LiftType}
|
|
@@ -49,6 +49,7 @@ function PublicLiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'uuid': json['uuid'],
|
|
50
50
|
'name': json['name'],
|
|
51
51
|
'slug': json['slug'],
|
|
52
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
52
53
|
'liftType': (0, LiftType_1.LiftTypeFromJSON)(json['lift_type']),
|
|
53
54
|
'status': (0, LiftStatus_1.LiftStatusFromJSON)(json['status']),
|
|
54
55
|
'waitTimeMinutes': json['wait_time_minutes'] == null ? undefined : json['wait_time_minutes'],
|
|
@@ -70,6 +71,7 @@ function PublicLiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
71
|
'uuid': value['uuid'],
|
|
71
72
|
'name': value['name'],
|
|
72
73
|
'slug': value['slug'],
|
|
74
|
+
'number': value['number'],
|
|
73
75
|
'lift_type': (0, LiftType_1.LiftTypeToJSON)(value['liftType']),
|
|
74
76
|
'status': (0, LiftStatus_1.LiftStatusToJSON)(value['status']),
|
|
75
77
|
'wait_time_minutes': value['waitTimeMinutes'],
|
|
@@ -48,16 +48,18 @@ export interface PublicSnowReport {
|
|
|
48
48
|
areaDisplayOrder?: number | null;
|
|
49
49
|
/**
|
|
50
50
|
* Current base depth in centimeters.
|
|
51
|
+
* Only included if the base depth feature is enabled.
|
|
51
52
|
* @type {number}
|
|
52
53
|
* @memberof PublicSnowReport
|
|
53
54
|
*/
|
|
54
|
-
baseDepthCm
|
|
55
|
+
baseDepthCm?: number | null;
|
|
55
56
|
/**
|
|
56
57
|
* Current base depth in inches.
|
|
58
|
+
* Only included if the base depth feature is enabled.
|
|
57
59
|
* @type {number}
|
|
58
60
|
* @memberof PublicSnowReport
|
|
59
61
|
*/
|
|
60
|
-
baseDepthIn
|
|
62
|
+
baseDepthIn?: number | null;
|
|
61
63
|
/**
|
|
62
64
|
*
|
|
63
65
|
* @type {SurfaceCondition}
|
|
@@ -26,10 +26,6 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
|
|
|
26
26
|
function instanceOfPublicSnowReport(value) {
|
|
27
27
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('baseDepthCm' in value) || value['baseDepthCm'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('baseDepthIn' in value) || value['baseDepthIn'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
|
|
34
30
|
return false;
|
|
35
31
|
if (!('reportedAt' in value) || value['reportedAt'] === undefined)
|
|
@@ -52,8 +48,8 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
48
|
'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
|
|
53
49
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
54
50
|
'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
|
|
55
|
-
'baseDepthCm': json['base_depth_cm'],
|
|
56
|
-
'baseDepthIn': json['base_depth_in'],
|
|
51
|
+
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
52
|
+
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
57
53
|
'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
|
|
58
54
|
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
|
|
59
55
|
'conditionNotes': json['condition_notes'],
|