@mtnmanager/sdk 1.4.1 → 1.4.2
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.
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SeasonType
|
|
14
13
|
* Current operating season of the resort.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SeasonType: {
|
|
17
|
+
readonly Winter: "winter";
|
|
18
|
+
readonly Summer: "summer";
|
|
19
|
+
readonly Closed: "closed";
|
|
20
|
+
};
|
|
21
|
+
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
|
+
export declare function instanceOfSeasonType(value: any): boolean;
|
|
18
23
|
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
19
24
|
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
20
|
-
export declare function SeasonTypeToJSON(
|
|
21
|
-
export declare function SeasonTypeToJSONTyped(value
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -11,33 +11,34 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* Current operating season of the resort.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SeasonType = {
|
|
19
|
+
Winter: 'winter',
|
|
20
|
+
Summer: 'summer',
|
|
21
|
+
Closed: 'closed'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSeasonType(value) {
|
|
24
|
+
for (const key in SeasonType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SeasonType, key)) {
|
|
26
|
+
if (SeasonType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
14
33
|
export function SeasonTypeFromJSON(json) {
|
|
15
34
|
return SeasonTypeFromJSONTyped(json, false);
|
|
16
35
|
}
|
|
17
36
|
export function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
if (typeof json === 'string' && (json === 'winter' || json === 'summer')) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {};
|
|
37
|
+
return json;
|
|
28
38
|
}
|
|
29
|
-
export function SeasonTypeToJSON(
|
|
30
|
-
return
|
|
39
|
+
export function SeasonTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
31
41
|
}
|
|
32
|
-
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator
|
|
33
|
-
|
|
34
|
-
return value;
|
|
35
|
-
}
|
|
36
|
-
if (typeof value === 'string' && (value === 'winter' || value === 'summer')) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
42
|
+
export function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
43
44
|
}
|
|
@@ -10,12 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* @type SeasonType
|
|
14
13
|
* Current operating season of the resort.
|
|
15
14
|
* @export
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
16
|
+
export declare const SeasonType: {
|
|
17
|
+
readonly Winter: "winter";
|
|
18
|
+
readonly Summer: "summer";
|
|
19
|
+
readonly Closed: "closed";
|
|
20
|
+
};
|
|
21
|
+
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
|
+
export declare function instanceOfSeasonType(value: any): boolean;
|
|
18
23
|
export declare function SeasonTypeFromJSON(json: any): SeasonType;
|
|
19
24
|
export declare function SeasonTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeasonType;
|
|
20
|
-
export declare function SeasonTypeToJSON(
|
|
21
|
-
export declare function SeasonTypeToJSONTyped(value
|
|
25
|
+
export declare function SeasonTypeToJSON(value?: SeasonType | null): any;
|
|
26
|
+
export declare function SeasonTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SeasonType;
|
|
@@ -13,37 +13,40 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SeasonType = void 0;
|
|
17
|
+
exports.instanceOfSeasonType = instanceOfSeasonType;
|
|
16
18
|
exports.SeasonTypeFromJSON = SeasonTypeFromJSON;
|
|
17
19
|
exports.SeasonTypeFromJSONTyped = SeasonTypeFromJSONTyped;
|
|
18
20
|
exports.SeasonTypeToJSON = SeasonTypeToJSON;
|
|
19
21
|
exports.SeasonTypeToJSONTyped = SeasonTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Current operating season of the resort.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SeasonType = {
|
|
27
|
+
Winter: 'winter',
|
|
28
|
+
Summer: 'summer',
|
|
29
|
+
Closed: 'closed'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSeasonType(value) {
|
|
32
|
+
for (const key in exports.SeasonType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SeasonType, key)) {
|
|
34
|
+
if (exports.SeasonType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
20
41
|
function SeasonTypeFromJSON(json) {
|
|
21
42
|
return SeasonTypeFromJSONTyped(json, false);
|
|
22
43
|
}
|
|
23
44
|
function SeasonTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
if (typeof json === 'string' && (json === 'winter' || json === 'summer')) {
|
|
28
|
-
return json;
|
|
29
|
-
}
|
|
30
|
-
if (typeof json === 'string' && (json === 'closed')) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {};
|
|
45
|
+
return json;
|
|
34
46
|
}
|
|
35
|
-
function SeasonTypeToJSON(
|
|
36
|
-
return
|
|
47
|
+
function SeasonTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
37
49
|
}
|
|
38
|
-
function SeasonTypeToJSONTyped(value, ignoreDiscriminator
|
|
39
|
-
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
if (typeof value === 'string' && (value === 'winter' || value === 'summer')) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
if (typeof value === 'string' && (value === 'closed')) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {};
|
|
50
|
+
function SeasonTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
49
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|