@mtnmanager/sdk 0.0.11 → 0.0.13

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 (96) hide show
  1. package/README.md +4 -5
  2. package/dist/esm/models/CurrentWeather.d.ts +24 -24
  3. package/dist/esm/models/CurrentWeather.js +16 -16
  4. package/dist/esm/models/DailyForecast.d.ts +12 -12
  5. package/dist/esm/models/DailyForecast.js +8 -8
  6. package/dist/esm/models/DailyForecastImperial.d.ts +12 -12
  7. package/dist/esm/models/DailyForecastImperial.js +11 -11
  8. package/dist/esm/models/DailyForecastMetric.d.ts +12 -12
  9. package/dist/esm/models/DailyForecastMetric.js +11 -11
  10. package/dist/esm/models/DayHours.d.ts +4 -4
  11. package/dist/esm/models/DayHours.js +2 -2
  12. package/dist/esm/models/HourlyForecast.d.ts +14 -14
  13. package/dist/esm/models/HourlyForecast.js +14 -14
  14. package/dist/esm/models/HourlyForecastImperial.d.ts +10 -10
  15. package/dist/esm/models/HourlyForecastImperial.js +11 -11
  16. package/dist/esm/models/HourlyForecastMetric.d.ts +10 -10
  17. package/dist/esm/models/HourlyForecastMetric.js +11 -11
  18. package/dist/esm/models/ImperialUnits.d.ts +10 -10
  19. package/dist/esm/models/ImperialUnits.js +13 -13
  20. package/dist/esm/models/MetricUnits.d.ts +10 -10
  21. package/dist/esm/models/MetricUnits.js +13 -13
  22. package/dist/esm/models/PublicLift.d.ts +22 -16
  23. package/dist/esm/models/PublicLift.js +18 -16
  24. package/dist/esm/models/PublicResortInfo.d.ts +6 -6
  25. package/dist/esm/models/PublicResortInfo.js +4 -4
  26. package/dist/esm/models/PublicResortResponse.d.ts +10 -10
  27. package/dist/esm/models/PublicResortResponse.js +8 -8
  28. package/dist/esm/models/PublicResortStatus.d.ts +18 -18
  29. package/dist/esm/models/PublicResortStatus.js +23 -23
  30. package/dist/esm/models/PublicRun.d.ts +20 -14
  31. package/dist/esm/models/PublicRun.js +24 -22
  32. package/dist/esm/models/PublicSnowReport.d.ts +16 -16
  33. package/dist/esm/models/PublicSnowReport.js +10 -10
  34. package/dist/esm/models/RecurrencePattern.d.ts +1 -2
  35. package/dist/esm/models/RecurrencePattern.js +0 -7
  36. package/dist/esm/models/RecurrencePatternOneOf1.d.ts +7 -1
  37. package/dist/esm/models/RecurrencePatternOneOf1.js +5 -1
  38. package/dist/esm/models/Schedule.d.ts +10 -10
  39. package/dist/esm/models/Schedule.js +20 -20
  40. package/dist/esm/models/SnowMetrics.d.ts +4 -4
  41. package/dist/esm/models/SnowMetrics.js +4 -4
  42. package/dist/esm/models/WeatherData.d.ts +9 -9
  43. package/dist/esm/models/WeatherData.js +7 -7
  44. package/dist/esm/models/index.d.ts +0 -1
  45. package/dist/esm/models/index.js +0 -1
  46. package/dist/esm/runtime.js +1 -1
  47. package/dist/models/CurrentWeather.d.ts +24 -24
  48. package/dist/models/CurrentWeather.js +16 -16
  49. package/dist/models/DailyForecast.d.ts +12 -12
  50. package/dist/models/DailyForecast.js +8 -8
  51. package/dist/models/DailyForecastImperial.d.ts +12 -12
  52. package/dist/models/DailyForecastImperial.js +11 -11
  53. package/dist/models/DailyForecastMetric.d.ts +12 -12
  54. package/dist/models/DailyForecastMetric.js +11 -11
  55. package/dist/models/DayHours.d.ts +4 -4
  56. package/dist/models/DayHours.js +2 -2
  57. package/dist/models/HourlyForecast.d.ts +14 -14
  58. package/dist/models/HourlyForecast.js +14 -14
  59. package/dist/models/HourlyForecastImperial.d.ts +10 -10
  60. package/dist/models/HourlyForecastImperial.js +11 -11
  61. package/dist/models/HourlyForecastMetric.d.ts +10 -10
  62. package/dist/models/HourlyForecastMetric.js +11 -11
  63. package/dist/models/ImperialUnits.d.ts +10 -10
  64. package/dist/models/ImperialUnits.js +13 -13
  65. package/dist/models/MetricUnits.d.ts +10 -10
  66. package/dist/models/MetricUnits.js +13 -13
  67. package/dist/models/PublicLift.d.ts +22 -16
  68. package/dist/models/PublicLift.js +18 -16
  69. package/dist/models/PublicResortInfo.d.ts +6 -6
  70. package/dist/models/PublicResortInfo.js +4 -4
  71. package/dist/models/PublicResortResponse.d.ts +10 -10
  72. package/dist/models/PublicResortResponse.js +8 -8
  73. package/dist/models/PublicResortStatus.d.ts +18 -18
  74. package/dist/models/PublicResortStatus.js +23 -23
  75. package/dist/models/PublicRun.d.ts +20 -14
  76. package/dist/models/PublicRun.js +24 -22
  77. package/dist/models/PublicSnowReport.d.ts +16 -16
  78. package/dist/models/PublicSnowReport.js +10 -10
  79. package/dist/models/RecurrencePattern.d.ts +1 -2
  80. package/dist/models/RecurrencePattern.js +0 -7
  81. package/dist/models/RecurrencePatternOneOf1.d.ts +7 -1
  82. package/dist/models/RecurrencePatternOneOf1.js +5 -1
  83. package/dist/models/Schedule.d.ts +10 -10
  84. package/dist/models/Schedule.js +20 -20
  85. package/dist/models/SnowMetrics.d.ts +4 -4
  86. package/dist/models/SnowMetrics.js +4 -4
  87. package/dist/models/WeatherData.d.ts +9 -9
  88. package/dist/models/WeatherData.js +7 -7
  89. package/dist/models/index.d.ts +0 -1
  90. package/dist/models/index.js +0 -1
  91. package/dist/runtime.js +1 -1
  92. package/package.json +1 -1
  93. package/dist/esm/models/RecurrencePatternOneOf2.d.ts +0 -45
  94. package/dist/esm/models/RecurrencePatternOneOf2.js +0 -53
  95. package/dist/models/RecurrencePatternOneOf2.d.ts +0 -45
  96. package/dist/models/RecurrencePatternOneOf2.js +0 -61
