@mtnmanager/sdk 1.2.0 → 1.2.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.
@@ -70,7 +70,7 @@ export interface CalendarDay {
70
70
  * @type {Array<AmenityCalendarEntry>}
71
71
  * @memberof CalendarDay
72
72
  */
73
- amenities: Array<AmenityCalendarEntry>;
73
+ amenities?: Array<AmenityCalendarEntry>;
74
74
  }
75
75
  /**
76
76
  * Check if a given object implements the CalendarDay interface.
@@ -24,8 +24,6 @@ export function instanceOfCalendarDay(value) {
24
24
  return false;
25
25
  if (!('isOpen' in value) || value['isOpen'] === undefined)
26
26
  return false;
27
- if (!('amenities' in value) || value['amenities'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  export function CalendarDayFromJSON(json) {
@@ -43,7 +41,7 @@ export function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
43
41
  'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
44
42
  'closureReason': json['closure_reason'] == null ? undefined : ClosureReasonFromJSON(json['closure_reason']),
45
43
  'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
46
- 'amenities': (json['amenities'].map(AmenityCalendarEntryFromJSON)),
44
+ 'amenities': json['amenities'] == null ? undefined : (json['amenities'].map(AmenityCalendarEntryFromJSON)),
47
45
  };
48
46
  }
49
47
  export function CalendarDayToJSON(json) {
@@ -61,6 +59,6 @@ export function CalendarDayToJSONTyped(value, ignoreDiscriminator = false) {
61
59
  'closes_at': value['closesAt'],
62
60
  'closure_reason': ClosureReasonToJSON(value['closureReason']),
63
61
  'special_event': value['specialEvent'],
64
- 'amenities': (value['amenities'].map(AmenityCalendarEntryToJSON)),
62
+ 'amenities': value['amenities'] == null ? undefined : (value['amenities'].map(AmenityCalendarEntryToJSON)),
65
63
  };
66
64
  }
@@ -38,7 +38,7 @@ export interface OperatingHours {
38
38
  * @type {Array<AmenitySchedule>}
39
39
  * @memberof OperatingHours
40
40
  */
41
- amenitySchedules: Array<AmenitySchedule>;
41
+ amenitySchedules?: Array<AmenitySchedule>;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the OperatingHours interface.
@@ -22,8 +22,6 @@ export function instanceOfOperatingHours(value) {
22
22
  return false;
23
23
  if (!('calendarDays' in value) || value['calendarDays'] === undefined)
24
24
  return false;
25
- if (!('amenitySchedules' in value) || value['amenitySchedules'] === undefined)
26
- return false;
27
25
  return true;
28
26
  }
