@blues-inc/notehub-js 2.2.1-beta.3 → 2.3.0

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 (144) hide show
  1. package/README.md +241 -249
  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 +962 -974
  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 +77 -77
  12. package/dist/api/UsageApi.js +44 -44
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +77 -77
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/AwsRoute.js +65 -65
  19. package/dist/model/AzureRoute.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/BlynkRoute.js +28 -28
  23. package/dist/model/Body.js +5 -5
  24. package/dist/model/CellularPlan.js +34 -34
  25. package/dist/model/CloneProjectRequest.js +20 -20
  26. package/dist/model/Contact.js +22 -22
  27. package/dist/model/CreateFleetRequest.js +17 -17
  28. package/dist/model/CreateMonitor.js +125 -126
  29. package/dist/model/CreateProductRequest.js +22 -22
  30. package/dist/model/CreateProjectRequest.js +16 -16
  31. package/dist/model/CreateUpdateRepository.js +17 -17
  32. package/dist/model/CurrentFirmware.js +12 -12
  33. package/dist/model/DFUEnv.js +12 -12
  34. package/dist/model/DFUState.js +65 -65
  35. package/dist/model/DataField.js +7 -7
  36. package/dist/model/DataSetField.js +19 -19
  37. package/dist/model/DataUsage.js +14 -14
  38. package/dist/model/DatacakeRoute.js +35 -35
  39. package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +26 -26
  40. package/dist/model/Device.js +101 -102
  41. package/dist/model/DeviceDfuHistory.js +19 -20
  42. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  43. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  44. package/dist/model/DeviceDfuStateMachine.js +24 -25
  45. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  46. package/dist/model/DeviceDfuStatus.js +20 -20
  47. package/dist/model/DeviceDfuStatusPage.js +12 -13
  48. package/dist/model/DeviceSession.js +221 -221
  49. package/dist/model/DeviceTowerInfo.js +14 -14
  50. package/dist/model/DeviceUsage.js +32 -32
  51. package/dist/model/DfuActionRequest.js +7 -7
  52. package/dist/model/EmailNotification.js +7 -7
  53. package/dist/model/EnvTreeJsonNode.js +67 -69
  54. package/dist/model/EnvVar.js +18 -18
  55. package/dist/model/EnvironmentVariables.js +8 -8
  56. package/dist/model/Error.js +31 -31
  57. package/dist/model/Event.js +248 -248
  58. package/dist/model/Filter.js +16 -16
  59. package/dist/model/Firmware.js +49 -49
  60. package/dist/model/FirmwareInfo.js +60 -60
  61. package/dist/model/Fleet.js +35 -35
  62. package/dist/model/FleetConnectivityAssurance.js +6 -6
  63. package/dist/model/GetAlerts200Response.js +14 -15
  64. package/dist/model/GetBillingAccounts200Response.js +9 -10
  65. package/dist/model/GetDataUsage200Response.js +9 -10
  66. package/dist/model/GetDataUsage200ResponseDataInner.js +40 -41
  67. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  68. package/dist/model/GetDeviceFleets200Response.js +11 -12
  69. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  70. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  71. package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +25 -26
  72. package/dist/model/GetDevicePlans200Response.js +9 -10
  73. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  74. package/dist/model/GetDeviceSessions200Response.js +16 -17
  75. package/dist/model/GetProducts200Response.js +9 -10
  76. package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +37 -38
  77. package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
  78. package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +34 -35
  79. package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +38 -39
  80. package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +41 -42
  81. package/dist/model/GetProjectMembers200Response.js +11 -12
  82. package/dist/model/GetProjects200Response.js +9 -10
  83. package/dist/model/GetSessionsUsage200Response.js +11 -12
  84. package/dist/model/GetWebhooks200Response.js +9 -10
  85. package/dist/model/GoogleRoute.js +33 -33
  86. package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +27 -27
  87. package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +29 -29
  88. package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +21 -21
  89. package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChanges200Response.js} +27 -36
  90. package/dist/model/HandleNotefileChangesPending200Response.js +115 -0
  91. package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +24 -24
  92. package/dist/model/HttpRoute.js +35 -35
  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 +99 -100
  97. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  98. package/dist/model/MqttRoute.js +68 -68
  99. package/dist/model/Note.js +15 -95
  100. package/dist/model/NotefileSchema.js +18 -19
  101. package/dist/model/NotehubRoute.js +98 -98
  102. package/dist/model/NotehubRouteSummary.js +23 -23
  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/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +36 -36
  110. package/dist/model/Product.js +26 -26
  111. package/dist/model/Project.js +34 -34
  112. package/dist/model/ProjectMember.js +22 -22
  113. package/dist/model/ProxyRoute.js +29 -29
  114. package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +26 -26
  115. package/dist/model/QubitroRoute.js +33 -33
  116. package/dist/model/RadRoute.js +31 -31
  117. package/dist/model/Repository.js +22 -22
  118. package/dist/model/Role.js +9 -9
  119. package/dist/model/RouteLog.js +38 -38
  120. package/dist/model/RouteTransformSettings.js +18 -18
  121. package/dist/model/S3ArchiveRoute.js +79 -79
  122. package/dist/model/SatellitePlan.js +26 -26
  123. package/dist/model/SchemaProperty.js +36 -38
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +48 -48
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +45 -45
  129. package/dist/model/ThingworxRoute.js +33 -33
  130. package/dist/model/TowerLocation.js +54 -54
  131. package/dist/model/TwilioRoute.js +43 -43
  132. package/dist/model/UpdateFleetRequest.js +30 -30
  133. package/dist/model/UploadMetadata.js +64 -64
  134. package/dist/model/UsageData.js +18 -18
  135. package/dist/model/UsageEventsData.js +29 -29
  136. package/dist/model/UsageEventsResponse.js +11 -12
  137. package/dist/model/UsageRouteLogsData.js +27 -27
  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/Notefile.js +0 -147
