@blues-inc/notehub-js 2.2.0 → 2.2.1-beta.2

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 (151) hide show
  1. package/README.md +249 -238
  2. package/dist/ApiClient.js +154 -154
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +973 -973
  7. package/dist/api/EventApi.js +178 -178
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +601 -601
  11. package/dist/api/RouteApi.js +86 -86
  12. package/dist/api/UsageApi.js +51 -51
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +152 -131
  15. package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +26 -26
  16. package/dist/model/Alert.js +76 -74
  17. package/dist/model/AlertDataInner.js +35 -35
  18. package/dist/model/AlertNotificationsInner.js +18 -18
  19. package/dist/model/AwsRoute.js +237 -0
  20. package/dist/model/AzureRoute.js +183 -0
  21. package/dist/model/BillingAccount.js +21 -21
  22. package/dist/model/BillingAccountRole.js +9 -9
  23. package/dist/model/BlynkRoute.js +147 -0
  24. package/dist/model/Body.js +5 -5
  25. package/dist/model/CellularPlan.js +34 -34
  26. package/dist/model/CloneProjectRequest.js +20 -20
  27. package/dist/model/Contact.js +22 -22
  28. package/dist/model/CreateFleetRequest.js +26 -12
  29. package/dist/model/CreateMonitor.js +126 -125
  30. package/dist/model/CreateProductRequest.js +22 -22
  31. package/dist/model/CreateProjectRequest.js +16 -16
  32. package/dist/model/CreateUpdateRepository.js +17 -17
  33. package/dist/model/CurrentFirmware.js +12 -12
  34. package/dist/model/DFUEnv.js +12 -12
  35. package/dist/model/DFUState.js +65 -65
  36. package/dist/model/DataField.js +7 -7
  37. package/dist/model/DataSetField.js +19 -19
  38. package/dist/model/DataUsage.js +14 -14
  39. package/dist/model/DatacakeRoute.js +165 -0
  40. package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +26 -26
  41. package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +24 -24
  42. package/dist/model/Device.js +102 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  45. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  46. package/dist/model/DeviceDfuStateMachine.js +25 -24
  47. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  48. package/dist/model/DeviceDfuStatus.js +20 -20
  49. package/dist/model/DeviceDfuStatusPage.js +13 -12
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +69 -67
  56. package/dist/model/EnvVar.js +18 -18
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/{AwsFilter.js → Filter.js} +36 -58
  61. package/dist/model/Firmware.js +49 -49
  62. package/dist/model/FirmwareInfo.js +60 -60
  63. package/dist/model/Fleet.js +45 -31
  64. package/dist/model/FleetConnectivityAssurance.js +111 -0
  65. package/dist/model/GetAlerts200Response.js +15 -14
  66. package/dist/model/GetBillingAccounts200Response.js +10 -9
  67. package/dist/model/GetDataUsage200Response.js +10 -9
  68. package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
  69. package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +29 -29
  70. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  71. package/dist/model/GetDeviceFleets200Response.js +12 -11
  72. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  73. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  74. package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +26 -25
  75. package/dist/model/GetDevicePlans200Response.js +10 -9
  76. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  77. package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +38 -37
  78. package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
  79. package/dist/model/GetDeviceSessions200Response.js +17 -16
  80. package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +35 -34
  81. package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +39 -38
  82. package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +42 -41
  83. package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +27 -27
  84. package/dist/model/GetProducts200Response.js +10 -9
  85. package/dist/model/GetProjectMembers200Response.js +12 -11
  86. package/dist/model/GetProjects200Response.js +10 -9
  87. package/dist/model/GetSessionsUsage200Response.js +12 -11
  88. package/dist/model/GetWebhooks200Response.js +10 -9
  89. package/dist/model/{Google.js → GoogleRoute.js} +53 -58
  90. package/dist/model/{Http.js → HttpRoute.js} +56 -62
  91. package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +27 -27
  92. package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +30 -30
  93. package/dist/model/Location.js +40 -40
  94. package/dist/model/Login200Response.js +7 -7
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +100 -99
  97. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  98. package/dist/model/MqttRoute.js +243 -0
  99. package/dist/model/Note.js +10 -10
  100. package/dist/model/NotefileSchema.js +19 -18
  101. package/dist/model/NotehubRoute.js +229 -149
  102. package/dist/model/{UserDbRoute.js → NotehubRouteSummary.js} +40 -45
  103. package/dist/model/OAuth2Error.js +20 -20
  104. package/dist/model/OAuth2TokenResponse.js +23 -23
  105. package/dist/model/PersonalAccessToken.js +34 -34
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  107. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  108. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  109. package/dist/model/Product.js +26 -26
  110. package/dist/model/Project.js +34 -34
  111. package/dist/model/ProjectMember.js +22 -22
  112. package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +36 -36
  113. package/dist/model/{Proxy.js → ProxyRoute.js} +54 -44
  114. package/dist/model/QubitroRoute.js +159 -0
  115. package/dist/model/{Radresponder.js → RadRoute.js} +57 -45
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/Role.js +9 -9
  118. package/dist/model/RouteLog.js +38 -38
  119. package/dist/model/{SlackTransform.js → RouteTransformSettings.js} +44 -31
  120. package/dist/model/S3ArchiveRoute.js +271 -0
  121. package/dist/model/SatellitePlan.js +26 -26
  122. package/dist/model/SchemaProperty.js +38 -36
  123. package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +21 -21
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +195 -0
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +187 -0
  129. package/dist/model/{Thingworx.js → ThingworxRoute.js} +53 -58
  130. package/dist/model/TowerLocation.js +54 -54
  131. package/dist/model/TwilioRoute.js +181 -0
  132. package/dist/model/UpdateFleetRequest.js +39 -25
  133. package/dist/model/UploadMetadata.js +64 -64
  134. package/dist/model/UsageData.js +18 -18
  135. package/dist/model/UsageEventsData.js +44 -31
  136. package/dist/model/UsageEventsResponse.js +12 -11
  137. package/dist/model/UsageRouteLogsData.js +28 -28
  138. package/dist/model/UsageSessionsData.js +27 -27
  139. package/dist/model/UserDfuStateMachine.js +20 -20
  140. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  141. package/dist/model/UserFirmwareInfo.js +12 -12
  142. package/dist/model/WebhookSettings.js +15 -15
  143. package/package.json +3 -3
  144. package/dist/model/Aws.js +0 -243
  145. package/dist/model/AwsTransform.js +0 -148
  146. package/dist/model/Azure.js +0 -189
  147. package/dist/model/Mqtt.js +0 -248
  148. package/dist/model/NotehubRouteSchema.js +0 -506
  149. package/dist/model/Slack.js +0 -218
  150. package/dist/model/Snowflake.js +0 -194
  151. package/dist/model/Twilio.js +0 -190
