@blues-inc/notehub-js 1.0.23 → 1.0.24
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.
- package/README.md +24 -12
- package/dist/ApiClient.js +3 -3
- package/dist/api/AlertApi.js +5 -5
- package/dist/api/AuthorizationApi.js +2 -2
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +2 -2
- package/dist/api/EventApi.js +19 -9
- package/dist/api/MonitorApi.js +2 -2
- package/dist/api/ProjectApi.js +377 -108
- package/dist/api/RouteApi.js +30 -30
- package/dist/index.js +102 -39
- package/dist/model/Alert.js +46 -2
- package/dist/model/AlertDataInner.js +2 -2
- package/dist/model/AlertNotificationsInner.js +2 -2
- package/dist/model/Aws.js +2 -2
- package/dist/model/Azure.js +2 -2
- package/dist/model/BillingAccount.js +2 -2
- package/dist/model/BillingAccountRole.js +1 -1
- package/dist/model/Body.js +2 -2
- package/dist/model/CloneProjectRequest.js +2 -2
- package/dist/model/Contact.js +2 -2
- package/dist/model/CreateFleetRequest.js +2 -2
- package/dist/model/CreateMonitor.js +2 -2
- package/dist/model/CreateProductRequest.js +2 -2
- package/dist/model/CreateProjectRequest.js +2 -2
- package/dist/model/CurrentFirmware.js +105 -0
- package/dist/model/DFUEnv.js +2 -2
- package/dist/model/DFUState.js +2 -2
- package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
- package/dist/model/Device.js +2 -2
- package/dist/model/DeviceDfuHistory.js +138 -0
- package/dist/model/DeviceDfuHistoryPage.js +120 -0
- package/dist/model/DeviceDfuStateMachine.js +151 -0
- package/dist/model/DeviceDfuStateMachineNode.js +132 -0
- package/dist/model/DeviceDfuStatus.js +129 -0
- package/dist/model/{FirmwareStatus.js → DeviceDfuStatusCurrent.js} +42 -28
- package/dist/model/{OTAStatusList.js → DeviceDfuStatusPage.js} +25 -25
- package/dist/model/DeviceSession.js +2 -2
- package/dist/model/DeviceTowerInfo.js +2 -2
- package/dist/model/DeviceUsage.js +2 -2
- package/dist/model/DfuActionRequest.js +92 -0
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvironmentVariables.js +2 -2
- package/dist/model/Error.js +2 -2
- package/dist/model/Event.js +2 -2
- package/dist/model/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +2 -2
- package/dist/model/Fleet.js +2 -2
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetBillingAccounts200Response.js +2 -2
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
- package/dist/model/GetDeviceLatest200Response.js +2 -2
- package/dist/model/GetDevicePublicKey200Response.js +2 -2
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
- package/dist/model/GetProjectDevices200Response.js +2 -2
- package/dist/model/GetProjectEvents200Response.js +2 -2
- package/dist/model/GetProjectEventsByCursor200Response.js +2 -2
- package/dist/model/GetProjectFleets200Response.js +2 -2
- package/dist/model/GetProjectMembers200Response.js +2 -2
- package/dist/model/GetProjectProducts200Response.js +2 -2
- package/dist/model/GetProjects200Response.js +2 -2
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +2 -2
- package/dist/model/Google.js +2 -2
- package/dist/model/HandleNoteChanges200Response.js +2 -2
- package/dist/model/HandleNoteGet200Response.js +2 -2
- package/dist/model/HandleNoteSignal200Response.js +2 -2
- package/dist/model/HandleNotefileChanges200Response.js +2 -2
- package/dist/model/HandleNotefileChangesPending200Response.js +2 -2
- package/dist/model/HandleNotefileDeleteRequest.js +2 -2
- package/dist/model/Http.js +2 -2
- package/dist/model/HttpFilter.js +2 -2
- package/dist/model/HttpTransform.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login200Response.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/Monitor.js +2 -2
- package/dist/model/MonitorAlertRoutesInner.js +2 -2
- package/dist/model/Mqtt.js +2 -2
- package/dist/model/Note.js +2 -2
- package/dist/model/{Route.js → NotehubRoute.js} +30 -30
- package/dist/model/{RouteSchema.js → NotehubRouteSchema.js} +68 -68
- package/dist/model/PostProvisionProjectDeviceRequest.js +2 -2
- package/dist/model/Product.js +2 -2
- package/dist/model/Project.js +2 -2
- package/dist/model/ProjectMember.js +2 -2
- package/dist/model/Proxy.js +2 -2
- package/dist/model/PutDeviceFleetsRequest.js +2 -2
- package/dist/model/Radresponder.js +2 -2
- package/dist/model/Role.js +1 -1
- package/dist/model/Slack.js +2 -2
- package/dist/model/SlackBearerNotification.js +2 -2
- package/dist/model/SlackWebHookNotification.js +2 -2
- package/dist/model/Snowflake.js +2 -2
- package/dist/model/SnowflakeTransform.js +2 -2
- package/dist/model/Thingworx.js +2 -2
- package/dist/model/TowerLocation.js +2 -2
- package/dist/model/Twilio.js +2 -2
- package/dist/model/UpdateFleetRequest.js +2 -2
- package/dist/model/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +2 -2
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/{OTAUpdateStatus.js → UserDfuStateMachineStatus.js} +46 -41
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +1 -1
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
5
5
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
|
-
- API version: 1.
|
|
9
|
-
- Package version: 1.0.
|
|
8
|
+
- API version: 1.2.0
|
|
9
|
+
- Package version: 1.0.24
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -112,7 +112,7 @@ var projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // {String}
|
|
|
112
112
|
var opts = {
|
|
113
113
|
'pageSize': 50, // {Number}
|
|
114
114
|
'pageNum': 1, // {Number}
|
|
115
|
-
'monitorUID':
|
|
115
|
+
'monitorUID': "monitorUID_example" // {String}
|
|
116
116
|
};
|
|
117
117
|
api.getAlerts(projectUID, opts).then(function(data) {
|
|
118
118
|
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
@@ -180,9 +180,14 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
180
180
|
| _NotehubJs.ProjectApi_ | [**deleteFleetEnvironmentVariable**](docs/ProjectApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
181
181
|
| _NotehubJs.ProjectApi_ | [**deleteProject**](docs/ProjectApi.md#deleteProject) | **DELETE** /v1/projects/{projectUID} |
|
|
182
182
|
| _NotehubJs.ProjectApi_ | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
183
|
+
| _NotehubJs.ProjectApi_ | [**dfuAction**](docs/ProjectApi.md#dfuAction) | **POST** /v1/projects/{projectUID}/dfu/{firmwareType}/{action} |
|
|
183
184
|
| _NotehubJs.ProjectApi_ | [**disableGlobalTransformation**](docs/ProjectApi.md#disableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/disable |
|
|
184
185
|
| _NotehubJs.ProjectApi_ | [**enableGlobalTransformation**](docs/ProjectApi.md#enableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/enable |
|
|
186
|
+
| _NotehubJs.ProjectApi_ | [**getDeviceDfuHistory**](docs/ProjectApi.md#getDeviceDfuHistory) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history |
|
|
187
|
+
| _NotehubJs.ProjectApi_ | [**getDeviceDfuStatus**](docs/ProjectApi.md#getDeviceDfuStatus) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status |
|
|
185
188
|
| _NotehubJs.ProjectApi_ | [**getDeviceFleets**](docs/ProjectApi.md#getDeviceFleets) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
189
|
+
| _NotehubJs.ProjectApi_ | [**getDevicesDfuHistory**](docs/ProjectApi.md#getDevicesDfuHistory) | **GET** /v1/projects/{projectUID}/dfu/{firmwareType}/history |
|
|
190
|
+
| _NotehubJs.ProjectApi_ | [**getDevicesDfuStatus**](docs/ProjectApi.md#getDevicesDfuStatus) | **GET** /v1/projects/{projectUID}/dfu/{firmwareType}/status |
|
|
186
191
|
| _NotehubJs.ProjectApi_ | [**getFirmwareInfo**](docs/ProjectApi.md#getFirmwareInfo) | **GET** /v1/projects/{projectUID}/firmware |
|
|
187
192
|
| _NotehubJs.ProjectApi_ | [**getFleetEnvironmentVariables**](docs/ProjectApi.md#getFleetEnvironmentVariables) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
|
|
188
193
|
| _NotehubJs.ProjectApi_ | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /v1/projects/{projectUID} |
|
|
@@ -190,7 +195,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
190
195
|
| _NotehubJs.ProjectApi_ | [**getProjectEnvironmentVariables**](docs/ProjectApi.md#getProjectEnvironmentVariables) | **GET** /v1/projects/{projectUID}/environment_variables |
|
|
191
196
|
| _NotehubJs.ProjectApi_ | [**getProjectFleets**](docs/ProjectApi.md#getProjectFleets) | **GET** /v1/projects/{projectUID}/fleets |
|
|
192
197
|
| _NotehubJs.ProjectApi_ | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectUID}/members |
|
|
193
|
-
| _NotehubJs.ProjectApi_ | [**getProjectOTAStatus**](docs/ProjectApi.md#getProjectOTAStatus) | **GET** /v1/projects/{projectUID}/ota/status |
|
|
194
198
|
| _NotehubJs.ProjectApi_ | [**getProjectProducts**](docs/ProjectApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
|
|
195
199
|
| _NotehubJs.ProjectApi_ | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
|
|
196
200
|
| _NotehubJs.ProjectApi_ | [**putDeviceFleets**](docs/ProjectApi.md#putDeviceFleets) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
@@ -198,7 +202,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
198
202
|
| _NotehubJs.ProjectApi_ | [**putProjectEnvironmentVariables**](docs/ProjectApi.md#putProjectEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/environment_variables |
|
|
199
203
|
| _NotehubJs.ProjectApi_ | [**setGlobalTransformation**](docs/ProjectApi.md#setGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation |
|
|
200
204
|
| _NotehubJs.ProjectApi_ | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectUID}/fleets/{fleetUID} |
|
|
201
|
-
| _NotehubJs.ProjectApi_ | [**updateProjectFirmware**](docs/ProjectApi.md#updateProjectFirmware) | **POST** /v1/projects/{projectUID}/ota/update |
|
|
202
205
|
| _NotehubJs.RouteApi_ | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectUID}/routes |
|
|
203
206
|
| _NotehubJs.RouteApi_ | [**deleteRoute**](docs/RouteApi.md#deleteRoute) | **DELETE** /v1/projects/{projectUID}/routes/{routeUID} |
|
|
204
207
|
| _NotehubJs.RouteApi_ | [**getRoute**](docs/RouteApi.md#getRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID} |
|
|
@@ -222,19 +225,28 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
222
225
|
- [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
|
|
223
226
|
- [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
|
|
224
227
|
- [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
|
|
228
|
+
- [NotehubJs.CurrentFirmware](docs/CurrentFirmware.md)
|
|
225
229
|
- [NotehubJs.DFUEnv](docs/DFUEnv.md)
|
|
226
230
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
227
231
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
228
232
|
- [NotehubJs.Device](docs/Device.md)
|
|
233
|
+
- [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
|
|
234
|
+
- [NotehubJs.DeviceDfuHistoryPage](docs/DeviceDfuHistoryPage.md)
|
|
235
|
+
- [NotehubJs.DeviceDfuStateMachine](docs/DeviceDfuStateMachine.md)
|
|
236
|
+
- [NotehubJs.DeviceDfuStateMachineNode](docs/DeviceDfuStateMachineNode.md)
|
|
237
|
+
- [NotehubJs.DeviceDfuStatus](docs/DeviceDfuStatus.md)
|
|
238
|
+
- [NotehubJs.DeviceDfuStatusCurrent](docs/DeviceDfuStatusCurrent.md)
|
|
239
|
+
- [NotehubJs.DeviceDfuStatusPage](docs/DeviceDfuStatusPage.md)
|
|
229
240
|
- [NotehubJs.DeviceSession](docs/DeviceSession.md)
|
|
230
241
|
- [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
|
|
231
242
|
- [NotehubJs.DeviceUsage](docs/DeviceUsage.md)
|
|
243
|
+
- [NotehubJs.DfuActionRequest](docs/DfuActionRequest.md)
|
|
232
244
|
- [NotehubJs.EmailNotification](docs/EmailNotification.md)
|
|
233
245
|
- [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
|
|
234
246
|
- [NotehubJs.Error](docs/Error.md)
|
|
235
247
|
- [NotehubJs.Event](docs/Event.md)
|
|
248
|
+
- [NotehubJs.Firmware](docs/Firmware.md)
|
|
236
249
|
- [NotehubJs.FirmwareInfo](docs/FirmwareInfo.md)
|
|
237
|
-
- [NotehubJs.FirmwareStatus](docs/FirmwareStatus.md)
|
|
238
250
|
- [NotehubJs.Fleet](docs/Fleet.md)
|
|
239
251
|
- [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
|
|
240
252
|
- [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
|
|
@@ -271,10 +283,8 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
271
283
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
272
284
|
- [NotehubJs.Mqtt](docs/Mqtt.md)
|
|
273
285
|
- [NotehubJs.Note](docs/Note.md)
|
|
274
|
-
- [NotehubJs.
|
|
275
|
-
- [NotehubJs.
|
|
276
|
-
- [NotehubJs.OTAUpdateRequest](docs/OTAUpdateRequest.md)
|
|
277
|
-
- [NotehubJs.OTAUpdateStatus](docs/OTAUpdateStatus.md)
|
|
286
|
+
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
287
|
+
- [NotehubJs.NotehubRouteSchema](docs/NotehubRouteSchema.md)
|
|
278
288
|
- [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
|
|
279
289
|
- [NotehubJs.Product](docs/Product.md)
|
|
280
290
|
- [NotehubJs.Project](docs/Project.md)
|
|
@@ -283,8 +293,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
283
293
|
- [NotehubJs.PutDeviceFleetsRequest](docs/PutDeviceFleetsRequest.md)
|
|
284
294
|
- [NotehubJs.Radresponder](docs/Radresponder.md)
|
|
285
295
|
- [NotehubJs.Role](docs/Role.md)
|
|
286
|
-
- [NotehubJs.Route](docs/Route.md)
|
|
287
|
-
- [NotehubJs.RouteSchema](docs/RouteSchema.md)
|
|
288
296
|
- [NotehubJs.Slack](docs/Slack.md)
|
|
289
297
|
- [NotehubJs.SlackBearerNotification](docs/SlackBearerNotification.md)
|
|
290
298
|
- [NotehubJs.SlackWebHookNotification](docs/SlackWebHookNotification.md)
|
|
@@ -294,7 +302,11 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
294
302
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
295
303
|
- [NotehubJs.Twilio](docs/Twilio.md)
|
|
296
304
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
305
|
+
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
297
306
|
- [NotehubJs.UserDbRoute](docs/UserDbRoute.md)
|
|
307
|
+
- [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
|
|
308
|
+
- [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.md)
|
|
309
|
+
- [NotehubJs.UserFirmwareInfo](docs/UserFirmwareInfo.md)
|
|
298
310
|
|
|
299
311
|
## Documentation for Authorization
|
|
300
312
|
|
package/dist/ApiClient.js
CHANGED
|
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
* Notehub API
|
|
17
17
|
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
|
-
* The version of the OpenAPI document: 1.
|
|
19
|
+
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
21
21
|
*
|
|
22
22
|
* 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
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.24
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -74,7 +74,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
74
74
|
* @default {}
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {
|
|
77
|
-
"User-Agent": "OpenAPI-Generator/1.0.
|
|
77
|
+
"User-Agent": "OpenAPI-Generator/1.0.24/Javascript"
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.24
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -49,7 +49,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
49
|
* @param {Object} opts Optional parameters
|
|
50
50
|
* @param {Number} opts.pageSize (default to 50)
|
|
51
51
|
* @param {Number} opts.pageNum (default to 1)
|
|
52
|
-
* @param {
|
|
52
|
+
* @param {String} opts.monitorUID
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAlerts200Response} and HTTP response
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(AlertApi, [{
|
|
@@ -67,7 +67,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
var queryParams = {
|
|
68
68
|
pageSize: opts["pageSize"],
|
|
69
69
|
pageNum: opts["pageNum"],
|
|
70
|
-
monitorUID:
|
|
70
|
+
monitorUID: opts["monitorUID"]
|
|
71
71
|
};
|
|
72
72
|
var headerParams = {};
|
|
73
73
|
var formParams = {};
|
|
@@ -84,7 +84,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
* @param {Object} opts Optional parameters
|
|
85
85
|
* @param {Number} opts.pageSize (default to 50)
|
|
86
86
|
* @param {Number} opts.pageNum (default to 1)
|
|
87
|
-
* @param {
|
|
87
|
+
* @param {String} opts.monitorUID
|
|
88
88
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAlerts200Response}
|
|
89
89
|
*/
|
|
90
90
|
}, {
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Authorization service.
|
|
30
30
|
* @module api/AuthorizationApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.24
|
|
32
32
|
*/
|
|
33
33
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.24
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
* Notehub API
|
|
35
35
|
* The OpenAPI definition for the Notehub.io API.
|
|
36
36
|
*
|
|
37
|
-
* The version of the OpenAPI document: 1.
|
|
37
|
+
* The version of the OpenAPI document: 1.2.0
|
|
38
38
|
* Contact: engineering@blues.io
|
|
39
39
|
*
|
|
40
40
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
/**
|
|
46
46
|
* Device service.
|
|
47
47
|
* @module api/DeviceApi
|
|
48
|
-
* @version 1.0.
|
|
48
|
+
* @version 1.0.24
|
|
49
49
|
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -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.
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.24
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,8 +48,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
50
|
* @param {String} projectUID
|
|
51
|
+
* @param {String} fleetUID
|
|
51
52
|
* @param {Object} opts Optional parameters
|
|
52
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
53
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
54
54
|
* @param {Number} opts.pageNum (default to 1)
|
|
55
55
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
@@ -57,6 +57,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
57
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
58
58
|
* @param {Number} opts.startDate Unix timestamp
|
|
59
59
|
* @param {Number} opts.endDate Unix timestamp
|
|
60
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
60
61
|
* @param {Boolean} opts.systemFilesOnly
|
|
61
62
|
* @param {String} opts.files
|
|
62
63
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
@@ -70,18 +71,22 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
71
|
*/
|
|
71
72
|
return _createClass(EventApi, [{
|
|
72
73
|
key: "getFleetEventsWithHttpInfo",
|
|
73
|
-
value: function getFleetEventsWithHttpInfo(projectUID, opts) {
|
|
74
|
+
value: function getFleetEventsWithHttpInfo(projectUID, fleetUID, opts) {
|
|
74
75
|
opts = opts || {};
|
|
75
76
|
var postBody = null;
|
|
76
77
|
// verify the required parameter 'projectUID' is set
|
|
77
78
|
if (projectUID === undefined || projectUID === null) {
|
|
78
79
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
|
|
79
80
|
}
|
|
81
|
+
// verify the required parameter 'fleetUID' is set
|
|
82
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
83
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
84
|
+
}
|
|
80
85
|
var pathParams = {
|
|
81
|
-
projectUID: projectUID
|
|
86
|
+
projectUID: projectUID,
|
|
87
|
+
fleetUID: fleetUID
|
|
82
88
|
};
|
|
83
89
|
var queryParams = {
|
|
84
|
-
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
85
90
|
pageSize: opts["pageSize"],
|
|
86
91
|
pageNum: opts["pageNum"],
|
|
87
92
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
@@ -89,6 +94,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
94
|
sortOrder: opts["sortOrder"],
|
|
90
95
|
startDate: opts["startDate"],
|
|
91
96
|
endDate: opts["endDate"],
|
|
97
|
+
dateType: opts["dateType"],
|
|
92
98
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
93
99
|
files: opts["files"],
|
|
94
100
|
format: opts["format"],
|
|
@@ -111,8 +117,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
117
|
/**
|
|
112
118
|
* Get Events of a Fleet
|
|
113
119
|
* @param {String} projectUID
|
|
120
|
+
* @param {String} fleetUID
|
|
114
121
|
* @param {Object} opts Optional parameters
|
|
115
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
116
122
|
* @param {Number} opts.pageSize (default to 50)
|
|
117
123
|
* @param {Number} opts.pageNum (default to 1)
|
|
118
124
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
@@ -120,6 +126,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
120
126
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
121
127
|
* @param {Number} opts.startDate Unix timestamp
|
|
122
128
|
* @param {Number} opts.endDate Unix timestamp
|
|
129
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
123
130
|
* @param {Boolean} opts.systemFilesOnly
|
|
124
131
|
* @param {String} opts.files
|
|
125
132
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
@@ -133,8 +140,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
140
|
*/
|
|
134
141
|
}, {
|
|
135
142
|
key: "getFleetEvents",
|
|
136
|
-
value: function getFleetEvents(projectUID, opts) {
|
|
137
|
-
return this.getFleetEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
143
|
+
value: function getFleetEvents(projectUID, fleetUID, opts) {
|
|
144
|
+
return this.getFleetEventsWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
138
145
|
return response_and_data.data;
|
|
139
146
|
});
|
|
140
147
|
}
|
|
@@ -224,6 +231,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
224
231
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
225
232
|
* @param {Number} opts.startDate Unix timestamp
|
|
226
233
|
* @param {Number} opts.endDate Unix timestamp
|
|
234
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
227
235
|
* @param {Boolean} opts.systemFilesOnly
|
|
228
236
|
* @param {String} opts.files
|
|
229
237
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
@@ -256,6 +264,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
264
|
sortOrder: opts["sortOrder"],
|
|
257
265
|
startDate: opts["startDate"],
|
|
258
266
|
endDate: opts["endDate"],
|
|
267
|
+
dateType: opts["dateType"],
|
|
259
268
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
260
269
|
files: opts["files"],
|
|
261
270
|
format: opts["format"],
|
|
@@ -287,6 +296,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
296
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
288
297
|
* @param {Number} opts.startDate Unix timestamp
|
|
289
298
|
* @param {Number} opts.endDate Unix timestamp
|
|
299
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
290
300
|
* @param {Boolean} opts.systemFilesOnly
|
|
291
301
|
* @param {String} opts.files
|
|
292
302
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
18
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.24
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|