@@ -22,19 +22,25 @@ export interface PublicRun {
22
22
  * @type {string}
23
23
  * @memberof PublicRun
24
24
  */
25
- areaName?: string | null;
25
+ uuid: string;
26
26
  /**
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof PublicRun
30
30
  */
31
- areaUuid?: string | null;
31
+ name: string;
32
32
  /**
33
33
  *
34
34
  * @type {string}
35
35
  * @memberof PublicRun
36
36
  */
37
- conditionNotes: string;
37
+ slug: string;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof PublicRun
42
+ */
43
+ number?: number | null;
38
44
  /**
39
45
  *
40
46
  * @type {RunDifficulty}
@@ -43,10 +49,10 @@ export interface PublicRun {
43
49
  difficulty: RunDifficulty;
44
50
  /**
45
51
  *
46
- * @type {boolean}
52
+ * @type {RunStatus}
47
53
  * @memberof PublicRun
48
54
  */
49
- groomedToday: boolean;
55
+ status: RunStatus;
50
56
  /**
51
57
  *
52
58
  * @type {string}
@@ -55,34 +61,34 @@ export interface PublicRun {
55
61
  lastGroomed?: string | null;
56
62
  /**
57
63
  *
58
- * @type {string}
64
+ * @type {boolean}
59
65
  * @memberof PublicRun
60
66
  */
61
- name: string;
67
+ groomedToday: boolean;
62
68
  /**
63
69
  *
64
- * @type {number}
70
+ * @type {string}
65
71
  * @memberof PublicRun
66
72
  */
67
- number?: number | null;
73
+ conditionNotes: string;
68
74
  /**
69
75
  *
70
76
  * @type {string}
71
77
  * @memberof PublicRun
72
78
  */
73
- slug: string;
79
+ areaUuid?: string | null;
74
80
  /**
75
81
  *
76
- * @type {RunStatus}
82
+ * @type {string}
77
83
  * @memberof PublicRun
78
84
  */
79
- status: RunStatus;
85
+ areaName?: string | null;
80
86
  /**
81
87
  *
82
- * @type {string}
88
+ * @type {number}
83
89
  * @memberof PublicRun
84
90
  */
85
- uuid: string;
91
+ areaDisplayOrder?: number | null;
86
92
  }
