@blues-inc/notehub-js 1.0.37-beta.7 → 1.0.37-beta.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 (132) hide show
  1. package/README.md +10 -10
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +64 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +52 -59
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/AnalyticsEventsData.js +14 -14
  18. package/dist/model/AnalyticsEventsResponse.js +1 -1
  19. package/dist/model/AnalyticsRouteLogsData.js +15 -15
  20. package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
  21. package/dist/model/AnalyticsSessionsData.js +14 -14
  22. package/dist/model/AnalyticsSessionsResponse.js +1 -1
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
  25. package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
  26. package/dist/model/Azure.js +51 -51
  27. package/dist/model/BillingAccount.js +19 -19
  28. package/dist/model/Body.js +1 -1
  29. package/dist/model/CloneProjectRequest.js +25 -25
  30. package/dist/model/Contact.js +19 -19
  31. package/dist/model/CreateFleetRequest.js +1 -1
  32. package/dist/model/CreateMonitor.js +186 -186
  33. package/dist/model/CreateProductRequest.js +30 -30
  34. package/dist/model/CreateProjectRequest.js +20 -20
  35. package/dist/model/CreateUpdateRepository.js +18 -18
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSetField.js +14 -14
  41. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  42. package/dist/model/Device.js +134 -134
  43. package/dist/model/DeviceDfuHistory.js +15 -15
  44. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/DeviceDfuStatusPage.js +1 -1
  50. package/dist/model/DeviceSession.js +278 -278
  51. package/dist/model/DeviceTowerInfo.js +15 -15
  52. package/dist/model/DeviceUsage.js +36 -36
  53. package/dist/model/DfuActionRequest.js +1 -1
  54. package/dist/model/EmailNotification.js +1 -1
  55. package/dist/model/EnvTreeJsonNode.js +76 -76
  56. package/dist/model/EnvVar.js +9 -9
  57. package/dist/model/EnvironmentVariables.js +1 -1
  58. package/dist/model/Error.js +38 -38
  59. package/dist/model/Event.js +340 -340
  60. package/dist/model/Firmware.js +45 -45
  61. package/dist/model/FirmwareInfo.js +71 -71
  62. package/dist/model/Fleet.js +31 -31
  63. package/dist/model/GetAlerts200Response.js +1 -1
  64. package/dist/model/GetBillingAccounts200Response.js +1 -1
  65. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
  66. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
  67. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  68. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  69. package/dist/model/GetDeviceLatest200Response.js +1 -1
  70. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  71. package/dist/model/GetDeviceSessions200Response.js +14 -14
  72. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  73. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  74. package/dist/model/GetProjectDevices200Response.js +1 -1
  75. package/dist/model/GetProjectEvents200Response.js +1 -1
  76. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  77. package/dist/model/GetProjectMembers200Response.js +1 -1
  78. package/dist/model/GetProjectProducts200Response.js +1 -1
  79. package/dist/model/GetProjects200Response.js +1 -1
  80. package/dist/model/GetWebhooks200Response.js +1 -1
  81. package/dist/model/Google.js +35 -35
  82. package/dist/model/HandleNoteChanges200Response.js +10 -10
  83. package/dist/model/HandleNoteGet200Response.js +1 -1
  84. package/dist/model/HandleNoteSignal200Response.js +1 -1
  85. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  86. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  87. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  88. package/dist/model/Http.js +43 -43
  89. package/dist/model/Location.js +38 -38
  90. package/dist/model/Login200Response.js +1 -1
  91. package/dist/model/LoginRequest.js +12 -12
  92. package/dist/model/Monitor.js +135 -135
  93. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  94. package/dist/model/Mqtt.js +91 -91
  95. package/dist/model/Note.js +1 -1
  96. package/dist/model/NotefileSchema.js +1 -1
  97. package/dist/model/NotehubRoute.js +30 -30
  98. package/dist/model/NotehubRouteSchema.js +80 -80
  99. package/dist/model/{QuestionDataResponseMap.js → OAuth2Error.js} +65 -42
  100. package/dist/model/{DataSet.js → OAuth2TokenResponse.js} +67 -77
  101. package/dist/model/PersonalAccessToken.js +37 -37
  102. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  103. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  104. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  105. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  106. package/dist/model/Product.js +29 -29
  107. package/dist/model/Project.js +35 -35
  108. package/dist/model/ProjectMember.js +19 -19
  109. package/dist/model/Proxy.js +21 -21
  110. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  111. package/dist/model/Radresponder.js +28 -28
  112. package/dist/model/Repository.js +22 -22
  113. package/dist/model/RouteLog.js +28 -28
  114. package/dist/model/SchemaProperty.js +34 -36
  115. package/dist/model/SimUsage.js +16 -69
  116. package/dist/model/Slack.js +71 -71
  117. package/dist/model/SlackBearerNotification.js +14 -14
  118. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
  119. package/dist/model/SlackWebHookNotification.js +14 -14
  120. package/dist/model/Snowflake.js +57 -57
  121. package/dist/model/Thingworx.js +36 -36
  122. package/dist/model/TowerLocation.js +58 -58
  123. package/dist/model/Twilio.js +46 -46
  124. package/dist/model/UpdateFleetRequest.js +14 -14
  125. package/dist/model/UploadMetadata.js +68 -68
  126. package/dist/model/UserDbRoute.js +26 -26
  127. package/dist/model/UserDfuStateMachine.js +14 -14
  128. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  129. package/dist/model/UserFirmwareInfo.js +1 -1
  130. package/dist/model/WebhookSettings.js +1 -1
  131. package/package.json +1 -1
  132. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -24,19 +24,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
