@blues-inc/notehub-js 1.0.37-beta.6 → 1.0.37-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +7 -10
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +38 -59
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/AnalyticsEventsData.js +14 -14
  18. package/dist/model/AnalyticsEventsResponse.js +1 -1
  19. package/dist/model/AnalyticsRouteLogsData.js +15 -15
  20. package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
  21. package/dist/model/AnalyticsSessionsData.js +14 -14
  22. package/dist/model/AnalyticsSessionsResponse.js +1 -1
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
  25. package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
  26. package/dist/model/Azure.js +51 -51
  27. package/dist/model/BillingAccount.js +19 -19
  28. package/dist/model/Body.js +1 -1
  29. package/dist/model/CloneProjectRequest.js +25 -25
  30. package/dist/model/Contact.js +19 -19
  31. package/dist/model/CreateFleetRequest.js +1 -1
  32. package/dist/model/CreateMonitor.js +186 -186
  33. package/dist/model/CreateProductRequest.js +30 -30
  34. package/dist/model/CreateProjectRequest.js +20 -20
  35. package/dist/model/CreateUpdateRepository.js +18 -18
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSetField.js +14 -14
  41. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  42. package/dist/model/Device.js +134 -134
  43. package/dist/model/DeviceDfuHistory.js +15 -15
  44. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/DeviceDfuStatusPage.js +1 -1
  50. package/dist/model/DeviceSession.js +278 -278
  51. package/dist/model/DeviceTowerInfo.js +15 -15
  52. package/dist/model/DeviceUsage.js +36 -36
  53. package/dist/model/DfuActionRequest.js +1 -1
  54. package/dist/model/EmailNotification.js +1 -1
  55. package/dist/model/EnvTreeJsonNode.js +76 -76
  56. package/dist/model/EnvVar.js +9 -9
  57. package/dist/model/EnvironmentVariables.js +1 -1
  58. package/dist/model/Error.js +38 -38
  59. package/dist/model/Event.js +340 -340
  60. package/dist/model/Firmware.js +45 -45
  61. package/dist/model/FirmwareInfo.js +71 -71
  62. package/dist/model/Fleet.js +31 -31
  63. package/dist/model/GetAlerts200Response.js +1 -1
  64. package/dist/model/GetBillingAccounts200Response.js +1 -1
  65. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
  66. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
  67. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  68. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  69. package/dist/model/GetDeviceLatest200Response.js +1 -1
  70. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  71. package/dist/model/GetDeviceSessions200Response.js +14 -14
  72. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  73. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  74. package/dist/model/GetProjectDevices200Response.js +1 -1
  75. package/dist/model/GetProjectEvents200Response.js +1 -1
  76. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  77. package/dist/model/GetProjectMembers200Response.js +1 -1
  78. package/dist/model/GetProjectProducts200Response.js +1 -1
  79. package/dist/model/GetProjects200Response.js +1 -1
  80. package/dist/model/GetWebhooks200Response.js +1 -1
  81. package/dist/model/Google.js +35 -35
  82. package/dist/model/HandleNoteChanges200Response.js +10 -10
  83. package/dist/model/HandleNoteGet200Response.js +1 -1
  84. package/dist/model/HandleNoteSignal200Response.js +1 -1
  85. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  86. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  87. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  88. package/dist/model/Http.js +43 -43
  89. package/dist/model/Location.js +38 -38
  90. package/dist/model/Login200Response.js +1 -1
  91. package/dist/model/LoginRequest.js +12 -12
  92. package/dist/model/Monitor.js +135 -135
  93. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  94. package/dist/model/Mqtt.js +91 -91
  95. package/dist/model/Note.js +1 -1
  96. package/dist/model/NotefileSchema.js +1 -1
  97. package/dist/model/NotehubRoute.js +30 -30
  98. package/dist/model/NotehubRouteSchema.js +80 -80
  99. package/dist/model/PersonalAccessToken.js +37 -37
  100. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  101. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  102. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  103. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  104. package/dist/model/Product.js +29 -29
  105. package/dist/model/Project.js +35 -35
  106. package/dist/model/ProjectMember.js +19 -19
  107. package/dist/model/Proxy.js +21 -21
  108. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  109. package/dist/model/Radresponder.js +28 -28
  110. package/dist/model/Repository.js +22 -22
  111. package/dist/model/RouteLog.js +28 -28
  112. package/dist/model/SchemaProperty.js +34 -36
  113. package/dist/model/SimUsage.js +19 -72
  114. package/dist/model/Slack.js +71 -71
  115. package/dist/model/SlackBearerNotification.js +14 -14
  116. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
  117. package/dist/model/SlackWebHookNotification.js +14 -14
  118. package/dist/model/Snowflake.js +57 -57
  119. package/dist/model/Thingworx.js +36 -36
  120. package/dist/model/TowerLocation.js +58 -58
  121. package/dist/model/Twilio.js +46 -46
  122. package/dist/model/UpdateFleetRequest.js +14 -14
  123. package/dist/model/UploadMetadata.js +68 -68
  124. package/dist/model/UserDbRoute.js +26 -26
  125. package/dist/model/UserDfuStateMachine.js +14 -14
  126. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  127. package/dist/model/UserFirmwareInfo.js +1 -1
  128. package/dist/model/WebhookSettings.js +1 -1
  129. package/package.json +1 -1
  130. package/dist/model/DataSet.js +0 -164
  131. package/dist/model/QuestionDataResponseLineChart.js +0 -204
  132. package/dist/model/QuestionDataResponseMap.js +0 -143
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The MonitorAlertRoutesInner model module.
33
33
  * @module model/MonitorAlertRoutesInner
