@blues-inc/notehub-js 1.0.37-beta.3 → 1.0.37-beta.30

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 (140) hide show
  1. package/README.md +25 -17
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +2 -2
  4. package/dist/api/AuthorizationApi.js +65 -2
  5. package/dist/api/BillingAccountApi.js +2 -2
  6. package/dist/api/DeviceApi.js +9 -9
  7. package/dist/api/EventApi.js +2 -2
  8. package/dist/api/ExternalDevicesApi.js +2 -2
  9. package/dist/api/MonitorApi.js +11 -11
  10. package/dist/api/ProjectApi.js +15 -15
  11. package/dist/api/RouteApi.js +2 -2
  12. package/dist/api/UsageApi.js +285 -0
  13. package/dist/api/WebhookApi.js +2 -2
  14. package/dist/index.js +127 -99
  15. package/dist/model/Alert.js +92 -92
  16. package/dist/model/AlertDataInner.js +11 -11
  17. package/dist/model/AlertNotificationsInner.js +11 -11
  18. package/dist/model/Aws.js +87 -87
  19. package/dist/model/{HttpFilter.js → AwsFilter.js} +33 -33
  20. package/dist/model/{HttpTransform.js → AwsTransform.js} +22 -22
  21. package/dist/model/Azure.js +52 -52
  22. package/dist/model/BillingAccount.js +20 -20
  23. package/dist/model/BillingAccountRole.js +1 -1
  24. package/dist/model/Body.js +2 -2
  25. package/dist/model/CellularPlan.js +168 -0
  26. package/dist/model/CloneProjectRequest.js +26 -26
  27. package/dist/model/Contact.js +20 -20
  28. package/dist/model/CreateFleetRequest.js +2 -2
  29. package/dist/model/CreateMonitor.js +187 -187
  30. package/dist/model/CreateProductRequest.js +31 -31
  31. package/dist/model/CreateProjectRequest.js +21 -21
  32. package/dist/model/CreateUpdateRepository.js +19 -19
  33. package/dist/model/CumulativeDataUsage.js +133 -0
  34. package/dist/model/CurrentFirmware.js +13 -13
  35. package/dist/model/DFUEnv.js +2 -2
  36. package/dist/model/DFUState.js +61 -61
  37. package/dist/model/DataField.js +2 -2
  38. package/dist/model/DataSetField.js +15 -15
  39. package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
  40. package/dist/model/Device.js +178 -134
  41. package/dist/model/DeviceDfuHistory.js +16 -16
  42. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +53 -53
  43. package/dist/model/DeviceDfuHistoryPage.js +2 -2
  44. package/dist/model/DeviceDfuStateMachine.js +15 -15
  45. package/dist/model/DeviceDfuStateMachineNode.js +28 -28
  46. package/dist/model/DeviceDfuStatus.js +16 -16
  47. package/dist/model/DeviceDfuStatusPage.js +2 -2
  48. package/dist/model/DeviceSession.js +279 -279
  49. package/dist/model/DeviceTowerInfo.js +16 -16
  50. package/dist/model/DeviceUsage.js +37 -37
  51. package/dist/model/DfuActionRequest.js +2 -2
  52. package/dist/model/EmailNotification.js +2 -2
  53. package/dist/model/EnvTreeJsonNode.js +77 -77
  54. package/dist/model/EnvVar.js +10 -10
  55. package/dist/model/EnvironmentVariables.js +2 -2
  56. package/dist/model/Error.js +39 -39
  57. package/dist/model/Event.js +341 -341
  58. package/dist/model/Firmware.js +46 -46
  59. package/dist/model/FirmwareInfo.js +72 -72
  60. package/dist/model/Fleet.js +32 -32
  61. package/dist/model/GetAlerts200Response.js +2 -2
  62. package/dist/model/GetBillingAccounts200Response.js +2 -2
  63. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +31 -31
  64. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +21 -21
  65. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  66. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +16 -16
  67. package/dist/model/GetDeviceLatest200Response.js +2 -2
  68. package/dist/model/GetDevicePublicKey200Response.js +19 -19
  69. package/dist/model/GetDeviceSessions200Response.js +15 -15
  70. package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
  71. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
  72. package/dist/model/GetProjectDevices200Response.js +2 -2
  73. package/dist/model/GetProjectEvents200Response.js +2 -2
  74. package/dist/model/GetProjectEventsByCursor200Response.js +17 -17
  75. package/dist/model/GetProjectMembers200Response.js +2 -2
  76. package/dist/model/GetProjectProducts200Response.js +2 -2
  77. package/dist/model/GetProjects200Response.js +2 -2
  78. package/dist/model/GetWebhooks200Response.js +2 -2
  79. package/dist/model/Google.js +36 -36
  80. package/dist/model/HandleNoteChanges200Response.js +11 -11
  81. package/dist/model/HandleNoteGet200Response.js +2 -2
  82. package/dist/model/HandleNoteSignal200Response.js +2 -2
  83. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  84. package/dist/model/HandleNotefileChangesPending200Response.js +16 -16
  85. package/dist/model/HandleNotefileDeleteRequest.js +2 -2
  86. package/dist/model/Http.js +44 -44
  87. package/dist/model/Location.js +39 -39
  88. package/dist/model/Login200Response.js +2 -2
  89. package/dist/model/LoginRequest.js +13 -13
  90. package/dist/model/Monitor.js +136 -136
  91. package/dist/model/MonitorAlertRoutesInner.js +13 -13
  92. package/dist/model/Mqtt.js +92 -92
  93. package/dist/model/Note.js +2 -2
  94. package/dist/model/NotefileSchema.js +2 -2
  95. package/dist/model/NotehubRoute.js +31 -31
  96. package/dist/model/NotehubRouteSchema.js +81 -81
  97. package/dist/model/OAuth2Error.js +166 -0
  98. package/dist/model/OAuth2TokenResponse.js +154 -0
  99. package/dist/model/PersonalAccessToken.js +38 -38
  100. package/dist/model/PersonalAccessTokenCreatedBy.js +14 -14
  101. package/dist/model/PersonalAccessTokenInfo.js +14 -14
  102. package/dist/model/PersonalAccessTokenSecret.js +15 -15
  103. package/dist/model/PostProvisionProjectDeviceRequest.js +15 -15
  104. package/dist/model/Product.js +30 -30
  105. package/dist/model/Project.js +36 -36
  106. package/dist/model/ProjectMember.js +20 -20
  107. package/dist/model/Proxy.js +22 -22
  108. package/dist/model/PutDeviceFleetsRequest.js +2 -2
  109. package/dist/model/Radresponder.js +29 -29
  110. package/dist/model/Repository.js +23 -23
  111. package/dist/model/Role.js +1 -1
  112. package/dist/model/RouteLog.js +29 -29
  113. package/dist/model/SatellitePlan.js +166 -0
  114. package/dist/model/SchemaProperty.js +35 -37
  115. package/dist/model/SimUsage.js +20 -51
  116. package/dist/model/Slack.js +72 -72
  117. package/dist/model/SlackBearerNotification.js +15 -15
  118. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +20 -20
  119. package/dist/model/SlackWebHookNotification.js +15 -15
  120. package/dist/model/Snowflake.js +58 -58
  121. package/dist/model/Thingworx.js +37 -37
  122. package/dist/model/TowerLocation.js +59 -59
  123. package/dist/model/Twilio.js +47 -47
  124. package/dist/model/UpdateFleetRequest.js +15 -15
  125. package/dist/model/UploadMetadata.js +69 -69
  126. package/dist/model/{AnalyticsEventsData.js → UsageData.js} +42 -36
  127. package/dist/model/{QuestionDataResponseMap.js → UsageEventsData.js} +52 -51
  128. package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +26 -26
  129. package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +47 -33
  130. package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +26 -26
  131. package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +37 -33
  132. package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +26 -26
  133. package/dist/model/UserDbRoute.js +27 -27
  134. package/dist/model/UserDfuStateMachine.js +15 -15
  135. package/dist/model/UserDfuStateMachineStatus.js +10 -10
  136. package/dist/model/UserFirmwareInfo.js +2 -2
  137. package/dist/model/WebhookSettings.js +2 -2
  138. package/package.json +1 -1
  139. package/dist/model/DataSet.js +0 -164
  140. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.0
