@mtnmanager/sdk 0.0.19 → 0.0.21
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/PublicResortResponse.d.ts +1 -1
- package/dist/esm/models/PublicResortResponse.js +3 -1
- package/dist/esm/models/PublicResortStatus.d.ts +3 -3
- package/dist/esm/models/PublicResortStatus.js +3 -9
- package/dist/esm/models/WeatherData.d.ts +2 -2
- package/dist/models/PublicResortResponse.d.ts +1 -1
- package/dist/models/PublicResortResponse.js +3 -1
- package/dist/models/PublicResortStatus.d.ts +3 -3
- package/dist/models/PublicResortStatus.js +3 -9
- package/dist/models/WeatherData.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @mtnmanager/sdk@0.0.
|
|
1
|
+
# @mtnmanager/sdk@0.0.21
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-resort.mtnmanager.com API.
|
|
4
4
|
|
|
@@ -101,7 +101,7 @@ and is automatically generated by the
|
|
|
101
101
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
102
102
|
|
|
103
103
|
- API version: `1.0.0`
|
|
104
|
-
- Package version: `0.0.
|
|
104
|
+
- Package version: `0.0.21`
|
|
105
105
|
- Generator version: `7.18.0`
|
|
106
106
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
107
107
|
|
|
@@ -24,6 +24,8 @@ import { WeatherDataFromJSON, WeatherDataToJSON, } from './WeatherData';
|
|
|
24
24
|
export function instanceOfPublicResortResponse(value) {
|
|
25
25
|
if (!('resort' in value) || value['resort'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('runs' in value) || value['runs'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('lifts' in value) || value['lifts'] === undefined)
|
|
@@ -41,7 +43,7 @@ export function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
}
|
|
42
44
|
return {
|
|
43
45
|
'resort': PublicResortInfoFromJSON(json['resort']),
|
|
44
|
-
'status':
|
|
46
|
+
'status': PublicResortStatusFromJSON(json['status']),
|
|
45
47
|
'runs': (json['runs'].map(PublicRunFromJSON)),
|
|
46
48
|
'lifts': (json['lifts'].map(PublicLiftFromJSON)),
|
|
47
49
|
'snow': (json['snow'].map(PublicSnowReportFromJSON)),
|
|
@@ -58,13 +58,13 @@ export interface PublicResortStatus {
|
|
|
58
58
|
* @type {number}
|
|
59
59
|
* @memberof PublicResortStatus
|
|
60
60
|
*/
|
|
61
|
-
openRuns
|
|
61
|
+
openRuns?: number | null;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {number}
|
|
65
65
|
* @memberof PublicResortStatus
|
|
66
66
|
*/
|
|
67
|
-
groomedRuns
|
|
67
|
+
groomedRuns?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {number}
|
|
@@ -82,7 +82,7 @@ export interface PublicResortStatus {
|
|
|
82
82
|
* @type {number}
|
|
83
83
|
* @memberof PublicResortStatus
|
|
84
84
|
*/
|
|
85
|
-
openLifts
|
|
85
|
+
openLifts?: number | null;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {number}
|
|
@@ -23,14 +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 (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
29
|
-
return false;
|
|
30
26
|
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
31
27
|
return false;
|
|
32
|
-
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
33
|
-
return false;
|
|
34
28
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
35
29
|
return false;
|
|
36
30
|
return true;
|
|
@@ -49,11 +43,11 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
43
|
'season': SeasonTypeFromJSON(json['season']),
|
|
50
44
|
'notes': json['notes'],
|
|
51
45
|
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
52
|
-
'openRuns': json['open_runs'],
|
|
53
|
-
'groomedRuns': json['groomed_runs'],
|
|
46
|
+
'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
|
|
47
|
+
'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
|
|
54
48
|
'totalRuns': json['total_runs'],
|
|
55
49
|
'runsUpdatedAt': json['runs_updated_at'] == null ? undefined : json['runs_updated_at'],
|
|
56
|
-
'openLifts': json['open_lifts'],
|
|
50
|
+
'openLifts': json['open_lifts'] == null ? undefined : json['open_lifts'],
|
|
57
51
|
'totalLifts': json['total_lifts'],
|
|
58
52
|
'liftsUpdatedAt': json['lifts_updated_at'] == null ? undefined : json['lifts_updated_at'],
|
|
59
53
|
};
|
|
@@ -25,13 +25,13 @@ export interface WeatherData {
|
|
|
25
25
|
*/
|
|
26
26
|
current: CurrentWeather;
|
|
27
27
|
/**
|
|
28
|
-
* Hourly forecast for next 24 hours (
|
|
28
|
+
* Hourly forecast for next 24 hours (including current hour)
|
|
29
29
|
* @type {Array<HourlyForecast>}
|
|
30
30
|
* @memberof WeatherData
|
|
31
31
|
*/
|
|
32
32
|
hourlyForecast: Array<HourlyForecast>;
|
|
33
33
|
/**
|
|
34
|
-
* Daily forecast for next 7 days
|
|
34
|
+
* Daily forecast for next 7 days (including today)
|
|
35
35
|
* @type {Array<DailyForecast>}
|
|
36
36
|
* @memberof WeatherData
|
|
37
37
|
*/
|
|
@@ -31,6 +31,8 @@ const WeatherData_1 = require("./WeatherData");
|
|
|
31
31
|
function instanceOfPublicResortResponse(value) {
|
|
32
32
|
if (!('resort' in value) || value['resort'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('runs' in value) || value['runs'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('lifts' in value) || value['lifts'] === undefined)
|
|
@@ -48,7 +50,7 @@ function PublicResortResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
50
52
|
'resort': (0, PublicResortInfo_1.PublicResortInfoFromJSON)(json['resort']),
|
|
51
|
-
'status':
|
|
53
|
+
'status': (0, PublicResortStatus_1.PublicResortStatusFromJSON)(json['status']),
|
|
52
54
|
'runs': (json['runs'].map(PublicRun_1.PublicRunFromJSON)),
|
|
53
55
|
'lifts': (json['lifts'].map(PublicLift_1.PublicLiftFromJSON)),
|
|
54
56
|
'snow': (json['snow'].map(PublicSnowReport_1.PublicSnowReportFromJSON)),
|
|
@@ -58,13 +58,13 @@ export interface PublicResortStatus {
|
|
|
58
58
|
* @type {number}
|
|
59
59
|
* @memberof PublicResortStatus
|
|
60
60
|
*/
|
|
61
|
-
openRuns
|
|
61
|
+
openRuns?: number | null;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {number}
|
|
65
65
|
* @memberof PublicResortStatus
|
|
66
66
|
*/
|
|
67
|
-
groomedRuns
|
|
67
|
+
groomedRuns?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {number}
|
|
@@ -82,7 +82,7 @@ export interface PublicResortStatus {
|
|
|
82
82
|
* @type {number}
|
|
83
83
|
* @memberof PublicResortStatus
|
|
84
84
|
*/
|
|
85
|
-
openLifts
|
|
85
|
+
openLifts?: number | null;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {number}
|
|
@@ -30,14 +30,8 @@ function instanceOfPublicResortStatus(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('notes' in value) || value['notes'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
36
|
-
return false;
|
|
37
33
|
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
38
34
|
return false;
|
|
39
|
-
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
40
|
-
return false;
|
|
41
35
|
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
42
36
|
return false;
|
|
43
37
|
return true;
|
|
@@ -56,11 +50,11 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
50
|
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
57
51
|
'notes': json['notes'],
|
|
58
52
|
'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
|
|
59
|
-
'openRuns': json['open_runs'],
|
|
60
|
-
'groomedRuns': json['groomed_runs'],
|
|
53
|
+
'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
|
|
54
|
+
'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
|
|
61
55
|
'totalRuns': json['total_runs'],
|
|
62
56
|
'runsUpdatedAt': json['runs_updated_at'] == null ? undefined : json['runs_updated_at'],
|
|
63
|
-
'openLifts': json['open_lifts'],
|
|
57
|
+
'openLifts': json['open_lifts'] == null ? undefined : json['open_lifts'],
|
|
64
58
|
'totalLifts': json['total_lifts'],
|
|
65
59
|
'liftsUpdatedAt': json['lifts_updated_at'] == null ? undefined : json['lifts_updated_at'],
|
|
66
60
|
};
|
|
@@ -25,13 +25,13 @@ export interface WeatherData {
|
|
|
25
25
|
*/
|
|
26
26
|
current: CurrentWeather;
|
|
27
27
|
/**
|
|
28
|
-
* Hourly forecast for next 24 hours (
|
|
28
|
+
* Hourly forecast for next 24 hours (including current hour)
|
|
29
29
|
* @type {Array<HourlyForecast>}
|
|
30
30
|
* @memberof WeatherData
|
|
31
31
|
*/
|
|
32
32
|
hourlyForecast: Array<HourlyForecast>;
|
|
33
33
|
/**
|
|
34
|
-
* Daily forecast for next 7 days
|
|
34
|
+
* Daily forecast for next 7 days (including today)
|
|
35
35
|
* @type {Array<DailyForecast>}
|
|
36
36
|
* @memberof WeatherData
|
|
37
37
|
*/
|