@blues-inc/notehub-js 1.0.21 → 1.0.23-beta.1

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 (98) hide show
  1. package/README.md +188 -178
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +23 -20
  4. package/dist/api/AuthorizationApi.js +17 -17
  5. package/dist/api/BillingAccountApi.js +15 -15
  6. package/dist/api/DeviceApi.js +380 -329
  7. package/dist/api/EventApi.js +162 -121
  8. package/dist/api/MonitorApi.js +53 -53
  9. package/dist/api/ProjectApi.js +246 -246
  10. package/dist/api/RouteApi.js +77 -77
  11. package/dist/model/Alert.js +72 -57
  12. package/dist/model/AlertDataInner.js +36 -36
  13. package/dist/model/AlertNotificationsInner.js +19 -19
  14. package/dist/model/Aws.js +66 -66
  15. package/dist/model/Azure.js +44 -44
  16. package/dist/model/BillingAccount.js +22 -22
  17. package/dist/model/BillingAccountRole.js +10 -10
  18. package/dist/model/Body.js +6 -6
  19. package/dist/model/CloneProjectRequest.js +21 -21
  20. package/dist/model/Contact.js +23 -23
  21. package/dist/model/CreateFleetRequest.js +8 -8
  22. package/dist/model/CreateMonitor.js +127 -126
  23. package/dist/model/CreateProductRequest.js +23 -23
  24. package/dist/model/CreateProjectRequest.js +17 -17
  25. package/dist/model/DFUEnv.js +13 -13
  26. package/dist/model/DFUState.js +66 -66
  27. package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
  28. package/dist/model/Device.js +85 -85
  29. package/dist/model/DeviceSession.js +183 -183
  30. package/dist/model/DeviceTowerInfo.js +15 -15
  31. package/dist/model/DeviceUsage.js +33 -33
  32. package/dist/model/EmailNotification.js +8 -8
  33. package/dist/model/EnvironmentVariables.js +9 -9
  34. package/dist/model/Error.js +32 -32
  35. package/dist/model/Event.js +224 -224
  36. package/dist/model/FirmwareInfo.js +61 -61
  37. package/dist/model/FirmwareStatus.js +28 -28
  38. package/dist/model/Fleet.js +22 -22
  39. package/dist/model/GetAlerts200Response.js +16 -15
  40. package/dist/model/GetBillingAccounts200Response.js +11 -10
  41. package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
  42. package/dist/model/GetDeviceHealthLog200Response.js +13 -12
  43. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
  44. package/dist/model/GetDeviceLatest200Response.js +11 -10
  45. package/dist/model/GetDevicePublicKey200Response.js +17 -17
  46. package/dist/model/GetDeviceSessions200Response.js +18 -17
  47. package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
  48. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
  49. package/dist/model/GetProjectDevices200Response.js +18 -17
  50. package/dist/model/GetProjectEvents200Response.js +30 -16
  51. package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
  52. package/dist/model/GetProjectFleets200Response.js +13 -12
  53. package/dist/model/GetProjectMembers200Response.js +13 -12
  54. package/dist/model/GetProjectProducts200Response.js +11 -10
  55. package/dist/model/GetProjects200Response.js +11 -10
  56. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
  57. package/dist/model/Google.js +34 -34
  58. package/dist/model/HandleNoteChanges200Response.js +12 -12
  59. package/dist/model/HandleNoteGet200Response.js +14 -14
  60. package/dist/model/HandleNoteSignal200Response.js +6 -6
  61. package/dist/model/HandleNotefileChanges200Response.js +12 -12
  62. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  63. package/dist/model/HandleNotefileDeleteRequest.js +8 -8
  64. package/dist/model/Http.js +36 -36
  65. package/dist/model/HttpFilter.js +20 -20
  66. package/dist/model/HttpTransform.js +21 -21
  67. package/dist/model/Location.js +41 -41
  68. package/dist/model/Login200Response.js +8 -8
  69. package/dist/model/LoginRequest.js +13 -13
  70. package/dist/model/Monitor.js +101 -100
  71. package/dist/model/MonitorAlertRoutesInner.js +10 -11
  72. package/dist/model/Mqtt.js +67 -67
  73. package/dist/model/Note.js +11 -11
  74. package/dist/model/OTAStatus.js +89 -89
  75. package/dist/model/OTAStatusList.js +14 -13
  76. package/dist/model/OTAUpdateRequest.js +54 -54
  77. package/dist/model/OTAUpdateStatus.js +18 -18
  78. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  79. package/dist/model/Product.js +27 -27
  80. package/dist/model/Project.js +35 -35
  81. package/dist/model/ProjectMember.js +23 -23
  82. package/dist/model/Proxy.js +25 -25
  83. package/dist/model/PutDeviceFleetsRequest.js +9 -9
  84. package/dist/model/Radresponder.js +26 -26
  85. package/dist/model/Role.js +10 -10
  86. package/dist/model/Route.js +37 -37
  87. package/dist/model/RouteSchema.js +46 -47
  88. package/dist/model/Slack.js +54 -54
  89. package/dist/model/SlackBearerNotification.js +26 -26
  90. package/dist/model/SlackWebHookNotification.js +21 -21
  91. package/dist/model/Snowflake.js +46 -46
  92. package/dist/model/SnowflakeTransform.js +13 -13
  93. package/dist/model/Thingworx.js +34 -34
  94. package/dist/model/TowerLocation.js +53 -53
  95. package/dist/model/Twilio.js +44 -44
  96. package/dist/model/UpdateFleetRequest.js +18 -18
  97. package/dist/model/UserDbRoute.js +26 -26
  98. package/package.json +4 -4
