@mtnmanager/sdk 0.0.34 → 0.0.36

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @mtnmanager/sdk@0.0.34
1
+ # @mtnmanager/sdk@0.0.36
2
2
 
3
3
  A TypeScript SDK client for the your-resort.mtnmanager.com API.
4
4
 
@@ -112,7 +112,7 @@ and is automatically generated by the
112
112
  [OpenAPI Generator](https://openapi-generator.tech) project:
113
113
 
114
114
  - API version: `1.0.0`
115
- - Package version: `0.0.34`
115
+ - Package version: `0.0.36`
116
116
  - Generator version: `7.18.0`
117
117
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
118
118
 
@@ -66,7 +66,7 @@ export interface PublicResortStatus {
66
66
  * @type {Date}
67
67
  * @memberof PublicResortStatus
68
68
  */
69
- notesUpdatedAt?: Date | null;
69
+ notesUpdatedAt: Date;
70
70
  /**
71
71
  * Number of runs currently open.
72
72
  * Only included if the runs status feature is enabled.
@@ -25,6 +25,8 @@ export function instanceOfPublicResortStatus(value) {
25
25
  return false;
26
26
  if (!('notesHtml' in value) || value['notesHtml'] === undefined)
27
27
  return false;
28
+ if (!('notesUpdatedAt' in value) || value['notesUpdatedAt'] === undefined)
29
+ return false;
28
30
  if (!('totalRuns' in value) || value['totalRuns'] === undefined)
29
31
  return false;
30
32
  if (!('totalLifts' in value) || value['totalLifts'] === undefined)
@@ -45,7 +47,7 @@ export function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'season': SeasonTypeFromJSON(json['season']),
46
48
  'notes': json['notes'],
47
49
  'notesHtml': json['notes_html'],
48
- 'notesUpdatedAt': json['notes_updated_at'] == null ? undefined : (new Date(json['notes_updated_at'])),
50
+ 'notesUpdatedAt': (new Date(json['notes_updated_at'])),
49
51
  'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
50
52
  'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
51
53
  'totalRuns': json['total_runs'],
@@ -75,7 +77,7 @@ export function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false
75
77
  'season': SeasonTypeToJSON(value['season']),
76
78
  'notes': value['notes'],
77
79
  'notes_html': value['notesHtml'],
78
- 'notes_updated_at': value['notesUpdatedAt'] == null ? value['notesUpdatedAt'] : value['notesUpdatedAt'].toISOString(),
80
+ 'notes_updated_at': value['notesUpdatedAt'].toISOString(),
79
81
  'open_runs': value['openRuns'],
80
82
  'groomed_runs': value['groomedRuns'],
81
83
  'total_runs': value['totalRuns'],
@@ -48,16 +48,18 @@ export interface PublicSnowReport {
48
48
  areaDisplayOrder?: number | null;
49
49
  /**
50
50
  * Current base depth in centimeters.
51
+ * Only included if the base depth feature is enabled.
51
52
  * @type {number}
52
53
  * @memberof PublicSnowReport
53
54
  */
54
- baseDepthCm: number;
55
+ baseDepthCm?: number | null;
55
56
  /**
56
57
  * Current base depth in inches.
58
+ * Only included if the base depth feature is enabled.
57
59
  * @type {number}
58
60
  * @memberof PublicSnowReport
59
61
  */
60
- baseDepthIn: number;
62
+ baseDepthIn?: number | null;
61
63
  /**
62
64
  *
63
65
  * @type {SurfaceCondition}
@@ -19,10 +19,6 @@ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCond
19
19
  export function instanceOfPublicSnowReport(value) {
20
20
  if (!('uuid' in value) || value['uuid'] === undefined)
21
21
  return false;
22
- if (!('baseDepthCm' in value) || value['baseDepthCm'] === undefined)
23
- return false;
24
- if (!('baseDepthIn' in value) || value['baseDepthIn'] === undefined)
25
- return false;
26
22
  if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
27
23
  return false;
28
24
  if (!('reportedAt' in value) || value['reportedAt'] === undefined)
@@ -45,8 +41,8 @@ export function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
45
41
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
46
42
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
47
43
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
48
- 'baseDepthCm': json['base_depth_cm'],
49
- 'baseDepthIn': json['base_depth_in'],
44
+ 'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
45
+ 'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
50
46
  'surfaceCondition': json['surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['surface_condition']),
51
47
  'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : SurfaceConditionFromJSON(json['secondary_surface_condition']),
52
48
  'conditionNotes': json['condition_notes'],
@@ -66,7 +66,7 @@ export interface PublicResortStatus {
66
66
  * @type {Date}
67
67
  * @memberof PublicResortStatus
68
68
  */
69
- notesUpdatedAt?: Date | null;
69
+ notesUpdatedAt: Date;
70
70
  /**
71
71
  * Number of runs currently open.
72
72
  * Only included if the runs status feature is enabled.
@@ -32,6 +32,8 @@ function instanceOfPublicResortStatus(value) {
32
32
  return false;
33
33
  if (!('notesHtml' in value) || value['notesHtml'] === undefined)
34
34
  return false;
35
+ if (!('notesUpdatedAt' in value) || value['notesUpdatedAt'] === undefined)
36
+ return false;
35
37
  if (!('totalRuns' in value) || value['totalRuns'] === undefined)
36
38
  return false;
37
39
  if (!('totalLifts' in value) || value['totalLifts'] === undefined)
@@ -52,7 +54,7 @@ function PublicResortStatusFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
53
55
  'notes': json['notes'],
54
56
  'notesHtml': json['notes_html'],
55
- 'notesUpdatedAt': json['notes_updated_at'] == null ? undefined : (new Date(json['notes_updated_at'])),
57
+ 'notesUpdatedAt': (new Date(json['notes_updated_at'])),
56
58
  'openRuns': json['open_runs'] == null ? undefined : json['open_runs'],
57
59
  'groomedRuns': json['groomed_runs'] == null ? undefined : json['groomed_runs'],
58
60
  'totalRuns': json['total_runs'],
@@ -82,7 +84,7 @@ function PublicResortStatusToJSONTyped(value, ignoreDiscriminator = false) {
82
84
  'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
83
85
  'notes': value['notes'],
84
86
  'notes_html': value['notesHtml'],
85
- 'notes_updated_at': value['notesUpdatedAt'] == null ? value['notesUpdatedAt'] : value['notesUpdatedAt'].toISOString(),
87
+ 'notes_updated_at': value['notesUpdatedAt'].toISOString(),
86
88
  'open_runs': value['openRuns'],
87
89
  'groomed_runs': value['groomedRuns'],
88
90
  'total_runs': value['totalRuns'],
@@ -48,16 +48,18 @@ export interface PublicSnowReport {
48
48
  areaDisplayOrder?: number | null;
49
49
  /**
50
50
  * Current base depth in centimeters.
51
+ * Only included if the base depth feature is enabled.
51
52
  * @type {number}
52
53
  * @memberof PublicSnowReport
53
54
  */
54
- baseDepthCm: number;
55
+ baseDepthCm?: number | null;
55
56
  /**
56
57
  * Current base depth in inches.
58
+ * Only included if the base depth feature is enabled.
57
59
  * @type {number}
58
60
  * @memberof PublicSnowReport
59
61
  */
60
- baseDepthIn: number;
62
+ baseDepthIn?: number | null;
61
63
  /**
62
64
  *
63
65
  * @type {SurfaceCondition}
@@ -26,10 +26,6 @@ const SurfaceCondition_1 = require("./SurfaceCondition");
26
26
  function instanceOfPublicSnowReport(value) {
27
27
  if (!('uuid' in value) || value['uuid'] === undefined)
28
28
  return false;
29
- if (!('baseDepthCm' in value) || value['baseDepthCm'] === undefined)
30
- return false;
31
- if (!('baseDepthIn' in value) || value['baseDepthIn'] === undefined)
32
- return false;
33
29
  if (!('conditionNotes' in value) || value['conditionNotes'] === undefined)
34
30
  return false;
35
31
  if (!('reportedAt' in value) || value['reportedAt'] === undefined)
@@ -52,8 +48,8 @@ function PublicSnowReportFromJSONTyped(json, ignoreDiscriminator) {
52
48
  'areaUuid': json['area_uuid'] == null ? undefined : json['area_uuid'],
53
49
  'areaName': json['area_name'] == null ? undefined : json['area_name'],
54
50
  'areaDisplayOrder': json['area_display_order'] == null ? undefined : json['area_display_order'],
55
- 'baseDepthCm': json['base_depth_cm'],
56
- 'baseDepthIn': json['base_depth_in'],
51
+ 'baseDepthCm': json['base_depth_cm'] == null ? undefined : json['base_depth_cm'],
52
+ 'baseDepthIn': json['base_depth_in'] == null ? undefined : json['base_depth_in'],
57
53
  'surfaceCondition': json['surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['surface_condition']),
58
54
  'secondarySurfaceCondition': json['secondary_surface_condition'] == null ? undefined : (0, SurfaceCondition_1.SurfaceConditionFromJSON)(json['secondary_surface_condition']),
59
55
  'conditionNotes': json['condition_notes'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "OpenAPI client for @mtnmanager/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",