22
+ * The version of the OpenAPI document: 1.2.1
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Monitor model module.
32
32
  * @module model/Monitor
33
- * @version 1.0.37-beta.3
33
+ * @version 1.0.37-beta.30
34
34
  */
35
35
  var Monitor = /*#__PURE__*/function () {
36
36
  /**
@@ -63,59 +63,59 @@ var Monitor = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new Monitor();
66
- if (data.hasOwnProperty('uid')) {
67
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
66
+ if (data.hasOwnProperty('aggregate_function')) {
67
+ obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
68
68
  }
69
- if (data.hasOwnProperty('name')) {
70
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
69
+ if (data.hasOwnProperty('aggregate_window')) {
70
+ obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('alert')) {
73
+ obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
74
+ }
75
+ if (data.hasOwnProperty('alert_routes')) {
76
+ obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
77
+ }
78
+ if (data.hasOwnProperty('condition_type')) {
79
+ obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
71
80
  }
72
81
  if (data.hasOwnProperty('description')) {
73
82
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
74
83
  }
75
- if (data.hasOwnProperty('source_type')) {
76
- obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
77
- }
78
84
  if (data.hasOwnProperty('disabled')) {
79
85
  obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
80
86
  }
81
- if (data.hasOwnProperty('alert')) {
82
- obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
83
- }
84
- if (data.hasOwnProperty('notefile_filter')) {
85
- obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
86
- }
87
87
  if (data.hasOwnProperty('fleet_filter')) {
88
88
  obj['fleet_filter'] = _ApiClient["default"].convertToType(data['fleet_filter'], ['String']);
89
89
  }
90
- if (data.hasOwnProperty('source_selector')) {
91
- obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
90
+ if (data.hasOwnProperty('last_routed_at')) {
91
+ obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
92
92
  }
93
- if (data.hasOwnProperty('condition_type')) {
94
- obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
93
+ if (data.hasOwnProperty('name')) {
94
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
95
95
  }
96
- if (data.hasOwnProperty('threshold')) {
97
- obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
96
+ if (data.hasOwnProperty('notefile_filter')) {
97
+ obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
98
98
  }
99
- if (data.hasOwnProperty('alert_routes')) {
100
- obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
99
+ if (data.hasOwnProperty('per_device')) {
100
+ obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
101
101
  }
102
- if (data.hasOwnProperty('last_routed_at')) {
103
- obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
102
+ if (data.hasOwnProperty('routing_cooldown_period')) {
103
+ obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
104
104
  }
105
105
  if (data.hasOwnProperty('silenced')) {
106
106
  obj['silenced'] = _ApiClient["default"].convertToType(data['silenced'], 'Boolean');
107
107
  }
108
- if (data.hasOwnProperty('routing_cooldown_period')) {
109
- obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
108
+ if (data.hasOwnProperty('source_selector')) {
109
+ obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
110
110
  }
111
- if (data.hasOwnProperty('aggregate_function')) {
112
- obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
111
+ if (data.hasOwnProperty('source_type')) {
112
+ obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
113
113
  }
114
- if (data.hasOwnProperty('aggregate_window')) {
115
- obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
114
+ if (data.hasOwnProperty('threshold')) {
115
+ obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
116
116
  }
117
- if (data.hasOwnProperty('per_device')) {
118
- obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
117
+ if (data.hasOwnProperty('uid')) {
118
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
119
119
  }
120
120
  } else if (data === null) {
121
121
  return null;
@@ -132,36 +132,12 @@ var Monitor = /*#__PURE__*/function () {
132
132
  key: "validateJSON",
133
133
  value: function validateJSON(data) {
134
134
  // ensure the json data is a string
135
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
136
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
137
- }
138
- // ensure the json data is a string
139
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
140
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
141
- }
142
- // ensure the json data is a string
143
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
144
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
145
- }
146
- // ensure the json data is a string
147
- if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
148
- throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
149
- }
150
- // ensure the json data is an array
151
- if (!Array.isArray(data['notefile_filter'])) {
152
- throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
153
- }
154
- // ensure the json data is an array
155
- if (!Array.isArray(data['fleet_filter'])) {
156
- throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
157
- }
158
- // ensure the json data is a string
159
- if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
160
- throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
135
+ if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
136
+ throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
161
137
  }