@@ -21,7 +21,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
21
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
22
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
23
23
  * Notehub API
24
- * The OpenAPI definition for the Notehub.io API.
24
+ * The OpenAPI definition for the Notehub.io API.
25
25
  *
26
26
  * The version of the OpenAPI document: 1.2.0
27
27
  * Contact: engineering@blues.io
@@ -34,18 +34,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
34
34
  /**
35
35
  * The Device model module.
36
36
  * @module model/Device
37
- * @version 2.2.0
37
+ * @version 2.2.1-beta.2
38
38
  */
39
39
  var Device = /*#__PURE__*/function () {
40
40
  /**
41
41
  * Constructs a new <code>Device</code>.
42
42
  * @alias module:model/Device
43
- * @param fleetUids {Array.<String>}
44
- * @param productUid {String}
45
- * @param provisioned {Date}
46
- * @param temperature {Number}
47
- * @param uid {String}
48
- * @param voltage {Number}
43
+ * @param fleetUids {Array.<String>}
44
+ * @param productUid {String}
45
+ * @param provisioned {Date}
46
+ * @param temperature {Number}
47
+ * @param uid {String}
48
+ * @param voltage {Number}
49
49
  */
50
50
  function Device(fleetUids, productUid, provisioned, temperature, uid, voltage) {
51
51
  _classCallCheck(this, Device);
@@ -60,12 +60,12 @@ var Device = /*#__PURE__*/function () {
60
60
  return _createClass(Device, null, [{
61
61
  key: "initialize",
62
62
  value: function initialize(obj, fleetUids, productUid, provisioned, temperature, uid, voltage) {
63
- obj["fleet_uids"] = fleetUids;
64
- obj["product_uid"] = productUid;
65
- obj["provisioned"] = provisioned;
66
- obj["temperature"] = temperature;
67
- obj["uid"] = uid;
68
- obj["voltage"] = voltage;
63
+ obj['fleet_uids'] = fleetUids;
64
+ obj['product_uid'] = productUid;
65
+ obj['provisioned'] = provisioned;
66
+ obj['temperature'] = temperature;
67
+ obj['uid'] = uid;
68
+ obj['voltage'] = voltage;
69
69
  }
70
70
 
71
71
  /**
@@ -80,62 +80,62 @@ var Device = /*#__PURE__*/function () {
80
80
  value: function constructFromObject(data, obj) {
81
81
  if (data) {
82
82
  obj = obj || new Device();
83
- if (data.hasOwnProperty("cellular_usage")) {
84
- obj["cellular_usage"] = _ApiClient["default"].convertToType(data["cellular_usage"], [_SimUsage["default"]]);
83
+ if (data.hasOwnProperty('cellular_usage')) {
84
+ obj['cellular_usage'] = _ApiClient["default"].convertToType(data['cellular_usage'], [_SimUsage["default"]]);
85
85
  }
86
- if (data.hasOwnProperty("contact")) {
87
- obj["contact"] = _Contact["default"].constructFromObject(data["contact"]);
86
+ if (data.hasOwnProperty('contact')) {
87
+ obj['contact'] = _Contact["default"].constructFromObject(data['contact']);
88
88
  }
89
- if (data.hasOwnProperty("dfu")) {
90
- obj["dfu"] = _DFUEnv["default"].constructFromObject(data["dfu"]);
89
+ if (data.hasOwnProperty('dfu')) {
90
+ obj['dfu'] = _DFUEnv["default"].constructFromObject(data['dfu']);
91
91
  }
92
- if (data.hasOwnProperty("disabled")) {
93
- obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
92
+ if (data.hasOwnProperty('disabled')) {
93
+ obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
94
94
  }
95
- if (data.hasOwnProperty("firmware_host")) {
96
- obj["firmware_host"] = _ApiClient["default"].convertToType(data["firmware_host"], "String");
95
+ if (data.hasOwnProperty('firmware_host')) {
96
+ obj['firmware_host'] = _ApiClient["default"].convertToType(data['firmware_host'], 'String');
97
97
  }
98
- if (data.hasOwnProperty("firmware_notecard")) {
99
- obj["firmware_notecard"] = _ApiClient["default"].convertToType(data["firmware_notecard"], "String");
98
+ if (data.hasOwnProperty('firmware_notecard')) {
99
+ obj['firmware_notecard'] = _ApiClient["default"].convertToType(data['firmware_notecard'], 'String');
100
100
  }
101
- if (data.hasOwnProperty("fleet_uids")) {
102
- obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
101
+ if (data.hasOwnProperty('fleet_uids')) {
102
+ obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
103
103
  }
104
- if (data.hasOwnProperty("gps_location")) {
105
- obj["gps_location"] = _Location["default"].constructFromObject(data["gps_location"]);
104
+ if (data.hasOwnProperty('gps_location')) {
105
+ obj['gps_location'] = _Location["default"].constructFromObject(data['gps_location']);
106
106
  }
107
- if (data.hasOwnProperty("last_activity")) {
108
- obj["last_activity"] = _ApiClient["default"].convertToType(data["last_activity"], "Date");
107
+ if (data.hasOwnProperty('last_activity')) {
108
+ obj['last_activity'] = _ApiClient["default"].convertToType(data['last_activity'], 'Date');
109
109
  }
110
- if (data.hasOwnProperty("product_uid")) {
111
- obj["product_uid"] = _ApiClient["default"].convertToType(data["product_uid"], "String");
110
+ if (data.hasOwnProperty('product_uid')) {
111
+ obj['product_uid'] = _ApiClient["default"].convertToType(data['product_uid'], 'String');
112
112
  }
113
- if (data.hasOwnProperty("provisioned")) {
114
- obj["provisioned"] = _ApiClient["default"].convertToType(data["provisioned"], "Date");
113
+ if (data.hasOwnProperty('provisioned')) {
114
+ obj['provisioned'] = _ApiClient["default"].convertToType(data['provisioned'], 'Date');
115
115
  }
116
- if (data.hasOwnProperty("serial_number")) {
117
- obj["serial_number"] = _ApiClient["default"].convertToType(data["serial_number"], "String");
116
+ if (data.hasOwnProperty('serial_number')) {
117
+ obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String');
118
118
  }
119
- if (data.hasOwnProperty("sku")) {
120
- obj["sku"] = _ApiClient["default"].convertToType(data["sku"], "String");
119
+ if (data.hasOwnProperty('sku')) {
120
+ obj['sku'] = _ApiClient["default"].convertToType(data['sku'], 'String');
121
121
  }
122
- if (data.hasOwnProperty("temperature")) {
123
- obj["temperature"] = _ApiClient["default"].convertToType(data["temperature"], "Number");
122
+ if (data.hasOwnProperty('temperature')) {
123
+ obj['temperature'] = _ApiClient["default"].convertToType(data['temperature'], 'Number');
124
124
  }
125
- if (data.hasOwnProperty("tower_info")) {
126
- obj["tower_info"] = _DeviceTowerInfo["default"].constructFromObject(data["tower_info"]);
125
+ if (data.hasOwnProperty('tower_info')) {
126
+ obj['tower_info'] = _DeviceTowerInfo["default"].constructFromObject(data['tower_info']);
127
127
  }
128
- if (data.hasOwnProperty("tower_location")) {
129
- obj["tower_location"] = _Location["default"].constructFromObject(data["tower_location"]);
128
+ if (data.hasOwnProperty('tower_location')) {
129
+ obj['tower_location'] = _Location["default"].constructFromObject(data['tower_location']);
130
130
  }
131
- if (data.hasOwnProperty("triangulated_location")) {
132
- obj["triangulated_location"] = _Location["default"].constructFromObject(data["triangulated_location"]);
131
+ if (data.hasOwnProperty('triangulated_location')) {
132
+ obj['triangulated_location'] = _Location["default"].constructFromObject(data['triangulated_location']);
133
133
  }
134
- if (data.hasOwnProperty("uid")) {
135
- obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
134
+ if (data.hasOwnProperty('uid')) {
135
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
136
136
  }
137
- if (data.hasOwnProperty("voltage")) {
138
- obj["voltage"] = _ApiClient["default"].convertToType(data["voltage"], "Number");
137
+ if (data.hasOwnProperty('voltage')) {
138
+ obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
139
139
  }
140
140
  } else if (data === null) {
141
141
  return null;
@@ -166,14 +166,14 @@ var Device = /*#__PURE__*/function () {
166
166
  } finally {
167
167
  _iterator.f();
168
168
  }
169
- if (data["cellular_usage"]) {
169
+ if (data['cellular_usage']) {
170
170
  // data not null
171
171
  // ensure the json data is an array
172
- if (!Array.isArray(data["cellular_usage"])) {
173
- throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data["cellular_usage"]);
172
+ if (!Array.isArray(data['cellular_usage'])) {
173
+ throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data['cellular_usage']);
174
174
  }
175
175
  // validate the optional field `cellular_usage` (array)
176
- var _iterator2 = _createForOfIteratorHelper(data["cellular_usage"]),
176
+ var _iterator2 = _createForOfIteratorHelper(data['cellular_usage']),
177
177
  _step2;
178
178
  try {
179
179
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -185,64 +185,65 @@ var Device = /*#__PURE__*/function () {
185
185
  } finally {
186
186
  _iterator2.f();
187
187
  }
188
+ ;
188
189
  }
189
190
  // validate the optional field `contact`
190
- if (data["contact"]) {
191
+ if (data['contact']) {
191
192
  // data not null
192
- _Contact["default"].validateJSON(data["contact"]);
193
+ _Contact["default"].validateJSON(data['contact']);
193
194
  }
194
195
  // validate the optional field `dfu`
195
- if (data["dfu"]) {
196
+ if (data['dfu']) {
196
197
  // data not null
197
- _DFUEnv["default"].validateJSON(data["dfu"]);
198
+ _DFUEnv["default"].validateJSON(data['dfu']);
198
199
  }
199
200
  // ensure the json data is a string
200
- if (data["firmware_host"] && !(typeof data["firmware_host"] === "string" || data["firmware_host"] instanceof String)) {
201
- throw new Error("Expected the field `firmware_host` to be a primitive type in the JSON string but got " + data["firmware_host"]);
201
+ if (data['firmware_host'] && !(typeof data['firmware_host'] === 'string' || data['firmware_host'] instanceof String)) {
202
+ throw new Error("Expected the field `firmware_host` to be a primitive type in the JSON string but got " + data['firmware_host']);
202
203
  }
203
204
  // ensure the json data is a string
204
- if (data["firmware_notecard"] && !(typeof data["firmware_notecard"] === "string" || data["firmware_notecard"] instanceof String)) {
205
- throw new Error("Expected the field `firmware_notecard` to be a primitive type in the JSON string but got " + data["firmware_notecard"]);
205
+ if (data['firmware_notecard'] && !(typeof data['firmware_notecard'] === 'string' || data['firmware_notecard'] instanceof String)) {
206
+ throw new Error("Expected the field `firmware_notecard` to be a primitive type in the JSON string but got " + data['firmware_notecard']);
206
207
  }
207
208
  // ensure the json data is an array
208
- if (!Array.isArray(data["fleet_uids"])) {
209
- throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
209
+ if (!Array.isArray(data['fleet_uids'])) {
210
+ throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
210
211
  }
211
212
  // validate the optional field `gps_location`
212
- if (data["gps_location"]) {
213
+ if (data['gps_location']) {
213
214
  // data not null
214
- _Location["default"].validateJSON(data["gps_location"]);
215
+ _Location["default"].validateJSON(data['gps_location']);
215
216
  }
216
217
  // ensure the json data is a string
217
- if (data["product_uid"] && !(typeof data["product_uid"] === "string" || data["product_uid"] instanceof String)) {
218
- throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data["product_uid"]);
218
+ if (data['product_uid'] && !(typeof data['product_uid'] === 'string' || data['product_uid'] instanceof String)) {
219
+ throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data['product_uid']);
219
220
  }
220
221
  // ensure the json data is a string
221
- if (data["serial_number"] && !(typeof data["serial_number"] === "string" || data["serial_number"] instanceof String)) {
222
- throw new Error("Expected the field `serial_number` to be a primitive type in the JSON string but got " + data["serial_number"]);
222
+ if (data['serial_number'] && !(typeof data['serial_number'] === 'string' || data['serial_number'] instanceof String)) {
223
+ throw new Error("Expected the field `serial_number` to be a primitive type in the JSON string but got " + data['serial_number']);
223
224
  }
224
225
  // ensure the json data is a string
225
- if (data["sku"] && !(typeof data["sku"] === "string" || data["sku"] instanceof String)) {
226
- throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data["sku"]);
226
+ if (data['sku'] && !(typeof data['sku'] === 'string' || data['sku'] instanceof String)) {
227
+ throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data['sku']);
227
228
  }
228
229
  // validate the optional field `tower_info`
229
- if (data["tower_info"]) {
230
+ if (data['tower_info']) {
230
231
  // data not null
231
- _DeviceTowerInfo["default"].validateJSON(data["tower_info"]);
232
+ _DeviceTowerInfo["default"].validateJSON(data['tower_info']);
232
233
  }
233
234
  // validate the optional field `tower_location`
234
- if (data["tower_location"]) {
235
+ if (data['tower_location']) {
235
236
  // data not null
236
- _Location["default"].validateJSON(data["tower_location"]);
237
+ _Location["default"].validateJSON(data['tower_location']);
237
238
  }
238
239
  // validate the optional field `triangulated_location`
239
- if (data["triangulated_location"]) {
240
+ if (data['triangulated_location']) {
240
241
  // data not null
241
- _Location["default"].validateJSON(data["triangulated_location"]);
242
+ _Location["default"].validateJSON(data['triangulated_location']);
242
243
  }
243
244
  // ensure the json data is a string
244
- if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
245
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
245
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
246
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
246
247
  }
247
248
  return true;
248
249
  }
@@ -253,95 +254,95 @@ Device.RequiredProperties = ["fleet_uids", "product_uid", "provisioned", "temper
253
254
  /**
254
255
  * @member {Array.<module:model/SimUsage>} cellular_usage
255
256
  */
256
- Device.prototype["cellular_usage"] = undefined;
257
+ Device.prototype['cellular_usage'] = undefined;
257
258
 
258
259
  /**
259
260
  * @member {module:model/Contact} contact
260
261
  */
261
- Device.prototype["contact"] = undefined;
262
+ Device.prototype['contact'] = undefined;
262
263
 
263
264
  /**
264
265
  * @member {module:model/DFUEnv} dfu
265
266
  */
266
- Device.prototype["dfu"] = undefined;
267
+ Device.prototype['dfu'] = undefined;
267
268
 
268
269
  /**
269
270
  * @member {Boolean} disabled
270
271
  */
271
- Device.prototype["disabled"] = undefined;
272
+ Device.prototype['disabled'] = undefined;
272
273
 
273
274
  /**
274
275
  * @member {String} firmware_host
275
276
  */
276
- Device.prototype["firmware_host"] = undefined;
277
+ Device.prototype['firmware_host'] = undefined;
277
278
 
278
279
  /**
279
280
  * @member {String} firmware_notecard
280
281
  */
281
- Device.prototype["firmware_notecard"] = undefined;
282
+ Device.prototype['firmware_notecard'] = undefined;
282
283
 
283
284
  /**
284
285
  * @member {Array.<String>} fleet_uids
285
286
  */
286
- Device.prototype["fleet_uids"] = undefined;
287
+ Device.prototype['fleet_uids'] = undefined;
287
288
 
288
289
  /**
289
290
  * @member {module:model/Location} gps_location
290
291
  */
291
- Device.prototype["gps_location"] = undefined;
292
+ Device.prototype['gps_location'] = undefined;
292
293
 
293
294
  /**
294
295
  * @member {Date} last_activity
295
296
  */
296
- Device.prototype["last_activity"] = undefined;
297
+ Device.prototype['last_activity'] = undefined;
297
298
 
298
299
  /**
299
300
  * @member {String} product_uid
300
301
  */
301
- Device.prototype["product_uid"] = undefined;
302
+ Device.prototype['product_uid'] = undefined;
302
303
 
303
304
  /**
304
305
  * @member {Date} provisioned
305
306
  */
306
- Device.prototype["provisioned"] = undefined;
307
+ Device.prototype['provisioned'] = undefined;
307
308
 
308
309
  /**
309
310
  * @member {String} serial_number
310
311
  */
311
- Device.prototype["serial_number"] = undefined;
312
+ Device.prototype['serial_number'] = undefined;
312
313
 
313
314
  /**
314
315
  * @member {String} sku
315
316
  */
316
- Device.prototype["sku"] = undefined;
317
+ Device.prototype['sku'] = undefined;
317
318
 
318
319
  /**
319
320
  * @member {Number} temperature
320
321
  */
321
- Device.prototype["temperature"] = undefined;
322
+ Device.prototype['temperature'] = undefined;
322
323
 
323
324
  /**
324
325
  * @member {module:model/DeviceTowerInfo} tower_info
325
326
  */
326
- Device.prototype["tower_info"] = undefined;
327
+ Device.prototype['tower_info'] = undefined;
327
328
 
328
329
  /**
329
330
  * @member {module:model/Location} tower_location
330
331
  */
331
- Device.prototype["tower_location"] = undefined;
332
+ Device.prototype['tower_location'] = undefined;
332
333
 
333
334
  /**
334
335
  * @member {module:model/Location} triangulated_location
335
336
  */
336
- Device.prototype["triangulated_location"] = undefined;
337
+ Device.prototype['triangulated_location'] = undefined;
337
338
 
338
339
  /**
339
340
  * @member {String} uid
340
341
  */
341
- Device.prototype["uid"] = undefined;
342
+ Device.prototype['uid'] = undefined;
342
343
 
343
344
  /**
344
345
  * @member {Number} voltage
345
346
  */
346
- Device.prototype["voltage"] = undefined;
347
+ Device.prototype['voltage'] = undefined;
347
348
  var _default = exports["default"] = Device;
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
20
  * Notehub API
21
- * The OpenAPI definition for the Notehub.io API.
21
+ * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
23
  * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The DeviceDfuHistory model module.
33
33
  * @module model/DeviceDfuHistory
34
- * @version 2.2.0
34
+ * @version 2.2.1-beta.2
35
35
  */
36
36
  var DeviceDfuHistory = /*#__PURE__*/function () {
37
37
  /**
@@ -64,14 +64,14 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
64
64
  value: function constructFromObject(data, obj) {
65
65
  if (data) {
66
66
  obj = obj || new DeviceDfuHistory();
67
- if (data.hasOwnProperty("current")) {
68
- obj["current"] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data["current"]);
67
+ if (data.hasOwnProperty('current')) {
68
+ obj['current'] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data['current']);
69
69
  }
70
- if (data.hasOwnProperty("device_uid")) {
71
- obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
70
+ if (data.hasOwnProperty('device_uid')) {
71
+ obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
72
72
  }
73
- if (data.hasOwnProperty("history")) {
74
- obj["history"] = _ApiClient["default"].convertToType(data["history"], [_DeviceDfuStateMachine["default"]]);
73
+ if (data.hasOwnProperty('history')) {
74
+ obj['history'] = _ApiClient["default"].convertToType(data['history'], [_DeviceDfuStateMachine["default"]]);
75
75
  }
76
76
  } else if (data === null) {
77
77
  return null;
@@ -88,22 +88,22 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
88
88
  key: "validateJSON",
89
89
  value: function validateJSON(data) {
90
90
  // validate the optional field `current`
91
- if (data["current"]) {
91
+ if (data['current']) {
92
92
  // data not null
93
- _DeviceDfuHistoryCurrent["default"].validateJSON(data["current"]);
93
+ _DeviceDfuHistoryCurrent["default"].validateJSON(data['current']);
94
94
  }
95
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"]);
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
- if (data["history"]) {
99
+ if (data['history']) {
100
100
  // data not null
101
101
  // ensure the json data is an array
102
- if (!Array.isArray(data["history"])) {
103
- throw new Error("Expected the field `history` to be an array in the JSON data but got " + data["history"]);
102
+ if (!Array.isArray(data['history'])) {
103
+ throw new Error("Expected the field `history` to be an array in the JSON data but got " + data['history']);
104
104
  }
105
105
  // validate the optional field `history` (array)
106
- var _iterator = _createForOfIteratorHelper(data["history"]),
106
+ var _iterator = _createForOfIteratorHelper(data['history']),
107
107
  _step;
108
108
  try {
109
109
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -115,6 +115,7 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
115
115
  } finally {
116
116
  _iterator.f();
117
117
  }
118
+ ;
118
119
  }
119
120
  return true;
120
121
  }
@@ -123,16 +124,16 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
123
124
  /**
124
125
  * @member {module:model/DeviceDfuHistoryCurrent} current
125
126
  */
126
- DeviceDfuHistory.prototype["current"] = undefined;
127
+ DeviceDfuHistory.prototype['current'] = undefined;
127
128
 
128
129
  /**
129
130
  * Device UID
130
131
  * @member {String} device_uid
131
132
  */
132
- DeviceDfuHistory.prototype["device_uid"] = undefined;
133
+ DeviceDfuHistory.prototype['device_uid'] = undefined;
133
134
 
134
135
  /**
135
136
  * @member {Array.<module:model/DeviceDfuStateMachine>} history
136
137
  */
137
- DeviceDfuHistory.prototype["history"] = undefined;
138
+ DeviceDfuHistory.prototype['history'] = undefined;
138
139
  var _default = exports["default"] = DeviceDfuHistory;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DeviceDfuHistoryCurrent model module.
28
28
  * @module model/DeviceDfuHistoryCurrent
29
- * @version 2.2.0
29
+ * @version 2.2.1-beta.2
30
30
  */
31
31
  var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
32
32
  /**
@@ -60,23 +60,23 @@ var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new DeviceDfuHistoryCurrent();
63
- if (data.hasOwnProperty("builder")) {
64
- obj["builder"] = _ApiClient["default"].convertToType(data["builder"], "String");
63
+ if (data.hasOwnProperty('builder')) {
64
+ obj['builder'] = _ApiClient["default"].convertToType(data['builder'], 'String');
65
65
  }
66
- if (data.hasOwnProperty("built")) {
67
- obj["built"] = _ApiClient["default"].convertToType(data["built"], "String");
66
+ if (data.hasOwnProperty('built')) {
67
+ obj['built'] = _ApiClient["default"].convertToType(data['built'], 'String');
68
68
  }
69
- if (data.hasOwnProperty("description")) {
70
- obj["description"] = _ApiClient["default"].convertToType(data["description"], "String");
69
+ if (data.hasOwnProperty('description')) {
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");
72
+ if (data.hasOwnProperty('organization')) {
73
+ obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
74
74
  }
75
- if (data.hasOwnProperty("product")) {
76
- obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
75
+ if (data.hasOwnProperty('product')) {
76
+ obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
77
77
  }
78
- if (data.hasOwnProperty("version")) {
79
- obj["version"] = _ApiClient["default"].convertToType(data["version"], "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;
@@ -93,28 +93,28 @@ var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
93
93
  key: "validateJSON",
94
94
  value: function validateJSON(data) {
95
95
  // ensure the json data is a string
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"]);
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["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"]);
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
- if (data["description"] && !(typeof data["description"] === "string" || data["description"] instanceof String)) {
105
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data["description"]);
104
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
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["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"]);
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["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"]);
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["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"]);
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
  }
@@ -124,35 +124,35 @@ var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
124
124
  * Firmware author
125
125
  * @member {String} builder
126
126
  */
127
- DeviceDfuHistoryCurrent.prototype["builder"] = undefined;
127
+ DeviceDfuHistoryCurrent.prototype['builder'] = undefined;
128
128
 
129
129
  /**
130
130
  * Firmware build date
131
131
  * @member {String} built
132
132
  */
133
- DeviceDfuHistoryCurrent.prototype["built"] = undefined;
133
+ DeviceDfuHistoryCurrent.prototype['built'] = undefined;
134
134
 
135
135
  /**
136
136
  * Firmware description
137
137
  * @member {String} description
138
138
  */
139
- DeviceDfuHistoryCurrent.prototype["description"] = undefined;
139
+ DeviceDfuHistoryCurrent.prototype['description'] = undefined;
140
140
 
141
141
  /**
142
142
  * Firmware organization
143
143
  * @member {String} organization
144
144
  */
145
- DeviceDfuHistoryCurrent.prototype["organization"] = undefined;
145
+ DeviceDfuHistoryCurrent.prototype['organization'] = undefined;
146
146
 
147
147
  /**
148
148
  * Firmware product
149
149
  * @member {String} product
150
150
  */
151
- DeviceDfuHistoryCurrent.prototype["product"] = undefined;
151
+ DeviceDfuHistoryCurrent.prototype['product'] = undefined;
152
152
 
153
153
  /**
154
154
  * Firmware version
155
155
  * @member {String} version
156
156
  */
157
- DeviceDfuHistoryCurrent.prototype["version"] = undefined;
157
+ DeviceDfuHistoryCurrent.prototype['version'] = undefined;
158
158
  var _default = exports["default"] = DeviceDfuHistoryCurrent;