@mtnmanager/sdk 0.0.35 → 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.35
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.35`
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'],
@@ -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'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtnmanager/sdk",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "OpenAPI client for @mtnmanager/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",