24
24
  *
25
25
  */
26
26
  /**
27
- * The DeviceDfuStatusCurrent model module.
28
- * @module model/DeviceDfuStatusCurrent
29
- * @version 1.0.37-beta.7
27
+ * The DeviceDfuHistoryCurrent model module.
28
+ * @module model/DeviceDfuHistoryCurrent
29
+ * @version 1.0.37-beta.9
30
30
  */
31
- var DeviceDfuStatusCurrent = /*#__PURE__*/function () {
31
+ var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
32
32
  /**
33
- * Constructs a new <code>DeviceDfuStatusCurrent</code>.
33
+ * Constructs a new <code>DeviceDfuHistoryCurrent</code>.
34
34
  * Description of the current firmware
35
- * @alias module:model/DeviceDfuStatusCurrent
35
+ * @alias module:model/DeviceDfuHistoryCurrent
36
36
  */
37
- function DeviceDfuStatusCurrent() {
38
- _classCallCheck(this, DeviceDfuStatusCurrent);
39
- DeviceDfuStatusCurrent.initialize(this);
37
+ function DeviceDfuHistoryCurrent() {
38
+ _classCallCheck(this, DeviceDfuHistoryCurrent);
39
+ DeviceDfuHistoryCurrent.initialize(this);
40
40
  }
41
41
 
42
42
  /**
@@ -44,39 +44,39 @@ var DeviceDfuStatusCurrent = /*#__PURE__*/function () {
44
44
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
45
  * Only for internal use.
46
46
  */
47
- return _createClass(DeviceDfuStatusCurrent, null, [{
47
+ return _createClass(DeviceDfuHistoryCurrent, null, [{
48
48
  key: "initialize",
49
49
  value: function initialize(obj) {}
50
50
 
51
51
  /**
52
- * Constructs a <code>DeviceDfuStatusCurrent</code> from a plain JavaScript object, optionally creating a new instance.
52
+ * Constructs a <code>DeviceDfuHistoryCurrent</code> from a plain JavaScript object, optionally creating a new instance.
53
53
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
54
  * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/DeviceDfuStatusCurrent} obj Optional instance to populate.
56
- * @return {module:model/DeviceDfuStatusCurrent} The populated <code>DeviceDfuStatusCurrent</code> instance.
55
+ * @param {module:model/DeviceDfuHistoryCurrent} obj Optional instance to populate.
56
+ * @return {module:model/DeviceDfuHistoryCurrent} The populated <code>DeviceDfuHistoryCurrent</code> instance.
57
57
  */
58
58
  }, {
59
59
  key: "constructFromObject",
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
- obj = obj || new DeviceDfuStatusCurrent();
63
- if (data.hasOwnProperty('version')) {
64
- obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
62
+ obj = obj || new DeviceDfuHistoryCurrent();
63
+ if (data.hasOwnProperty('builder')) {
64
+ obj['builder'] = _ApiClient["default"].convertToType(data['builder'], 'String');
65
65
  }
66
- if (data.hasOwnProperty('organization')) {
67
- obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
66
+ if (data.hasOwnProperty('built')) {
67
+ obj['built'] = _ApiClient["default"].convertToType(data['built'], 'String');
68
68
  }
69
69
  if (data.hasOwnProperty('description')) {
70
70
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
71
71
  }
72
+ if (data.hasOwnProperty('organization')) {
73
+ obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
74
+ }
72
75
  if (data.hasOwnProperty('product')) {
73
76
  obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
74
77
  }
75
- if (data.hasOwnProperty('built')) {
76
- obj['built'] = _ApiClient["default"].convertToType(data['built'], 'String');
77
- }
78
- if (data.hasOwnProperty('builder')) {
79
- obj['builder'] = _ApiClient["default"].convertToType(data['builder'], 'String');
78
+ if (data.hasOwnProperty('version')) {
79
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
80
80
  }
81
81
  } else if (data === null) {
82
82
  return null;
@@ -85,74 +85,74 @@ var DeviceDfuStatusCurrent = /*#__PURE__*/function () {
85
85
  }
86
86
 
87
87
  /**
88
- * Validates the JSON data with respect to <code>DeviceDfuStatusCurrent</code>.
88
+ * Validates the JSON data with respect to <code>DeviceDfuHistoryCurrent</code>.
89
89
  * @param {Object} data The plain JavaScript object bearing properties of interest.
90
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeviceDfuStatusCurrent</code>.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeviceDfuHistoryCurrent</code>.
91
91
  */
92
92
  }, {
93
93
  key: "validateJSON",
94
94
  value: function validateJSON(data) {
95
95
  // ensure the json data is a string
96
- if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
97
- throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
96
+ if (data['builder'] && !(typeof data['builder'] === 'string' || data['builder'] instanceof String)) {
97
+ throw new Error("Expected the field `builder` to be a primitive type in the JSON string but got " + data['builder']);
98
98
  }
99
99
  // ensure the json data is a string
100
- if (data['organization'] && !(typeof data['organization'] === 'string' || data['organization'] instanceof String)) {
101
- throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data['organization']);
100
+ if (data['built'] && !(typeof data['built'] === 'string' || data['built'] instanceof String)) {
101
+ throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data['built']);
102
102
  }
103
103
  // ensure the json data is a string
104
104
  if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
105
105
  throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
106
106
  }
107
107
  // ensure the json data is a string
108
- if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
109
- throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
108
+ if (data['organization'] && !(typeof data['organization'] === 'string' || data['organization'] instanceof String)) {
109
+ throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data['organization']);
110
110
  }
111
111
  // ensure the json data is a string
112
- if (data['built'] && !(typeof data['built'] === 'string' || data['built'] instanceof String)) {
113
- throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data['built']);
112
+ if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
113
+ throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
114
114
  }
115
115
  // ensure the json data is a string
116
- if (data['builder'] && !(typeof data['builder'] === 'string' || data['builder'] instanceof String)) {
117
- throw new Error("Expected the field `builder` to be a primitive type in the JSON string but got " + data['builder']);
116
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
117
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
118
118
  }
119
119
  return true;
120
120
  }
121
121
  }]);
122
122
  }();
123
123
  /**
124
- * Firmware version
125
- * @member {String} version
124
+ * Firmware author
125
+ * @member {String} builder
126
126
  */
127
- DeviceDfuStatusCurrent.prototype['version'] = undefined;
127
+ DeviceDfuHistoryCurrent.prototype['builder'] = undefined;
128
128
 
129
129
  /**
130
- * Firmware organization
131
- * @member {String} organization
130
+ * Firmware build date
131
+ * @member {String} built
132
132
  */
133
- DeviceDfuStatusCurrent.prototype['organization'] = undefined;
133
+ DeviceDfuHistoryCurrent.prototype['built'] = undefined;
134
134
 
135
135
  /**
136
136
  * Firmware description
137
137
  * @member {String} description
138
138
  */
139
- DeviceDfuStatusCurrent.prototype['description'] = undefined;
139
+ DeviceDfuHistoryCurrent.prototype['description'] = undefined;
140
140
 
141
141
  /**
142
- * Firmware product
143
- * @member {String} product
142
+ * Firmware organization
143
+ * @member {String} organization
144
144
  */
145
- DeviceDfuStatusCurrent.prototype['product'] = undefined;
145
+ DeviceDfuHistoryCurrent.prototype['organization'] = undefined;
146
146
 
147
147
  /**
148
- * Firmware build date
149
- * @member {String} built
148
+ * Firmware product
149
+ * @member {String} product
150
150
  */
151
- DeviceDfuStatusCurrent.prototype['built'] = undefined;
151
+ DeviceDfuHistoryCurrent.prototype['product'] = undefined;
152
152
 
153
153
  /**
154
- * Firmware author
155
- * @member {String} builder
154
+ * Firmware version
155
+ * @member {String} version
156
156
  */
157
- DeviceDfuStatusCurrent.prototype['builder'] = undefined;
158
- var _default = exports["default"] = DeviceDfuStatusCurrent;
157
+ DeviceDfuHistoryCurrent.prototype['version'] = undefined;
158
+ var _default = exports["default"] = DeviceDfuHistoryCurrent;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The DeviceDfuHistoryPage model module.
32
32
  * @module model/DeviceDfuHistoryPage
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var DeviceDfuHistoryPage = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The DeviceDfuStateMachine model module.
32
32
  * @module model/DeviceDfuStateMachine
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var DeviceDfuStateMachine = /*#__PURE__*/function () {
36
36
  /**
@@ -64,15 +64,15 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
64
64
  value: function constructFromObject(data, obj) {
65
65
  if (data) {
66
66
  obj = obj || new DeviceDfuStateMachine();
67
- if (data.hasOwnProperty('requested_version')) {
68
- obj['requested_version'] = _ApiClient["default"].convertToType(data['requested_version'], 'String');
69
- }
70
67
  if (data.hasOwnProperty('current_version')) {
71
68
  obj['current_version'] = _ApiClient["default"].convertToType(data['current_version'], 'String');
72
69
  }
73
70
  if (data.hasOwnProperty('initiated')) {
74
71
  obj['initiated'] = _ApiClient["default"].convertToType(data['initiated'], 'String');
75
72
  }
73
+ if (data.hasOwnProperty('requested_version')) {
74
+ obj['requested_version'] = _ApiClient["default"].convertToType(data['requested_version'], 'String');
75
+ }
76
76
  if (data.hasOwnProperty('updates')) {
77
77
  obj['updates'] = _ApiClient["default"].convertToType(data['updates'], [_DeviceDfuStateMachineNode["default"]]);
78
78
  }
@@ -90,10 +90,6 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
90
90
  }, {
91
91
  key: "validateJSON",
92
92
  value: function validateJSON(data) {
93
- // ensure the json data is a string
94
- if (data['requested_version'] && !(typeof data['requested_version'] === 'string' || data['requested_version'] instanceof String)) {
95
- throw new Error("Expected the field `requested_version` to be a primitive type in the JSON string but got " + data['requested_version']);
96
- }
97
93
  // ensure the json data is a string
98
94
  if (data['current_version'] && !(typeof data['current_version'] === 'string' || data['current_version'] instanceof String)) {
99
95
  throw new Error("Expected the field `current_version` to be a primitive type in the JSON string but got " + data['current_version']);
@@ -102,6 +98,10 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
102
98
  if (data['initiated'] && !(typeof data['initiated'] === 'string' || data['initiated'] instanceof String)) {
103
99
  throw new Error("Expected the field `initiated` to be a primitive type in the JSON string but got " + data['initiated']);
104
100
  }
101
+ // ensure the json data is a string
102
+ if (data['requested_version'] && !(typeof data['requested_version'] === 'string' || data['requested_version'] instanceof String)) {
103
+ throw new Error("Expected the field `requested_version` to be a primitive type in the JSON string but got " + data['requested_version']);
104
+ }
105
105
  if (data['updates']) {
106
106
  // data not null
107
107
  // ensure the json data is an array
@@ -127,12 +127,6 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
127
127
  }
128
128
  }]);
129
129
  }();
130
- /**
131
- * Version of the firmware that was requested to be installed
132
- * @member {String} requested_version
133
- */
134
- DeviceDfuStateMachine.prototype['requested_version'] = undefined;
135
-
136
130
  /**
137
131
  * Version of the firmware that was installed prior to this request
138
132
  * @member {String} current_version
@@ -145,6 +139,12 @@ DeviceDfuStateMachine.prototype['current_version'] = undefined;
145
139
  */
146
140
  DeviceDfuStateMachine.prototype['initiated'] = undefined;
147
141
 
142
+ /**
143
+ * Version of the firmware that was requested to be installed
144
+ * @member {String} requested_version
145
+ */
146
+ DeviceDfuStateMachine.prototype['requested_version'] = undefined;
147
+
148
148
  /**
149
149
  * @member {Array.<module:model/DeviceDfuStateMachineNode>} updates
150
150
  */
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DeviceDfuStateMachineNode model module.
28
28
  * @module model/DeviceDfuStateMachineNode
29
- * @version 1.0.37-beta.7
29
+ * @version 1.0.37-beta.9
30
30
  */
31
31
  var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
32
32
  /**
@@ -60,18 +60,18 @@ var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new DeviceDfuStateMachineNode();
63
- if (data.hasOwnProperty('status')) {
64
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
65
- }
66
- if (data.hasOwnProperty('phase')) {
67
- obj['phase'] = _ApiClient["default"].convertToType(data['phase'], 'String');
68
- }
69
63
  if (data.hasOwnProperty('datetime')) {
70
64
  obj['datetime'] = _ApiClient["default"].convertToType(data['datetime'], 'String');
71
65
  }
72
66
  if (data.hasOwnProperty('description')) {
73
67
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
74
68
  }
69
+ if (data.hasOwnProperty('phase')) {
70
+ obj['phase'] = _ApiClient["default"].convertToType(data['phase'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('status')) {
73
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
74
+ }
75
75
  } else if (data === null) {
76
76
  return null;
77
77
  }
@@ -86,14 +86,6 @@ var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
86
86
  }, {
87
87
  key: "validateJSON",
88
88
  value: function validateJSON(data) {
89
- // ensure the json data is a string
90
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
91
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
92
- }
93
- // ensure the json data is a string
94
- if (data['phase'] && !(typeof data['phase'] === 'string' || data['phase'] instanceof String)) {
95
- throw new Error("Expected the field `phase` to be a primitive type in the JSON string but got " + data['phase']);
96
- }
97
89
  // ensure the json data is a string
98
90
  if (data['datetime'] && !(typeof data['datetime'] === 'string' || data['datetime'] instanceof String)) {
99
91
  throw new Error("Expected the field `datetime` to be a primitive type in the JSON string but got " + data['datetime']);
@@ -102,22 +94,18 @@ var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
102
94
  if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
103
95
  throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
104
96
  }
97
+ // ensure the json data is a string
98
+ if (data['phase'] && !(typeof data['phase'] === 'string' || data['phase'] instanceof String)) {
99
+ throw new Error("Expected the field `phase` to be a primitive type in the JSON string but got " + data['phase']);
100
+ }
101
+ // ensure the json data is a string
102
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
103
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
104
+ }
105
105
  return true;
106
106
  }
107
107
  }]);
108
108
  }();
109
- /**
110
- * Status for this step in the firmware update process
111
- * @member {String} status
112
- */
113
- DeviceDfuStateMachineNode.prototype['status'] = undefined;
114
-
115
- /**
116
- * Phase for this step in the firmware update process
117
- * @member {String} phase
118
- */
119
- DeviceDfuStateMachineNode.prototype['phase'] = undefined;
120
-
121
109
  /**
122
110
  * RFC3339 compatible datetime of when this status update happened
123
111
  * @member {String} datetime
@@ -129,4 +117,16 @@ DeviceDfuStateMachineNode.prototype['datetime'] = undefined;
129
117
  * @member {String} description
130
118
  */
131
119
  DeviceDfuStateMachineNode.prototype['description'] = undefined;
120
+
121
+ /**
122
+ * Phase for this step in the firmware update process
123
+ * @member {String} phase
124
+ */
125
+ DeviceDfuStateMachineNode.prototype['phase'] = undefined;
126
+
127
+ /**
128
+ * Status for this step in the firmware update process
129
+ * @member {String} status
130
+ */
131
+ DeviceDfuStateMachineNode.prototype['status'] = undefined;
132
132
  var _default = exports["default"] = DeviceDfuStateMachineNode;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DeviceDfuHistoryCurrent = _interopRequireDefault(require("./DeviceDfuHistoryCurrent"));
8
9
  var _DeviceDfuStateMachine = _interopRequireDefault(require("./DeviceDfuStateMachine"));
9
- var _DeviceDfuStatusCurrent = _interopRequireDefault(require("./DeviceDfuStatusCurrent"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
12
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The DeviceDfuStatus model module.
30
30
  * @module model/DeviceDfuStatus
31
- * @version 1.0.37-beta.7
31
+ * @version 1.0.37-beta.9
32
32
  */
33
33
  var DeviceDfuStatus = /*#__PURE__*/function () {
34
34
  /**
@@ -61,15 +61,15 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
61
61
  value: function constructFromObject(data, obj) {
62
62
  if (data) {
63
63
  obj = obj || new DeviceDfuStatus();
64
+ if (data.hasOwnProperty('current')) {
65
+ obj['current'] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data['current']);
66
+ }
64
67
  if (data.hasOwnProperty('device_uid')) {
65
68
  obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
66
69
  }
67
70
  if (data.hasOwnProperty('dfu_in_progress')) {
68
71
  obj['dfu_in_progress'] = _ApiClient["default"].convertToType(data['dfu_in_progress'], 'Boolean');
69
72
  }
70
- if (data.hasOwnProperty('current')) {
71
- obj['current'] = _DeviceDfuStatusCurrent["default"].constructFromObject(data['current']);
72
- }
73
73
  if (data.hasOwnProperty('status')) {
74
74
  obj['status'] = _DeviceDfuStateMachine["default"].constructFromObject(data['status']);
75
75
  }
@@ -87,14 +87,14 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
87
87
  }, {
88
88
  key: "validateJSON",
89
89
  value: function validateJSON(data) {
90
- // ensure the json data is a string
91
- if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
92
- throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
93
- }
94
90
  // validate the optional field `current`
95
91
  if (data['current']) {
96
92
  // data not null
97
- _DeviceDfuStatusCurrent["default"].validateJSON(data['current']);
93
+ _DeviceDfuHistoryCurrent["default"].validateJSON(data['current']);
94
+ }
95
+ // ensure the json data is a string
96
+ if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
97
+ throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
98
98
  }
99
99
  // validate the optional field `status`
100
100
  if (data['status']) {
@@ -105,6 +105,11 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
105
105
  }
106
106
  }]);
107
107
  }();
108
+ /**
109
+ * @member {module:model/DeviceDfuHistoryCurrent} current
110
+ */
111
+ DeviceDfuStatus.prototype['current'] = undefined;
112
+
108
113
  /**
109
114
  * Device UID
110
115
  * @member {String} device_uid
@@ -117,11 +122,6 @@ DeviceDfuStatus.prototype['device_uid'] = undefined;
117
122
  */
118
123
  DeviceDfuStatus.prototype['dfu_in_progress'] = undefined;
119
124
 
120
- /**
121
- * @member {module:model/DeviceDfuStatusCurrent} current
122
- */
123
- DeviceDfuStatus.prototype['current'] = undefined;
124
-
125
125
  /**
126
126
  * @member {module:model/DeviceDfuStateMachine} status
127
127
  */
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The DeviceDfuStatusPage model module.
32
32
  * @module model/DeviceDfuStatusPage
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var DeviceDfuStatusPage = /*#__PURE__*/function () {
36
36
  /**