@mtnmanager/sdk 1.4.7 → 1.4.9

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.
Files changed (32) hide show
  1. package/README.md +10 -2
  2. package/dist/apis/MtnManagerApi.d.ts +171 -72
  3. package/dist/apis/MtnManagerApi.js +149 -71
  4. package/dist/esm/apis/MtnManagerApi.d.ts +171 -72
  5. package/dist/esm/apis/MtnManagerApi.js +149 -71
  6. package/dist/esm/models/MobileAppBanner.d.ts +56 -0
  7. package/dist/esm/models/MobileAppBanner.js +59 -0
  8. package/dist/esm/models/MobileAppResponse.d.ts +34 -0
  9. package/dist/esm/models/MobileAppResponse.js +44 -0
  10. package/dist/esm/models/Schedule.d.ts +1 -1
  11. package/dist/esm/models/TrailMapElementOneOf4.d.ts +6 -0
  12. package/dist/esm/models/TrailMapElementOneOf4.js +2 -0
  13. package/dist/esm/models/TrailMapElementOneOf5.d.ts +6 -0
  14. package/dist/esm/models/TrailMapElementOneOf5.js +2 -0
  15. package/dist/esm/models/TrailMapElementOneOf6.d.ts +6 -0
  16. package/dist/esm/models/TrailMapElementOneOf6.js +2 -0
  17. package/dist/esm/models/index.d.ts +2 -0
  18. package/dist/esm/models/index.js +2 -0
  19. package/dist/models/MobileAppBanner.d.ts +56 -0
  20. package/dist/models/MobileAppBanner.js +66 -0
  21. package/dist/models/MobileAppResponse.d.ts +34 -0
  22. package/dist/models/MobileAppResponse.js +51 -0
  23. package/dist/models/Schedule.d.ts +1 -1
  24. package/dist/models/TrailMapElementOneOf4.d.ts +6 -0
  25. package/dist/models/TrailMapElementOneOf4.js +2 -0
  26. package/dist/models/TrailMapElementOneOf5.d.ts +6 -0
  27. package/dist/models/TrailMapElementOneOf5.js +2 -0
  28. package/dist/models/TrailMapElementOneOf6.d.ts +6 -0
  29. package/dist/models/TrailMapElementOneOf6.js +2 -0
  30. package/dist/models/index.d.ts +2 -0
  31. package/dist/models/index.js +2 -0
  32. package/package.json +1 -1
@@ -0,0 +1,44 @@
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 { MobileAppBannerFromJSON, MobileAppBannerToJSON, } from './MobileAppBanner';
15
+ /**
16
+ * Check if a given object implements the MobileAppResponse interface.
17
+ */
18
+ export function instanceOfMobileAppResponse(value) {
19
+ if (!('banners' in value) || value['banners'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function MobileAppResponseFromJSON(json) {
24
+ return MobileAppResponseFromJSONTyped(json, false);
25
+ }
26
+ export function MobileAppResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'banners': (json['banners'].map(MobileAppBannerFromJSON)),
32
+ };
33
+ }
34
+ export function MobileAppResponseToJSON(json) {
35
+ return MobileAppResponseToJSONTyped(json, false);
36
+ }
37
+ export function MobileAppResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'banners': (value['banners'].map(MobileAppBannerToJSON)),
43
+ };
44
+ }
@@ -35,7 +35,7 @@ export interface Schedule {
35
35
  daysOfWeek: Array<DayOfWeek>;
36
36
  /**
37
37
  * Human-readable time range.
38
- * Example: "9:00 a.m. to 4:00 p.m."
38
+ * Example: "9:00 AM to 4:00 PM"
39
39
  * @type {string}
40
40
  * @memberof Schedule
41
41
  */
@@ -59,6 +59,12 @@ export interface TrailMapElementOneOf4 {
59
59
  * @memberof TrailMapElementOneOf4
60
60
  */
61
61
  amenity?: Amenity | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof TrailMapElementOneOf4
66
+ */
67
+ groupLabel?: string | null;
62
68
  }
63
69
  /**
64
70
  * @export
@@ -50,6 +50,7 @@ export function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
50
50
  'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
51
51
  'color': json['color'] == null ? undefined : json['color'],
52
52
  'amenity': json['amenity'] == null ? undefined : AmenityFromJSON(json['amenity']),
53
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
53
54
  };
54
55
  }
55
56
  export function TrailMapElementOneOf4ToJSON(json) {
@@ -67,5 +68,6 @@ export function TrailMapElementOneOf4ToJSONTyped(value, ignoreDiscriminator = fa
67
68
  'icon': MarkerIconToJSON(value['icon']),
68
69
  'color': value['color'],
69
70
  'amenity': AmenityToJSON(value['amenity']),
71
+ 'group_label': value['groupLabel'],
70
72
  };
71
73
  }
@@ -59,6 +59,12 @@ export interface TrailMapElementOneOf5 {
59
59
  * @memberof TrailMapElementOneOf5
60
60
  */
61
61
  parkingLot?: ParkingLot | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof TrailMapElementOneOf5
66
+ */
67
+ groupLabel?: string | null;
62
68
  }
