@blues-inc/notehub-js 1.0.35 → 1.0.36-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 (130) hide show
  1. package/README.md +245 -222
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/ApiAccessApi.js +238 -0
  5. package/dist/api/AuthorizationApi.js +16 -16
  6. package/dist/api/BillingAccountApi.js +14 -14
  7. package/dist/api/DeviceApi.js +404 -351
  8. package/dist/api/EventApi.js +130 -130
  9. package/dist/api/ExternalDevicesApi.js +41 -41
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +441 -355
  12. package/dist/api/RepositoryApi.js +103 -103
  13. package/dist/api/RouteApi.js +81 -81
  14. package/dist/api/WebhookApi.js +51 -51
  15. package/dist/index.js +49 -0
  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/ApiKey.js +159 -0
  20. package/dist/model/ApiKeyCreatedBy.js +116 -0
  21. package/dist/model/ApiKeyInfo.js +112 -0
  22. package/dist/model/ApiKeySecret.js +105 -0
  23. package/dist/model/Aws.js +65 -65
  24. package/dist/model/Azure.js +43 -43
  25. package/dist/model/BillingAccount.js +21 -21
  26. package/dist/model/BillingAccountRole.js +9 -9
  27. package/dist/model/Body.js +5 -5
  28. package/dist/model/CloneProjectRequest.js +20 -20
  29. package/dist/model/Contact.js +22 -22
  30. package/dist/model/CreateFleetRequest.js +12 -12
  31. package/dist/model/CreateMonitor.js +126 -125
  32. package/dist/model/CreateProductRequest.js +22 -22
  33. package/dist/model/CreateProjectRequest.js +16 -16
  34. package/dist/model/CreateUpdateRepository.js +17 -17
  35. package/dist/model/CurrentFirmware.js +12 -12
  36. package/dist/model/DFUEnv.js +12 -12
  37. package/dist/model/DFUState.js +65 -65
  38. package/dist/model/DataField.js +7 -7
  39. package/dist/model/DataSet.js +30 -29
  40. package/dist/model/DataSetField.js +19 -19
  41. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  42. package/dist/model/Device.js +102 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  45. package/dist/model/DeviceDfuStateMachine.js +25 -24
  46. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  47. package/dist/model/DeviceDfuStatus.js +20 -20
  48. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  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 +269 -0
  56. package/dist/model/EnvVar.js +119 -0
  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/Firmware.js +49 -49
  61. package/dist/model/FirmwareInfo.js +60 -60
  62. package/dist/model/Fleet.js +36 -27
  63. package/dist/model/GetAlerts200Response.js +15 -14
  64. package/dist/model/GetBillingAccounts200Response.js +10 -9
  65. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  66. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  68. package/dist/model/GetDeviceLatest200Response.js +10 -9
  69. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  70. package/dist/model/GetDeviceSessions200Response.js +17 -16
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  73. package/dist/model/GetProjectDevices200Response.js +17 -16
  74. package/dist/model/GetProjectEvents200Response.js +21 -20
  75. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  76. package/dist/model/GetProjectFleets200Response.js +12 -11
  77. package/dist/model/GetProjectMembers200Response.js +12 -11
  78. package/dist/model/GetProjectProducts200Response.js +10 -9
  79. package/dist/model/GetProjects200Response.js +10 -9
  80. package/dist/model/GetWebhooks200Response.js +10 -9
  81. package/dist/model/Google.js +33 -33
  82. package/dist/model/HandleNoteChanges200Response.js +11 -11
  83. package/dist/model/HandleNoteGet200Response.js +13 -13
  84. package/dist/model/HandleNoteSignal200Response.js +5 -5
  85. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  86. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  87. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  88. package/dist/model/Http.js +35 -35
  89. package/dist/model/HttpFilter.js +19 -19
  90. package/dist/model/HttpTransform.js +20 -20
  91. package/dist/model/Location.js +40 -40
  92. package/dist/model/Login200Response.js +7 -7
  93. package/dist/model/LoginRequest.js +12 -12
  94. package/dist/model/Monitor.js +100 -99
  95. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  96. package/dist/model/Mqtt.js +66 -66
  97. package/dist/model/Note.js +10 -10
  98. package/dist/model/NotefileSchema.js +19 -18
  99. package/dist/model/NotehubRoute.js +36 -36
  100. package/dist/model/NotehubRouteSchema.js +45 -46
  101. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  102. package/dist/model/Product.js +26 -26
  103. package/dist/model/Project.js +34 -34
  104. package/dist/model/ProjectMember.js +22 -22
  105. package/dist/model/Proxy.js +24 -24
  106. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  107. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  108. package/dist/model/QuestionDataResponseMap.js +16 -16
  109. package/dist/model/Radresponder.js +25 -25
  110. package/dist/model/Repository.js +22 -22
  111. package/dist/model/Role.js +9 -9
  112. package/dist/model/RouteLog.js +44 -35
  113. package/dist/model/SchemaProperty.js +40 -38
  114. package/dist/model/SimUsage.js +19 -19
  115. package/dist/model/Slack.js +53 -53
  116. package/dist/model/SlackBearerNotification.js +25 -25
  117. package/dist/model/SlackWebHookNotification.js +20 -20
  118. package/dist/model/Snowflake.js +45 -45
  119. package/dist/model/SnowflakeTransform.js +12 -12
  120. package/dist/model/Thingworx.js +33 -33
  121. package/dist/model/TowerLocation.js +54 -54
  122. package/dist/model/Twilio.js +43 -43
  123. package/dist/model/UpdateFleetRequest.js +31 -22
  124. package/dist/model/UploadMetadata.js +59 -59
  125. package/dist/model/UserDbRoute.js +25 -25
  126. package/dist/model/UserDfuStateMachine.js +20 -20
  127. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  128. package/dist/model/UserFirmwareInfo.js +12 -12
  129. package/dist/model/WebhookSettings.js +15 -15
  130. package/package.json +3 -3
