@mtnmanager/sdk 1.4.8 → 1.5.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.
@@ -1,50 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@mtnmanager.com
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 GeoControlPoint
16
- */
17
- export interface GeoControlPoint {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof GeoControlPoint
22
- */
23
- pixelX: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof GeoControlPoint
28
- */
29
- pixelY: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof GeoControlPoint
34
- */
35
- lat: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof GeoControlPoint
40
- */
41
- lng: number;
42
- }
43
- /**
44
- * Check if a given object implements the GeoControlPoint interface.
45
- */
46
- export declare function instanceOfGeoControlPoint(value: object): value is GeoControlPoint;
47
- export declare function GeoControlPointFromJSON(json: any): GeoControlPoint;
48
- export declare function GeoControlPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoControlPoint;
49
- export declare function GeoControlPointToJSON(json: any): GeoControlPoint;
50
- export declare function GeoControlPointToJSONTyped(value?: GeoControlPoint | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MtnManager API
5
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@mtnmanager.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the GeoControlPoint interface.
16
- */
17
- export function instanceOfGeoControlPoint(value) {
18
- if ((!('pixelX' in value) && !('pixel_x' in value)) || (value['pixelX'] === undefined && value['pixel_x'] === undefined))
19
- return false;
20
- if ((!('pixelY' in value) && !('pixel_y' in value)) || (value['pixelY'] === undefined && value['pixel_y'] === undefined))
21
- return false;
22
- if (!('lat' in value) || value['lat'] === undefined)
23
- return false;
24
- if (!('lng' in value) || value['lng'] === undefined)
25
- return false;
26
- return true;
27
- }
28
- export function GeoControlPointFromJSON(json) {
29
- return GeoControlPointFromJSONTyped(json, false);
30
- }
31
- export function GeoControlPointFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'pixelX': json['pixel_x'],
37
- 'pixelY': json['pixel_y'],
38
- 'lat': json['lat'],
39
- 'lng': json['lng'],
40
- };
41
- }
42
- export function GeoControlPointToJSON(json) {
43
- return GeoControlPointToJSONTyped(json, false);
44
- }
45
- export function GeoControlPointToJSONTyped(value, ignoreDiscriminator = false) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'pixel_x': value['pixelX'],
51
- 'pixel_y': value['pixelY'],
52
- 'lat': value['lat'],
53
- 'lng': value['lng'],
54
- };
55
- }
@@ -1,91 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@mtnmanager.com
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 { ResortInfo } from './ResortInfo';
13
- import type { TrailMapElement } from './TrailMapElement';
14
- import type { SeasonType } from './SeasonType';
15
- import type { GeoControlPoint } from './GeoControlPoint';
16
- /**
17
- * A public trail map with enriched entity data.
18
- * @export
19
- * @interface TrailMap
20
- */
21
- export interface TrailMap {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof TrailMap
26
- */
27
- uuid: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof TrailMap
32
- */
33
- name: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof TrailMap
38
- */
39
- slug: string;
40
- /**
41
- *
42
- * @type {SeasonType}
43
- * @memberof TrailMap
44
- */
45
- season: SeasonType;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof TrailMap
50
- */
51
- displayOrder: number;
52
- /**
53
- * Monotonically incremented on every update. Clients can compare this
54
- * against a cached value to decide whether to reload the trail map.
55
- * @type {number}
56
- * @memberof TrailMap
57
- */
58
- version: number;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof TrailMap
63
- */
64
- backgroundImageUrl: string;
65
- /**
66
- *
67
- * @type {ResortInfo}
68
- * @memberof TrailMap
69
- */
70
- resort: ResortInfo;
71
- /**
72
- *
73
- * @type {Array<TrailMapElement>}
74
- * @memberof TrailMap
75
- */
76
- elements: Array<TrailMapElement>;
77
- /**
78
- *
79
- * @type {Array<GeoControlPoint>}
80
- * @memberof TrailMap
81
- */
82
- geoControlPoints?: Array<GeoControlPoint> | null;
83
- }
84
- /**
85
- * Check if a given object implements the TrailMap interface.
86
- */
87
- export declare function instanceOfTrailMap(value: object): value is TrailMap;
88
- export declare function TrailMapFromJSON(json: any): TrailMap;
89
- export declare function TrailMapFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMap;
90
- export declare function TrailMapToJSON(json: any): TrailMap;
91
- export declare function TrailMapToJSONTyped(value?: TrailMap | null, ignoreDiscriminator?: boolean): any;
@@ -1,81 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MtnManager API
5
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@mtnmanager.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { ResortInfoFromJSON, ResortInfoToJSON, } from './ResortInfo';
15
- import { TrailMapElementFromJSON, TrailMapElementToJSON, } from './TrailMapElement';
16
- import { SeasonTypeFromJSON, SeasonTypeToJSON, } from './SeasonType';
17
- import { GeoControlPointFromJSON, GeoControlPointToJSON, } from './GeoControlPoint';
18
- /**
19
- * Check if a given object implements the TrailMap interface.
20
- */
21
- export function instanceOfTrailMap(value) {
22
- if (!('uuid' in value) || value['uuid'] === undefined)
23
- return false;
24
- if (!('name' in value) || value['name'] === undefined)
25
- return false;
26
- if (!('slug' in value) || value['slug'] === undefined)
27
- return false;
28
- if (!('season' in value) || value['season'] === undefined)
29
- return false;
30
- if ((!('displayOrder' in value) && !('display_order' in value)) || (value['displayOrder'] === undefined && value['display_order'] === undefined))
31
- return false;
32
- if (!('version' in value) || value['version'] === undefined)
33
- return false;
34
- if ((!('backgroundImageUrl' in value) && !('background_image_url' in value)) || (value['backgroundImageUrl'] === undefined && value['background_image_url'] === undefined))
35
- return false;
36
- if (!('resort' in value) || value['resort'] === undefined)
37
- return false;
38
- if (!('elements' in value) || value['elements'] === undefined)
39
- return false;
40
- return true;
41
- }
42
- export function TrailMapFromJSON(json) {
43
- return TrailMapFromJSONTyped(json, false);
44
- }
45
- export function TrailMapFromJSONTyped(json, ignoreDiscriminator) {
46
- if (json == null) {
47
- return json;
48
- }
49
- return {
50
- 'uuid': json['uuid'],
51
- 'name': json['name'],
52
- 'slug': json['slug'],
53
- 'season': SeasonTypeFromJSON(json['season']),
54
- 'displayOrder': json['display_order'],
55
- 'version': json['version'],
56
- 'backgroundImageUrl': json['background_image_url'],
57
- 'resort': ResortInfoFromJSON(json['resort']),
58
- 'elements': (json['elements'].map(TrailMapElementFromJSON)),
59
- 'geoControlPoints': json['geo_control_points'] == null ? undefined : (json['geo_control_points'].map(GeoControlPointFromJSON)),
60
- };
61
- }
62
- export function TrailMapToJSON(json) {
63
- return TrailMapToJSONTyped(json, false);
64
- }
65
- export function TrailMapToJSONTyped(value, ignoreDiscriminator = false) {
66
- if (value == null) {
67
- return value;
68
- }
69
- return {
70
- 'uuid': value['uuid'],
71
- 'name': value['name'],
72
- 'slug': value['slug'],
73
- 'season': SeasonTypeToJSON(value['season']),
74
- 'display_order': value['displayOrder'],
75
- 'version': value['version'],
76
- 'background_image_url': value['backgroundImageUrl'],
77
- 'resort': ResortInfoToJSON(value['resort']),
78
- 'elements': (value['elements'].map(TrailMapElementToJSON)),
79
- 'geo_control_points': value['geoControlPoints'] == null ? undefined : (value['geoControlPoints'].map(GeoControlPointToJSON)),
80
- };
81
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@mtnmanager.com
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 { TrailMapElementOneOf } from './TrailMapElementOneOf';
13
- import type { TrailMapElementOneOf1 } from './TrailMapElementOneOf1';
14
- import type { TrailMapElementOneOf2 } from './TrailMapElementOneOf2';
15
- import type { TrailMapElementOneOf3 } from './TrailMapElementOneOf3';
16
- import type { TrailMapElementOneOf4 } from './TrailMapElementOneOf4';
17
- import type { TrailMapElementOneOf5 } from './TrailMapElementOneOf5';
18
- import type { TrailMapElementOneOf6 } from './TrailMapElementOneOf6';
19
- /**
20
- * @type TrailMapElement
21
- * A trail map element with full entity data from existing public models.
22
- * @export
23
- */
24
- export type TrailMapElement = TrailMapElementOneOf | TrailMapElementOneOf1 | TrailMapElementOneOf2 | TrailMapElementOneOf3 | TrailMapElementOneOf4 | TrailMapElementOneOf5 | TrailMapElementOneOf6;
25
- export declare function TrailMapElementFromJSON(json: any): TrailMapElement;
26
- export declare function TrailMapElementFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapElement;
27
- export declare function TrailMapElementToJSON(json: any): any;
28
- export declare function TrailMapElementToJSONTyped(value?: TrailMapElement | null, ignoreDiscriminator?: boolean): any;
@@ -1,86 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MtnManager API
5
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- * Contact: support@mtnmanager.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { instanceOfTrailMapElementOneOf, TrailMapElementOneOfFromJSONTyped, TrailMapElementOneOfToJSON, } from './TrailMapElementOneOf';
15
- import { instanceOfTrailMapElementOneOf1, TrailMapElementOneOf1FromJSONTyped, TrailMapElementOneOf1ToJSON, } from './TrailMapElementOneOf1';
16
- import { instanceOfTrailMapElementOneOf2, TrailMapElementOneOf2FromJSONTyped, TrailMapElementOneOf2ToJSON, } from './TrailMapElementOneOf2';
17
- import { instanceOfTrailMapElementOneOf3, TrailMapElementOneOf3FromJSONTyped, TrailMapElementOneOf3ToJSON, } from './TrailMapElementOneOf3';
18
- import { instanceOfTrailMapElementOneOf4, TrailMapElementOneOf4FromJSONTyped, TrailMapElementOneOf4ToJSON, } from './TrailMapElementOneOf4';
19
- import { instanceOfTrailMapElementOneOf5, TrailMapElementOneOf5FromJSONTyped, TrailMapElementOneOf5ToJSON, } from './TrailMapElementOneOf5';
20
- import { instanceOfTrailMapElementOneOf6, TrailMapElementOneOf6FromJSONTyped, TrailMapElementOneOf6ToJSON, } from './TrailMapElementOneOf6';
21
- export function TrailMapElementFromJSON(json) {
22
- return TrailMapElementFromJSONTyped(json, false);
23
- }
24
- export function TrailMapElementFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- if (typeof json !== 'object') {
29
- return json;
30
- }
31
- if (instanceOfTrailMapElementOneOf(json)) {
32
- return TrailMapElementOneOfFromJSONTyped(json, true);
33
- }
34
- if (instanceOfTrailMapElementOneOf1(json)) {
35
- return TrailMapElementOneOf1FromJSONTyped(json, true);
36
- }
37
- if (instanceOfTrailMapElementOneOf2(json)) {
38
- return TrailMapElementOneOf2FromJSONTyped(json, true);
39
- }
40
- if (instanceOfTrailMapElementOneOf3(json)) {
41
- return TrailMapElementOneOf3FromJSONTyped(json, true);
42
- }
43
- if (instanceOfTrailMapElementOneOf4(json)) {
44
- return TrailMapElementOneOf4FromJSONTyped(json, true);
45
- }
46
- if (instanceOfTrailMapElementOneOf5(json)) {
47
- return TrailMapElementOneOf5FromJSONTyped(json, true);
48
- }
49
- if (instanceOfTrailMapElementOneOf6(json)) {
50
- return TrailMapElementOneOf6FromJSONTyped(json, true);
51
- }
52
- return {};
53
- }
54
- export function TrailMapElementToJSON(json) {
55
- return TrailMapElementToJSONTyped(json, false);
56
- }
57
- export function TrailMapElementToJSONTyped(value, ignoreDiscriminator = false) {
58
- if (value == null) {
59
- return value;
60
- }
61
- if (typeof value !== 'object') {
62
- return value;
63
- }
64
- if (instanceOfTrailMapElementOneOf(value)) {
65
- return TrailMapElementOneOfToJSON(value);
66
- }
67
- if (instanceOfTrailMapElementOneOf1(value)) {
68
- return TrailMapElementOneOf1ToJSON(value);
69
- }
70
- if (instanceOfTrailMapElementOneOf2(value)) {
71
- return TrailMapElementOneOf2ToJSON(value);
72
- }
73
- if (instanceOfTrailMapElementOneOf3(value)) {
74
- return TrailMapElementOneOf3ToJSON(value);
75
- }
76
- if (instanceOfTrailMapElementOneOf4(value)) {
77
- return TrailMapElementOneOf4ToJSON(value);
78
- }
79
- if (instanceOfTrailMapElementOneOf5(value)) {
80
- return TrailMapElementOneOf5ToJSON(value);
81
- }
82
- if (instanceOfTrailMapElementOneOf6(value)) {
83
- return TrailMapElementOneOf6ToJSON(value);
84
- }
85
- return {};
86
- }
@@ -1,50 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@mtnmanager.com
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 GeoControlPoint
16
- */
17
- export interface GeoControlPoint {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof GeoControlPoint
22
- */
23
- pixelX: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof GeoControlPoint
28
- */
29
- pixelY: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof GeoControlPoint
34
- */
35
- lat: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof GeoControlPoint
40
- */
41
- lng: number;
42
- }
43
- /**
44
- * Check if a given object implements the GeoControlPoint interface.
45
- */
46
- export declare function instanceOfGeoControlPoint(value: object): value is GeoControlPoint;
47
- export declare function GeoControlPointFromJSON(json: any): GeoControlPoint;
48
- export declare function GeoControlPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoControlPoint;
49
- export declare function GeoControlPointToJSON(json: any): GeoControlPoint;
50
- export declare function GeoControlPointToJSONTyped(value?: GeoControlPoint | null, ignoreDiscriminator?: boolean): any;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * MtnManager API
6
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: support@mtnmanager.com
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.instanceOfGeoControlPoint = instanceOfGeoControlPoint;
17
- exports.GeoControlPointFromJSON = GeoControlPointFromJSON;
18
- exports.GeoControlPointFromJSONTyped = GeoControlPointFromJSONTyped;
19
- exports.GeoControlPointToJSON = GeoControlPointToJSON;
20
- exports.GeoControlPointToJSONTyped = GeoControlPointToJSONTyped;
21
- /**
22
- * Check if a given object implements the GeoControlPoint interface.
23
- */
24
- function instanceOfGeoControlPoint(value) {
25
- if ((!('pixelX' in value) && !('pixel_x' in value)) || (value['pixelX'] === undefined && value['pixel_x'] === undefined))
26
- return false;
27
- if ((!('pixelY' in value) && !('pixel_y' in value)) || (value['pixelY'] === undefined && value['pixel_y'] === undefined))
28
- return false;
29
- if (!('lat' in value) || value['lat'] === undefined)
30
- return false;
31
- if (!('lng' in value) || value['lng'] === undefined)
32
- return false;
33
- return true;
34
- }
35
- function GeoControlPointFromJSON(json) {
36
- return GeoControlPointFromJSONTyped(json, false);
37
- }
38
- function GeoControlPointFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'pixelX': json['pixel_x'],
44
- 'pixelY': json['pixel_y'],
45
- 'lat': json['lat'],
46
- 'lng': json['lng'],
47
- };
48
- }
49
- function GeoControlPointToJSON(json) {
50
- return GeoControlPointToJSONTyped(json, false);
51
- }
52
- function GeoControlPointToJSONTyped(value, ignoreDiscriminator = false) {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'pixel_x': value['pixelX'],
58
- 'pixel_y': value['pixelY'],
59
- 'lat': value['lat'],
60
- 'lng': value['lng'],
61
- };
62
- }
@@ -1,91 +0,0 @@
1
- /**
2
- * MtnManager API
3
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@mtnmanager.com
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 { ResortInfo } from './ResortInfo';
13
- import type { TrailMapElement } from './TrailMapElement';
14
- import type { SeasonType } from './SeasonType';
15
- import type { GeoControlPoint } from './GeoControlPoint';
16
- /**
17
- * A public trail map with enriched entity data.
18
- * @export
19
- * @interface TrailMap
20
- */
21
- export interface TrailMap {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof TrailMap
26
- */
27
- uuid: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof TrailMap
32
- */
33
- name: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof TrailMap
38
- */
39
- slug: string;
40
- /**
41
- *
42
- * @type {SeasonType}
43
- * @memberof TrailMap
44
- */
45
- season: SeasonType;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof TrailMap
50
- */
51
- displayOrder: number;
52
- /**
53
- * Monotonically incremented on every update. Clients can compare this
54
- * against a cached value to decide whether to reload the trail map.
55
- * @type {number}
56
- * @memberof TrailMap
57
- */
58
- version: number;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof TrailMap
63
- */
64
- backgroundImageUrl: string;
65
- /**
66
- *
67
- * @type {ResortInfo}
68
- * @memberof TrailMap
69
- */
70
- resort: ResortInfo;
71
- /**
72
- *
73
- * @type {Array<TrailMapElement>}
74
- * @memberof TrailMap
75
- */
76
- elements: Array<TrailMapElement>;
77
- /**
78
- *
79
- * @type {Array<GeoControlPoint>}
80
- * @memberof TrailMap
81
- */
82
- geoControlPoints?: Array<GeoControlPoint> | null;
83
- }
84
- /**
85
- * Check if a given object implements the TrailMap interface.
86
- */
87
- export declare function instanceOfTrailMap(value: object): value is TrailMap;
88
- export declare function TrailMapFromJSON(json: any): TrailMap;
89
- export declare function TrailMapFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMap;
90
- export declare function TrailMapToJSON(json: any): TrailMap;
91
- export declare function TrailMapToJSONTyped(value?: TrailMap | null, ignoreDiscriminator?: boolean): any;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * MtnManager API
6
- * The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: support@mtnmanager.com
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.instanceOfTrailMap = instanceOfTrailMap;
17
- exports.TrailMapFromJSON = TrailMapFromJSON;
18
- exports.TrailMapFromJSONTyped = TrailMapFromJSONTyped;
19
- exports.TrailMapToJSON = TrailMapToJSON;
20
- exports.TrailMapToJSONTyped = TrailMapToJSONTyped;
21
- const ResortInfo_1 = require("./ResortInfo");
22
- const TrailMapElement_1 = require("./TrailMapElement");
23
- const SeasonType_1 = require("./SeasonType");
24
- const GeoControlPoint_1 = require("./GeoControlPoint");
25
- /**
26
- * Check if a given object implements the TrailMap interface.
27
- */
28
- function instanceOfTrailMap(value) {
29
- if (!('uuid' in value) || value['uuid'] === undefined)
30
- return false;
31
- if (!('name' in value) || value['name'] === undefined)
32
- return false;
33
- if (!('slug' in value) || value['slug'] === undefined)
34
- return false;
35
- if (!('season' in value) || value['season'] === undefined)
36
- return false;
37
- if ((!('displayOrder' in value) && !('display_order' in value)) || (value['displayOrder'] === undefined && value['display_order'] === undefined))
38
- return false;
39
- if (!('version' in value) || value['version'] === undefined)
40
- return false;
41
- if ((!('backgroundImageUrl' in value) && !('background_image_url' in value)) || (value['backgroundImageUrl'] === undefined && value['background_image_url'] === undefined))
42
- return false;
43
- if (!('resort' in value) || value['resort'] === undefined)
44
- return false;
45
- if (!('elements' in value) || value['elements'] === undefined)
46
- return false;
47
- return true;
48
- }
49
- function TrailMapFromJSON(json) {
50
- return TrailMapFromJSONTyped(json, false);
51
- }
52
- function TrailMapFromJSONTyped(json, ignoreDiscriminator) {
53
- if (json == null) {
54
- return json;
55
- }
56
- return {
57
- 'uuid': json['uuid'],
58
- 'name': json['name'],
59
- 'slug': json['slug'],
60
- 'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
61
- 'displayOrder': json['display_order'],
62
- 'version': json['version'],
63
- 'backgroundImageUrl': json['background_image_url'],
64
- 'resort': (0, ResortInfo_1.ResortInfoFromJSON)(json['resort']),
65
- 'elements': (json['elements'].map(TrailMapElement_1.TrailMapElementFromJSON)),
66
- 'geoControlPoints': json['geo_control_points'] == null ? undefined : (json['geo_control_points'].map(GeoControlPoint_1.GeoControlPointFromJSON)),
67
- };
68
- }
69
- function TrailMapToJSON(json) {
70
- return TrailMapToJSONTyped(json, false);
71
- }
72
- function TrailMapToJSONTyped(value, ignoreDiscriminator = false) {
73
- if (value == null) {
74
- return value;
75
- }
76
- return {
77
- 'uuid': value['uuid'],
78
- 'name': value['name'],
79
- 'slug': value['slug'],
80
- 'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
81
- 'display_order': value['displayOrder'],
82
- 'version': value['version'],
83
- 'background_image_url': value['backgroundImageUrl'],
84
- 'resort': (0, ResortInfo_1.ResortInfoToJSON)(value['resort']),
85
- 'elements': (value['elements'].map(TrailMapElement_1.TrailMapElementToJSON)),
86
- 'geo_control_points': value['geoControlPoints'] == null ? undefined : (value['geoControlPoints'].map(GeoControlPoint_1.GeoControlPointToJSON)),
87
- };
88
- }