63
69
  /**
64
70
  * @export
@@ -50,6 +50,7 @@ export function TrailMapElementOneOf5FromJSONTyped(json, ignoreDiscriminator) {
50
50
  'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
51
51
  'color': json['color'] == null ? undefined : json['color'],
52
52
  'parkingLot': json['parking_lot'] == null ? undefined : ParkingLotFromJSON(json['parking_lot']),
53
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
53
54
  };
54
55
  }
55
56
  export function TrailMapElementOneOf5ToJSON(json) {
@@ -67,5 +68,6 @@ export function TrailMapElementOneOf5ToJSONTyped(value, ignoreDiscriminator = fa
67
68
  'icon': MarkerIconToJSON(value['icon']),
68
69
  'color': value['color'],
69
70
  'parking_lot': ParkingLotToJSON(value['parkingLot']),
71
+ 'group_label': value['groupLabel'],
70
72
  };
71
73
  }
@@ -64,6 +64,12 @@ export interface TrailMapElementOneOf6 {
64
64
  * @memberof TrailMapElementOneOf6
65
65
  */
66
66
  searchable?: boolean | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof TrailMapElementOneOf6
71
+ */
72
+ groupLabel?: string | null;
67
73
  }
68
74
  /**
69
75
  * @export
@@ -52,6 +52,7 @@ export function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
52
52
  'color': json['color'] == null ? undefined : json['color'],
53
53
  'label': json['label'],
54
54
  'searchable': json['searchable'] == null ? undefined : json['searchable'],
55
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
55
56
  };
56
57
  }
57
58
  export function TrailMapElementOneOf6ToJSON(json) {
@@ -70,5 +71,6 @@ export function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = fa
70
71
  'color': value['color'],
71
72
  'label': value['label'],
72
73
  'searchable': value['searchable'],
74
+ 'group_label': value['groupLabel'],
73
75
  };
74
76
  }
@@ -25,6 +25,8 @@ export * from './Lift';
25
25
  export * from './LiftStatus';
26
26
  export * from './LiftType';
27
27
  export * from './MarkerIcon';
28
+ export * from './MobileAppBanner';
29
+ export * from './MobileAppResponse';
28
30
  export * from './OperatingHours';
29
31
  export * from './Overview';
30
32
  export * from './OverviewLifts';
@@ -27,6 +27,8 @@ export * from './Lift';
27
27
  export * from './LiftStatus';
28
28
  export * from './LiftType';
29
29
  export * from './MarkerIcon';
30
+ export * from './MobileAppBanner';
31
+ export * from './MobileAppResponse';
30
32
  export * from './OperatingHours';
31
33
  export * from './Overview';
32
34
  export * from './OverviewLifts';
@@ -0,0 +1,56 @@
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
+ * A banner shown in the mobile app.
14
+ * @export
15
+ * @interface MobileAppBanner
16
+ */
17
+ export interface MobileAppBanner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MobileAppBanner
22
+ */
23
+ title: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MobileAppBanner
28
+ */
29
+ uuid: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MobileAppBanner
34
+ */
35
+ subtitle: string;
36
+ /**
37
+ * Full public URL of the banner image.
38
+ * @type {string}
39
+ * @memberof MobileAppBanner
40
+ */
41
+ image: string;
42
+ /**
43
+ * Destination URL opened when the banner is tapped.
44
+ * @type {string}
45
+ * @memberof MobileAppBanner
46
+ */
47
+ url: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the MobileAppBanner interface.
51
+ */
52
+ export declare function instanceOfMobileAppBanner(value: object): value is MobileAppBanner;
53
+ export declare function MobileAppBannerFromJSON(json: any): MobileAppBanner;
54
+ export declare function MobileAppBannerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppBanner;
55
+ export declare function MobileAppBannerToJSON(json: any): MobileAppBanner;
56
+ export declare function MobileAppBannerToJSONTyped(value?: MobileAppBanner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfMobileAppBanner = instanceOfMobileAppBanner;
17
+ exports.MobileAppBannerFromJSON = MobileAppBannerFromJSON;
18
+ exports.MobileAppBannerFromJSONTyped = MobileAppBannerFromJSONTyped;
19
+ exports.MobileAppBannerToJSON = MobileAppBannerToJSON;
20
+ exports.MobileAppBannerToJSONTyped = MobileAppBannerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MobileAppBanner interface.
23
+ */
24
+ function instanceOfMobileAppBanner(value) {
25
+ if (!('title' in value) || value['title'] === undefined)
26
+ return false;
27
+ if (!('uuid' in value) || value['uuid'] === undefined)
28
+ return false;
29
+ if (!('subtitle' in value) || value['subtitle'] === undefined)
30
+ return false;
31
+ if (!('image' in value) || value['image'] === undefined)
32
+ return false;
33
+ if (!('url' in value) || value['url'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function MobileAppBannerFromJSON(json) {
38
+ return MobileAppBannerFromJSONTyped(json, false);
39
+ }
40
+ function MobileAppBannerFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'title': json['title'],
46
+ 'uuid': json['uuid'],
47
+ 'subtitle': json['subtitle'],
48
+ 'image': json['image'],
49
+ 'url': json['url'],
50
+ };
51
+ }
52
+ function MobileAppBannerToJSON(json) {
53
+ return MobileAppBannerToJSONTyped(json, false);
54
+ }
55
+ function MobileAppBannerToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'title': value['title'],
61
+ 'uuid': value['uuid'],
62
+ 'subtitle': value['subtitle'],
63
+ 'image': value['image'],
64
+ 'url': value['url'],
65
+ };
66
+ }
@@ -0,0 +1,34 @@
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 { MobileAppBanner } from './MobileAppBanner';
13
+ /**
14
+ * Aggregated mobile-app data for the resort. New mobile-app surface area is
15
+ * added as additional fields on this response.
16
+ * @export
17
+ * @interface MobileAppResponse
18
+ */
19
+ export interface MobileAppResponse {
20
+ /**
21
+ * Banners shown in the mobile app, in display order.
22
+ * @type {Array<MobileAppBanner>}
23
+ * @memberof MobileAppResponse
24
+ */
25
+ banners: Array<MobileAppBanner>;
26
+ }
27
+ /**
28
+ * Check if a given object implements the MobileAppResponse interface.
29
+ */
30
+ export declare function instanceOfMobileAppResponse(value: object): value is MobileAppResponse;
31
+ export declare function MobileAppResponseFromJSON(json: any): MobileAppResponse;
32
+ export declare function MobileAppResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppResponse;
33
+ export declare function MobileAppResponseToJSON(json: any): MobileAppResponse;
34
+ export declare function MobileAppResponseToJSONTyped(value?: MobileAppResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfMobileAppResponse = instanceOfMobileAppResponse;
17
+ exports.MobileAppResponseFromJSON = MobileAppResponseFromJSON;
18
+ exports.MobileAppResponseFromJSONTyped = MobileAppResponseFromJSONTyped;
19
+ exports.MobileAppResponseToJSON = MobileAppResponseToJSON;
20
+ exports.MobileAppResponseToJSONTyped = MobileAppResponseToJSONTyped;
21
+ const MobileAppBanner_1 = require("./MobileAppBanner");
22
+ /**
23
+ * Check if a given object implements the MobileAppResponse interface.
24
+ */
25
+ function instanceOfMobileAppResponse(value) {
26
+ if (!('banners' in value) || value['banners'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function MobileAppResponseFromJSON(json) {
31
+ return MobileAppResponseFromJSONTyped(json, false);
32
+ }
33
+ function MobileAppResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'banners': (json['banners'].map(MobileAppBanner_1.MobileAppBannerFromJSON)),
39
+ };
40
+ }
41
+ function MobileAppResponseToJSON(json) {
42
+ return MobileAppResponseToJSONTyped(json, false);
43
+ }
44
+ function MobileAppResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'banners': (value['banners'].map(MobileAppBanner_1.MobileAppBannerToJSON)),
50
+ };
51
+ }
@@ -35,7 +35,7 @@ export interface Schedule {
35
35
  daysOfWeek: Array<DayOfWeek>;
36
36
  /**
37
37
  * Human-readable time range.
38
- * Example: "9:00 a.m. to 4:00 p.m."
38
+ * Example: "9:00 AM to 4:00 PM"
39
39
  * @type {string}
40
40
  * @memberof Schedule
41
41
  */
@@ -59,6 +59,12 @@ export interface TrailMapElementOneOf4 {
59
59
  * @memberof TrailMapElementOneOf4
60
60
  */
61
61
  amenity?: Amenity | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof TrailMapElementOneOf4
66
+ */
67
+ groupLabel?: string | null;
62
68
  }
63
69
  /**
64
70
  * @export
@@ -58,6 +58,7 @@ function TrailMapElementOneOf4FromJSONTyped(json, ignoreDiscriminator) {
58
58
  'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
59
  'color': json['color'] == null ? undefined : json['color'],
60
60
  'amenity': json['amenity'] == null ? undefined : (0, Amenity_1.AmenityFromJSON)(json['amenity']),
61
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
61
62
  };
62
63
  }
63
64
  function TrailMapElementOneOf4ToJSON(json) {
@@ -75,5 +76,6 @@ function TrailMapElementOneOf4ToJSONTyped(value, ignoreDiscriminator = false) {
75
76
  'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
76
77
  'color': value['color'],
77
78
  'amenity': (0, Amenity_1.AmenityToJSON)(value['amenity']),
79
+ 'group_label': value['groupLabel'],
78
80
  };
79
81
  }
@@ -59,6 +59,12 @@ export interface TrailMapElementOneOf5 {
59
59
  * @memberof TrailMapElementOneOf5
60
60
  */
61
61
  parkingLot?: ParkingLot | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof TrailMapElementOneOf5
66
+ */
67
+ groupLabel?: string | null;
62
68
  }