87
93
  /**
88
94
  * Check if a given object implements the PublicRun interface.
@@ -24,19 +24,19 @@ const RunDifficulty_1 = require("./RunDifficulty");
24
24
  * Check if a given object implements the PublicRun interface.
25
25
  */
26
26
  function instanceOfPublicRun(value) {
27
- if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
28
- return false;
29
- if (!('difficulty' in value) || value['difficulty'] === undefined)
30
- return false;
31
- if (!('groomedToday' in value) || value['groomedToday'] === undefined)
27
+ if (!('uuid' in value) || value['uuid'] === undefined)
32
28
  return false;
33
29
  if (!('name' in value) || value['name'] === undefined)
34
30
  return false;
35
31
  if (!('slug' in value) || value['slug'] === undefined)
36
32
  return false;
33
+ if (!('difficulty' in value) || value['difficulty'] === undefined)
34
+ return false;
37
35
  if (!('status' in value) || value['status'] === undefined)
38
36
  return false;
39
- if (!('uuid' in value) || value['uuid'] === undefined)
37
+ if (!('groomedToday' in value) || value['groomedToday'] === undefined)
38
+ return false;
39
+ if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
40
40
  return false;
41
41
  return true;
42
42
  }
@@ -48,17 +48,18 @@ function PublicRunFromJSONTyped(json, ignoreDiscriminator) {
48
48
  return json;
49
49
  }
50
50
  return {
51
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
52
- 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
53
- 'conditionNotes': json['condition_notes'],
54
- 'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
55
- 'groomedToday': json['groomed_today'],
56
- 'lastGroomed': json['last_groomed'] == null ? undefined : json['last_groomed'],
51
+ 'uuid': json['uuid'],
57
52
  'name': json['name'],
58
- 'number': json['number'] == null ? undefined : json['number'],
59
53
  'slug': json['slug'],
54
+ 'number': json['number'] == null ? undefined : json['number'],
55
+ 'difficulty': (0, RunDifficulty_1.RunDifficultyFromJSON)(json['difficulty']),
60
56
  'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
61
- 'uuid': json['uuid'],
57
+ 'lastGroomed': json['last_groomed'] == null ? undefined : json['last_groomed'],
58
+ 'groomedToday': json['groomed_today'],
59
+ 'conditionNotes': json['condition_notes'],
60
+ 'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
61
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
62
+ 'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
62
63
  };
63
64
  }
64
65
  function PublicRunToJSON(json) {
@@ -69,16 +70,17 @@ function PublicRunToJSONTyped(value, ignoreDiscriminator = false) {
69
70
  return value;
70
71
  }
71
72
  return {
72
- 'area_name': value['areaName'],
73
- 'area_uuid': value['areaUuid'],
74
- 'condition_notes': value['conditionNotes'],
75
- 'difficulty': (0, RunDifficulty_1.RunDifficultyToJSON)(value['difficulty']),
76
- 'groomed_today': value['groomedToday'],
77
- 'last_groomed': value['lastGroomed'],
73
+ 'uuid': value['uuid'],
78
74
  'name': value['name'],
79
- 'number': value['number'],
80
75
  'slug': value['slug'],
76
+ 'number': value['number'],
77
+ 'difficulty': (0, RunDifficulty_1.RunDifficultyToJSON)(value['difficulty']),
81
78
  'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
82
- 'uuid': value['uuid'],
79
+ 'last_groomed': value['lastGroomed'],
80
+ 'groomed_today': value['groomedToday'],
81
+ 'condition_notes': value['conditionNotes'],
82
+ 'area_uuid': value['areaUuid'],
83
+ 'area_name': value['areaName'],
84
+ 'area_display_order': value['areaDisplayOrder'],
83
85
  };
84
86
  }
