@mtnmanager/sdk 0.0.1 → 0.0.4
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 +19 -5
- package/dist/esm/models/CurrentWeather.d.ts +85 -0
- package/dist/esm/models/CurrentWeather.js +77 -0
- package/dist/esm/models/DailyForecast.d.ts +76 -0
- package/dist/esm/models/DailyForecast.js +73 -0
- package/dist/esm/models/DailyForecastImperial.d.ts +62 -0
- package/dist/esm/models/DailyForecastImperial.js +63 -0
- package/dist/esm/models/DailyForecastMetric.d.ts +62 -0
- package/dist/esm/models/DailyForecastMetric.js +63 -0
- package/dist/esm/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/esm/models/{HoursInfo.js → DayHours.js} +8 -8
- package/dist/esm/models/HourlyForecast.d.ts +70 -0
- package/dist/esm/models/HourlyForecast.js +69 -0
- package/dist/esm/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/esm/models/HourlyForecastImperial.js +63 -0
- package/dist/esm/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/esm/models/HourlyForecastMetric.js +63 -0
- package/dist/esm/models/ImperialUnits.d.ts +68 -0
- package/dist/esm/models/ImperialUnits.js +65 -0
- package/dist/esm/models/MetricUnits.d.ts +68 -0
- package/dist/esm/models/MetricUnits.js +65 -0
- package/dist/esm/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/esm/models/OperatingHoursResponse.js +7 -11
- package/dist/esm/models/PublicResortResponse.d.ts +7 -0
- package/dist/esm/models/PublicResortResponse.js +3 -0
- package/dist/esm/models/PublicResortStatus.d.ts +43 -1
- package/dist/esm/models/PublicResortStatus.js +24 -0
- package/dist/esm/models/PublicRun.d.ts +6 -0
- package/dist/esm/models/PublicRun.js +2 -0
- package/dist/esm/models/PublicSnowReport.d.ts +12 -0
- package/dist/esm/models/PublicSnowReport.js +4 -0
- package/dist/esm/models/RecurrencePattern.d.ts +24 -0
- package/dist/esm/models/RecurrencePattern.js +58 -0
- package/dist/esm/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/esm/models/RecurrencePatternOneOf1.js +49 -0
- package/dist/esm/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/esm/models/RecurrencePatternOneOf2.js +53 -0
- package/dist/esm/models/Schedule.d.ts +81 -0
- package/dist/esm/models/Schedule.js +76 -0
- package/dist/esm/models/SurfaceCondition.d.ts +16 -7
- package/dist/esm/models/SurfaceCondition.js +16 -7
- package/dist/esm/models/WeatherData.d.ts +59 -0
- package/dist/esm/models/WeatherData.js +62 -0
- package/dist/esm/models/index.d.ts +16 -2
- package/dist/esm/models/index.js +16 -2
- package/dist/models/CurrentWeather.d.ts +85 -0
- package/dist/models/CurrentWeather.js +84 -0
- package/dist/models/DailyForecast.d.ts +76 -0
- package/dist/models/DailyForecast.js +80 -0
- package/dist/models/DailyForecastImperial.d.ts +62 -0
- package/dist/models/DailyForecastImperial.js +70 -0
- package/dist/models/DailyForecastMetric.d.ts +62 -0
- package/dist/models/DailyForecastMetric.js +70 -0
- package/dist/models/{HoursInfo.d.ts → DayHours.d.ts} +12 -12
- package/dist/models/{HoursInfo.js → DayHours.js} +13 -13
- package/dist/models/HourlyForecast.d.ts +70 -0
- package/dist/models/HourlyForecast.js +76 -0
- package/dist/models/HourlyForecastImperial.d.ts +62 -0
- package/dist/models/HourlyForecastImperial.js +70 -0
- package/dist/models/HourlyForecastMetric.d.ts +62 -0
- package/dist/models/HourlyForecastMetric.js +70 -0
- package/dist/models/ImperialUnits.d.ts +68 -0
- package/dist/models/ImperialUnits.js +72 -0
- package/dist/models/MetricUnits.d.ts +68 -0
- package/dist/models/MetricUnits.js +72 -0
- package/dist/models/OperatingHoursResponse.d.ts +6 -12
- package/dist/models/OperatingHoursResponse.js +7 -11
- package/dist/models/PublicResortResponse.d.ts +7 -0
- package/dist/models/PublicResortResponse.js +3 -0
- package/dist/models/PublicResortStatus.d.ts +43 -1
- package/dist/models/PublicResortStatus.js +24 -0
- package/dist/models/PublicRun.d.ts +6 -0
- package/dist/models/PublicRun.js +2 -0
- package/dist/models/PublicSnowReport.d.ts +12 -0
- package/dist/models/PublicSnowReport.js +4 -0
- package/dist/models/RecurrencePattern.d.ts +24 -0
- package/dist/models/RecurrencePattern.js +64 -0
- package/dist/models/RecurrencePatternOneOf.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf.js +57 -0
- package/dist/models/RecurrencePatternOneOf1.d.ts +39 -0
- package/dist/models/RecurrencePatternOneOf1.js +57 -0
- package/dist/models/RecurrencePatternOneOf2.d.ts +45 -0
- package/dist/models/RecurrencePatternOneOf2.js +61 -0
- package/dist/models/Schedule.d.ts +81 -0
- package/dist/models/Schedule.js +83 -0
- package/dist/models/SurfaceCondition.d.ts +16 -7
- package/dist/models/SurfaceCondition.js +16 -7
- package/dist/models/WeatherData.d.ts +59 -0
- package/dist/models/WeatherData.js +69 -0
- package/dist/models/index.d.ts +16 -2
- package/dist/models/index.js +16 -2
- package/package.json +7 -10
- package/dist/esm/models/RegularHoursDescription.d.ts +0 -50
- package/dist/esm/models/RegularHoursDescription.js +0 -55
- package/dist/models/RegularHoursDescription.d.ts +0 -50
- package/dist/models/RegularHoursDescription.js +0 -62
|
@@ -11,23 +11,65 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ResortStatusType } from './ResortStatusType';
|
|
13
13
|
/**
|
|
14
|
-
* Resort status with optional metadata
|
|
14
|
+
* Resort status with optional metadata and today's scheduled hours
|
|
15
15
|
* @export
|
|
16
16
|
* @interface PublicResortStatus
|
|
17
17
|
*/
|
|
18
18
|
export interface PublicResortStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PublicResortStatus
|
|
23
|
+
*/
|
|
24
|
+
groomedRuns: number;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
22
28
|
* @memberof PublicResortStatus
|
|
23
29
|
*/
|
|
24
30
|
notes?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PublicResortStatus
|
|
35
|
+
*/
|
|
36
|
+
openLifts: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PublicResortStatus
|
|
41
|
+
*/
|
|
42
|
+
openRuns: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PublicResortStatus
|
|
47
|
+
*/
|
|
48
|
+
scheduledClosesAt?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PublicResortStatus
|
|
53
|
+
*/
|
|
54
|
+
scheduledOpensAt?: string | null;
|
|
25
55
|
/**
|
|
26
56
|
*
|
|
27
57
|
* @type {ResortStatusType}
|
|
28
58
|
* @memberof PublicResortStatus
|
|
29
59
|
*/
|
|
30
60
|
status: ResortStatusType;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PublicResortStatus
|
|
65
|
+
*/
|
|
66
|
+
totalLifts: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof PublicResortStatus
|
|
71
|
+
*/
|
|
72
|
+
totalRuns: number;
|
|
31
73
|
/**
|
|
32
74
|
*
|
|
33
75
|
* @type {Date}
|
|
@@ -23,8 +23,18 @@ const ResortStatusType_1 = require("./ResortStatusType");
|
|
|
23
23
|
* Check if a given object implements the PublicResortStatus interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfPublicResortStatus(value) {
|
|
26
|
+
if (!('groomedRuns' in value) || value['groomedRuns'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('openLifts' in value) || value['openLifts'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('openRuns' in value) || value['openRuns'] === undefined)
|
|
31
|
+
return false;
|
|
26
32
|
if (!('status' in value) || value['status'] === undefined)
|
|
27
33
|
return false;
|
|
34
|
+
if (!('totalLifts' in value) || value['totalLifts'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('totalRuns' in value) || value['totalRuns'] === undefined)
|
|
37
|
+
return false;
|
|
28
38
|
return true;
|
|
29
39
|
}
|
|
30
40
|
function PublicResortStatusFromJSON(json) {
|
|
@@ -35,8 +45,15 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
45
|
return json;
|
|
36
46
|
}
|
|
37
47
|
return {
|
|
48
|
+
'groomedRuns': json['groomed_runs'],
|
|
38
49
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
50
|
+
'openLifts': json['open_lifts'],
|
|
51
|
+
'openRuns': json['open_runs'],
|
|
52
|
+
'scheduledClosesAt': json['scheduled_closes_at'] == null ? undefined : json['scheduled_closes_at'],
|
|
53
|
+
'scheduledOpensAt': json['scheduled_opens_at'] == null ? undefined : json['scheduled_opens_at'],
|
|
39
54
|
'status': (0, ResortStatusType_1.ResortStatusTypeFromJSON)(json['status']),
|
|
55
|
+
'totalLifts': json['total_lifts'],
|
|
56
|
+
'totalRuns': json['total_runs'],
|
|
40
57
|
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
41
58
|
};
|
|
42
59
|
}
|
|
@@ -48,8 +65,15 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
65
|
return value;
|
|
49
66
|
}
|
|
50
67
|
return {
|
|
68
|
+
'groomed_runs': value['groomedRuns'],
|
|
51
69
|
'notes': value['notes'],
|
|
70
|
+
'open_lifts': value['openLifts'],
|
|
71
|
+
'open_runs': value['openRuns'],
|
|
72
|
+
'scheduled_closes_at': value['scheduledClosesAt'],
|
|
73
|
+
'scheduled_opens_at': value['scheduledOpensAt'],
|
|
52
74
|
'status': (0, ResortStatusType_1.ResortStatusTypeToJSON)(value['status']),
|
|
75
|
+
'total_lifts': value['totalLifts'],
|
|
76
|
+
'total_runs': value['totalRuns'],
|
|
53
77
|
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
54
78
|
};
|
|
55
79
|
}
|
package/dist/models/PublicRun.js
CHANGED
|
@@ -53,6 +53,7 @@ function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'groomedToday': json['groomed_today'],
|
|
54
54
|
'lastGroomed': json['last_groomed'] == null ? undefined : (new Date(json['last_groomed'])),
|
|
55
55
|
'name': json['name'],
|
|
56
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
56
57
|
'slug': json['slug'],
|
|
57
58
|
'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
|
|
58
59
|
'uuid': json['uuid'],
|
|
@@ -73,6 +74,7 @@ function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
74
|
'groomed_today': value['groomedToday'],
|
|
74
75
|
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
75
76
|
'name': value['name'],
|
|
77
|
+
'number': value['number'],
|
|
76
78
|
'slug': value['slug'],
|
|
77
79
|
'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
|
|
78
80
|
'uuid': value['uuid'],
|
|
@@ -41,12 +41,24 @@ export interface PublicSnowReport {
|
|
|
41
41
|
* @memberof PublicSnowReport
|
|
42
42
|
*/
|
|
43
43
|
baseDepthIn?: number | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PublicSnowReport
|
|
48
|
+
*/
|
|
49
|
+
conditionNotes?: string | null;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {Date}
|
|
47
53
|
* @memberof PublicSnowReport
|
|
48
54
|
*/
|
|
49
55
|
reportedAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SurfaceCondition}
|
|
59
|
+
* @memberof PublicSnowReport
|
|
60
|
+
*/
|
|
61
|
+
secondarySurfaceCondition?: SurfaceCondition | null;
|
|
50
62
|
/**
|
|
51
63
|
*
|
|
52
64
|
* @type {SnowMetrics}
|
|
@@ -46,7 +46,9 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'areaName': json['area_name'] == null ? undefined : json['area_name'],
|
|
47
47
|
'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
|
|
48
48
|
'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
|
|
49
|
+
'conditionNotes': json['condition_notes'] == null ? undefined : json['condition_notes'],
|
|
49
50
|
'reportedAt': (new Date(json['reported_at'])),
|
|
51
|
+
'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
|
|
50
52
|
'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
|
|
51
53
|
'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
|
|
52
54
|
'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
|
|
@@ -65,7 +67,9 @@ function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
67
|
'area_name': value['areaName'],
|
|
66
68
|
'base_depth_cm': value['baseDepthCm'],
|
|
67
69
|
'base_depth_in': value['baseDepthIn'],
|
|
70
|
+
'condition_notes': value['conditionNotes'],
|
|
68
71
|
'reported_at': value['reportedAt'].toISOString(),
|
|
72
|
+
'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
|
|
69
73
|
'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
|
|
70
74
|
'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
|
|
71
75
|
'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { RecurrencePatternOneOf } from './RecurrencePatternOneOf';
|
|
13
|
+
import type { RecurrencePatternOneOf1 } from './RecurrencePatternOneOf1';
|
|
14
|
+
import type { RecurrencePatternOneOf2 } from './RecurrencePatternOneOf2';
|
|
15
|
+
/**
|
|
16
|
+
* @type RecurrencePattern
|
|
17
|
+
* Recurrence pattern for operating hours rules
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type RecurrencePattern = RecurrencePatternOneOf | RecurrencePatternOneOf1 | RecurrencePatternOneOf2;
|
|
21
|
+
export declare function RecurrencePatternFromJSON(json: any): RecurrencePattern;
|
|
22
|
+
export declare function RecurrencePatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePattern;
|
|
23
|
+
export declare function RecurrencePatternToJSON(json: any): any;
|
|
24
|
+
export declare function RecurrencePatternToJSONTyped(value?: RecurrencePattern | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.RecurrencePatternFromJSON = RecurrencePatternFromJSON;
|
|
17
|
+
exports.RecurrencePatternFromJSONTyped = RecurrencePatternFromJSONTyped;
|
|
18
|
+
exports.RecurrencePatternToJSON = RecurrencePatternToJSON;
|
|
19
|
+
exports.RecurrencePatternToJSONTyped = RecurrencePatternToJSONTyped;
|
|
20
|
+
const RecurrencePatternOneOf_1 = require("./RecurrencePatternOneOf");
|
|
21
|
+
const RecurrencePatternOneOf1_1 = require("./RecurrencePatternOneOf1");
|
|
22
|
+
const RecurrencePatternOneOf2_1 = require("./RecurrencePatternOneOf2");
|
|
23
|
+
function RecurrencePatternFromJSON(json) {
|
|
24
|
+
return RecurrencePatternFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
function RecurrencePatternFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
if (typeof json !== 'object') {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
if ((0, RecurrencePatternOneOf_1.instanceOfRecurrencePatternOneOf)(json)) {
|
|
34
|
+
return (0, RecurrencePatternOneOf_1.RecurrencePatternOneOfFromJSONTyped)(json, true);
|
|
35
|
+
}
|
|
36
|
+
if ((0, RecurrencePatternOneOf1_1.instanceOfRecurrencePatternOneOf1)(json)) {
|
|
37
|
+
return (0, RecurrencePatternOneOf1_1.RecurrencePatternOneOf1FromJSONTyped)(json, true);
|
|
38
|
+
}
|
|
39
|
+
if ((0, RecurrencePatternOneOf2_1.instanceOfRecurrencePatternOneOf2)(json)) {
|
|
40
|
+
return (0, RecurrencePatternOneOf2_1.RecurrencePatternOneOf2FromJSONTyped)(json, true);
|
|
41
|
+
}
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
function RecurrencePatternToJSON(json) {
|
|
45
|
+
return RecurrencePatternToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RecurrencePatternToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
if (typeof value !== 'object') {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
if ((0, RecurrencePatternOneOf_1.instanceOfRecurrencePatternOneOf)(value)) {
|
|
55
|
+
return (0, RecurrencePatternOneOf_1.RecurrencePatternOneOfToJSON)(value);
|
|
56
|
+
}
|
|
57
|
+
if ((0, RecurrencePatternOneOf1_1.instanceOfRecurrencePatternOneOf1)(value)) {
|
|
58
|
+
return (0, RecurrencePatternOneOf1_1.RecurrencePatternOneOf1ToJSON)(value);
|
|
59
|
+
}
|
|
60
|
+
if ((0, RecurrencePatternOneOf2_1.instanceOfRecurrencePatternOneOf2)(value)) {
|
|
61
|
+
return (0, RecurrencePatternOneOf2_1.RecurrencePatternOneOf2ToJSON)(value);
|
|
62
|
+
}
|
|
63
|
+
return {};
|
|
64
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RecurrencePatternOneOf
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecurrencePatternOneOf
|
|
22
|
+
*/
|
|
23
|
+
type: RecurrencePatternOneOfTypeEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const RecurrencePatternOneOfTypeEnum: {
|
|
29
|
+
readonly None: "none";
|
|
30
|
+
};
|
|
31
|
+
export type RecurrencePatternOneOfTypeEnum = typeof RecurrencePatternOneOfTypeEnum[keyof typeof RecurrencePatternOneOfTypeEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RecurrencePatternOneOf interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRecurrencePatternOneOf(value: object): value is RecurrencePatternOneOf;
|
|
36
|
+
export declare function RecurrencePatternOneOfFromJSON(json: any): RecurrencePatternOneOf;
|
|
37
|
+
export declare function RecurrencePatternOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf;
|
|
38
|
+
export declare function RecurrencePatternOneOfToJSON(json: any): RecurrencePatternOneOf;
|
|
39
|
+
export declare function RecurrencePatternOneOfToJSONTyped(value?: RecurrencePatternOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.RecurrencePatternOneOfTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRecurrencePatternOneOf = instanceOfRecurrencePatternOneOf;
|
|
18
|
+
exports.RecurrencePatternOneOfFromJSON = RecurrencePatternOneOfFromJSON;
|
|
19
|
+
exports.RecurrencePatternOneOfFromJSONTyped = RecurrencePatternOneOfFromJSONTyped;
|
|
20
|
+
exports.RecurrencePatternOneOfToJSON = RecurrencePatternOneOfToJSON;
|
|
21
|
+
exports.RecurrencePatternOneOfToJSONTyped = RecurrencePatternOneOfToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RecurrencePatternOneOfTypeEnum = {
|
|
26
|
+
None: 'none'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RecurrencePatternOneOf interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecurrencePatternOneOf(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function RecurrencePatternOneOfFromJSON(json) {
|
|
37
|
+
return RecurrencePatternOneOfFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function RecurrencePatternOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function RecurrencePatternOneOfToJSON(json) {
|
|
48
|
+
return RecurrencePatternOneOfToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function RecurrencePatternOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RecurrencePatternOneOf1
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecurrencePatternOneOf1
|
|
22
|
+
*/
|
|
23
|
+
type: RecurrencePatternOneOf1TypeEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const RecurrencePatternOneOf1TypeEnum: {
|
|
29
|
+
readonly Daily: "daily";
|
|
30
|
+
};
|
|
31
|
+
export type RecurrencePatternOneOf1TypeEnum = typeof RecurrencePatternOneOf1TypeEnum[keyof typeof RecurrencePatternOneOf1TypeEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRecurrencePatternOneOf1(value: object): value is RecurrencePatternOneOf1;
|
|
36
|
+
export declare function RecurrencePatternOneOf1FromJSON(json: any): RecurrencePatternOneOf1;
|
|
37
|
+
export declare function RecurrencePatternOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf1;
|
|
38
|
+
export declare function RecurrencePatternOneOf1ToJSON(json: any): RecurrencePatternOneOf1;
|
|
39
|
+
export declare function RecurrencePatternOneOf1ToJSONTyped(value?: RecurrencePatternOneOf1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.RecurrencePatternOneOf1TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRecurrencePatternOneOf1 = instanceOfRecurrencePatternOneOf1;
|
|
18
|
+
exports.RecurrencePatternOneOf1FromJSON = RecurrencePatternOneOf1FromJSON;
|
|
19
|
+
exports.RecurrencePatternOneOf1FromJSONTyped = RecurrencePatternOneOf1FromJSONTyped;
|
|
20
|
+
exports.RecurrencePatternOneOf1ToJSON = RecurrencePatternOneOf1ToJSON;
|
|
21
|
+
exports.RecurrencePatternOneOf1ToJSONTyped = RecurrencePatternOneOf1ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RecurrencePatternOneOf1TypeEnum = {
|
|
26
|
+
Daily: 'daily'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RecurrencePatternOneOf1 interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecurrencePatternOneOf1(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function RecurrencePatternOneOf1FromJSON(json) {
|
|
37
|
+
return RecurrencePatternOneOf1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': json['type'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function RecurrencePatternOneOf1ToJSON(json) {
|
|
48
|
+
return RecurrencePatternOneOf1ToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'type': value['type'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RecurrencePatternOneOf2
|
|
16
|
+
*/
|
|
17
|
+
export interface RecurrencePatternOneOf2 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof RecurrencePatternOneOf2
|
|
22
|
+
*/
|
|
23
|
+
days: Array<number>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RecurrencePatternOneOf2
|
|
28
|
+
*/
|
|
29
|
+
type: RecurrencePatternOneOf2TypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const RecurrencePatternOneOf2TypeEnum: {
|
|
35
|
+
readonly Weekly: "weekly";
|
|
36
|
+
};
|
|
37
|
+
export type RecurrencePatternOneOf2TypeEnum = typeof RecurrencePatternOneOf2TypeEnum[keyof typeof RecurrencePatternOneOf2TypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfRecurrencePatternOneOf2(value: object): value is RecurrencePatternOneOf2;
|
|
42
|
+
export declare function RecurrencePatternOneOf2FromJSON(json: any): RecurrencePatternOneOf2;
|
|
43
|
+
export declare function RecurrencePatternOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePatternOneOf2;
|
|
44
|
+
export declare function RecurrencePatternOneOf2ToJSON(json: any): RecurrencePatternOneOf2;
|
|
45
|
+
export declare function RecurrencePatternOneOf2ToJSONTyped(value?: RecurrencePatternOneOf2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* Public API for retrieving ski resort snow reports, run status, lift status, and operating hours. No authentication required.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.RecurrencePatternOneOf2TypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRecurrencePatternOneOf2 = instanceOfRecurrencePatternOneOf2;
|
|
18
|
+
exports.RecurrencePatternOneOf2FromJSON = RecurrencePatternOneOf2FromJSON;
|
|
19
|
+
exports.RecurrencePatternOneOf2FromJSONTyped = RecurrencePatternOneOf2FromJSONTyped;
|
|
20
|
+
exports.RecurrencePatternOneOf2ToJSON = RecurrencePatternOneOf2ToJSON;
|
|
21
|
+
exports.RecurrencePatternOneOf2ToJSONTyped = RecurrencePatternOneOf2ToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RecurrencePatternOneOf2TypeEnum = {
|
|
26
|
+
Weekly: 'weekly'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RecurrencePatternOneOf2 interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRecurrencePatternOneOf2(value) {
|
|
32
|
+
if (!('days' in value) || value['days'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function RecurrencePatternOneOf2FromJSON(json) {
|
|
39
|
+
return RecurrencePatternOneOf2FromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RecurrencePatternOneOf2FromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'days': json['days'],
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function RecurrencePatternOneOf2ToJSON(json) {
|
|
51
|
+
return RecurrencePatternOneOf2ToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function RecurrencePatternOneOf2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'days': value['days'],
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { RecurrencePattern } from './RecurrencePattern';
|
|
13
|
+
/**
|
|
14
|
+
* Recurring schedule with human-readable and machine-readable values
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Schedule
|
|
17
|
+
*/
|
|
18
|
+
export interface Schedule {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Schedule
|
|
23
|
+
*/
|
|
24
|
+
closesAt: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {RecurrencePattern}
|
|
28
|
+
* @memberof Schedule
|
|
29
|
+
*/
|
|
30
|
+
daysRecurrence: RecurrencePattern;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Schedule
|
|
35
|
+
*/
|
|
36
|
+
daysString: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Schedule
|
|
41
|
+
*/
|
|
42
|
+
effectiveFrom: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Schedule
|
|
47
|
+
*/
|
|
48
|
+
effectiveString: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Schedule
|
|
53
|
+
*/
|
|
54
|
+
effectiveTo: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof Schedule
|
|
59
|
+
*/
|
|
60
|
+
inEffect: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Schedule
|
|
65
|
+
*/
|
|
66
|
+
opensAt: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Schedule
|
|
71
|
+
*/
|
|
72
|
+
timeString: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the Schedule interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfSchedule(value: object): value is Schedule;
|
|
78
|
+
export declare function ScheduleFromJSON(json: any): Schedule;
|
|
79
|
+
export declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
80
|
+
export declare function ScheduleToJSON(json: any): Schedule;
|
|
81
|
+
export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
|