162
138
  // ensure the json data is a string
163
- if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
164
- throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
139
+ if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
140
+ throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
165
141
  }
166
142
  if (data['alert_routes']) {
167
143
  // data not null
@@ -185,62 +161,88 @@ var Monitor = /*#__PURE__*/function () {
185
161
  ;
186
162
  }
187
163
  // ensure the json data is a string
164
+ if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
165
+ throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
166
+ }
167
+ // ensure the json data is a string
168
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
169
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
170
+ }
171
+ // ensure the json data is an array
172
+ if (!Array.isArray(data['fleet_filter'])) {
173
+ throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
174
+ }
175
+ // ensure the json data is a string
188
176
  if (data['last_routed_at'] && !(typeof data['last_routed_at'] === 'string' || data['last_routed_at'] instanceof String)) {
189
177
  throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data['last_routed_at']);
190
178
  }
191
179
  // ensure the json data is a string
180
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
181
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
182
+ }
183
+ // ensure the json data is an array
184
+ if (!Array.isArray(data['notefile_filter'])) {
185
+ throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
186
+ }
187
+ // ensure the json data is a string
192
188
  if (data['routing_cooldown_period'] && !(typeof data['routing_cooldown_period'] === 'string' || data['routing_cooldown_period'] instanceof String)) {
193
189
  throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data['routing_cooldown_period']);