@@ -22,7 +22,7 @@ export interface PublicSnowReport {
22
22
  * @type {string}
23
23
  * @memberof PublicSnowReport
24
24
  */
25
- areaName?: string | null;
25
+ uuid: string;
26
26
  /**
27
27
  *
28
28
  * @type {string}
@@ -31,28 +31,28 @@ export interface PublicSnowReport {
31
31
  areaUuid?: string | null;
32
32
  /**
33
33
  *
34
- * @type {number}
34
+ * @type {string}
35
35
  * @memberof PublicSnowReport
36
36
  */
37
- baseDepthCm?: number | null;
37
+ areaName?: string | null;
38
38
  /**
39
39
  *
40
40
  * @type {number}
41
41
  * @memberof PublicSnowReport
42
42
  */
43
- baseDepthIn?: number | null;
43
+ baseDepthCm?: number | null;
44
44
  /**
45
45
  *
46
- * @type {string}
46
+ * @type {number}
47
47
  * @memberof PublicSnowReport
48
48
  */
49
- conditionNotes: string;
49
+ baseDepthIn?: number | null;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {SurfaceCondition}
53
53
  * @memberof PublicSnowReport
54
54
  */
55
- reportedAt: string;
55
+ surfaceCondition?: SurfaceCondition | null;
56
56
  /**
57
57
  *
58
58
  * @type {SurfaceCondition}
@@ -61,28 +61,28 @@ export interface PublicSnowReport {
61
61
  secondarySurfaceCondition?: SurfaceCondition | null;
62
62
  /**
63
63
  *
64
- * @type {SnowMetrics}
64
+ * @type {string}
65
65
  * @memberof PublicSnowReport
66
66
  */
67
- snowfallCm: SnowMetrics;
67
+ conditionNotes: string;
68
68
  /**
69
69
  *
70
- * @type {SnowMetrics}
70
+ * @type {string}
71
71
  * @memberof PublicSnowReport
72
72
  */
73
- snowfallIn: SnowMetrics;
73
+ reportedAt: string;
74
74
  /**
75
75
  *
76
- * @type {SurfaceCondition}
76
+ * @type {SnowMetrics}
77
77
  * @memberof PublicSnowReport
78
78
  */
79
- surfaceCondition?: SurfaceCondition | null;
79
+ snowfallCm: SnowMetrics;
80
80
  /**
81
81
  *
82
- * @type {string}
82
+ * @type {SnowMetrics}
83
83
  * @memberof PublicSnowReport
84
84
  */
85
- uuid: string;
85
+ snowfallIn: SnowMetrics;
86
86
  }
87
87
  /**
88
88
  * Check if a given object implements the PublicSnowReport interface.
@@ -24,6 +24,8 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
24
24
  * Check if a given object implements the PublicSnowReport interface.
25
25
  */
26
26
  function instanceOfPublicSnowReport(value) {
27
+ if (!('uuid' in value) || value['uuid'] === undefined)
28
+ return false;
27
29
  if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
28
30
  return false;
29
31
  if (!('reportedAt' in value) || value['reportedAt'] === undefined)
@@ -32,8 +34,6 @@ function instanceOfPublicSnowReport(value) {
32
34
  return false;
33
35
  if (!('snowfallIn' in value) || value['snowfallIn'] === undefined)
34
36
  return false;
35
- if (!('uuid' in value) || value['uuid'] === undefined)
36
- return false;
37
37
  return true;
38
38
  }
39
39
  function PublicSnowReportFromJSON(json) {
@@ -44,17 +44,17 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
44
44
  return json;
45
45
  }
46
46
  return {
47
- 'areaName': json['area_name'] == null ? undefined : json['area_name'],
47
+ 'uuid': json['uuid'],
48
48
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
49
+ 'areaName': json['area_name'] == null ? undefined : json['area_name'],
49
50
  'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
50
51
  'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
52
+ 'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
53
+ 'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
51
54
  'conditionNotes': json['condition_notes'],
52
55
  'reportedAt': json['reported_at'],
53
- 'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
54
56
  'snowfallCm': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_cm']),
55
57
  'snowfallIn': (0, SnowMetrics_1.SnowMetricsFromJSON)(json['snowfall_in']),
56
- 'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
57
- 'uuid': json['uuid'],
58
58
  };
59
59
  }
