@mtnmanager/sdk 0.0.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.
- package/README.md +134 -0
- package/dist/apis/PublicApi.d.ts +174 -0
- package/dist/apis/PublicApi.js +218 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/PublicApi.d.ts +174 -0
- package/dist/esm/apis/PublicApi.js +214 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/HoursInfo.d.ts +50 -0
- package/dist/esm/models/HoursInfo.js +51 -0
- package/dist/esm/models/LiftStatus.d.ts +25 -0
- package/dist/esm/models/LiftStatus.js +43 -0
- package/dist/esm/models/LiftType.d.ts +36 -0
- package/dist/esm/models/LiftType.js +54 -0
- package/dist/esm/models/OperatingHoursResponse.d.ts +46 -0
- package/dist/esm/models/OperatingHoursResponse.js +53 -0
- package/dist/esm/models/PublicLift.d.ts +88 -0
- package/dist/esm/models/PublicLift.js +73 -0
- package/dist/esm/models/PublicResortInfo.d.ts +57 -0
- package/dist/esm/models/PublicResortInfo.js +60 -0
- package/dist/esm/models/PublicResortResponse.d.ts +68 -0
- package/dist/esm/models/PublicResortResponse.js +59 -0
- package/dist/esm/models/PublicResortStatus.d.ts +45 -0
- package/dist/esm/models/PublicResortStatus.js +48 -0
- package/dist/esm/models/PublicRun.d.ts +88 -0
- package/dist/esm/models/PublicRun.js +73 -0
- package/dist/esm/models/PublicSnowReport.d.ts +82 -0
- package/dist/esm/models/PublicSnowReport.js +67 -0
- package/dist/esm/models/PublicSnowResponse.d.ts +33 -0
- package/dist/esm/models/PublicSnowResponse.js +44 -0
- package/dist/esm/models/RegularHoursDescription.d.ts +50 -0
- package/dist/esm/models/RegularHoursDescription.js +55 -0
- package/dist/esm/models/ResortStatusType.d.ts +26 -0
- package/dist/esm/models/ResortStatusType.js +44 -0
- package/dist/esm/models/RunDifficulty.d.ts +28 -0
- package/dist/esm/models/RunDifficulty.js +46 -0
- package/dist/esm/models/RunStatus.d.ts +25 -0
- package/dist/esm/models/RunStatus.js +43 -0
- package/dist/esm/models/SnowMetrics.d.ts +56 -0
- package/dist/esm/models/SnowMetrics.js +59 -0
- package/dist/esm/models/SurfaceCondition.d.ts +29 -0
- package/dist/esm/models/SurfaceCondition.js +47 -0
- package/dist/esm/models/UnitPreference.d.ts +25 -0
- package/dist/esm/models/UnitPreference.js +43 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/HoursInfo.d.ts +50 -0
- package/dist/models/HoursInfo.js +58 -0
- package/dist/models/LiftStatus.d.ts +25 -0
- package/dist/models/LiftStatus.js +51 -0
- package/dist/models/LiftType.d.ts +36 -0
- package/dist/models/LiftType.js +62 -0
- package/dist/models/OperatingHoursResponse.d.ts +46 -0
- package/dist/models/OperatingHoursResponse.js +60 -0
- package/dist/models/PublicLift.d.ts +88 -0
- package/dist/models/PublicLift.js +80 -0
- package/dist/models/PublicResortInfo.d.ts +57 -0
- package/dist/models/PublicResortInfo.js +67 -0
- package/dist/models/PublicResortResponse.d.ts +68 -0
- package/dist/models/PublicResortResponse.js +66 -0
- package/dist/models/PublicResortStatus.d.ts +45 -0
- package/dist/models/PublicResortStatus.js +55 -0
- package/dist/models/PublicRun.d.ts +88 -0
- package/dist/models/PublicRun.js +80 -0
- package/dist/models/PublicSnowReport.d.ts +82 -0
- package/dist/models/PublicSnowReport.js +74 -0
- package/dist/models/PublicSnowResponse.d.ts +33 -0
- package/dist/models/PublicSnowResponse.js +51 -0
- package/dist/models/RegularHoursDescription.d.ts +50 -0
- package/dist/models/RegularHoursDescription.js +62 -0
- package/dist/models/ResortStatusType.d.ts +26 -0
- package/dist/models/ResortStatusType.js +52 -0
- package/dist/models/RunDifficulty.d.ts +28 -0
- package/dist/models/RunDifficulty.js +54 -0
- package/dist/models/RunStatus.d.ts +25 -0
- package/dist/models/RunStatus.js +51 -0
- package/dist/models/SnowMetrics.d.ts +56 -0
- package/dist/models/SnowMetrics.js +66 -0
- package/dist/models/SurfaceCondition.d.ts +29 -0
- package/dist/models/SurfaceCondition.js +55 -0
- package/dist/models/UnitPreference.d.ts +25 -0
- package/dist/models/UnitPreference.js +51 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +36 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +25 -0
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Snow metrics calculated from accumulations
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SnowMetrics
|
|
16
|
+
*/
|
|
17
|
+
export interface SnowMetrics {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SnowMetrics
|
|
22
|
+
*/
|
|
23
|
+
last24h: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SnowMetrics
|
|
28
|
+
*/
|
|
29
|
+
last48h: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SnowMetrics
|
|
34
|
+
*/
|
|
35
|
+
last7days: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SnowMetrics
|
|
40
|
+
*/
|
|
41
|
+
overnight: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SnowMetrics
|
|
46
|
+
*/
|
|
47
|
+
seasonTotal: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SnowMetrics interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSnowMetrics(value: object): value is SnowMetrics;
|
|
53
|
+
export declare function SnowMetricsFromJSON(json: any): SnowMetrics;
|
|
54
|
+
export declare function SnowMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnowMetrics;
|
|
55
|
+
export declare function SnowMetricsToJSON(json: any): SnowMetrics;
|
|
56
|
+
export declare function SnowMetricsToJSONTyped(value?: SnowMetrics | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfSnowMetrics = instanceOfSnowMetrics;
|
|
17
|
+
exports.SnowMetricsFromJSON = SnowMetricsFromJSON;
|
|
18
|
+
exports.SnowMetricsFromJSONTyped = SnowMetricsFromJSONTyped;
|
|
19
|
+
exports.SnowMetricsToJSON = SnowMetricsToJSON;
|
|
20
|
+
exports.SnowMetricsToJSONTyped = SnowMetricsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SnowMetrics interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSnowMetrics(value) {
|
|
25
|
+
if (!('last24h' in value) || value['last24h'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('last48h' in value) || value['last48h'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('last7days' in value) || value['last7days'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('overnight' in value) || value['overnight'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('seasonTotal' in value) || value['seasonTotal'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SnowMetricsFromJSON(json) {
|
|
38
|
+
return SnowMetricsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SnowMetricsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'last24h': json['last_24h'],
|
|
46
|
+
'last48h': json['last_48h'],
|
|
47
|
+
'last7days': json['last_7days'],
|
|
48
|
+
'overnight': json['overnight'],
|
|
49
|
+
'seasonTotal': json['season_total'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function SnowMetricsToJSON(json) {
|
|
53
|
+
return SnowMetricsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function SnowMetricsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'last_24h': value['last24h'],
|
|
61
|
+
'last_48h': value['last48h'],
|
|
62
|
+
'last_7days': value['last7days'],
|
|
63
|
+
'overnight': value['overnight'],
|
|
64
|
+
'season_total': value['seasonTotal'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Surface condition types for snow reports
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SurfaceCondition: {
|
|
17
|
+
readonly Powder: "powder";
|
|
18
|
+
readonly PackedPowder: "packed_powder";
|
|
19
|
+
readonly Groomed: "groomed";
|
|
20
|
+
readonly Variable: "variable";
|
|
21
|
+
readonly Icy: "icy";
|
|
22
|
+
readonly SpringConditions: "spring_conditions";
|
|
23
|
+
};
|
|
24
|
+
export type SurfaceCondition = typeof SurfaceCondition[keyof typeof SurfaceCondition];
|
|
25
|
+
export declare function instanceOfSurfaceCondition(value: any): boolean;
|
|
26
|
+
export declare function SurfaceConditionFromJSON(json: any): SurfaceCondition;
|
|
27
|
+
export declare function SurfaceConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurfaceCondition;
|
|
28
|
+
export declare function SurfaceConditionToJSON(value?: SurfaceCondition | null): any;
|
|
29
|
+
export declare function SurfaceConditionToJSONTyped(value: any, ignoreDiscriminator: boolean): SurfaceCondition;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.SurfaceCondition = void 0;
|
|
17
|
+
exports.instanceOfSurfaceCondition = instanceOfSurfaceCondition;
|
|
18
|
+
exports.SurfaceConditionFromJSON = SurfaceConditionFromJSON;
|
|
19
|
+
exports.SurfaceConditionFromJSONTyped = SurfaceConditionFromJSONTyped;
|
|
20
|
+
exports.SurfaceConditionToJSON = SurfaceConditionToJSON;
|
|
21
|
+
exports.SurfaceConditionToJSONTyped = SurfaceConditionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Surface condition types for snow reports
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SurfaceCondition = {
|
|
27
|
+
Powder: 'powder',
|
|
28
|
+
PackedPowder: 'packed_powder',
|
|
29
|
+
Groomed: 'groomed',
|
|
30
|
+
Variable: 'variable',
|
|
31
|
+
Icy: 'icy',
|
|
32
|
+
SpringConditions: 'spring_conditions'
|
|
33
|
+
};
|
|
34
|
+
function instanceOfSurfaceCondition(value) {
|
|
35
|
+
for (const key in exports.SurfaceCondition) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(exports.SurfaceCondition, key)) {
|
|
37
|
+
if (exports.SurfaceCondition[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function SurfaceConditionFromJSON(json) {
|
|
45
|
+
return SurfaceConditionFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SurfaceConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function SurfaceConditionToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function SurfaceConditionToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Unit preference for measurements
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const UnitPreference: {
|
|
17
|
+
readonly Metric: "metric";
|
|
18
|
+
readonly Imperial: "imperial";
|
|
19
|
+
};
|
|
20
|
+
export type UnitPreference = typeof UnitPreference[keyof typeof UnitPreference];
|
|
21
|
+
export declare function instanceOfUnitPreference(value: any): boolean;
|
|
22
|
+
export declare function UnitPreferenceFromJSON(json: any): UnitPreference;
|
|
23
|
+
export declare function UnitPreferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitPreference;
|
|
24
|
+
export declare function UnitPreferenceToJSON(value?: UnitPreference | null): any;
|
|
25
|
+
export declare function UnitPreferenceToJSONTyped(value: any, ignoreDiscriminator: boolean): UnitPreference;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.UnitPreference = void 0;
|
|
17
|
+
exports.instanceOfUnitPreference = instanceOfUnitPreference;
|
|
18
|
+
exports.UnitPreferenceFromJSON = UnitPreferenceFromJSON;
|
|
19
|
+
exports.UnitPreferenceFromJSONTyped = UnitPreferenceFromJSONTyped;
|
|
20
|
+
exports.UnitPreferenceToJSON = UnitPreferenceToJSON;
|
|
21
|
+
exports.UnitPreferenceToJSONTyped = UnitPreferenceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Unit preference for measurements
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UnitPreference = {
|
|
27
|
+
Metric: 'metric',
|
|
28
|
+
Imperial: 'imperial'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfUnitPreference(value) {
|
|
31
|
+
for (const key in exports.UnitPreference) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.UnitPreference, key)) {
|
|
33
|
+
if (exports.UnitPreference[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function UnitPreferenceFromJSON(json) {
|
|
41
|
+
return UnitPreferenceFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UnitPreferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function UnitPreferenceToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function UnitPreferenceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './HoursInfo';
|
|
2
|
+
export * from './LiftStatus';
|
|
3
|
+
export * from './LiftType';
|
|
4
|
+
export * from './OperatingHoursResponse';
|
|
5
|
+
export * from './PublicLift';
|
|
6
|
+
export * from './PublicResortInfo';
|
|
7
|
+
export * from './PublicResortResponse';
|
|
8
|
+
export * from './PublicResortStatus';
|
|
9
|
+
export * from './PublicRun';
|
|
10
|
+
export * from './PublicSnowReport';
|
|
11
|
+
export * from './PublicSnowResponse';
|
|
12
|
+
export * from './RegularHoursDescription';
|
|
13
|
+
export * from './ResortStatusType';
|
|
14
|
+
export * from './RunDifficulty';
|
|
15
|
+
export * from './RunStatus';
|
|
16
|
+
export * from './SnowMetrics';
|
|
17
|
+
export * from './SurfaceCondition';
|
|
18
|
+
export * from './UnitPreference';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./HoursInfo"), exports);
|
|
20
|
+
__exportStar(require("./LiftStatus"), exports);
|
|
21
|
+
__exportStar(require("./LiftType"), exports);
|
|
22
|
+
__exportStar(require("./OperatingHoursResponse"), exports);
|
|
23
|
+
__exportStar(require("./PublicLift"), exports);
|
|
24
|
+
__exportStar(require("./PublicResortInfo"), exports);
|
|
25
|
+
__exportStar(require("./PublicResortResponse"), exports);
|
|
26
|
+
__exportStar(require("./PublicResortStatus"), exports);
|
|
27
|
+
__exportStar(require("./PublicRun"), exports);
|
|
28
|
+
__exportStar(require("./PublicSnowReport"), exports);
|
|
29
|
+
__exportStar(require("./PublicSnowResponse"), exports);
|
|
30
|
+
__exportStar(require("./RegularHoursDescription"), exports);
|
|
31
|
+
__exportStar(require("./ResortStatusType"), exports);
|
|
32
|
+
__exportStar(require("./RunDifficulty"), exports);
|
|
33
|
+
__exportStar(require("./RunStatus"), exports);
|
|
34
|
+
__exportStar(require("./SnowMetrics"), exports);
|
|
35
|
+
__exportStar(require("./SurfaceCondition"), exports);
|
|
36
|
+
__exportStar(require("./UnitPreference"), exports);
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
47
|
+
private middleware;
|
|
48
|
+
constructor(configuration?: Configuration);
|
|
49
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
+
private createFetchParams;
|
|
65
|
+
private fetchApi;
|
|
66
|
+
/**
|
|
67
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
+
* and then shallow cloning data members.
|
|
69
|
+
*/
|
|
70
|
+
private clone;
|
|
71
|
+
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
82
|
+
export declare class RequiredError extends Error {
|
|
83
|
+
field: string;
|
|
84
|
+
name: "RequiredError";
|
|
85
|
+
constructor(field: string, msg?: string);
|
|
86
|
+
}
|
|
87
|
+
export declare const COLLECTION_FORMATS: {
|
|
88
|
+
csv: string;
|
|
89
|
+
ssv: string;
|
|
90
|
+
tsv: string;
|
|
91
|
+
pipes: string;
|
|
92
|
+
};
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type HTTPQuery = {
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
+
};
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
114
|
+
export interface FetchParams {
|
|
115
|
+
url: string;
|
|
116
|
+
init: RequestInit;
|
|
117
|
+
}
|
|
118
|
+
export interface RequestOpts {
|
|
119
|
+
path: string;
|
|
120
|
+
method: HTTPMethod;
|
|
121
|
+
headers: HTTPHeaders;
|
|
122
|
+
query?: HTTPQuery;
|
|
123
|
+
body?: HTTPBody;
|
|
124
|
+
}
|
|
125
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
130
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
|
+
export interface Consume {
|
|
132
|
+
contentType: string;
|
|
133
|
+
}
|
|
134
|
+
export interface RequestContext {
|
|
135
|
+
fetch: FetchAPI;
|
|
136
|
+
url: string;
|
|
137
|
+
init: RequestInit;
|
|
138
|
+
}
|
|
139
|
+
export interface ResponseContext {
|
|
140
|
+
fetch: FetchAPI;
|
|
141
|
+
url: string;
|
|
142
|
+
init: RequestInit;
|
|
143
|
+
response: Response;
|
|
144
|
+
}
|
|
145
|
+
export interface ErrorContext {
|
|
146
|
+
fetch: FetchAPI;
|
|
147
|
+
url: string;
|
|
148
|
+
init: RequestInit;
|
|
149
|
+
error: unknown;
|
|
150
|
+
response?: Response;
|
|
151
|
+
}
|
|
152
|
+
export interface Middleware {
|
|
153
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
+
}
|
|
157
|
+
export interface ApiResponse<T> {
|
|
158
|
+
raw: Response;
|
|
159
|
+
value(): Promise<T>;
|
|
160
|
+
}
|
|
161
|
+
export interface ResponseTransformer<T> {
|
|
162
|
+
(json: any): T;
|
|
163
|
+
}
|
|
164
|
+
export declare class JSONApiResponse<T> {
|
|
165
|
+
raw: Response;
|
|
166
|
+
private transformer;
|
|
167
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
+
value(): Promise<T>;
|
|
169
|
+
}
|
|
170
|
+
export declare class VoidApiResponse {
|
|
171
|
+
raw: Response;
|
|
172
|
+
constructor(raw: Response);
|
|
173
|
+
value(): Promise<void>;
|
|
174
|
+
}
|
|
175
|
+
export declare class BlobApiResponse {
|
|
176
|
+
raw: Response;
|
|
177
|
+
constructor(raw: Response);
|
|
178
|
+
value(): Promise<Blob>;
|
|
179
|
+
}
|
|
180
|
+
export declare class TextApiResponse {
|
|
181
|
+
raw: Response;
|
|
182
|
+
constructor(raw: Response);
|
|
183
|
+
value(): Promise<string>;
|
|
184
|
+
}
|