194
190
  }
195
191
  // ensure the json data is a string
196
- if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
197
- throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
192
+ if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
193
+ throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
198
194
  }
199
195
  // ensure the json data is a string
200
- if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
201
- throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
196
+ if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
197
+ throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
198
+ }
199
+ // ensure the json data is a string
200
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
201
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
202
202
  }
203
203
  return true;
204
204
  }
205
205
  }]);
206
206
  }();
207
207
  /**
208
- * @member {String} uid
208
+ * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
209
+ * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
209
210
  */
210
- Monitor.prototype['uid'] = undefined;
211
+ Monitor.prototype['aggregate_function'] = undefined;
211
212
 
212
213
  /**
213
- * @member {String} name
214
+ * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
215
+ * @member {String} aggregate_window
214
216
  */
215
- Monitor.prototype['name'] = undefined;
217
+ Monitor.prototype['aggregate_window'] = undefined;
216
218
 
217
219
  /**
218
- * @member {String} description
220
+ * If true, the monitor is in alert state.
221
+ * @member {Boolean} alert
219
222
  */
220
- Monitor.prototype['description'] = undefined;
223
+ Monitor.prototype['alert'] = undefined;
221
224
 
222
225
  /**
223
- * The type of source to monitor. Currently only \"event\" is supported.
224
- * @member {module:model/Monitor.SourceTypeEnum} source_type
226
+ * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
225
227
  */
226
- Monitor.prototype['source_type'] = undefined;
228
+ Monitor.prototype['alert_routes'] = undefined;
227
229
 
228
230
  /**
229
- * If true, the monitor will not be evaluated.
230
- * @member {Boolean} disabled
231
+ * A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
232
+ * @member {module:model/Monitor.ConditionTypeEnum} condition_type
231
233
  */
232
- Monitor.prototype['disabled'] = undefined;
234
+ Monitor.prototype['condition_type'] = undefined;
233
235
 
234
236
  /**
235
- * If true, the monitor is in alert state.
236
- * @member {Boolean} alert
237
+ * @member {String} description
237
238
  */
238
- Monitor.prototype['alert'] = undefined;
239
+ Monitor.prototype['description'] = undefined;
239
240
 
240
241
  /**
241
- * @member {Array.<String>} notefile_filter
242
+ * If true, the monitor will not be evaluated.
243
+ * @member {Boolean} disabled
242
244
  */
243
- Monitor.prototype['notefile_filter'] = undefined;
245
+ Monitor.prototype['disabled'] = undefined;
244
246
 
245
247
  /**
246
248
  * @member {Array.<String>} fleet_filter
@@ -248,33 +250,32 @@ Monitor.prototype['notefile_filter'] = undefined;
248
250
  Monitor.prototype['fleet_filter'] = undefined;
249
251
 
250
252
  /**
251
- * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
252
- * @member {String} source_selector
253
+ * The last time the monitor was evaluated and routed.
254
+ * @member {String} last_routed_at
253
255
  */
254
- Monitor.prototype['source_selector'] = undefined;
256
+ Monitor.prototype['last_routed_at'] = undefined;
255
257
 
256
258
  /**
257
- * A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
258
- * @member {module:model/Monitor.ConditionTypeEnum} condition_type
259
+ * @member {String} name
259
260
  */
260
- Monitor.prototype['condition_type'] = undefined;
261
+ Monitor.prototype['name'] = undefined;
261
262
 
262
263
  /**
263
- * The type of condition to apply to the value selected by the source_selector
264
- * @member {Number} threshold
264
+ * @member {Array.<String>} notefile_filter
265
265
  */
266
- Monitor.prototype['threshold'] = undefined;
266
+ Monitor.prototype['notefile_filter'] = undefined;
267
267
 