@@ -13,9 +13,9 @@ 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. Beta test change
17
17
  *
18
- * The version of the OpenAPI document: 1.1.0
18
+ * The version of the OpenAPI document: 1.1.2
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The OTAUpdateRequest model module.
28
28
  * @module model/OTAUpdateRequest
29
- * @version 1.0.21
29
+ * @version 1.0.23-beta.1
30
30
  */
31
31
  var OTAUpdateRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -59,38 +59,38 @@ var OTAUpdateRequest = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new OTAUpdateRequest();
62
- if (data.hasOwnProperty("filename")) {
63
- obj["filename"] = _ApiClient["default"].convertToType(data["filename"], "String");
62
+ if (data.hasOwnProperty('filename')) {
63
+ obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
64
64
  }
65
- if (data.hasOwnProperty("device_uids")) {
66
- obj["device_uids"] = _ApiClient["default"].convertToType(data["device_uids"], ["String"]);
65
+ if (data.hasOwnProperty('device_uids')) {
66
+ obj['device_uids'] = _ApiClient["default"].convertToType(data['device_uids'], ['String']);
67
67
  }
68
- if (data.hasOwnProperty("fleet_uids")) {
69
- obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
68
+ if (data.hasOwnProperty('fleet_uids')) {
69
+ obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
70
70
  }
71
- if (data.hasOwnProperty("device_tags")) {
72
- obj["device_tags"] = _ApiClient["default"].convertToType(data["device_tags"], ["String"]);
71
+ if (data.hasOwnProperty('device_tags')) {
72
+ obj['device_tags'] = _ApiClient["default"].convertToType(data['device_tags'], ['String']);
73
73
  }
74
- if (data.hasOwnProperty("version")) {
75
- obj["version"] = _ApiClient["default"].convertToType(data["version"], "String");
74
+ if (data.hasOwnProperty('version')) {
75
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
76
76
  }
77
- if (data.hasOwnProperty("MD5")) {
78
- obj["MD5"] = _ApiClient["default"].convertToType(data["MD5"], "String");
77
+ if (data.hasOwnProperty('MD5')) {
78
+ obj['MD5'] = _ApiClient["default"].convertToType(data['MD5'], 'String');
79
79
  }
80
- if (data.hasOwnProperty("type")) {
81
- obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
80
+ if (data.hasOwnProperty('type')) {
81
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
82
82
  }
83
- if (data.hasOwnProperty("product")) {
84
- obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
83
+ if (data.hasOwnProperty('product')) {
84
+ obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
85
85
  }
86
- if (data.hasOwnProperty("target")) {
87
- obj["target"] = _ApiClient["default"].convertToType(data["target"], "String");
86
+ if (data.hasOwnProperty('target')) {
87
+ obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String');
88
88
  }
89
- if (data.hasOwnProperty("unpublished")) {
90
- obj["unpublished"] = _ApiClient["default"].convertToType(data["unpublished"], "Boolean");
89
+ if (data.hasOwnProperty('unpublished')) {
90
+ obj['unpublished'] = _ApiClient["default"].convertToType(data['unpublished'], 'Boolean');
91
91
  }
92
- if (data.hasOwnProperty("cancel_dfu")) {
93
- obj["cancel_dfu"] = _ApiClient["default"].convertToType(data["cancel_dfu"], "Boolean");
92
+ if (data.hasOwnProperty('cancel_dfu')) {
93
+ obj['cancel_dfu'] = _ApiClient["default"].convertToType(data['cancel_dfu'], 'Boolean');
94
94
  }
95
95
  } else if (data === null) {
96
96
  return null;
@@ -107,40 +107,40 @@ var OTAUpdateRequest = /*#__PURE__*/function () {
107
107
  key: "validateJSON",
108
108
  value: function validateJSON(data) {
109
109
  // ensure the json data is a string
110
- if (data["filename"] && !(typeof data["filename"] === "string" || data["filename"] instanceof String)) {
111
- throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data["filename"]);
110
+ if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
111
+ throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
112
112
  }
113
113
  // ensure the json data is an array
114
- if (!Array.isArray(data["device_uids"])) {
115
- throw new Error("Expected the field `device_uids` to be an array in the JSON data but got " + data["device_uids"]);
114
+ if (!Array.isArray(data['device_uids'])) {
115
+ throw new Error("Expected the field `device_uids` to be an array in the JSON data but got " + data['device_uids']);
116
116
  }
117
117
  // ensure the json data is an array
118
- if (!Array.isArray(data["fleet_uids"])) {
119
- throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
118
+ if (!Array.isArray(data['fleet_uids'])) {
119
+ throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
120
120
  }
121
121
  // ensure the json data is an array
122
- if (!Array.isArray(data["device_tags"])) {
123
- throw new Error("Expected the field `device_tags` to be an array in the JSON data but got " + data["device_tags"]);
122
+ if (!Array.isArray(data['device_tags'])) {
123
+ throw new Error("Expected the field `device_tags` to be an array in the JSON data but got " + data['device_tags']);
124
124
  }
125
125
  // ensure the json data is a string
126
- if (data["version"] && !(typeof data["version"] === "string" || data["version"] instanceof String)) {
127
- throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data["version"]);
126
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
127
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
128
128
  }
129
129
  // ensure the json data is a string
130
- if (data["MD5"] && !(typeof data["MD5"] === "string" || data["MD5"] instanceof String)) {
131
- throw new Error("Expected the field `MD5` to be a primitive type in the JSON string but got " + data["MD5"]);
130
+ if (data['MD5'] && !(typeof data['MD5'] === 'string' || data['MD5'] instanceof String)) {
131
+ throw new Error("Expected the field `MD5` to be a primitive type in the JSON string but got " + data['MD5']);
132
132
  }
133
133
  // ensure the json data is a string
134
- if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
135
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
134
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
135
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
136
136
  }
137
137
  // ensure the json data is a string
138
- if (data["product"] && !(typeof data["product"] === "string" || data["product"] instanceof String)) {
139
- throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data["product"]);
138
+ if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
139
+ throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
140
140
  }
141
141
  // ensure the json data is a string
142
- if (data["target"] && !(typeof data["target"] === "string" || data["target"] instanceof String)) {
143
- throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data["target"]);
142
+ if (data['target'] && !(typeof data['target'] === 'string' || data['target'] instanceof String)) {
143
+ throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data['target']);
144
144
  }
145
145
  return true;
146
146
  }
@@ -150,65 +150,65 @@ var OTAUpdateRequest = /*#__PURE__*/function () {
150
150
  * The name of the firmware file
151
151
  * @member {String} filename
152
152
  */
153
- OTAUpdateRequest.prototype["filename"] = undefined;
153
+ OTAUpdateRequest.prototype['filename'] = undefined;
154
154
 
155
155
  /**
156
156
  * The device UIDs to update
157
157
  * @member {Array.<String>} device_uids
158
158
  */
159
- OTAUpdateRequest.prototype["device_uids"] = undefined;
159
+ OTAUpdateRequest.prototype['device_uids'] = undefined;
160
160
 
161
161
  /**
162
162
  * The fleet UIDs to update
163
163
  * @member {Array.<String>} fleet_uids
164
164
  */
165
- OTAUpdateRequest.prototype["fleet_uids"] = undefined;
165
+ OTAUpdateRequest.prototype['fleet_uids'] = undefined;
166
166
 
167
167
  /**
168
168
  * The device tags to update
169
169
  * @member {Array.<String>} device_tags
170
170
  */
171
- OTAUpdateRequest.prototype["device_tags"] = undefined;
171
+ OTAUpdateRequest.prototype['device_tags'] = undefined;
172
172
 
173
173
  /**
174
174
  * The version of the firmware
175
175
  * @member {String} version
176
176
  */
177
- OTAUpdateRequest.prototype["version"] = undefined;
177
+ OTAUpdateRequest.prototype['version'] = undefined;
178
178
 
179
179
  /**
180
180
  * The MD5 hash of the firmware file
181
181
  * @member {String} MD5
182
182
  */
183
- OTAUpdateRequest.prototype["MD5"] = undefined;
183
+ OTAUpdateRequest.prototype['MD5'] = undefined;
184
184
 
185
185
  /**
186
186
  * The type of firmware
187
187
  * @member {String} type
188
188
  */
189
- OTAUpdateRequest.prototype["type"] = undefined;
189
+ OTAUpdateRequest.prototype['type'] = undefined;
190
190
 
191
191
  /**
192
192
  * The product that the firmware is for
193
193
  * @member {String} product
194
194
  */
195
- OTAUpdateRequest.prototype["product"] = undefined;
195
+ OTAUpdateRequest.prototype['product'] = undefined;
196
196
 
197
197
  /**
198
198
  * The target device for the firmware
199
199
  * @member {String} target
200
200
  */
201
- OTAUpdateRequest.prototype["target"] = undefined;
201
+ OTAUpdateRequest.prototype['target'] = undefined;
202
202
 
203
203
  /**
204
204
  * If true, the firmware is unpublished
205
205
  * @member {Boolean} unpublished
206
206
  */
207
- OTAUpdateRequest.prototype["unpublished"] = undefined;
207
+ OTAUpdateRequest.prototype['unpublished'] = undefined;
208
208
 
209
209
  /**
210
210
  * If true, the DFU is canceled
211
211
  * @member {Boolean} cancel_dfu
212
212
  */
213
- OTAUpdateRequest.prototype["cancel_dfu"] = undefined;
213
+ OTAUpdateRequest.prototype['cancel_dfu'] = undefined;
214
214
  var _default = exports["default"] = OTAUpdateRequest;
@@ -13,9 +13,9 @@ 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. Beta test change
17
17
  *
18
- * The version of the OpenAPI document: 1.1.0
18
+ * The version of the OpenAPI document: 1.1.2
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The OTAUpdateStatus model module.
28
28
  * @module model/OTAUpdateStatus
29
- * @version 1.0.21
29
+ * @version 1.0.23-beta.1
30
30
  */
31
31
  var OTAUpdateStatus = /*#__PURE__*/function () {
32
32
  /**
@@ -59,14 +59,14 @@ var OTAUpdateStatus = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new OTAUpdateStatus();
62
- if (data.hasOwnProperty("status")) {
63
- obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
62
+ if (data.hasOwnProperty('status')) {
63
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
64
64
  }
65
- if (data.hasOwnProperty("successful")) {
66
- obj["successful"] = _ApiClient["default"].convertToType(data["successful"], ["String"]);
65
+ if (data.hasOwnProperty('successful')) {
66
+ obj['successful'] = _ApiClient["default"].convertToType(data['successful'], ['String']);
67
67
  }
68
- if (data.hasOwnProperty("failed")) {
69
- obj["failed"] = _ApiClient["default"].convertToType(data["failed"], ["String"]);
68
+ if (data.hasOwnProperty('failed')) {
69
+ obj['failed'] = _ApiClient["default"].convertToType(data['failed'], ['String']);
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -83,16 +83,16 @@ var OTAUpdateStatus = /*#__PURE__*/function () {
83
83
  key: "validateJSON",
84
84
  value: function validateJSON(data) {
85
85
  // ensure the json data is a string
86
- if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
87
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
86
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
87
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
88
88
  }
89
89
  // ensure the json data is an array
90
- if (!Array.isArray(data["successful"])) {
91
- throw new Error("Expected the field `successful` to be an array in the JSON data but got " + data["successful"]);
90
+ if (!Array.isArray(data['successful'])) {
91
+ throw new Error("Expected the field `successful` to be an array in the JSON data but got " + data['successful']);
92
92
  }
93
93
  // ensure the json data is an array
94
- if (!Array.isArray(data["failed"])) {
95
- throw new Error("Expected the field `failed` to be an array in the JSON data but got " + data["failed"]);
94
+ if (!Array.isArray(data['failed'])) {
95
+ throw new Error("Expected the field `failed` to be an array in the JSON data but got " + data['failed']);
96
96
  }
97
97
  return true;
98
98
  }
@@ -102,17 +102,17 @@ var OTAUpdateStatus = /*#__PURE__*/function () {
102
102
  * The status of the OTA request
103
103
  * @member {String} status
104
104
  */
105
- OTAUpdateStatus.prototype["status"] = undefined;
105
+ OTAUpdateStatus.prototype['status'] = undefined;
106
106
 
107
107
  /**
108
108
  * The successful device UIDs
109
109
  * @member {Array.<String>} successful
110
110
  */
111
- OTAUpdateStatus.prototype["successful"] = undefined;
111
+ OTAUpdateStatus.prototype['successful'] = undefined;
112
112
 
113
113
  /**
114
114
  * The failed device UIDs
115
115
  * @member {Array.<String>} failed
116
116
  */
117
- OTAUpdateStatus.prototype["failed"] = undefined;
117
+ OTAUpdateStatus.prototype['failed'] = undefined;
118
118
  var _default = exports["default"] = OTAUpdateStatus;
@@ -16,9 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API. Beta test change
20
20
  *
21
- * The version of the OpenAPI document: 1.1.0
21
+ * The version of the OpenAPI document: 1.1.2
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The PostProvisionProjectDeviceRequest model module.
31
31
  * @module model/PostProvisionProjectDeviceRequest
32
- * @version 1.0.21
32
+ * @version 1.0.23-beta.1
33
33
  */
34
34
  var PostProvisionProjectDeviceRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -50,7 +50,7 @@ var PostProvisionProjectDeviceRequest = /*#__PURE__*/function () {
50
50
  return _createClass(PostProvisionProjectDeviceRequest, null, [{
51
51
  key: "initialize",
52
52
  value: function initialize(obj, productUid) {
53
- obj["product_uid"] = productUid;
53
+ obj['product_uid'] = productUid;
54
54
  }
55
55
 
56
56
  /**
@@ -65,11 +65,11 @@ var PostProvisionProjectDeviceRequest = /*#__PURE__*/function () {
65
65
  value: function constructFromObject(data, obj) {
66
66
  if (data) {
67
67
  obj = obj || new PostProvisionProjectDeviceRequest();
68
- if (data.hasOwnProperty("product_uid")) {
69
- obj["product_uid"] = _ApiClient["default"].convertToType(data["product_uid"], "String");
68
+ if (data.hasOwnProperty('product_uid')) {
69
+ obj['product_uid'] = _ApiClient["default"].convertToType(data['product_uid'], 'String');
70
70
  }
71
- if (data.hasOwnProperty("device_sn")) {
72
- obj["device_sn"] = _ApiClient["default"].convertToType(data["device_sn"], "String");
71
+ if (data.hasOwnProperty('device_sn')) {
72
+ obj['device_sn'] = _ApiClient["default"].convertToType(data['device_sn'], 'String');
73
73
  }
74
74
  } else if (data === null) {
75
75
  return null;
@@ -101,12 +101,12 @@ var PostProvisionProjectDeviceRequest = /*#__PURE__*/function () {
101
101
  } finally {
102
102
  _iterator.f();
103
103
  }
104
- if (data["product_uid"] && !(typeof data["product_uid"] === "string" || data["product_uid"] instanceof String)) {
105
- throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data["product_uid"]);
104
+ if (data['product_uid'] && !(typeof data['product_uid'] === 'string' || data['product_uid'] instanceof String)) {
105
+ throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data['product_uid']);
106
106
  }
107
107
  // ensure the json data is a string
108
- if (data["device_sn"] && !(typeof data["device_sn"] === "string" || data["device_sn"] instanceof String)) {
109
- throw new Error("Expected the field `device_sn` to be a primitive type in the JSON string but got " + data["device_sn"]);
108
+ if (data['device_sn'] && !(typeof data['device_sn'] === 'string' || data['device_sn'] instanceof String)) {
109
+ throw new Error("Expected the field `device_sn` to be a primitive type in the JSON string but got " + data['device_sn']);
110
110
  }
111
111
  return true;
112
112
  }
@@ -118,11 +118,11 @@ PostProvisionProjectDeviceRequest.RequiredProperties = ["product_uid"];
118
118
  * The ProductUID that the device should use.
119
119
  * @member {String} product_uid
120
120
  */
121
- PostProvisionProjectDeviceRequest.prototype["product_uid"] = undefined;
121
+ PostProvisionProjectDeviceRequest.prototype['product_uid'] = undefined;
122
122
 
123
123
  /**
124
124
  * The serial number to assign to the device.
125
125
  * @member {String} device_sn
126
126
  */
127
- PostProvisionProjectDeviceRequest.prototype["device_sn"] = undefined;
127
+ PostProvisionProjectDeviceRequest.prototype['device_sn'] = undefined;
128
128
  var _default = exports["default"] = PostProvisionProjectDeviceRequest;
@@ -16,9 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API. Beta test change
20
20
  *
21
- * The version of the OpenAPI document: 1.1.0
21
+ * The version of the OpenAPI document: 1.1.2
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,15 +29,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Product model module.
31
31
  * @module model/Product
32
- * @version 1.0.21
32
+ * @version 1.0.23-beta.1
33
33
  */
34
34
  var Product = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>Product</code>.
37
37
  * @alias module:model/Product
38
- * @param uid {String}
39
- * @param label {String}
40
- * @param disableDevicesByDefault {Boolean}
38
+ * @param uid {String}
39
+ * @param label {String}
40
+ * @param disableDevicesByDefault {Boolean}
41
41
  */
42
42
  function Product(uid, label, disableDevicesByDefault) {
43
43
  _classCallCheck(this, Product);
@@ -52,9 +52,9 @@ var Product = /*#__PURE__*/function () {
52
52
  return _createClass(Product, null, [{
53
53
  key: "initialize",
54
54
  value: function initialize(obj, uid, label, disableDevicesByDefault) {
55
- obj["uid"] = uid;
56
- obj["label"] = label;
57
- obj["disable_devices_by_default"] = disableDevicesByDefault;
55
+ obj['uid'] = uid;
56
+ obj['label'] = label;
57
+ obj['disable_devices_by_default'] = disableDevicesByDefault;
58
58
  }
59
59
 
60
60
  /**
@@ -69,17 +69,17 @@ var Product = /*#__PURE__*/function () {
69
69
  value: function constructFromObject(data, obj) {
70
70
  if (data) {
71
71
  obj = obj || new Product();
72
- if (data.hasOwnProperty("uid")) {
73
- obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
72
+ if (data.hasOwnProperty('uid')) {
73
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
74
74
  }
75
- if (data.hasOwnProperty("label")) {
76
- obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
75
+ if (data.hasOwnProperty('label')) {
76
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
77
77
  }
78
- if (data.hasOwnProperty("auto_provision_fleets")) {
79
- obj["auto_provision_fleets"] = _ApiClient["default"].convertToType(data["auto_provision_fleets"], ["String"]);
78
+ if (data.hasOwnProperty('auto_provision_fleets')) {
79
+ obj['auto_provision_fleets'] = _ApiClient["default"].convertToType(data['auto_provision_fleets'], ['String']);
80
80
  }
81
- if (data.hasOwnProperty("disable_devices_by_default")) {
82
- obj["disable_devices_by_default"] = _ApiClient["default"].convertToType(data["disable_devices_by_default"], "Boolean");
81
+ if (data.hasOwnProperty('disable_devices_by_default')) {
82
+ obj['disable_devices_by_default'] = _ApiClient["default"].convertToType(data['disable_devices_by_default'], 'Boolean');
83
83
  }
84
84
  } else if (data === null) {
85
85
  return null;
@@ -111,16 +111,16 @@ var Product = /*#__PURE__*/function () {
111
111
  } finally {
112
112
  _iterator.f();
113
113
  }
114
- if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
115
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
114
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
115
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
116
116
  }
117
117
  // ensure the json data is a string
118
- if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
119
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
118
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
119
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
120
120
  }
121
121
  // ensure the json data is an array
122
- if (!Array.isArray(data["auto_provision_fleets"])) {
123
- throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data["auto_provision_fleets"]);
122
+ if (!Array.isArray(data['auto_provision_fleets'])) {
123
+ throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data['auto_provision_fleets']);
124
124
  }
125
125
  return true;
126
126
  }
@@ -131,20 +131,20 @@ Product.RequiredProperties = ["uid", "label", "disable_devices_by_default"];
131
131
  /**
132
132
  * @member {String} uid
133
133
  */
134
- Product.prototype["uid"] = undefined;
134
+ Product.prototype['uid'] = undefined;
135
135
 
136
136
  /**
137
137
  * @member {String} label
138
138
  */
139
- Product.prototype["label"] = undefined;
139
+ Product.prototype['label'] = undefined;
140
140
 
141
141
  /**
142
142
  * @member {Array.<String>} auto_provision_fleets
143
143
  */
144
- Product.prototype["auto_provision_fleets"] = undefined;
144
+ Product.prototype['auto_provision_fleets'] = undefined;
145
145
 
146
146
  /**
147
147
  * @member {Boolean} disable_devices_by_default
148
148
  */
149
- Product.prototype["disable_devices_by_default"] = undefined;
149
+ Product.prototype['disable_devices_by_default'] = undefined;
150
150
  var _default = exports["default"] = Product;