34
- * @version 1.0.37-beta.6
34
+ * @version 1.0.37-beta.8
35
35
  */
36
36
  var MonitorAlertRoutesInner = /*#__PURE__*/function () {
37
37
  /**
@@ -145,8 +145,8 @@ var MonitorAlertRoutesInner = /*#__PURE__*/function () {
145
145
  }]);
146
146
  }();
147
147
  /**
148
- * The URL of the Slack webhook.
149
- * @member {String} url
148
+ * text or blocks
149
+ * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
150
150
  */
151
151
  _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
152
152
  /**
@@ -157,12 +157,6 @@ _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
157
157
  _defineProperty(MonitorAlertRoutesInner, "fromJSON", function (json_string) {
158
158
  return _MonitorAlertRoutesInner.constructFromObject(JSON.parse(json_string));
159
159
  });
160
- MonitorAlertRoutesInner.prototype['url'] = undefined;
161
-
162
- /**
163
- * text or blocks
164
- * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
165
- */
166
160
  MonitorAlertRoutesInner.prototype['message_type'] = undefined;
167
161
 
168
162
  /**
@@ -172,10 +166,10 @@ MonitorAlertRoutesInner.prototype['message_type'] = undefined;
172
166
  MonitorAlertRoutesInner.prototype['text'] = undefined;
173
167
 
174
168
  /**
175
- * The bearer token for the Slack app.
176
- * @member {String} token
169
+ * The URL of the Slack webhook.
170
+ * @member {String} url
177
171
  */
178
- MonitorAlertRoutesInner.prototype['token'] = undefined;
172
+ MonitorAlertRoutesInner.prototype['url'] = undefined;
179
173
 
180
174
  /**
181
175
  * The channel to send the message to.
@@ -183,6 +177,12 @@ MonitorAlertRoutesInner.prototype['token'] = undefined;
183
177
  */
184
178
  MonitorAlertRoutesInner.prototype['channel'] = undefined;
185
179
 
180
+ /**
181
+ * The bearer token for the Slack app.
182
+ * @member {String} token
183
+ */
184
+ MonitorAlertRoutesInner.prototype['token'] = undefined;
185
+
186
186
  /**
187
187
  * Email Address
188
188
  * @member {String} email
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
9
- var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
8
+ var _AwsFilter = _interopRequireDefault(require("./AwsFilter"));
9
+ var _AwsTransform = _interopRequireDefault(require("./AwsTransform"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
12
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The Mqtt model module.
30
30
  * @module model/Mqtt
31
- * @version 1.0.37-beta.6
31
+ * @version 1.0.37-beta.8
32
32
  */