60
60
  function PublicSnowReportToJSON(json) {
@@ -65,16 +65,16 @@ function PublicSnowReportToJSONTyped(value, ignoreDiscriminator = false) {
65
65
  return value;
66
66
  }
67
67
  return {
68
- 'area_name': value['areaName'],
68
+ 'uuid': value['uuid'],
69
69
  'area_uuid': value['areaUuid'],
70
+ 'area_name': value['areaName'],
70
71
  'base_depth_cm': value['baseDepthCm'],
71
72
  'base_depth_in': value['baseDepthIn'],
73
+ 'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
74
+ 'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
72
75
  'condition_notes': value['conditionNotes'],
73
76
  'reported_at': value['reportedAt'],
74
- 'secondary_surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['secondarySurfaceCondition']),
75
77
  'snowfall_cm': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallCm']),
76
78
  'snowfall_in': (0, SnowMetrics_1.SnowMetricsToJSON)(value['snowfallIn']),
77
- 'surface_condition': (0, SurfaceCondition_1.SurfaceConditionToJSON)(value['surfaceCondition']),
78
- 'uuid': value['uuid'],
79
79
  };
80
80
  }
@@ -11,13 +11,12 @@
11
11
  */
12
12
  import type { RecurrencePatternOneOf } from './RecurrencePatternOneOf';
13
13
  import type { RecurrencePatternOneOf1 } from './RecurrencePatternOneOf1';
14
- import type { RecurrencePatternOneOf2 } from './RecurrencePatternOneOf2';
15
14
  /**
16
15
  * @type RecurrencePattern
17
16
  * Recurrence pattern for operating hours rules
18
17
  * @export
19
18
  */
20
- export type RecurrencePattern = RecurrencePatternOneOf | RecurrencePatternOneOf1 | RecurrencePatternOneOf2;
19
+ export type RecurrencePattern = RecurrencePatternOneOf | RecurrencePatternOneOf1;
21
20
  export declare function RecurrencePatternFromJSON(json: any): RecurrencePattern;
22
21
  export declare function RecurrencePatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurrencePattern;
23
22
  export declare function RecurrencePatternToJSON(json: any): any;
@@ -19,7 +19,6 @@ exports.RecurrencePatternToJSON = RecurrencePatternToJSON;
19
19
  exports.RecurrencePatternToJSONTyped = RecurrencePatternToJSONTyped;
20
20
  const RecurrencePatternOneOf_1 = require("./RecurrencePatternOneOf");
21
21
  const RecurrencePatternOneOf1_1 = require("./RecurrencePatternOneOf1");
22
- const RecurrencePatternOneOf2_1 = require("./RecurrencePatternOneOf2");
23
22
  function RecurrencePatternFromJSON(json) {
24
23
  return RecurrencePatternFromJSONTyped(json, false);
25
24
  }
@@ -36,9 +35,6 @@ function RecurrencePatternFromJSONTyped(json, ignoreDiscriminator) {
36
35
  if ((0, RecurrencePatternOneOf1_1.instanceOfRecurrencePatternOneOf1)(json)) {
37
36
  return (0, RecurrencePatternOneOf1_1.RecurrencePatternOneOf1FromJSONTyped)(json, true);
38
37
  }
39
- if ((0, RecurrencePatternOneOf2_1.instanceOfRecurrencePatternOneOf2)(json)) {
40
- return (0, RecurrencePatternOneOf2_1.RecurrencePatternOneOf2FromJSONTyped)(json, true);
41
- }
42
38
  return {};
43
39
  }
