@mtnmanager/sdk 0.0.31 → 0.0.33
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.33
|
|
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.33`
|
|
116
116
|
- Generator version: `7.18.0`
|
|
117
117
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
118
118
|
|
|
@@ -49,17 +49,24 @@ export interface PublicResortStatus {
|
|
|
49
49
|
*/
|
|
50
50
|
season: SeasonType;
|
|
51
51
|
/**
|
|
52
|
-
* General notes or announcements about current conditions.
|
|
52
|
+
* General notes or announcements about current conditions (markdown source).
|
|
53
53
|
* @type {string}
|
|
54
54
|
* @memberof PublicResortStatus
|
|
55
55
|
*/
|
|
56
56
|
notes: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* General notes or announcements rendered as HTML from markdown.
|
|
59
|
+
* Images are stripped for security.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PublicResortStatus
|
|
62
|
+
*/
|
|
63
|
+
notesHtml: string;
|
|
64
|
+
/**
|
|
65
|
+
* When the resort status notes were last updated.
|
|
59
66
|
* @type {Date}
|
|
60
67
|
* @memberof PublicResortStatus
|
|
61
68
|
*/
|
|
62
|
-
|
|
69
|
+
notesUpdatedAt?: Date | null;
|
|
63
70
|
/**
|
|
64
71
|
* Number of runs currently open.
|
|
65
72
|
* Only included if the runs status feature is enabled.
|
|
@@ -124,6 +131,25 @@ export interface PublicResortStatus {
|
|
|
124
131
|
* @memberof PublicResortStatus
|
|
125
132
|
*/
|
|
126
133
|
summerTrailsUpdatedAt?: Date | null;
|
|
134
|
+
/**
|
|
135
|
+
* Number of terrain parks currently open.
|
|
136
|
+
* Only included if the terrain parks feature is enabled.
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof PublicResortStatus
|
|
139
|
+
*/
|
|
140
|
+
openTerrainParks?: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* Total number of terrain parks at the resort.
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof PublicResortStatus
|
|
145
|
+
*/
|
|
146
|
+
totalTerrainParks?: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* When terrain park statuses were last updated.
|
|
149
|
+
* @type {Date}
|
|
150
|
+
* @memberof PublicResortStatus
|
|
151
|
+
*/
|
|
152
|
+
terrainParksUpdatedAt?: Date | null;
|
|
127
153
|
}
|
|
128
154
|
/**
|
|
129
155
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -23,6 +23,8 @@ export function instanceOfPublicResortStatus(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('notes' in value) || value['notes'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('notesHtml' in value) || value['notesHtml'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
27
29
|
return false;
|
|
28
30
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
@@ -42,7 +44,8 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
43
45
|
'season': SeasonTypeFromJSON(json['season']),
|
|
44
46
|
'notes': json['notes'],
|
|
45
|
-
'
|
|
47
|
+
'notesHtml': json['notes_html'],
|
|
48
|
+
'notesUpdatedAt': json['notes_updated_at'] == null ? undefined : (new Date(json['notes_updated_at'])),
|
|
46
49
|
'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
|
|
47
50
|
'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
|
|
48
51
|
'totalRuns': json['total_runs'],
|
|
@@ -53,6 +56,9 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
56
|
'openSummerTrails': json['open_summer_trails'] == null ? undefined : json['open_summer_trails'],
|
|
54
57
|
'totalSummerTrails': json['total_summer_trails'] == null ? undefined : json['total_summer_trails'],
|
|
55
58
|
'summerTrailsUpdatedAt': json['summer_trails_updated_at'] == null ? undefined : (new Date(json['summer_trails_updated_at'])),
|
|
59
|
+
'openTerrainParks': json['open_terrain_parks'] == null ? undefined : json['open_terrain_parks'],
|
|
60
|
+
'totalTerrainParks': json['total_terrain_parks'] == null ? undefined : json['total_terrain_parks'],
|
|
61
|
+
'terrainParksUpdatedAt': json['terrain_parks_updated_at'] == null ? undefined : (new Date(json['terrain_parks_updated_at'])),
|
|
56
62
|
};
|
|
57
63
|
}
|
|
58
64
|
export function PublicResortStatusToJSON(json) {
|
|
@@ -68,7 +74,8 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
68
74
|
'closes_at': value['closesAt'],
|
|
69
75
|
'season': SeasonTypeToJSON(value['season']),
|
|
70
76
|
'notes': value['notes'],
|
|
71
|
-
'
|
|
77
|
+
'notes_html': value['notesHtml'],
|
|
78
|
+
'notes_updated_at': value['notesUpdatedAt'] == null ? value['notesUpdatedAt'] : value['notesUpdatedAt'].toISOString(),
|
|
72
79
|
'open_runs': value['openRuns'],
|
|
73
80
|
'groomed_runs': value['groomedRuns'],
|
|
74
81
|
'total_runs': value['totalRuns'],
|
|
@@ -79,5 +86,8 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
79
86
|
'open_summer_trails': value['openSummerTrails'],
|
|
80
87
|
'total_summer_trails': value['totalSummerTrails'],
|
|
81
88
|
'summer_trails_updated_at': value['summerTrailsUpdatedAt'] == null ? value['summerTrailsUpdatedAt'] : value['summerTrailsUpdatedAt'].toISOString(),
|
|
89
|
+
'open_terrain_parks': value['openTerrainParks'],
|
|
90
|
+
'total_terrain_parks': value['totalTerrainParks'],
|
|
91
|
+
'terrain_parks_updated_at': value['terrainParksUpdatedAt'] == null ? value['terrainParksUpdatedAt'] : value['terrainParksUpdatedAt'].toISOString(),
|
|
82
92
|
};
|
|
83
93
|
}
|
|
@@ -49,17 +49,24 @@ export interface PublicResortStatus {
|
|
|
49
49
|
*/
|
|
50
50
|
season: SeasonType;
|
|
51
51
|
/**
|
|
52
|
-
* General notes or announcements about current conditions.
|
|
52
|
+
* General notes or announcements about current conditions (markdown source).
|
|
53
53
|
* @type {string}
|
|
54
54
|
* @memberof PublicResortStatus
|
|
55
55
|
*/
|
|
56
56
|
notes: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* General notes or announcements rendered as HTML from markdown.
|
|
59
|
+
* Images are stripped for security.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PublicResortStatus
|
|
62
|
+
*/
|
|
63
|
+
notesHtml: string;
|
|
64
|
+
/**
|
|
65
|
+
* When the resort status notes were last updated.
|
|
59
66
|
* @type {Date}
|
|
60
67
|
* @memberof PublicResortStatus
|
|
61
68
|
*/
|
|
62
|
-
|
|
69
|
+
notesUpdatedAt?: Date | null;
|
|
63
70
|
/**
|
|
64
71
|
* Number of runs currently open.
|
|
65
72
|
* Only included if the runs status feature is enabled.
|
|
@@ -124,6 +131,25 @@ export interface PublicResortStatus {
|
|
|
124
131
|
* @memberof PublicResortStatus
|
|
125
132
|
*/
|
|
126
133
|
summerTrailsUpdatedAt?: Date | null;
|
|
134
|
+
/**
|
|
135
|
+
* Number of terrain parks currently open.
|
|
136
|
+
* Only included if the terrain parks feature is enabled.
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof PublicResortStatus
|
|
139
|
+
*/
|
|
140
|
+
openTerrainParks?: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* Total number of terrain parks at the resort.
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof PublicResortStatus
|
|
145
|
+
*/
|
|
146
|
+
totalTerrainParks?: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* When terrain park statuses were last updated.
|
|
149
|
+
* @type {Date}
|
|
150
|
+
* @memberof PublicResortStatus
|
|
151
|
+
*/
|
|
152
|
+
terrainParksUpdatedAt?: Date | null;
|
|
127
153
|
}
|
|
128
154
|
/**
|
|
129
155
|
* Check if a given object implements the PublicResortStatus interface.
|
|
@@ -30,6 +30,8 @@ function instanceOfPublicResortStatus(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('notes' in value) || value['notes'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('notesHtml' in value) || value['notesHtml'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
@@ -49,7 +51,8 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
|
|
50
52
|
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
51
53
|
'notes': json['notes'],
|
|
52
|
-
'
|
|
54
|
+
'notesHtml': json['notes_html'],
|
|
55
|
+
'notesUpdatedAt': json['notes_updated_at'] == null ? undefined : (new Date(json['notes_updated_at'])),
|
|
53
56
|
'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
|
|
54
57
|
'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
|
|
55
58
|
'totalRuns': json['total_runs'],
|
|
@@ -60,6 +63,9 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
63
|
'openSummerTrails': json['open_summer_trails'] == null ? undefined : json['open_summer_trails'],
|
|
61
64
|
'totalSummerTrails': json['total_summer_trails'] == null ? undefined : json['total_summer_trails'],
|
|
62
65
|
'summerTrailsUpdatedAt': json['summer_trails_updated_at'] == null ? undefined : (new Date(json['summer_trails_updated_at'])),
|
|
66
|
+
'openTerrainParks': json['open_terrain_parks'] == null ? undefined : json['open_terrain_parks'],
|
|
67
|
+
'totalTerrainParks': json['total_terrain_parks'] == null ? undefined : json['total_terrain_parks'],
|
|
68
|
+
'terrainParksUpdatedAt': json['terrain_parks_updated_at'] == null ? undefined : (new Date(json['terrain_parks_updated_at'])),
|
|
63
69
|
};
|
|
64
70
|
}
|
|
65
71
|
function PublicResortStatusToJSON(json) {
|
|
@@ -75,7 +81,8 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
81
|
'closes_at': value['closesAt'],
|
|
76
82
|
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
77
83
|
'notes': value['notes'],
|
|
78
|
-
'
|
|
84
|
+
'notes_html': value['notesHtml'],
|
|
85
|
+
'notes_updated_at': value['notesUpdatedAt'] == null ? value['notesUpdatedAt'] : value['notesUpdatedAt'].toISOString(),
|
|
79
86
|
'open_runs': value['openRuns'],
|
|
80
87
|
'groomed_runs': value['groomedRuns'],
|
|
81
88
|
'total_runs': value['totalRuns'],
|
|
@@ -86,5 +93,8 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
93
|
'open_summer_trails': value['openSummerTrails'],
|
|
87
94
|
'total_summer_trails': value['totalSummerTrails'],
|
|
88
95
|
'summer_trails_updated_at': value['summerTrailsUpdatedAt'] == null ? value['summerTrailsUpdatedAt'] : value['summerTrailsUpdatedAt'].toISOString(),
|
|
96
|
+
'open_terrain_parks': value['openTerrainParks'],
|
|
97
|
+
'total_terrain_parks': value['totalTerrainParks'],
|
|
98
|
+
'terrain_parks_updated_at': value['terrainParksUpdatedAt'] == null ? value['terrainParksUpdatedAt'] : value['terrainParksUpdatedAt'].toISOString(),
|
|
89
99
|
};
|
|
90
100
|
}
|