@@ -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 2.2.1-beta.3
33
+ * @version 2.3.0
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,7 +102,6 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
102
102
  } finally {
103
103
  _iterator.f();
104
104
  }
105
- ;
106
105
  }
107
106
  return true;
108
107
  }
@@ -111,11 +110,11 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
111
110
  /**
112
111
  * @member {Array.<module:model/DeviceDfuHistory>} devices
113
112
  */
114
- DeviceDfuHistoryPage.prototype['devices'] = undefined;
113
+ DeviceDfuHistoryPage.prototype["devices"] = undefined;
115
114
 
116
115
  /**
117
116
  * @member {Boolean} has_more
118
117
  * @default false
119
118
  */
120
- DeviceDfuHistoryPage.prototype['has_more'] = false;
119
+ DeviceDfuHistoryPage.prototype["has_more"] = false;
121
120
  var _default = exports["default"] = DeviceDfuHistoryPage;
@@ -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 DeviceDfuStateMachine model module.
32
32
  * @module model/DeviceDfuStateMachine
33
- * @version 2.2.1-beta.3
33
+ * @version 2.3.0
34
34
  */
35
35
  var DeviceDfuStateMachine = /*#__PURE__*/function () {
36
36
  /**
@@ -64,17 +64,17 @@ 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('current_version')) {
68
- obj['current_version'] = _ApiClient["default"].convertToType(data['current_version'], 'String');
67
+ if (data.hasOwnProperty("current_version")) {
68
+ obj["current_version"] = _ApiClient["default"].convertToType(data["current_version"], "String");
69
69
  }
70
- if (data.hasOwnProperty('initiated')) {
71
- obj['initiated'] = _ApiClient["default"].convertToType(data['initiated'], 'String');
70
+ if (data.hasOwnProperty("initiated")) {
71
+ obj["initiated"] = _ApiClient["default"].convertToType(data["initiated"], "String");
72
72
  }
73
- if (data.hasOwnProperty('requested_version')) {
74
- obj['requested_version'] = _ApiClient["default"].convertToType(data['requested_version'], 'String');
73
+ if (data.hasOwnProperty("requested_version")) {
74
+ obj["requested_version"] = _ApiClient["default"].convertToType(data["requested_version"], "String");
75
75
  }
76
- if (data.hasOwnProperty('updates')) {
77
- obj['updates'] = _ApiClient["default"].convertToType(data['updates'], [_DeviceDfuStateMachineNode["default"]]);
76
+ if (data.hasOwnProperty("updates")) {
77
+ obj["updates"] = _ApiClient["default"].convertToType(data["updates"], [_DeviceDfuStateMachineNode["default"]]);
78
78
  }
79
79
  } else if (data === null) {
80
80
  return null;
@@ -91,25 +91,25 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
91
91
  key: "validateJSON",
92
92
  value: function validateJSON(data) {
93
93
  // ensure the json data is a string
94
- if (data['current_version'] && !(typeof data['current_version'] === 'string' || data['current_version'] instanceof String)) {
95
- throw new Error("Expected the field `current_version` to be a primitive type in the JSON string but got " + data['current_version']);
94
+ if (data["current_version"] && !(typeof data["current_version"] === "string" || data["current_version"] instanceof String)) {
95
+ throw new Error("Expected the field `current_version` to be a primitive type in the JSON string but got " + data["current_version"]);
96
96
  }
97
97
  // ensure the json data is a string
98
- if (data['initiated'] && !(typeof data['initiated'] === 'string' || data['initiated'] instanceof String)) {
99
- throw new Error("Expected the field `initiated` to be a primitive type in the JSON string but got " + data['initiated']);
98
+ if (data["initiated"] && !(typeof data["initiated"] === "string" || data["initiated"] instanceof String)) {
99
+ throw new Error("Expected the field `initiated` to be a primitive type in the JSON string but got " + data["initiated"]);
100
100
  }
101
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']);
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
104
  }
105
- if (data['updates']) {
105
+ if (data["updates"]) {
106
106
  // data not null
107
107
  // ensure the json data is an array
108
- if (!Array.isArray(data['updates'])) {
109
- throw new Error("Expected the field `updates` to be an array in the JSON data but got " + data['updates']);
108
+ if (!Array.isArray(data["updates"])) {
109
+ throw new Error("Expected the field `updates` to be an array in the JSON data but got " + data["updates"]);
110
110
  }
111
111
  // validate the optional field `updates` (array)
112
- var _iterator = _createForOfIteratorHelper(data['updates']),
112
+ var _iterator = _createForOfIteratorHelper(data["updates"]),
113
113
  _step;
114
114
  try {
115
115
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -121,7 +121,6 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
121
121
  } finally {
122
122
  _iterator.f();
123
123
  }
124
- ;
125
124
  }
126
125
  return true;
127
126
  }
@@ -131,22 +130,22 @@ var DeviceDfuStateMachine = /*#__PURE__*/function () {
131
130
  * Version of the firmware that was installed prior to this request
132
131
  * @member {String} current_version
133
132
  */
134
- DeviceDfuStateMachine.prototype['current_version'] = undefined;
133
+ DeviceDfuStateMachine.prototype["current_version"] = undefined;
135
134
 
136
135
  /**
137
136
  * RFC3339 datetime of when this update was requested
138
137
  * @member {String} initiated
139
138
  */
140
- DeviceDfuStateMachine.prototype['initiated'] = undefined;
139
+ DeviceDfuStateMachine.prototype["initiated"] = undefined;
141
140
 
142
141
  /**
143
142
  * Version of the firmware that was requested to be installed
144
143
  * @member {String} requested_version
145
144
  */
146
- DeviceDfuStateMachine.prototype['requested_version'] = undefined;
145
+ DeviceDfuStateMachine.prototype["requested_version"] = undefined;
147
146
 
148
147
  /**
149
148
  * @member {Array.<module:model/DeviceDfuStateMachineNode>} updates
150
149
  */
151
- DeviceDfuStateMachine.prototype['updates'] = undefined;
150
+ DeviceDfuStateMachine.prototype["updates"] = undefined;
152
151
  var _default = exports["default"] = DeviceDfuStateMachine;
@@ -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 DeviceDfuStateMachineNode model module.
28
28
  * @module model/DeviceDfuStateMachineNode
29
- * @version 2.2.1-beta.3
29
+ * @version 2.3.0
30
30
  */
31
31
  var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
32
32
  /**
@@ -60,17 +60,17 @@ 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('datetime')) {
64
- obj['datetime'] = _ApiClient["default"].convertToType(data['datetime'], 'String');
63
+ if (data.hasOwnProperty("datetime")) {
64
+ obj["datetime"] = _ApiClient["default"].convertToType(data["datetime"], "String");
65
65
  }
66
- if (data.hasOwnProperty('description')) {
67
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
66
+ if (data.hasOwnProperty("description")) {
67
+ obj["description"] = _ApiClient["default"].convertToType(data["description"], "String");
68
68
  }
69
- if (data.hasOwnProperty('phase')) {
70
- obj['phase'] = _ApiClient["default"].convertToType(data['phase'], 'String');
69
+ if (data.hasOwnProperty("phase")) {
70
+ obj["phase"] = _ApiClient["default"].convertToType(data["phase"], "String");
71
71
  }
72
- if (data.hasOwnProperty('status')) {
73
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
72
+ if (data.hasOwnProperty("status")) {
73
+ obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
74
74
  }
75
75
  } else if (data === null) {
76
76
  return null;
@@ -87,20 +87,20 @@ var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
87
87
  key: "validateJSON",
88
88
  value: function validateJSON(data) {
89
89
  // ensure the json data is a string
90
- if (data['datetime'] && !(typeof data['datetime'] === 'string' || data['datetime'] instanceof String)) {
91
- throw new Error("Expected the field `datetime` to be a primitive type in the JSON string but got " + data['datetime']);
90
+ if (data["datetime"] && !(typeof data["datetime"] === "string" || data["datetime"] instanceof String)) {
91
+ throw new Error("Expected the field `datetime` to be a primitive type in the JSON string but got " + data["datetime"]);
92
92
  }
93
93
  // ensure the json data is a string
94
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
95
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
94
+ if (data["description"] && !(typeof data["description"] === "string" || data["description"] instanceof String)) {
95
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data["description"]);
96
96
  }
97
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']);
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
100
  }
101
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']);
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
104
  }
105
105
  return true;
106
106
  }
@@ -110,23 +110,23 @@ var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
110
110
  * RFC3339 compatible datetime of when this status update happened
111
111
  * @member {String} datetime
112
112
  */
113
- DeviceDfuStateMachineNode.prototype['datetime'] = undefined;
113
+ DeviceDfuStateMachineNode.prototype["datetime"] = undefined;
114
114
 
115
115
  /**
116
116
  * Additional information
117
117
  * @member {String} description
118
118
  */
119
- DeviceDfuStateMachineNode.prototype['description'] = undefined;
119
+ DeviceDfuStateMachineNode.prototype["description"] = undefined;
120
120
 
121
121
  /**
122
122
  * Phase for this step in the firmware update process
123
123
  * @member {String} phase
124
124
  */
125
- DeviceDfuStateMachineNode.prototype['phase'] = undefined;
125
+ DeviceDfuStateMachineNode.prototype["phase"] = undefined;
126
126
 
127
127
  /**
128
128
  * Status for this step in the firmware update process
129
129
  * @member {String} status
130
130
  */
131
- DeviceDfuStateMachineNode.prototype['status'] = undefined;
131
+ DeviceDfuStateMachineNode.prototype["status"] = undefined;
132
132
  var _default = exports["default"] = DeviceDfuStateMachineNode;
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  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); } /**
17
17
  * Notehub API
18
- * The OpenAPI definition for the Notehub.io API.
18
+ * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
@@ -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 2.2.1-beta.3
31
+ * @version 2.3.0
32
32
  */