44
40
  function RecurrencePatternToJSON(json) {
@@ -57,8 +53,5 @@ function RecurrencePatternToJSONTyped(value, ignoreDiscriminator = false) {
57
53
  if ((0, RecurrencePatternOneOf1_1.instanceOfRecurrencePatternOneOf1)(value)) {
58
54
  return (0, RecurrencePatternOneOf1_1.RecurrencePatternOneOf1ToJSON)(value);
59
55
  }
60
- if ((0, RecurrencePatternOneOf2_1.instanceOfRecurrencePatternOneOf2)(value)) {
61
- return (0, RecurrencePatternOneOf2_1.RecurrencePatternOneOf2ToJSON)(value);
62
- }
63
56
  return {};
64
57
  }
@@ -21,12 +21,18 @@ export interface RecurrencePatternOneOf1 {
21
21
  * @memberof RecurrencePatternOneOf1
22
22
  */
23
23
  type: RecurrencePatternOneOf1TypeEnum;
24
+ /**
25
+ *
26
+ * @type {Array<number>}
27
+ * @memberof RecurrencePatternOneOf1
28
+ */
29
+ days: Array<number>;
24
30
  }
25
31
  /**
26
32
  * @export
27
33
  */
28
34
  export declare const RecurrencePatternOneOf1TypeEnum: {
29
- readonly Daily: "daily";
35
+ readonly Weekly: "weekly";
30
36
  };
31
37
  export type RecurrencePatternOneOf1TypeEnum = typeof RecurrencePatternOneOf1TypeEnum[keyof typeof RecurrencePatternOneOf1TypeEnum];
32
38
  /**
@@ -23,7 +23,7 @@ exports.RecurrencePatternOneOf1ToJSONTyped = RecurrencePatternOneOf1ToJSONTyped;
23
23
  * @export
24
24
  */
25
25
  exports.RecurrencePatternOneOf1TypeEnum = {
26
- Daily: 'daily'
26
+ Weekly: 'weekly'
27
27
  };
28
28
  /**
29
29
  * Check if a given object implements the RecurrencePatternOneOf1 interface.
@@ -31,6 +31,8 @@ exports.RecurrencePatternOneOf1TypeEnum = {
31
31
  function instanceOfRecurrencePatternOneOf1(value) {
32
32
  if (!('type' in value) || value['type'] === undefined)
33
33
  return false;
34
+ if (!('days' in value) || value['days'] === undefined)
35
+ return false;
34
36
  return true;
35
37
  }
36
38
  function RecurrencePatternOneOf1FromJSON(json) {
@@ -42,6 +44,7 @@ function RecurrencePatternOneOf1FromJSONTyped(json, ignoreDiscriminator) {
42
44
  }
43
45
  return {
44
46
  'type': json['type'],
47
+ 'days': json['days'],
45
48
  };
46
49
  }
47
50
  function RecurrencePatternOneOf1ToJSON(json) {
@@ -53,5 +56,6 @@ function RecurrencePatternOneOf1ToJSONTyped(value, ignoreDiscriminator = false)
53
56
  }
54
57
  return {
55
58
  'type': value['type'],
59
+ 'days': value['days'],
56
60
  };
57
61
  }
@@ -21,7 +21,7 @@ export interface Schedule {
21
21
  * @type {string}
22
22
  * @memberof Schedule
23
23
  */
24
- closesAt: string;
24
+ daysString: string;
25
25
  /**
26
26
  *
27
27
  * @type {RecurrencePattern}
@@ -33,43 +33,43 @@ export interface Schedule {
33
33
  * @type {string}
34
34
  * @memberof Schedule
35
35
  */
36
- daysString: string;
36
+ timeString: string;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof Schedule
41
41
  */
42
- effectiveFrom: string;
42
+ opensAt: string;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
46
  * @memberof Schedule
47
47
  */
48
- effectiveString: string;
48
+ closesAt: string;
49
49
  /**
50
50
  *
51
- * @type {string}
51
+ * @type {boolean}
52
52
  * @memberof Schedule
53
53
  */
54
- effectiveTo: string;
54
+ inEffect: boolean;
55
55
  /**
56
56
  *
57
- * @type {boolean}
57
+ * @type {string}
58
58
  * @memberof Schedule
59
59
  */
60
- inEffect: boolean;
60
+ effectiveString: string;
61
61
  /**
62
62
  *
63
63
  * @type {string}
64
64
  * @memberof Schedule
65
65
  */
66
- opensAt: string;
66
+ effectiveFrom: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
70
  * @memberof Schedule
71
71
  */
72
- timeString: string;
72
+ effectiveTo: string;
73
73
  }