@@ -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 1.0.35
37
+ * @version 1.0.36-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 uid {String}
44
- * @param provisioned {Date}
45
- * @param productUid {String}
46
- * @param fleetUids {Array.<String>}
47
- * @param voltage {Number}
48
- * @param temperature {Number}
43
+ * @param uid {String}
44
+ * @param provisioned {Date}
45
+ * @param productUid {String}
46
+ * @param fleetUids {Array.<String>}
47
+ * @param voltage {Number}
48
+ * @param temperature {Number}
49
49
  */
50
50
  function Device(uid, provisioned, productUid, fleetUids, voltage, temperature) {
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, uid, provisioned, productUid, fleetUids, voltage, temperature) {
63
- obj["uid"] = uid;
64
- obj["provisioned"] = provisioned;
65
- obj["product_uid"] = productUid;
66
- obj["fleet_uids"] = fleetUids;
67
- obj["voltage"] = voltage;
68
- obj["temperature"] = temperature;
63
+ obj['uid'] = uid;
64
+ obj['provisioned'] = provisioned;
65
+ obj['product_uid'] = productUid;
66
+ obj['fleet_uids'] = fleetUids;
67
+ obj['voltage'] = voltage;
68
+ obj['temperature'] = temperature;
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("uid")) {
84
- obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
83
+ if (data.hasOwnProperty('uid')) {
84
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
85
85
  }
86
- if (data.hasOwnProperty("serial_number")) {
87
- obj["serial_number"] = _ApiClient["default"].convertToType(data["serial_number"], "String");
86
+ if (data.hasOwnProperty('serial_number')) {
87
+ obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String');
88
88
  }
89
- if (data.hasOwnProperty("provisioned")) {
90
- obj["provisioned"] = _ApiClient["default"].convertToType(data["provisioned"], "Date");
89
+ if (data.hasOwnProperty('provisioned')) {
90
+ obj['provisioned'] = _ApiClient["default"].convertToType(data['provisioned'], 'Date');
91
91
  }
92
- if (data.hasOwnProperty("last_activity")) {
93
- obj["last_activity"] = _ApiClient["default"].convertToType(data["last_activity"], "Date");
92
+ if (data.hasOwnProperty('last_activity')) {
93
+ obj['last_activity'] = _ApiClient["default"].convertToType(data['last_activity'], 'Date');
94
94
  }
95
- if (data.hasOwnProperty("contact")) {
96
- obj["contact"] = _Contact["default"].constructFromObject(data["contact"]);
95
+ if (data.hasOwnProperty('contact')) {
96
+ obj['contact'] = _Contact["default"].constructFromObject(data['contact']);
97
97
  }
98
- if (data.hasOwnProperty("product_uid")) {
99
- obj["product_uid"] = _ApiClient["default"].convertToType(data["product_uid"], "String");
98
+ if (data.hasOwnProperty('product_uid')) {
99
+ obj['product_uid'] = _ApiClient["default"].convertToType(data['product_uid'], '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("tower_info")) {
105
- obj["tower_info"] = _DeviceTowerInfo["default"].constructFromObject(data["tower_info"]);
104
+ if (data.hasOwnProperty('tower_info')) {
105
+ obj['tower_info'] = _DeviceTowerInfo["default"].constructFromObject(data['tower_info']);
106
106
  }
107
- if (data.hasOwnProperty("tower_location")) {
108
- obj["tower_location"] = _Location["default"].constructFromObject(data["tower_location"]);
107
+ if (data.hasOwnProperty('tower_location')) {
108
+ obj['tower_location'] = _Location["default"].constructFromObject(data['tower_location']);
109
109
  }
110
- if (data.hasOwnProperty("gps_location")) {
111
- obj["gps_location"] = _Location["default"].constructFromObject(data["gps_location"]);
110
+ if (data.hasOwnProperty('gps_location')) {
111
+ obj['gps_location'] = _Location["default"].constructFromObject(data['gps_location']);
112
112
  }
113
- if (data.hasOwnProperty("triangulated_location")) {
114
- obj["triangulated_location"] = _Location["default"].constructFromObject(data["triangulated_location"]);
113
+ if (data.hasOwnProperty('triangulated_location')) {
114
+ obj['triangulated_location'] = _Location["default"].constructFromObject(data['triangulated_location']);
115
115
  }
116
- if (data.hasOwnProperty("voltage")) {
117
- obj["voltage"] = _ApiClient["default"].convertToType(data["voltage"], "Number");
116
+ if (data.hasOwnProperty('voltage')) {
117
+ obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
118
118
  }
119
- if (data.hasOwnProperty("temperature")) {
120
- obj["temperature"] = _ApiClient["default"].convertToType(data["temperature"], "Number");
119
+ if (data.hasOwnProperty('temperature')) {
120
+ obj['temperature'] = _ApiClient["default"].convertToType(data['temperature'], 'Number');
121
121
  }
122
- if (data.hasOwnProperty("dfu")) {
123
- obj["dfu"] = _DFUEnv["default"].constructFromObject(data["dfu"]);
122
+ if (data.hasOwnProperty('dfu')) {
123
+ obj['dfu'] = _DFUEnv["default"].constructFromObject(data['dfu']);
124
124
  }
125
- if (data.hasOwnProperty("firmware_host")) {
126
- obj["firmware_host"] = _ApiClient["default"].convertToType(data["firmware_host"], "String");
125
+ if (data.hasOwnProperty('firmware_host')) {
126
+ obj['firmware_host'] = _ApiClient["default"].convertToType(data['firmware_host'], 'String');
127
127
  }
128
- if (data.hasOwnProperty("firmware_notecard")) {
129
- obj["firmware_notecard"] = _ApiClient["default"].convertToType(data["firmware_notecard"], "String");
128
+ if (data.hasOwnProperty('firmware_notecard')) {
129
+ obj['firmware_notecard'] = _ApiClient["default"].convertToType(data['firmware_notecard'], 'String');
130
130
  }
131
- if (data.hasOwnProperty("sku")) {
132
- obj["sku"] = _ApiClient["default"].convertToType(data["sku"], "String");
131
+ if (data.hasOwnProperty('sku')) {
132
+ obj['sku'] = _ApiClient["default"].convertToType(data['sku'], 'String');
133
133
  }
134
- if (data.hasOwnProperty("disabled")) {
135
- obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
134
+ if (data.hasOwnProperty('disabled')) {
135
+ obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
136
136
  }
137
- if (data.hasOwnProperty("cellular_usage")) {
138
- obj["cellular_usage"] = _ApiClient["default"].convertToType(data["cellular_usage"], [_SimUsage["default"]]);
137
+ if (data.hasOwnProperty('cellular_usage')) {
138
+ obj['cellular_usage'] = _ApiClient["default"].convertToType(data['cellular_usage'], [_SimUsage["default"]]);
139
139
  }
140
140
  } else if (data === null) {
141
141
  return null;
@@ -167,71 +167,71 @@ var Device = /*#__PURE__*/function () {
167
167
  } finally {
168
168
  _iterator.f();
169
169
  }
170
- if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
171
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
170
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
171
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
172
172
  }
173
173
  // ensure the json data is a string
174
- if (data["serial_number"] && !(typeof data["serial_number"] === "string" || data["serial_number"] instanceof String)) {
175
- throw new Error("Expected the field `serial_number` to be a primitive type in the JSON string but got " + data["serial_number"]);
174
+ if (data['serial_number'] && !(typeof data['serial_number'] === 'string' || data['serial_number'] instanceof String)) {
175
+ throw new Error("Expected the field `serial_number` to be a primitive type in the JSON string but got " + data['serial_number']);
176
176
  }
177
177
  // validate the optional field `contact`
178
- if (data["contact"]) {
178
+ if (data['contact']) {
179
179
  // data not null
180
- _Contact["default"].validateJSON(data["contact"]);
180
+ _Contact["default"].validateJSON(data['contact']);
181
181
  }
182
182
  // ensure the json data is a string
183
- if (data["product_uid"] && !(typeof data["product_uid"] === "string" || data["product_uid"] instanceof String)) {
184
- throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data["product_uid"]);
183
+ if (data['product_uid'] && !(typeof data['product_uid'] === 'string' || data['product_uid'] instanceof String)) {
184
+ throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data['product_uid']);
185
185
  }
186
186
  // ensure the json data is an array
187
- if (!Array.isArray(data["fleet_uids"])) {
188
- throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
187
+ if (!Array.isArray(data['fleet_uids'])) {
188
+ throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
189
189
  }
190
190
  // validate the optional field `tower_info`
191
- if (data["tower_info"]) {
191
+ if (data['tower_info']) {
192
192
  // data not null
193
- _DeviceTowerInfo["default"].validateJSON(data["tower_info"]);
193
+ _DeviceTowerInfo["default"].validateJSON(data['tower_info']);
194
194
  }
195
195
  // validate the optional field `tower_location`
196
- if (data["tower_location"]) {
196
+ if (data['tower_location']) {
197
197
  // data not null
198
- _Location["default"].validateJSON(data["tower_location"]);
198
+ _Location["default"].validateJSON(data['tower_location']);
199
199
  }
200
200
  // validate the optional field `gps_location`
201
- if (data["gps_location"]) {
201
+ if (data['gps_location']) {
202
202
  // data not null
203
- _Location["default"].validateJSON(data["gps_location"]);
203
+ _Location["default"].validateJSON(data['gps_location']);
204
204
  }
205
205
  // validate the optional field `triangulated_location`
206
- if (data["triangulated_location"]) {
206
+ if (data['triangulated_location']) {
207
207
  // data not null
208
- _Location["default"].validateJSON(data["triangulated_location"]);
208
+ _Location["default"].validateJSON(data['triangulated_location']);
209
209
  }
210
210
  // validate the optional field `dfu`
211
- if (data["dfu"]) {
211
+ if (data['dfu']) {
212
212
  // data not null
213
- _DFUEnv["default"].validateJSON(data["dfu"]);
213
+ _DFUEnv["default"].validateJSON(data['dfu']);
214
214
  }
215
215
  // ensure the json data is a string
216
- if (data["firmware_host"] && !(typeof data["firmware_host"] === "string" || data["firmware_host"] instanceof String)) {
217
- throw new Error("Expected the field `firmware_host` to be a primitive type in the JSON string but got " + data["firmware_host"]);
216
+ if (data['firmware_host'] && !(typeof data['firmware_host'] === 'string' || data['firmware_host'] instanceof String)) {
217
+ throw new Error("Expected the field `firmware_host` to be a primitive type in the JSON string but got " + data['firmware_host']);
218
218
  }
219
219
  // ensure the json data is a string
220
- if (data["firmware_notecard"] && !(typeof data["firmware_notecard"] === "string" || data["firmware_notecard"] instanceof String)) {
221
- throw new Error("Expected the field `firmware_notecard` to be a primitive type in the JSON string but got " + data["firmware_notecard"]);
220
+ if (data['firmware_notecard'] && !(typeof data['firmware_notecard'] === 'string' || data['firmware_notecard'] instanceof String)) {
221
+ throw new Error("Expected the field `firmware_notecard` to be a primitive type in the JSON string but got " + data['firmware_notecard']);
222
222
  }
223
223
  // ensure the json data is a string
224
- if (data["sku"] && !(typeof data["sku"] === "string" || data["sku"] instanceof String)) {
225
- throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data["sku"]);
224
+ if (data['sku'] && !(typeof data['sku'] === 'string' || data['sku'] instanceof String)) {
225
+ throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data['sku']);
226
226
  }
227
- if (data["cellular_usage"]) {
227
+ if (data['cellular_usage']) {
228
228
  // data not null
229
229
  // ensure the json data is an array
230
- if (!Array.isArray(data["cellular_usage"])) {
231
- throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data["cellular_usage"]);
230
+ if (!Array.isArray(data['cellular_usage'])) {
231
+ throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data['cellular_usage']);
232
232
  }
233
233
  // validate the optional field `cellular_usage` (array)
234
- var _iterator2 = _createForOfIteratorHelper(data["cellular_usage"]),
234
+ var _iterator2 = _createForOfIteratorHelper(data['cellular_usage']),
235
235
  _step2;
236
236
  try {
237
237
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -243,6 +243,7 @@ var Device = /*#__PURE__*/function () {
243
243
  } finally {
244
244
  _iterator2.f();
245
245
  }
246
+ ;
246
247
  }
247
248
  return true;
248
249
  }
@@ -253,95 +254,95 @@ Device.RequiredProperties = ["uid", "provisioned", "product_uid", "fleet_uids",
253
254
  /**
254
255
  * @member {String} uid
255
256
  */
256
- Device.prototype["uid"] = undefined;
257
+ Device.prototype['uid'] = undefined;
257
258
 
258
259
  /**
259
260
  * @member {String} serial_number
260
261
  */
261
- Device.prototype["serial_number"] = undefined;
262
+ Device.prototype['serial_number'] = undefined;
262
263
 
263
264
  /**
264
265
  * @member {Date} provisioned
265
266
  */
266
- Device.prototype["provisioned"] = undefined;
267
+ Device.prototype['provisioned'] = undefined;
267
268
 
268
269
  /**
269
270
  * @member {Date} last_activity
270
271
  */
271
- Device.prototype["last_activity"] = undefined;
272
+ Device.prototype['last_activity'] = undefined;
272
273
 
273
274
  /**
274
275
  * @member {module:model/Contact} contact
275
276
  */
276
- Device.prototype["contact"] = undefined;
277
+ Device.prototype['contact'] = undefined;
277
278
 
278
279
  /**
279
280
  * @member {String} product_uid
280
281
  */
281
- Device.prototype["product_uid"] = undefined;
282
+ Device.prototype['product_uid'] = 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/DeviceTowerInfo} tower_info
290
291
  */
291
- Device.prototype["tower_info"] = undefined;
292
+ Device.prototype['tower_info'] = undefined;
292
293
 
293
294
  /**
294
295
  * @member {module:model/Location} tower_location
295
296
  */
296
- Device.prototype["tower_location"] = undefined;
297
+ Device.prototype['tower_location'] = undefined;
297
298
 
298
299
  /**
299
300
  * @member {module:model/Location} gps_location
300
301
  */
301
- Device.prototype["gps_location"] = undefined;
302
+ Device.prototype['gps_location'] = undefined;
302
303
 
303
304
  /**
304
305
  * @member {module:model/Location} triangulated_location
305
306
  */
306
- Device.prototype["triangulated_location"] = undefined;
307
+ Device.prototype['triangulated_location'] = undefined;
307
308
 
308
309
  /**
309
310
  * @member {Number} voltage
310
311
  */
311
- Device.prototype["voltage"] = undefined;
312
+ Device.prototype['voltage'] = undefined;
312
313
 
313
314
  /**
314
315
  * @member {Number} temperature
315
316
  */
316
- Device.prototype["temperature"] = undefined;
317
+ Device.prototype['temperature'] = undefined;
317
318
 
318
319
  /**
319
320
  * @member {module:model/DFUEnv} dfu
320
321
  */
321
- Device.prototype["dfu"] = undefined;
322
+ Device.prototype['dfu'] = undefined;
322
323
 
323
324
  /**
324
325
  * @member {String} firmware_host
325
326
  */
326
- Device.prototype["firmware_host"] = undefined;
327
+ Device.prototype['firmware_host'] = undefined;
327
328
 
328
329
  /**
329
330
  * @member {String} firmware_notecard
330
331
  */
331
- Device.prototype["firmware_notecard"] = undefined;
332
+ Device.prototype['firmware_notecard'] = undefined;
332
333
 
333
334
  /**
334
335
  * @member {String} sku
335
336
  */
336
- Device.prototype["sku"] = undefined;
337
+ Device.prototype['sku'] = undefined;
337
338
 
338
339
  /**
339
340
  * @member {Boolean} disabled
340
341
  */
341
- Device.prototype["disabled"] = undefined;
342
+ Device.prototype['disabled'] = undefined;
342
343
 
343
344
  /**
344
345
  * @member {Array.<module:model/SimUsage>} cellular_usage
345
346
  */
346
- Device.prototype["cellular_usage"] = undefined;
347
+ Device.prototype['cellular_usage'] = 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 1.0.35
34
+ * @version 1.0.36-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("device_uid")) {
68
- obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
67
+ if (data.hasOwnProperty('device_uid')) {
68
+ obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
69
69
  }
70
- if (data.hasOwnProperty("current")) {
71
- obj["current"] = _DeviceDfuStatusCurrent["default"].constructFromObject(data["current"]);
70
+ if (data.hasOwnProperty('current')) {
71
+ obj['current'] = _DeviceDfuStatusCurrent["default"].constructFromObject(data['current']);
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
  // 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"]);
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
93
  }
94
94
  // validate the optional field `current`
95
- if (data["current"]) {
95
+ if (data['current']) {
96
96
  // data not null
97
- _DeviceDfuStatusCurrent["default"].validateJSON(data["current"]);
97
+ _DeviceDfuStatusCurrent["default"].validateJSON(data['current']);
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
  }
@@ -124,15 +125,15 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
124
125
  * Device UID
125
126
  * @member {String} device_uid
126
127
  */
127
- DeviceDfuHistory.prototype["device_uid"] = undefined;
128
+ DeviceDfuHistory.prototype['device_uid'] = undefined;
128
129
 
129
130
  /**
130
131
  * @member {module:model/DeviceDfuStatusCurrent} current
131
132
  */
132
- DeviceDfuHistory.prototype["current"] = undefined;
133
+ DeviceDfuHistory.prototype['current'] = 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;
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -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.35
33
+ * @version 1.0.36-beta.2
34
34
  */
35
35
  var DeviceDfuHistoryPage = /*#__PURE__*/function () {
36
36
  /**
@@ -63,11 +63,11 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new DeviceDfuHistoryPage();
66
- if (data.hasOwnProperty("devices")) {
67
- obj["devices"] = _ApiClient["default"].convertToType(data["devices"], [_DeviceDfuHistory["default"]]);
66
+ if (data.hasOwnProperty('devices')) {
67
+ obj['devices'] = _ApiClient["default"].convertToType(data['devices'], [_DeviceDfuHistory["default"]]);
68
68
  }
69
- if (data.hasOwnProperty("has_more")) {
70
- obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
69
+ if (data.hasOwnProperty('has_more')) {
70
+ obj['has_more'] = _ApiClient["default"].convertToType(data['has_more'], 'Boolean');
71
71
  }
72
72
  } else if (data === null) {
73
73
  return null;
@@ -83,14 +83,14 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
83
83
  }, {
84
84
  key: "validateJSON",
85
85
  value: function validateJSON(data) {
86
- if (data["devices"]) {
86
+ if (data['devices']) {
87
87
  // data not null
88
88
  // ensure the json data is an array
89
- if (!Array.isArray(data["devices"])) {
90
- throw new Error("Expected the field `devices` to be an array in the JSON data but got " + data["devices"]);
89
+ if (!Array.isArray(data['devices'])) {
90
+ throw new Error("Expected the field `devices` to be an array in the JSON data but got " + data['devices']);
91
91
  }
92
92
  // validate the optional field `devices` (array)
93
- var _iterator = _createForOfIteratorHelper(data["devices"]),
93
+ var _iterator = _createForOfIteratorHelper(data['devices']),
94
94
  _step;
95
95
  try {
96
96
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -102,6 +102,7 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
102
102
  } finally {
103
103
  _iterator.f();
104
104
  }
105
+ ;
105
106
  }
106
107
  return true;
107
108
  }
@@ -110,11 +111,11 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
110
111
  /**
111
112
  * @member {Array.<module:model/DeviceDfuHistory>} devices
112
113
  */
113
- DeviceDfuHistoryPage.prototype["devices"] = undefined;
114
+ DeviceDfuHistoryPage.prototype['devices'] = undefined;
114
115
 
115
116
  /**
116
117
  * @member {Boolean} has_more
117
118
  * @default false
118
119
  */
119
- DeviceDfuHistoryPage.prototype["has_more"] = false;
120
+ DeviceDfuHistoryPage.prototype['has_more'] = false;
120
121
  var _default = exports["default"] = DeviceDfuHistoryPage;