33
33
  var DeviceDfuStatus = /*#__PURE__*/function () {
34
34
  /**
@@ -61,17 +61,17 @@ 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']);
64
+ if (data.hasOwnProperty("current")) {
65
+ obj["current"] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data["current"]);
66
66
  }
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('dfu_in_progress')) {
71
- obj['dfu_in_progress'] = _ApiClient["default"].convertToType(data['dfu_in_progress'], 'Boolean');
70
+ if (data.hasOwnProperty("dfu_in_progress")) {
71
+ obj["dfu_in_progress"] = _ApiClient["default"].convertToType(data["dfu_in_progress"], "Boolean");
72
72
  }
73
- if (data.hasOwnProperty('status')) {
74
- obj['status'] = _DeviceDfuStateMachine["default"].constructFromObject(data['status']);
73
+ if (data.hasOwnProperty("status")) {
74
+ obj["status"] = _DeviceDfuStateMachine["default"].constructFromObject(data["status"]);
75
75
  }
76
76
  } else if (data === null) {
77
77
  return null;
@@ -88,18 +88,18 @@ var DeviceDfuStatus = /*#__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
99
  // validate the optional field `status`
100
- if (data['status']) {
100
+ if (data["status"]) {
101
101
  // data not null
102
- _DeviceDfuStateMachine["default"].validateJSON(data['status']);
102
+ _DeviceDfuStateMachine["default"].validateJSON(data["status"]);
103
103
  }
104
104
  return true;
105
105
  }
@@ -108,22 +108,22 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
108
108
  /**
109
109
  * @member {module:model/DeviceDfuHistoryCurrent} current
110
110
  */
111
- DeviceDfuStatus.prototype['current'] = undefined;
111
+ DeviceDfuStatus.prototype["current"] = undefined;
112
112
 
113
113
  /**
114
114
  * Device UID
115
115
  * @member {String} device_uid
116
116
  */
117
- DeviceDfuStatus.prototype['device_uid'] = undefined;
117
+ DeviceDfuStatus.prototype["device_uid"] = undefined;
118
118
 
119
119
  /**
120
120
  * true if there is a DFU currently in progress
121
121
  * @member {Boolean} dfu_in_progress
122
122
  */
123
- DeviceDfuStatus.prototype['dfu_in_progress'] = undefined;
123
+ DeviceDfuStatus.prototype["dfu_in_progress"] = undefined;
124
124
 
125
125
  /**
126
126
  * @member {module:model/DeviceDfuStateMachine} status
127
127
  */
128
- DeviceDfuStatus.prototype['status'] = undefined;
128
+ DeviceDfuStatus.prototype["status"] = undefined;
129
129
  var _default = exports["default"] = DeviceDfuStatus;
@@ -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 DeviceDfuStatusPage model module.
32
32
  * @module model/DeviceDfuStatusPage
33
- * @version 2.2.1-beta.3
33
+ * @version 2.3.0
34
34
  */
35
35
  var DeviceDfuStatusPage = /*#__PURE__*/function () {
36
36
  /**
@@ -63,11 +63,11 @@ var DeviceDfuStatusPage = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new DeviceDfuStatusPage();
66
- if (data.hasOwnProperty('devices')) {
67
- obj['devices'] = _ApiClient["default"].convertToType(data['devices'], [_DeviceDfuStatus["default"]]);
66
+ if (data.hasOwnProperty("devices")) {
67
+ obj["devices"] = _ApiClient["default"].convertToType(data["devices"], [_DeviceDfuStatus["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 DeviceDfuStatusPage = /*#__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,7 +102,6 @@ var DeviceDfuStatusPage = /*#__PURE__*/function () {
102
102
  } finally {
103
103
  _iterator.f();
104
104
  }
105
- ;
106
105
  }
107
106
  return true;
108
107
  }
@@ -111,11 +110,11 @@ var DeviceDfuStatusPage = /*#__PURE__*/function () {
111
110
  /**
112
111
  * @member {Array.<module:model/DeviceDfuStatus>} devices
113
112
  */
114
- DeviceDfuStatusPage.prototype['devices'] = undefined;
113
+ DeviceDfuStatusPage.prototype["devices"] = undefined;
115
114
 
116
115
  /**
117
116
  * @member {Boolean} has_more
118
117
  * @default false
119
118
  */
120
- DeviceDfuStatusPage.prototype['has_more'] = false;
119
+ DeviceDfuStatusPage.prototype["has_more"] = false;
121
120
  var _default = exports["default"] = DeviceDfuStatusPage;