74
74
  /**
75
75
  * Check if a given object implements the Schedule interface.
@@ -23,23 +23,23 @@ const RecurrencePattern_1 = require("./RecurrencePattern");
23
23
  * Check if a given object implements the Schedule interface.
24
24
  */
25
25
  function instanceOfSchedule(value) {
26
- if (!('closesAt' in value) || value['closesAt'] === undefined)
26
+ if (!('daysString' in value) || value['daysString'] === undefined)
27
27
  return false;
28
28
  if (!('daysRecurrence' in value) || value['daysRecurrence'] === undefined)
29
29
  return false;
30
- if (!('daysString' in value) || value['daysString'] === undefined)
31
- return false;
32
- if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
30
+ if (!('timeString' in value) || value['timeString'] === undefined)
33
31
  return false;
34
- if (!('effectiveString' in value) || value['effectiveString'] === undefined)
32
+ if (!('opensAt' in value) || value['opensAt'] === undefined)
35
33
  return false;
36
- if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
34
+ if (!('closesAt' in value) || value['closesAt'] === undefined)
37
35
  return false;
38
36
  if (!('inEffect' in value) || value['inEffect'] === undefined)
39
37
  return false;
40
- if (!('opensAt' in value) || value['opensAt'] === undefined)
38
+ if (!('effectiveString' in value) || value['effectiveString'] === undefined)
41
39
  return false;
42
- if (!('timeString' in value) || value['timeString'] === undefined)
40
+ if (!('effectiveFrom' in value) || value['effectiveFrom'] === undefined)
41
+ return false;
42
+ if (!('effectiveTo' in value) || value['effectiveTo'] === undefined)
43
43
  return false;
44
44
  return true;
45
45
  }
@@ -51,15 +51,15 @@ function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
51
51
  return json;
52
52
  }
53
53
  return {
54
- 'closesAt': json['closes_at'],
55
- 'daysRecurrence': (0, RecurrencePattern_1.RecurrencePatternFromJSON)(json['days_recurrence']),
56
54
  'daysString': json['days_string'],
57
- 'effectiveFrom': json['effective_from'],
55
+ 'daysRecurrence': (0, RecurrencePattern_1.RecurrencePatternFromJSON)(json['days_recurrence']),
56
+ 'timeString': json['time_string'],
57
+ 'opensAt': json['opens_at'],
58
+ 'closesAt': json['closes_at'],
59
+ 'inEffect': json['in_effect'],
58
60
  'effectiveString': json['effective_string'],
61
+ 'effectiveFrom': json['effective_from'],
59
62
  'effectiveTo': json['effective_to'],
60
- 'inEffect': json['in_effect'],
61
- 'opensAt': json['opens_at'],
62
- 'timeString': json['time_string'],
63
63
  };
64
64
  }
65
65
  function ScheduleToJSON(json) {
@@ -70,14 +70,14 @@ function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
70
70
  return value;
71
71
  }
72
72
  return {
73
- 'closes_at': value['closesAt'],
74
- 'days_recurrence': (0, RecurrencePattern_1.RecurrencePatternToJSON)(value['daysRecurrence']),
75
73
  'days_string': value['daysString'],
76
- 'effective_from': value['effectiveFrom'],
74
+ 'days_recurrence': (0, RecurrencePattern_1.RecurrencePatternToJSON)(value['daysRecurrence']),
75
+ 'time_string': value['timeString'],
76
+ 'opens_at': value['opensAt'],
77
+ 'closes_at': value['closesAt'],
78
+ 'in_effect': value['inEffect'],
77
79
  'effective_string': value['effectiveString'],
80
+ 'effective_from': value['effectiveFrom'],
78
81
  'effective_to': value['effectiveTo'],
79
- 'in_effect': value['inEffect'],
80
- 'opens_at': value['opensAt'],
81
- 'time_string': value['timeString'],
82
82
  };