63
69
  /**
64
70
  * @export
@@ -58,6 +58,7 @@ function TrailMapElementOneOf5FromJSONTyped(json, ignoreDiscriminator) {
58
58
  'icon': json['icon'] == null ? undefined : (0, MarkerIcon_1.MarkerIconFromJSON)(json['icon']),
59
59
  'color': json['color'] == null ? undefined : json['color'],
60
60
  'parkingLot': json['parking_lot'] == null ? undefined : (0, ParkingLot_1.ParkingLotFromJSON)(json['parking_lot']),
61
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
61
62
  };
62
63
  }
63
64
  function TrailMapElementOneOf5ToJSON(json) {
@@ -75,5 +76,6 @@ function TrailMapElementOneOf5ToJSONTyped(value, ignoreDiscriminator = false) {
75
76
  'icon': (0, MarkerIcon_1.MarkerIconToJSON)(value['icon']),
76
77
  'color': value['color'],
77
78
  'parking_lot': (0, ParkingLot_1.ParkingLotToJSON)(value['parkingLot']),
79
+ 'group_label': value['groupLabel'],
78
80
  };
79
81
  }
@@ -64,6 +64,12 @@ export interface TrailMapElementOneOf6 {
64
64
  * @memberof TrailMapElementOneOf6
65
65
  */