33
33
  var Mqtt = /*#__PURE__*/function () {
34
34
  /**
@@ -62,47 +62,47 @@ var Mqtt = /*#__PURE__*/function () {
62
62
  value: function constructFromObject(data, obj) {
63
63
  if (data) {
64
64
  obj = obj || new Mqtt();
65
- if (data.hasOwnProperty('fleets')) {
66
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
65
+ if (data.hasOwnProperty('broker')) {
66
+ obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
67
67
  }
68
- if (data.hasOwnProperty('filter')) {
69
- obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
68
+ if (data.hasOwnProperty('certificate')) {
69
+ obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
70
70
  }
71
- if (data.hasOwnProperty('transform')) {
72
- obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
71
+ if (data.hasOwnProperty('certificate_name')) {
72
+ obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
73
73
  }
74
- if (data.hasOwnProperty('throttle_ms')) {
75
- obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
74
+ if (data.hasOwnProperty('filter')) {
75
+ obj['filter'] = _AwsFilter["default"].constructFromObject(data['filter']);
76
76
  }
77
- if (data.hasOwnProperty('timeout')) {
78
- obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
77
+ if (data.hasOwnProperty('fleets')) {
78
+ obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
79
79
  }
80
- if (data.hasOwnProperty('broker')) {
81
- obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
80
+ if (data.hasOwnProperty('key')) {
81
+ obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('password')) {
84
+ obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
82
85
  }
83
86
  if (data.hasOwnProperty('port')) {
84
87
  obj['port'] = _ApiClient["default"].convertToType(data['port'], 'Number');
85
88
  }
86
- if (data.hasOwnProperty('username')) {
87
- obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
89
+ if (data.hasOwnProperty('private_key_name')) {
90
+ obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
88
91
  }
89
- if (data.hasOwnProperty('password')) {
90
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
92
+ if (data.hasOwnProperty('throttle_ms')) {
93
+ obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
94
+ }
95
+ if (data.hasOwnProperty('timeout')) {
96
+ obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
91
97
  }
92
98
  if (data.hasOwnProperty('topic')) {
93
99
  obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
94
100
  }
95
- if (data.hasOwnProperty('certificate')) {
96
- obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
97
- }
98
- if (data.hasOwnProperty('certificate_name')) {
99
- obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
100
- }
101
- if (data.hasOwnProperty('key')) {
102
- obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
101
+ if (data.hasOwnProperty('transform')) {
102
+ obj['transform'] = _AwsTransform["default"].constructFromObject(data['transform']);
103
103
  }
104
- if (data.hasOwnProperty('private_key_name')) {
105
- obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
104
+ if (data.hasOwnProperty('username')) {
105
+ obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
106
106
  }
107
107
  } else if (data === null) {
108
108
  return null;
@@ -118,37 +118,11 @@ var Mqtt = /*#__PURE__*/function () {
118
118
  }, {
119
119
  key: "validateJSON",
120
120
  value: function validateJSON(data) {
121
- // ensure the json data is an array
122
- if (!Array.isArray(data['fleets'])) {
123
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
124
- }
125
- // validate the optional field `filter`
126
- if (data['filter']) {
127
- // data not null
128
- _HttpFilter["default"].validateJSON(data['filter']);
129
- }
130
- // validate the optional field `transform`
131
- if (data['transform']) {
132
- // data not null
133
- _HttpTransform["default"].validateJSON(data['transform']);
134
- }
135
121
  // ensure the json data is a string
136
122
  if (data['broker'] && !(typeof data['broker'] === 'string' || data['broker'] instanceof String)) {
137
123
  throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data['broker']);
138
124
  }
139
125
  // ensure the json data is a string
140
- if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
141
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
142
- }
143
- // ensure the json data is a string
144
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
145
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
146
- }
147
- // ensure the json data is a string
148
- if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
149
- throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
150
- }
151
- // ensure the json data is a string
152
126
  if (data['certificate'] && !(typeof data['certificate'] === 'string' || data['certificate'] instanceof String)) {
153
127
  throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data['certificate']);
154
128
  }
@@ -156,93 +130,119 @@ var Mqtt = /*#__PURE__*/function () {
156
130
  if (data['certificate_name'] && !(typeof data['certificate_name'] === 'string' || data['certificate_name'] instanceof String)) {
157
131
  throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data['certificate_name']);
158
132
  }
133
+ // validate the optional field `filter`
134
+ if (data['filter']) {
135
+ // data not null
136
+ _AwsFilter["default"].validateJSON(data['filter']);
137
+ }
138
+ // ensure the json data is an array
139
+ if (!Array.isArray(data['fleets'])) {
140
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
141
+ }
159
142
  // ensure the json data is a string
160
143
  if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
161
144
  throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
162
145
  }
163
146
  // ensure the json data is a string
147
+ if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
148
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
149
+ }
150
+ // ensure the json data is a string
164
151
  if (data['private_key_name'] && !(typeof data['private_key_name'] === 'string' || data['private_key_name'] instanceof String)) {
165
152
  throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data['private_key_name']);
166
153
  }
154
+ // ensure the json data is a string
155
+ if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
156
+ throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
157
+ }
158
+ // validate the optional field `transform`
159
+ if (data['transform']) {
160
+ // data not null
161
+ _AwsTransform["default"].validateJSON(data['transform']);
162
+ }
163
+ // ensure the json data is a string
164
+ if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
165
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
166
+ }
167
167
  return true;
168
168
  }
169
169
  }]);
170
170
  }();
171
171
  /**
172
- * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
173
- * @member {Array.<String>} fleets
172
+ * @member {String} broker
174
173
  */
175
- Mqtt.prototype['fleets'] = undefined;
174
+ Mqtt.prototype['broker'] = undefined;
176
175
 
177
176
  /**
178
- * @member {module:model/HttpFilter} filter
177
+ * Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
178
+ * @member {String} certificate
179
179
  */
180
- Mqtt.prototype['filter'] = undefined;
180
+ Mqtt.prototype['certificate'] = undefined;
181
181
 
182
182
  /**
183
- * @member {module:model/HttpTransform} transform
183
+ * Name of certificate.
184
+ * @member {String} certificate_name
184
185
  */
185
- Mqtt.prototype['transform'] = undefined;
186
+ Mqtt.prototype['certificate_name'] = undefined;
186
187
 
187
188
  /**
188
- * @member {Number} throttle_ms
189
+ * @member {module:model/AwsFilter} filter
189
190
  */
190
- Mqtt.prototype['throttle_ms'] = undefined;
191
+ Mqtt.prototype['filter'] = undefined;
191
192
 
192
193
  /**
193
- * Timeout in seconds for each request
194
- * @member {Number} timeout
195
- * @default 15
194
+ * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
195
+ * @member {Array.<String>} fleets
196
196
  */
197
- Mqtt.prototype['timeout'] = 15;
197
+ Mqtt.prototype['fleets'] = undefined;
198
198
 
199
199
  /**
200
- * @member {String} broker
200
+ * Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
201
+ * @member {String} key
201
202
  */
202
- Mqtt.prototype['broker'] = undefined;
203
+ Mqtt.prototype['key'] = undefined;
203
204
 
204
205
  /**
205
- * @member {Number} port
206
+ * This value is input-only and will be omitted from the response and replaced with a placeholder
207
+ * @member {String} password
206
208
  */
207
- Mqtt.prototype['port'] = undefined;
209
+ Mqtt.prototype['password'] = undefined;
208
210
 
209
211
  /**
210
- * @member {String} username
212
+ * @member {Number} port
211
213
  */
212
- Mqtt.prototype['username'] = undefined;
214
+ Mqtt.prototype['port'] = undefined;
213
215
 
214
216
  /**
215
- * This value is input-only and will be omitted from the response and replaced with a placeholder
216
- * @member {String} password
217
+ * Name of key
218
+ * @member {String} private_key_name
217
219
  */
218
- Mqtt.prototype['password'] = undefined;
220
+ Mqtt.prototype['private_key_name'] = undefined;
219
221
 
220
222
  /**
221
- * @member {String} topic
223
+ * @member {Number} throttle_ms
222
224
  */
223
- Mqtt.prototype['topic'] = undefined;
225
+ Mqtt.prototype['throttle_ms'] = undefined;
224
226
 
225
227
  /**
226
- * Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
227
- * @member {String} certificate
228
+ * Timeout in seconds for each request
229
+ * @member {Number} timeout
230
+ * @default 15
228
231
  */
229
- Mqtt.prototype['certificate'] = undefined;
232
+ Mqtt.prototype['timeout'] = 15;
230
233
 
231
234
  /**
232
- * Name of certificate.
233
- * @member {String} certificate_name
235
+ * @member {String} topic
234
236
  */
235
- Mqtt.prototype['certificate_name'] = undefined;
237
+ Mqtt.prototype['topic'] = undefined;
236
238
 
237
239
  /**
238
- * Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
239
- * @member {String} key
240
+ * @member {module:model/AwsTransform} transform
240
241
  */
241
- Mqtt.prototype['key'] = undefined;
242
+ Mqtt.prototype['transform'] = undefined;
242
243
 
243
244
  /**
244
- * Name of key
245
- * @member {String} private_key_name
245
+ * @member {String} username
246
246
  */
247
- Mqtt.prototype['private_key_name'] = undefined;
247
+ Mqtt.prototype['username'] = undefined;
248
248
  var _default = exports["default"] = Mqtt;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Note model module.
28
28
  * @module model/Note
29
- * @version 1.0.37-beta.6
29
+ * @version 1.0.37-beta.8
30
30
  */
31
31
  var Note = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The NotefileSchema model module.
32
32
  * @module model/NotefileSchema
33
- * @version 1.0.37-beta.6
33
+ * @version 1.0.37-beta.8
34
34
  */
35
35
  var NotefileSchema = /*#__PURE__*/function () {
36
36
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The NotehubRoute model module.
29
29
  * @module model/NotehubRoute
30
- * @version 1.0.37-beta.6
30
+ * @version 1.0.37-beta.8
31
31
  */
32
32
  var NotehubRoute = /*#__PURE__*/function () {
33
33
  /**
@@ -60,24 +60,24 @@ var NotehubRoute = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new NotehubRoute();
63
- if (data.hasOwnProperty('uid')) {
64
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
63
+ if (data.hasOwnProperty('disabled')) {
64
+ obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
65
65
  }
66
66
  if (data.hasOwnProperty('label')) {
67
67
  obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
68
68
  }
69
- if (data.hasOwnProperty('route_type')) {
70
- obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
71
- }
72
69
  if (data.hasOwnProperty('modified')) {
73
70
  obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
74
71
  }
75
- if (data.hasOwnProperty('disabled')) {
76
- obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
72
+ if (data.hasOwnProperty('route_type')) {
73
+ obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
77
74
  }
78
75
  if (data.hasOwnProperty('schema')) {
79
76
  obj['schema'] = _NotehubRouteSchema["default"].constructFromObject(data['schema']);
80
77
  }
78
+ if (data.hasOwnProperty('uid')) {
79
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
80
+ }
81
81
  } else if (data === null) {
82
82
  return null;
83
83
  }
@@ -92,36 +92,37 @@ var NotehubRoute = /*#__PURE__*/function () {
92
92
  }, {
93
93
  key: "validateJSON",
94
94
  value: function validateJSON(data) {
95
- // ensure the json data is a string
96
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
97
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
98
- }
99
95
  // ensure the json data is a string
100
96
  if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
101
97
  throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
102
98
  }
103
99
  // ensure the json data is a string
104
- if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
105
- throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
106
- }
107
- // ensure the json data is a string
108
100
  if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
109
101
  throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
110
102
  }
103
+ // ensure the json data is a string
104
+ if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
105
+ throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
106
+ }
111
107
  // validate the optional field `schema`
