@blues-inc/notehub-js 2.1.0-beta.7 → 2.1.0-beta.9
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 +23 -19
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +10 -10
- package/dist/api/UsageApi.js +225 -0
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +92 -78
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/{AwsRoute.js → Aws.js} +45 -39
- package/dist/model/{Filter.js → AwsFilter.js} +47 -25
- package/dist/model/AwsTransform.js +148 -0
- package/dist/model/{AzureRoute.js → Azure.js} +40 -34
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +112 -0
- package/dist/model/GetDataUsage200ResponseDataInner.js +206 -0
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +132 -0
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/{GoogleRoute.js → Google.js} +37 -32
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/{HttpRoute.js → Http.js} +40 -34
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/{MqttRoute.js → Mqtt.js} +50 -45
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +134 -214
- package/dist/model/NotehubRouteSchema.js +505 -0
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/{ProxyRoute.js → Proxy.js} +26 -22
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/{RadRoute.js → Radresponder.js} +26 -38
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/{SlackRoute.js → Slack.js} +58 -35
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/{RouteTransformSettings.js → SlackTransform.js} +22 -22
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/{SnowflakeRoute.js → Snowflake.js} +41 -34
- package/dist/model/{ThingworxRoute.js → Thingworx.js} +37 -32
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/{TwilioRoute.js → Twilio.js} +39 -30
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/{NotehubRouteSummary.js → UserDbRoute.js} +29 -24
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/BlynkRoute.js +0 -147
- package/dist/model/DatacakeRoute.js +0 -165
- package/dist/model/QubitroRoute.js +0 -159
- package/dist/model/S3ArchiveRoute.js +0 -271
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 2.1.0-beta.
|
|
9
|
+
- Package version: 2.1.0-beta.9
|
|
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
|
|
|
@@ -220,6 +220,9 @@ Class | Method | HTTP request | Description
|
|
|
220
220
|
*NotehubJs.RouteApi* | [**getRouteLogsByRoute**](docs/RouteApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs |
|
|
221
221
|
*NotehubJs.RouteApi* | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectOrProductUID}/routes |
|
|
222
222
|
*NotehubJs.RouteApi* | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectOrProductUID}/routes/{routeUID} |
|
|
223
|
+
*NotehubJs.UsageApi* | [**getDataUsage**](docs/UsageApi.md#getDataUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/data |
|
|
224
|
+
*NotehubJs.UsageApi* | [**getProjectEventsUsage**](docs/UsageApi.md#getProjectEventsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/events |
|
|
225
|
+
*NotehubJs.UsageApi* | [**getSessionsUsage**](docs/UsageApi.md#getSessionsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/sessions |
|
|
223
226
|
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
224
227
|
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
225
228
|
*NotehubJs.WebhookApi* | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
@@ -232,11 +235,12 @@ Class | Method | HTTP request | Description
|
|
|
232
235
|
- [NotehubJs.Alert](docs/Alert.md)
|
|
233
236
|
- [NotehubJs.AlertDataInner](docs/AlertDataInner.md)
|
|
234
237
|
- [NotehubJs.AlertNotificationsInner](docs/AlertNotificationsInner.md)
|
|
235
|
-
- [NotehubJs.
|
|
236
|
-
- [NotehubJs.
|
|
238
|
+
- [NotehubJs.Aws](docs/Aws.md)
|
|
239
|
+
- [NotehubJs.AwsFilter](docs/AwsFilter.md)
|
|
240
|
+
- [NotehubJs.AwsTransform](docs/AwsTransform.md)
|
|
241
|
+
- [NotehubJs.Azure](docs/Azure.md)
|
|
237
242
|
- [NotehubJs.BillingAccount](docs/BillingAccount.md)
|
|
238
243
|
- [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
|
|
239
|
-
- [NotehubJs.BlynkRoute](docs/BlynkRoute.md)
|
|
240
244
|
- [NotehubJs.Body](docs/Body.md)
|
|
241
245
|
- [NotehubJs.CellularPlan](docs/CellularPlan.md)
|
|
242
246
|
- [NotehubJs.CloneProjectRequest](docs/CloneProjectRequest.md)
|
|
@@ -252,7 +256,6 @@ Class | Method | HTTP request | Description
|
|
|
252
256
|
- [NotehubJs.DataField](docs/DataField.md)
|
|
253
257
|
- [NotehubJs.DataSetField](docs/DataSetField.md)
|
|
254
258
|
- [NotehubJs.DataUsage](docs/DataUsage.md)
|
|
255
|
-
- [NotehubJs.DatacakeRoute](docs/DatacakeRoute.md)
|
|
256
259
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
257
260
|
- [NotehubJs.Device](docs/Device.md)
|
|
258
261
|
- [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
|
|
@@ -272,12 +275,13 @@ Class | Method | HTTP request | Description
|
|
|
272
275
|
- [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
|
|
273
276
|
- [NotehubJs.Error](docs/Error.md)
|
|
274
277
|
- [NotehubJs.Event](docs/Event.md)
|
|
275
|
-
- [NotehubJs.Filter](docs/Filter.md)
|
|
276
278
|
- [NotehubJs.Firmware](docs/Firmware.md)
|
|
277
279
|
- [NotehubJs.FirmwareInfo](docs/FirmwareInfo.md)
|
|
278
280
|
- [NotehubJs.Fleet](docs/Fleet.md)
|
|
279
281
|
- [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
|
|
280
282
|
- [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
|
|
283
|
+
- [NotehubJs.GetDataUsage200Response](docs/GetDataUsage200Response.md)
|
|
284
|
+
- [NotehubJs.GetDataUsage200ResponseDataInner](docs/GetDataUsage200ResponseDataInner.md)
|
|
281
285
|
- [NotehubJs.GetDeviceEnvironmentVariablesByPin200Response](docs/GetDeviceEnvironmentVariablesByPin200Response.md)
|
|
282
286
|
- [NotehubJs.GetDeviceFleets200Response](docs/GetDeviceFleets200Response.md)
|
|
283
287
|
- [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
|
|
@@ -294,25 +298,26 @@ Class | Method | HTTP request | Description
|
|
|
294
298
|
- [NotehubJs.GetProjectEventsByCursor200Response](docs/GetProjectEventsByCursor200Response.md)
|
|
295
299
|
- [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
|
|
296
300
|
- [NotehubJs.GetProjects200Response](docs/GetProjects200Response.md)
|
|
301
|
+
- [NotehubJs.GetSessionsUsage200Response](docs/GetSessionsUsage200Response.md)
|
|
297
302
|
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
298
|
-
- [NotehubJs.
|
|
303
|
+
- [NotehubJs.Google](docs/Google.md)
|
|
299
304
|
- [NotehubJs.HandleNoteChanges200Response](docs/HandleNoteChanges200Response.md)
|
|
300
305
|
- [NotehubJs.HandleNoteGet200Response](docs/HandleNoteGet200Response.md)
|
|
301
306
|
- [NotehubJs.HandleNoteSignal200Response](docs/HandleNoteSignal200Response.md)
|
|
302
307
|
- [NotehubJs.HandleNotefileChanges200Response](docs/HandleNotefileChanges200Response.md)
|
|
303
308
|
- [NotehubJs.HandleNotefileChangesPending200Response](docs/HandleNotefileChangesPending200Response.md)
|
|
304
309
|
- [NotehubJs.HandleNotefileDeleteRequest](docs/HandleNotefileDeleteRequest.md)
|
|
305
|
-
- [NotehubJs.
|
|
310
|
+
- [NotehubJs.Http](docs/Http.md)
|
|
306
311
|
- [NotehubJs.Location](docs/Location.md)
|
|
307
312
|
- [NotehubJs.Login200Response](docs/Login200Response.md)
|
|
308
313
|
- [NotehubJs.LoginRequest](docs/LoginRequest.md)
|
|
309
314
|
- [NotehubJs.Monitor](docs/Monitor.md)
|
|
310
315
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
311
|
-
- [NotehubJs.
|
|
316
|
+
- [NotehubJs.Mqtt](docs/Mqtt.md)
|
|
312
317
|
- [NotehubJs.Note](docs/Note.md)
|
|
313
318
|
- [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
|
|
314
319
|
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
315
|
-
- [NotehubJs.
|
|
320
|
+
- [NotehubJs.NotehubRouteSchema](docs/NotehubRouteSchema.md)
|
|
316
321
|
- [NotehubJs.OAuth2Error](docs/OAuth2Error.md)
|
|
317
322
|
- [NotehubJs.OAuth2TokenResponse](docs/OAuth2TokenResponse.md)
|
|
318
323
|
- [NotehubJs.PersonalAccessToken](docs/PersonalAccessToken.md)
|
|
@@ -323,25 +328,23 @@ Class | Method | HTTP request | Description
|
|
|
323
328
|
- [NotehubJs.Product](docs/Product.md)
|
|
324
329
|
- [NotehubJs.Project](docs/Project.md)
|
|
325
330
|
- [NotehubJs.ProjectMember](docs/ProjectMember.md)
|
|
326
|
-
- [NotehubJs.
|
|
331
|
+
- [NotehubJs.Proxy](docs/Proxy.md)
|
|
327
332
|
- [NotehubJs.PutDeviceFleetsRequest](docs/PutDeviceFleetsRequest.md)
|
|
328
|
-
- [NotehubJs.
|
|
329
|
-
- [NotehubJs.RadRoute](docs/RadRoute.md)
|
|
333
|
+
- [NotehubJs.Radresponder](docs/Radresponder.md)
|
|
330
334
|
- [NotehubJs.Repository](docs/Repository.md)
|
|
331
335
|
- [NotehubJs.Role](docs/Role.md)
|
|
332
336
|
- [NotehubJs.RouteLog](docs/RouteLog.md)
|
|
333
|
-
- [NotehubJs.RouteTransformSettings](docs/RouteTransformSettings.md)
|
|
334
|
-
- [NotehubJs.S3ArchiveRoute](docs/S3ArchiveRoute.md)
|
|
335
337
|
- [NotehubJs.SatellitePlan](docs/SatellitePlan.md)
|
|
336
338
|
- [NotehubJs.SchemaProperty](docs/SchemaProperty.md)
|
|
337
339
|
- [NotehubJs.SimUsage](docs/SimUsage.md)
|
|
340
|
+
- [NotehubJs.Slack](docs/Slack.md)
|
|
338
341
|
- [NotehubJs.SlackBearerNotification](docs/SlackBearerNotification.md)
|
|
339
|
-
- [NotehubJs.
|
|
342
|
+
- [NotehubJs.SlackTransform](docs/SlackTransform.md)
|
|
340
343
|
- [NotehubJs.SlackWebHookNotification](docs/SlackWebHookNotification.md)
|
|
341
|
-
- [NotehubJs.
|
|
342
|
-
- [NotehubJs.
|
|
344
|
+
- [NotehubJs.Snowflake](docs/Snowflake.md)
|
|
345
|
+
- [NotehubJs.Thingworx](docs/Thingworx.md)
|
|
343
346
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
344
|
-
- [NotehubJs.
|
|
347
|
+
- [NotehubJs.Twilio](docs/Twilio.md)
|
|
345
348
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
346
349
|
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
347
350
|
- [NotehubJs.UsageData](docs/UsageData.md)
|
|
@@ -349,6 +352,7 @@ Class | Method | HTTP request | Description
|
|
|
349
352
|
- [NotehubJs.UsageEventsResponse](docs/UsageEventsResponse.md)
|
|
350
353
|
- [NotehubJs.UsageRouteLogsData](docs/UsageRouteLogsData.md)
|
|
351
354
|
- [NotehubJs.UsageSessionsData](docs/UsageSessionsData.md)
|
|
355
|
+
- [NotehubJs.UserDbRoute](docs/UserDbRoute.md)
|
|
352
356
|
- [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
|
|
353
357
|
- [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.md)
|
|
354
358
|
- [NotehubJs.UserFirmwareInfo](docs/UserFirmwareInfo.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -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 2.1.0-beta.
|
|
29
|
+
* @version 2.1.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -73,7 +73,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
73
73
|
*/
|
|
74
74
|
this.defaultHeaders = {};
|
|
75
75
|
if (typeof window === 'undefined') {
|
|
76
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.1.0-beta.
|
|
76
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.1.0-beta.9/Javascript';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -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 2.1.0-beta.
|
|
31
|
+
* @version 2.1.0-beta.9
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Authorization service.
|
|
32
32
|
* @module api/AuthorizationApi
|
|
33
|
-
* @version 2.1.0-beta.
|
|
33
|
+
* @version 2.1.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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 2.1.0-beta.
|
|
31
|
+
* @version 2.1.0-beta.9
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -47,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
47
47
|
/**
|
|
48
48
|
* Device service.
|
|
49
49
|
* @module api/DeviceApi
|
|
50
|
-
* @version 2.1.0-beta.
|
|
50
|
+
* @version 2.1.0-beta.9
|
|
51
51
|
*/
|
|
52
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
53
53
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -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 2.1.0-beta.
|
|
33
|
+
* @version 2.1.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 2.1.0-beta.
|
|
32
|
+
* @version 2.1.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -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 2.1.0-beta.
|
|
32
|
+
* @version 2.1.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
50
|
/**
|
|
51
51
|
* Project service.
|
|
52
52
|
* @module api/ProjectApi
|
|
53
|
-
* @version 2.1.0-beta.
|
|
53
|
+
* @version 2.1.0-beta.9
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -7,8 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _NotehubRoute = _interopRequireDefault(require("../model/NotehubRoute"));
|
|
10
|
-
var _NotehubRouteSummary = _interopRequireDefault(require("../model/NotehubRouteSummary"));
|
|
11
10
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
11
|
+
var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
14
14
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 2.1.0-beta.
|
|
33
|
+
* @version 2.1.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,7 +48,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Create Route within a Project
|
|
50
50
|
* @param {String} projectOrProductUID
|
|
51
|
-
* @param {module:model/NotehubRoute} notehubRoute Route to be
|
|
51
|
+
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
53
53
|
*/
|
|
54
54
|
return _createClass(RouteApi, [{
|
|
@@ -79,7 +79,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
79
|
/**
|
|
80
80
|
* Create Route within a Project
|
|
81
81
|
* @param {String} projectOrProductUID
|
|
82
|
-
* @param {module:model/NotehubRoute} notehubRoute Route to be
|
|
82
|
+
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
83
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
84
84
|
*/
|
|
85
85
|
}, {
|
|
@@ -94,7 +94,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
94
94
|
* Delete single route within a project
|
|
95
95
|
* @param {String} projectOrProductUID
|
|
96
96
|
* @param {String} routeUID
|
|
97
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
97
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
98
98
|
*/
|
|
99
99
|
}, {
|
|
100
100
|
key: "deleteRouteWithHttpInfo",
|
|
@@ -118,7 +118,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
118
|
var authNames = ['personalAccessToken'];
|
|
119
119
|
var contentTypes = [];
|
|
120
120
|
var accepts = ['application/json'];
|
|
121
|
-
var returnType =
|
|
121
|
+
var returnType = Object;
|
|
122
122
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
126
|
* Delete single route within a project
|
|
127
127
|
* @param {String} projectOrProductUID
|
|
128
128
|
* @param {String} routeUID
|
|
129
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
129
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
130
130
|
*/
|
|
131
131
|
}, {
|
|
132
132
|
key: "deleteRoute",
|
|
@@ -265,7 +265,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
265
265
|
/**
|
|
266
266
|
* Get all Routes within a Project
|
|
267
267
|
* @param {String} projectOrProductUID
|
|
268
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/
|
|
268
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
|
|
269
269
|
*/
|
|
270
270
|
}, {
|
|
271
271
|
key: "getRoutesWithHttpInfo",
|
|
@@ -284,14 +284,14 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
284
|
var authNames = ['personalAccessToken'];
|
|
285
285
|
var contentTypes = [];
|
|
286
286
|
var accepts = ['application/json'];
|
|
287
|
-
var returnType = [
|
|
287
|
+
var returnType = [_UserDbRoute["default"]];
|
|
288
288
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* Get all Routes within a Project
|
|
293
293
|
* @param {String} projectOrProductUID
|
|
294
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/
|
|
294
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
|
|
295
295
|
*/
|
|
296
296
|
}, {
|
|
297
297
|
key: "getRoutes",
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
+
var _GetDataUsage200Response = _interopRequireDefault(require("../model/GetDataUsage200Response"));
|
|
10
|
+
var _GetSessionsUsage200Response = _interopRequireDefault(require("../model/GetSessionsUsage200Response"));
|
|
11
|
+
var _UsageEventsResponse = _interopRequireDefault(require("../model/UsageEventsResponse"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Notehub API
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
23
|
+
* Contact: engineering@blues.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Usage service.
|
|
32
|
+
* @module api/UsageApi
|
|
33
|
+
* @version 2.1.0-beta.9
|
|
34
|
+
*/
|
|
35
|
+
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new UsageApi.
|
|
38
|
+
* @alias module:api/UsageApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function UsageApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, UsageApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
50
|
+
* @param {String} projectOrProductUID
|
|
51
|
+
* @param {module:model/String} period Period type for aggregation
|
|
52
|
+
* @param {Object} opts Optional parameters
|
|
53
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
54
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
55
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
56
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
57
|
+
*/
|
|
58
|
+
return _createClass(UsageApi, [{
|
|
59
|
+
key: "getDataUsageWithHttpInfo",
|
|
60
|
+
value: function getDataUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
var postBody = null;
|
|
63
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
64
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
65
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDataUsage");
|
|
66
|
+
}
|
|
67
|
+
// verify the required parameter 'period' is set
|
|
68
|
+
if (period === undefined || period === null) {
|
|
69
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getDataUsage");
|
|
70
|
+
}
|
|
71
|
+
var pathParams = {
|
|
72
|
+
'projectOrProductUID': projectOrProductUID
|
|
73
|
+
};
|
|
74
|
+
var queryParams = {
|
|
75
|
+
'startDate': opts['startDate'],
|
|
76
|
+
'endDate': opts['endDate'],
|
|
77
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
78
|
+
'period': period
|
|
79
|
+
};
|
|
80
|
+
var headerParams = {};
|
|
81
|
+
var formParams = {};
|
|
82
|
+
var authNames = [];
|
|
83
|
+
var contentTypes = [];
|
|
84
|
+
var accepts = ['application/json'];
|
|
85
|
+
var returnType = _GetDataUsage200Response["default"];
|
|
86
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/data', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
91
|
+
* @param {String} projectOrProductUID
|
|
92
|
+
* @param {module:model/String} period Period type for aggregation
|
|
93
|
+
* @param {Object} opts Optional parameters
|
|
94
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
95
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
96
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
97
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
|
|
98
|
+
*/
|
|
99
|
+
}, {
|
|
100
|
+
key: "getDataUsage",
|
|
101
|
+
value: function getDataUsage(projectOrProductUID, period, opts) {
|
|
102
|
+
return this.getDataUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
103
|
+
return response_and_data.data;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
109
|
+
* @param {String} projectOrProductUID
|
|
110
|
+
* @param {module:model/String} period Period type for aggregation
|
|
111
|
+
* @param {Object} opts Optional parameters
|
|
112
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
113
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
114
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
115
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "getProjectEventsUsageWithHttpInfo",
|
|
119
|
+
value: function getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
120
|
+
opts = opts || {};
|
|
121
|
+
var postBody = null;
|
|
122
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
123
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
124
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsUsage");
|
|
125
|
+
}
|
|
126
|
+
// verify the required parameter 'period' is set
|
|
127
|
+
if (period === undefined || period === null) {
|
|
128
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getProjectEventsUsage");
|
|
129
|
+
}
|
|
130
|
+
var pathParams = {
|
|
131
|
+
'projectOrProductUID': projectOrProductUID
|
|
132
|
+
};
|
|
133
|
+
var queryParams = {
|
|
134
|
+
'startDate': opts['startDate'],
|
|
135
|
+
'endDate': opts['endDate'],
|
|
136
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
137
|
+
'period': period
|
|
138
|
+
};
|
|
139
|
+
var headerParams = {};
|
|
140
|
+
var formParams = {};
|
|
141
|
+
var authNames = ['personalAccessToken'];
|
|
142
|
+
var contentTypes = [];
|
|
143
|
+
var accepts = ['application/json'];
|
|
144
|
+
var returnType = _UsageEventsResponse["default"];
|
|
145
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
150
|
+
* @param {String} projectOrProductUID
|
|
151
|
+
* @param {module:model/String} period Period type for aggregation
|
|
152
|
+
* @param {Object} opts Optional parameters
|
|
153
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
154
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
155
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
156
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "getProjectEventsUsage",
|
|
160
|
+
value: function getProjectEventsUsage(projectOrProductUID, period, opts) {
|
|
161
|
+
return this.getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
162
|
+
return response_and_data.data;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
168
|
+
* @param {String} projectOrProductUID
|
|
169
|
+
* @param {module:model/String} period Period type for aggregation
|
|
170
|
+
* @param {Object} opts Optional parameters
|
|
171
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
172
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
173
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
174
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
|
|
175
|
+
*/
|
|
176
|
+
}, {
|
|
177
|
+
key: "getSessionsUsageWithHttpInfo",
|
|
178
|
+
value: function getSessionsUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
179
|
+
opts = opts || {};
|
|
180
|
+
var postBody = null;
|
|
181
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
182
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
183
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getSessionsUsage");
|
|
184
|
+
}
|
|
185
|
+
// verify the required parameter 'period' is set
|
|
186
|
+
if (period === undefined || period === null) {
|
|
187
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getSessionsUsage");
|
|
188
|
+
}
|
|
189
|
+
var pathParams = {
|
|
190
|
+
'projectOrProductUID': projectOrProductUID
|
|
191
|
+
};
|
|
192
|
+
var queryParams = {
|
|
193
|
+
'startDate': opts['startDate'],
|
|
194
|
+
'endDate': opts['endDate'],
|
|
195
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
196
|
+
'period': period
|
|
197
|
+
};
|
|
198
|
+
var headerParams = {};
|
|
199
|
+
var formParams = {};
|
|
200
|
+
var authNames = ['personalAccessToken'];
|
|
201
|
+
var contentTypes = [];
|
|
202
|
+
var accepts = ['application/json'];
|
|
203
|
+
var returnType = _GetSessionsUsage200Response["default"];
|
|
204
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
209
|
+
* @param {String} projectOrProductUID
|
|
210
|
+
* @param {module:model/String} period Period type for aggregation
|
|
211
|
+
* @param {Object} opts Optional parameters
|
|
212
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
213
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
214
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
215
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
|
|
216
|
+
*/
|
|
217
|
+
}, {
|
|
218
|
+
key: "getSessionsUsage",
|
|
219
|
+
value: function getSessionsUsage(projectOrProductUID, period, opts) {
|
|
220
|
+
return this.getSessionsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
221
|
+
return response_and_data.data;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}]);
|
|
225
|
+
}();
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 2.1.0-beta.
|
|
32
|
+
* @version 2.1.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|