83
83
  }
@@ -20,25 +20,25 @@ export interface SnowMetrics {
20
20
  * @type {number}
21
21
  * @memberof SnowMetrics
22
22
  */
23
- last24h: number;
23
+ overnight: number;
24
24
  /**
25
25
  *
26
26
  * @type {number}
27
27
  * @memberof SnowMetrics
28
28
  */
29
- last48h: number;
29
+ last24h: number;
30
30
  /**
31
31
  *
32
32
  * @type {number}
33
33
  * @memberof SnowMetrics
34
34
  */
35
- last7days: number;
35
+ last48h: number;
36
36
  /**
37
37
  *
38
38
  * @type {number}
39
39
  * @memberof SnowMetrics
40
40
  */
41
- overnight: number;
41
+ last7days: number;
42
42
  /**
43
43
  *
44
44
  * @type {number}
@@ -22,14 +22,14 @@ exports.SnowMetricsToJSONTyped = SnowMetricsToJSONTyped;
22
22
  * Check if a given object implements the SnowMetrics interface.
23
23
  */
24
24
  function instanceOfSnowMetrics(value) {
25
+ if (!('overnight' in value) || value['overnight'] === undefined)
26
+ return false;
25
27
  if (!('last24h' in value) || value['last24h'] === undefined)
26
28
  return false;
27
29
  if (!('last48h' in value) || value['last48h'] === undefined)
28
30
  return false;
29
31
  if (!('last7days' in value) || value['last7days'] === undefined)
30
32
  return false;
31
- if (!('overnight' in value) || value['overnight'] === undefined)
32
- return false;
33
33
  if (!('seasonTotal' in value) || value['seasonTotal'] === undefined)
34
34
  return false;
35
35
  return true;
@@ -42,10 +42,10 @@ function SnowMetricsFromJSONTyped(json, ignoreDiscriminator) {
42
42
  return json;
43
43
  }
44
44
  return {
45
+ 'overnight': json['overnight'],
45
46
  'last24h': json['last_24h'],
46
47
  'last48h': json['last_48h'],
47
48
  'last7days': json['last_7days'],
48
- 'overnight': json['overnight'],
49
49
  'seasonTotal': json['season_total'],
50
50
  };
51
51
  }
@@ -57,10 +57,10 @@ function SnowMetricsToJSONTyped(value, ignoreDiscriminator = false) {
57
57
  return value;
58
58
  }
59
59
  return {
60
+ 'overnight': value['overnight'],
60
61
  'last_24h': value['last24h'],
61
62
  'last_48h': value['last48h'],
62
63
  'last_7days': value['last7days'],
63
- 'overnight': value['overnight'],
64
64
  'season_total': value['seasonTotal'],
65
65
  };
66
66
  }
@@ -18,18 +18,18 @@ import type { DailyForecast } from './DailyForecast';
18
18
  * @interface WeatherData
19
19
  */
20
20
  export interface WeatherData {
21
- /**
22
- * Data source attribution
23
- * @type {string}
24
- * @memberof WeatherData
25
- */
26
- attribution: string;
27
21
  /**
28
22
  * Current weather conditions
29
23
  * @type {CurrentWeather}
30
24
  * @memberof WeatherData
31
25
  */
32
26
  current: CurrentWeather;
27
+ /**
28
+ * Hourly forecast for next 24 hours
29
+ * @type {Array<HourlyForecast>}
30
+ * @memberof WeatherData
31
+ */
32
+ hourlyForecast: Array<HourlyForecast>;
33
33
  /**
34
34
  * Daily forecast for next 5 days
35
35
  * @type {Array<DailyForecast>}
@@ -37,11 +37,11 @@ export interface WeatherData {
37
37
  */
38
38
  dailyForecast: Array<DailyForecast>;
39
39
  /**
40
- * Hourly forecast for next 24 hours
41
- * @type {Array<HourlyForecast>}
40
+ * Data source attribution
41
+ * @type {string}
42
42
  * @memberof WeatherData
43
43
  */
44
- hourlyForecast: Array<HourlyForecast>;
44
+ attribution: string;
45
45
  /**
46
46
  * When this data was last updated
47
47
  * @type {string}