66
66
  searchable?: boolean | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof TrailMapElementOneOf6
71
+ */
72
+ groupLabel?: string | null;
67
73
  }
68
74
  /**
69
75
  * @export
@@ -60,6 +60,7 @@ function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
60
60
  'color': json['color'] == null ? undefined : json['color'],
61
61
  'label': json['label'],
62
62
  'searchable': json['searchable'] == null ? undefined : json['searchable'],
63
+ 'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
63
64
  };
64
65
  }
65
66
  function TrailMapElementOneOf6ToJSON(json) {
@@ -78,5 +79,6 @@ function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
78
79
  'color': value['color'],
79
80
  'label': value['label'],
80
81
  'searchable': value['searchable'],
82
+ 'group_label': value['groupLabel'],
81
83
  };
82
84
  }
@@ -25,6 +25,8 @@ export * from './Lift';
25
25
  export * from './LiftStatus';
26
26
  export * from './LiftType';
27
27
  export * from './MarkerIcon';
28
+ export * from './MobileAppBanner';
29
+ export * from './MobileAppResponse';
28
30
  export * from './OperatingHours';
29
31
  export * from './Overview';
30
32
  export * from './OverviewLifts';
@@ -43,6 +43,8 @@ __exportStar(require("./Lift"), exports);
43
43
  __exportStar(require("./LiftStatus"), exports);
44
44
  __exportStar(require("./LiftType"), exports);
45
45
  __exportStar(require("./MarkerIcon"), exports);
46
+ __exportStar(require("./MobileAppBanner"), exports);
47
+ __exportStar(require("./MobileAppResponse"), exports);
46
48
  __exportStar(require("./OperatingHours"), exports);
47
49
  __exportStar(require("./Overview"), exports);
48
50
  __exportStar(require("./OverviewLifts"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
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",