112
108
  if (data['schema']) {
113
109
  // data not null
114
110
  _NotehubRouteSchema["default"].validateJSON(data['schema']);
115
111
  }
112
+ // ensure the json data is a string
113
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
114
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
115
+ }
116
116
  return true;
117
117
  }
118
118
  }]);
119
119
  }();
120
120
  /**
121
- * Route UID
122
- * @member {String} uid
121
+ * Is route disabled?
122
+ * @member {Boolean} disabled
123
+ * @default false
123
124
  */
124
- NotehubRoute.prototype['uid'] = undefined;
125
+ NotehubRoute.prototype['disabled'] = false;
125
126
 
126
127
  /**
127
128
  * Route Label
@@ -129,13 +130,6 @@ NotehubRoute.prototype['uid'] = undefined;
129
130
  */
130
131
  NotehubRoute.prototype['label'] = undefined;
131
132
 
132
- /**
133
- * Type of route.
134
- * @member {module:model/NotehubRoute.RouteTypeEnum} route_type
135
- * @default 'http'
136
- */
137
- NotehubRoute.prototype['route_type'] = 'http';
138
-
139
133
  /**
140
134
  * Last Modified
141
135
  * @member {String} modified
@@ -143,17 +137,23 @@ NotehubRoute.prototype['route_type'] = 'http';
143
137
  NotehubRoute.prototype['modified'] = undefined;
144
138
 
145
139
  /**
146
- * Is route disabled?
147
- * @member {Boolean} disabled
148
- * @default false
140
+ * Type of route.
141
+ * @member {module:model/NotehubRoute.RouteTypeEnum} route_type
142
+ * @default 'http'
149
143
  */
150
- NotehubRoute.prototype['disabled'] = false;
144
+ NotehubRoute.prototype['route_type'] = 'http';
151
145
 
152
146
  /**
153
147
  * @member {module:model/NotehubRouteSchema} schema
154
148
  */
155
149
  NotehubRoute.prototype['schema'] = undefined;
156
150
 
151
+ /**
152
+ * Route UID
153
+ * @member {String} uid
154
+ */
155
+ NotehubRoute.prototype['uid'] = undefined;
156
+
157
157
  /**
158
158
  * Allowed values for the <code>route_type</code> property.
159
159
  * @enum {String}