29
27
  export function OperatingHoursFromJSON(json) {
@@ -36,7 +34,7 @@ export function OperatingHoursFromJSONTyped(json, ignoreDiscriminator) {
36
34
  return {
37
35
  'schedules': (json['schedules'].map(ScheduleFromJSON)),
38
36
  'calendarDays': (json['calendar_days'].map(CalendarDayFromJSON)),
39
- 'amenitySchedules': (json['amenity_schedules'].map(AmenityScheduleFromJSON)),
37
+ 'amenitySchedules': json['amenity_schedules'] == null ? undefined : (json['amenity_schedules'].map(AmenityScheduleFromJSON)),
40
38
  };
41
39
  }
42
40
  export function OperatingHoursToJSON(json) {
@@ -49,6 +47,6 @@ export function OperatingHoursToJSONTyped(value, ignoreDiscriminator = false) {
49
47
  return {
50
48
  'schedules': (value['schedules'].map(ScheduleToJSON)),
51
49
  'calendar_days': (value['calendarDays'].map(CalendarDayToJSON)),
52
- 'amenity_schedules': (value['amenitySchedules'].map(AmenityScheduleToJSON)),
50
+ 'amenity_schedules': value['amenitySchedules'] == null ? undefined : (value['amenitySchedules'].map(AmenityScheduleToJSON)),
53
51
  };
54
52
  }
@@ -70,7 +70,7 @@ export interface CalendarDay {
70
70
  * @type {Array<AmenityCalendarEntry>}
71
71
  * @memberof CalendarDay
72
72
  */
73
- amenities: Array<AmenityCalendarEntry>;
73
+ amenities?: Array<AmenityCalendarEntry>;
74
74
  }
75
75
  /**
76
76
  * Check if a given object implements the CalendarDay interface.
@@ -31,8 +31,6 @@ function instanceOfCalendarDay(value) {
31
31
  return false;
32
32
  if (!('isOpen' in value) || value['isOpen'] === undefined)
33
33
  return false;
34
- if (!('amenities' in value) || value['amenities'] === undefined)
35
- return false;
36
34
  return true;
37
35
  }
38
36
  function CalendarDayFromJSON(json) {
@@ -50,7 +48,7 @@ function CalendarDayFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'closesAt': json['closes_at'] == null ? undefined : json['closes_at'],
51
49
  'closureReason': json['closure_reason'] == null ? undefined : (0, ClosureReason_1.ClosureReasonFromJSON)(json['closure_reason']),
52
50
  'specialEvent': json['special_event'] == null ? undefined : json['special_event'],
53
- 'amenities': (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
51
+ 'amenities': json['amenities'] == null ? undefined : (json['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryFromJSON)),
54
52
  };
55
53
  }
56
54
  function CalendarDayToJSON(json) {
@@ -68,6 +66,6 @@ function CalendarDayToJSONTyped(value, ignoreDiscriminator = false) {
68
66
  'closes_at': value['closesAt'],
69
67
  'closure_reason': (0, ClosureReason_1.ClosureReasonToJSON)(value['closureReason']),
70
68
  'special_event': value['specialEvent'],
71
- 'amenities': (value['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryToJSON)),
69
+ 'amenities': value['amenities'] == null ? undefined : (value['amenities'].map(AmenityCalendarEntry_1.AmenityCalendarEntryToJSON)),
72
70
  };
73
71
  }
@@ -38,7 +38,7 @@ export interface OperatingHours {
38
38
  * @type {Array<AmenitySchedule>}
39
39
  * @memberof OperatingHours
40
40
  */
41
- amenitySchedules: Array<AmenitySchedule>;
41
+ amenitySchedules?: Array<AmenitySchedule>;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the OperatingHours interface.
@@ -29,8 +29,6 @@ function instanceOfOperatingHours(value) {
29
29
  return false;
30
30
  if (!('calendarDays' in value) || value['calendarDays'] === undefined)
31
31
  return false;
32
- if (!('amenitySchedules' in value) || value['amenitySchedules'] === undefined)
33
- return false;
34
32
  return true;
35
33
  }
36
34
  function OperatingHoursFromJSON(json) {
@@ -43,7 +41,7 @@ function OperatingHoursFromJSONTyped(json, ignoreDiscriminator) {
43
41
  return {
44
42
  'schedules': (json['schedules'].map(Schedule_1.ScheduleFromJSON)),
45
43
  'calendarDays': (json['calendar_days'].map(CalendarDay_1.CalendarDayFromJSON)),
46
- 'amenitySchedules': (json['amenity_schedules'].map(AmenitySchedule_1.AmenityScheduleFromJSON)),
44
+ 'amenitySchedules': json['amenity_schedules'] == null ? undefined : (json['amenity_schedules'].map(AmenitySchedule_1.AmenityScheduleFromJSON)),
47
45
  };
48
46
  }
49
47
  function OperatingHoursToJSON(json) {
@@ -56,6 +54,6 @@ function OperatingHoursToJSONTyped(value, ignoreDiscriminator = false) {
56
54
  return {
57
55
  'schedules': (value['schedules'].map(Schedule_1.ScheduleToJSON)),
58
56
  'calendar_days': (value['calendarDays'].map(CalendarDay_1.CalendarDayToJSON)),
59
- 'amenity_schedules': (value['amenitySchedules'].map(AmenitySchedule_1.AmenityScheduleToJSON)),
57
+ 'amenity_schedules': value['amenitySchedules'] == null ? undefined : (value['amenitySchedules'].map(AmenitySchedule_1.AmenityScheduleToJSON)),
60
58
  };
61
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
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",