268
268
  /**
269
- * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
269
+ * Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
270
+ * @member {Boolean} per_device
270
271
  */
271
- Monitor.prototype['alert_routes'] = undefined;
272
+ Monitor.prototype['per_device'] = undefined;
272
273
 
273
274
  /**
274
- * The last time the monitor was evaluated and routed.
275
- * @member {String} last_routed_at
275
+ * The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
276
+ * @member {String} routing_cooldown_period
276
277
  */
277
- Monitor.prototype['last_routed_at'] = undefined;
278
+ Monitor.prototype['routing_cooldown_period'] = undefined;
278
279
 
279
280
  /**
280
281
  * If true, alerts will be created, but no notifications will be sent.
@@ -283,40 +284,59 @@ Monitor.prototype['last_routed_at'] = undefined;
283
284
  Monitor.prototype['silenced'] = undefined;
284
285
 
285
286
  /**
286
- * The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
287
- * @member {String} routing_cooldown_period
287
+ * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
288
+ * @member {String} source_selector
288
289
  */
289
- Monitor.prototype['routing_cooldown_period'] = undefined;
290
+ Monitor.prototype['source_selector'] = undefined;
290
291
 
291
292
  /**
292
- * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
293
- * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
293
+ * The type of source to monitor. Currently only \"event\" is supported.
294
+ * @member {module:model/Monitor.SourceTypeEnum} source_type
294
295
  */
295
- Monitor.prototype['aggregate_function'] = undefined;
296
+ Monitor.prototype['source_type'] = undefined;
296
297
 
297
298
  /**
298
- * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
299
- * @member {String} aggregate_window
299
+ * The type of condition to apply to the value selected by the source_selector
300
+ * @member {Number} threshold
300
301
  */
301
- Monitor.prototype['aggregate_window'] = undefined;
302
+ Monitor.prototype['threshold'] = undefined;
302
303
 
303
304
  /**
304
- * Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
305
- * @member {Boolean} per_device
305
+ * @member {String} uid
306
306
  */
307
- Monitor.prototype['per_device'] = undefined;
307
+ Monitor.prototype['uid'] = undefined;
308
308
 
309
309
  /**
310
- * Allowed values for the <code>source_type</code> property.
310
+ * Allowed values for the <code>aggregate_function</code> property.
311
311
  * @enum {String}
312
312
  * @readonly
313
313
  */
314
- Monitor['SourceTypeEnum'] = {
314
+ Monitor['AggregateFunctionEnum'] = {
315
315
  /**
316
- * value: "event"
316
+ * value: "none"
317
317
  * @const
318
318
  */
319
- "event": "event"
319
+ "none": "none",
320
+ /**
321
+ * value: "sum"
322
+ * @const
323
+ */
324
+ "sum": "sum",
325
+ /**
326
+ * value: "average"
327
+ * @const
328
+ */
329
+ "average": "average",
330
+ /**
331
+ * value: "max"
332
+ * @const
333
+ */
334
+ "max": "max",
335
+ /**
336
+ * value: "min"
337
+ * @const
338
+ */
339
+ "min": "min"
320
340
  };
321
341
 
322
342
  /**
@@ -358,35 +378,15 @@ Monitor['ConditionTypeEnum'] = {
358
378
  };
359
379
 
360
380
  /**
361
- * Allowed values for the <code>aggregate_function</code> property.
381
+ * Allowed values for the <code>source_type</code> property.
362
382
  * @enum {String}
363
383
  * @readonly
364
384
  */
365
- Monitor['AggregateFunctionEnum'] = {
366
- /**
367
- * value: "none"
368
- * @const
369
- */
370
- "none": "none",
371
- /**
372
- * value: "sum"
373
- * @const
374
- */
375
- "sum": "sum",
376
- /**
377
- * value: "average"
378
- * @const
379
- */
380
- "average": "average",
381
- /**
382
- * value: "max"
383
- * @const
384
- */
385
- "max": "max",
385
+ Monitor['SourceTypeEnum'] = {
386
386
  /**
387
- * value: "min"
387
+ * value: "event"
388
388
  * @const
389
389
  */
390
- "min": "min"
390
+ "event": "event"
391
391
  };
392
392
  var _default = exports["default"] = Monitor;
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Notehub API
21
21
  * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
- * The version of the OpenAPI document: 1.2.0
23
+ * The version of the OpenAPI document: 1.2.1
24
24
  * Contact: engineering@blues.io
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
34
+ * @version 1.0.37-beta.30
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