@blues-inc/notehub-js 1.0.37-beta.11 → 1.0.37-beta.13
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 +13 -10
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +13 -13
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +14 -14
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +105 -0
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +80 -59
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
- package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
- package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +20 -20
- package/dist/model/PersonalAccessToken.js +168 -0
- package/dist/model/PersonalAccessTokenCreatedBy.js +116 -0
- package/dist/model/PersonalAccessTokenInfo.js +121 -0
- package/dist/model/PersonalAccessTokenSecret.js +105 -0
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +34 -36
- package/dist/model/SimUsage.js +20 -20
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +68 -68
- package/dist/model/{QuestionDataResponseMap.js → UsageData.js} +45 -52
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/DataSet.js +0 -164
- package/dist/model/QuestionDataResponseLineChart.js +0 -204
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: 1.0.37-beta.
|
|
9
|
+
- Package version: 1.0.37-beta.13
|
|
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
|
|
|
@@ -218,6 +218,7 @@ Class | Method | HTTP request | Description
|
|
|
218
218
|
*NotehubJs.RouteApi* | [**getRouteLogsByRoute**](docs/RouteApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs |
|
|
219
219
|
*NotehubJs.RouteApi* | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectOrProductUID}/routes |
|
|
220
220
|
*NotehubJs.RouteApi* | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectOrProductUID}/routes/{routeUID} |
|
|
221
|
+
*NotehubJs.UsageApi* | [**getProjectDataUsage**](docs/UsageApi.md#getProjectDataUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/data |
|
|
221
222
|
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
222
223
|
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
223
224
|
*NotehubJs.WebhookApi* | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
@@ -237,6 +238,8 @@ Class | Method | HTTP request | Description
|
|
|
237
238
|
- [NotehubJs.AnalyticsSessionsData](docs/AnalyticsSessionsData.md)
|
|
238
239
|
- [NotehubJs.AnalyticsSessionsResponse](docs/AnalyticsSessionsResponse.md)
|
|
239
240
|
- [NotehubJs.Aws](docs/Aws.md)
|
|
241
|
+
- [NotehubJs.AwsFilter](docs/AwsFilter.md)
|
|
242
|
+
- [NotehubJs.AwsTransform](docs/AwsTransform.md)
|
|
240
243
|
- [NotehubJs.Azure](docs/Azure.md)
|
|
241
244
|
- [NotehubJs.BillingAccount](docs/BillingAccount.md)
|
|
242
245
|
- [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
|
|
@@ -252,16 +255,15 @@ Class | Method | HTTP request | Description
|
|
|
252
255
|
- [NotehubJs.DFUEnv](docs/DFUEnv.md)
|
|
253
256
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
254
257
|
- [NotehubJs.DataField](docs/DataField.md)
|
|
255
|
-
- [NotehubJs.DataSet](docs/DataSet.md)
|
|
256
258
|
- [NotehubJs.DataSetField](docs/DataSetField.md)
|
|
257
259
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
258
260
|
- [NotehubJs.Device](docs/Device.md)
|
|
259
261
|
- [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
|
|
262
|
+
- [NotehubJs.DeviceDfuHistoryCurrent](docs/DeviceDfuHistoryCurrent.md)
|
|
260
263
|
- [NotehubJs.DeviceDfuHistoryPage](docs/DeviceDfuHistoryPage.md)
|
|
261
264
|
- [NotehubJs.DeviceDfuStateMachine](docs/DeviceDfuStateMachine.md)
|
|
262
265
|
- [NotehubJs.DeviceDfuStateMachineNode](docs/DeviceDfuStateMachineNode.md)
|
|
263
266
|
- [NotehubJs.DeviceDfuStatus](docs/DeviceDfuStatus.md)
|
|
264
|
-
- [NotehubJs.DeviceDfuStatusCurrent](docs/DeviceDfuStatusCurrent.md)
|
|
265
267
|
- [NotehubJs.DeviceDfuStatusPage](docs/DeviceDfuStatusPage.md)
|
|
266
268
|
- [NotehubJs.DeviceSession](docs/DeviceSession.md)
|
|
267
269
|
- [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
|
|
@@ -278,7 +280,8 @@ Class | Method | HTTP request | Description
|
|
|
278
280
|
- [NotehubJs.Fleet](docs/Fleet.md)
|
|
279
281
|
- [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
|
|
280
282
|
- [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
|
|
281
|
-
- [NotehubJs.
|
|
283
|
+
- [NotehubJs.GetDeviceEnvironmentVariablesByPin200Response](docs/GetDeviceEnvironmentVariablesByPin200Response.md)
|
|
284
|
+
- [NotehubJs.GetDeviceFleets200Response](docs/GetDeviceFleets200Response.md)
|
|
282
285
|
- [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
|
|
283
286
|
- [NotehubJs.GetDeviceHealthLog200ResponseHealthLogInner](docs/GetDeviceHealthLog200ResponseHealthLogInner.md)
|
|
284
287
|
- [NotehubJs.GetDeviceLatest200Response](docs/GetDeviceLatest200Response.md)
|
|
@@ -289,7 +292,6 @@ Class | Method | HTTP request | Description
|
|
|
289
292
|
- [NotehubJs.GetProjectDevices200Response](docs/GetProjectDevices200Response.md)
|
|
290
293
|
- [NotehubJs.GetProjectEvents200Response](docs/GetProjectEvents200Response.md)
|
|
291
294
|
- [NotehubJs.GetProjectEventsByCursor200Response](docs/GetProjectEventsByCursor200Response.md)
|
|
292
|
-
- [NotehubJs.GetProjectFleets200Response](docs/GetProjectFleets200Response.md)
|
|
293
295
|
- [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
|
|
294
296
|
- [NotehubJs.GetProjectProducts200Response](docs/GetProjectProducts200Response.md)
|
|
295
297
|
- [NotehubJs.GetProjects200Response](docs/GetProjects200Response.md)
|
|
@@ -302,8 +304,6 @@ Class | Method | HTTP request | Description
|
|
|
302
304
|
- [NotehubJs.HandleNotefileChangesPending200Response](docs/HandleNotefileChangesPending200Response.md)
|
|
303
305
|
- [NotehubJs.HandleNotefileDeleteRequest](docs/HandleNotefileDeleteRequest.md)
|
|
304
306
|
- [NotehubJs.Http](docs/Http.md)
|
|
305
|
-
- [NotehubJs.HttpFilter](docs/HttpFilter.md)
|
|
306
|
-
- [NotehubJs.HttpTransform](docs/HttpTransform.md)
|
|
307
307
|
- [NotehubJs.Location](docs/Location.md)
|
|
308
308
|
- [NotehubJs.Login200Response](docs/Login200Response.md)
|
|
309
309
|
- [NotehubJs.LoginRequest](docs/LoginRequest.md)
|
|
@@ -316,14 +316,16 @@ Class | Method | HTTP request | Description
|
|
|
316
316
|
- [NotehubJs.NotehubRouteSchema](docs/NotehubRouteSchema.md)
|
|
317
317
|
- [NotehubJs.OAuth2Error](docs/OAuth2Error.md)
|
|
318
318
|
- [NotehubJs.OAuth2TokenResponse](docs/OAuth2TokenResponse.md)
|
|
319
|
+
- [NotehubJs.PersonalAccessToken](docs/PersonalAccessToken.md)
|
|
320
|
+
- [NotehubJs.PersonalAccessTokenCreatedBy](docs/PersonalAccessTokenCreatedBy.md)
|
|
321
|
+
- [NotehubJs.PersonalAccessTokenInfo](docs/PersonalAccessTokenInfo.md)
|
|
322
|
+
- [NotehubJs.PersonalAccessTokenSecret](docs/PersonalAccessTokenSecret.md)
|
|
319
323
|
- [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
|
|
320
324
|
- [NotehubJs.Product](docs/Product.md)
|
|
321
325
|
- [NotehubJs.Project](docs/Project.md)
|
|
322
326
|
- [NotehubJs.ProjectMember](docs/ProjectMember.md)
|
|
323
327
|
- [NotehubJs.Proxy](docs/Proxy.md)
|
|
324
328
|
- [NotehubJs.PutDeviceFleetsRequest](docs/PutDeviceFleetsRequest.md)
|
|
325
|
-
- [NotehubJs.QuestionDataResponseLineChart](docs/QuestionDataResponseLineChart.md)
|
|
326
|
-
- [NotehubJs.QuestionDataResponseMap](docs/QuestionDataResponseMap.md)
|
|
327
329
|
- [NotehubJs.Radresponder](docs/Radresponder.md)
|
|
328
330
|
- [NotehubJs.Repository](docs/Repository.md)
|
|
329
331
|
- [NotehubJs.Role](docs/Role.md)
|
|
@@ -332,14 +334,15 @@ Class | Method | HTTP request | Description
|
|
|
332
334
|
- [NotehubJs.SimUsage](docs/SimUsage.md)
|
|
333
335
|
- [NotehubJs.Slack](docs/Slack.md)
|
|
334
336
|
- [NotehubJs.SlackBearerNotification](docs/SlackBearerNotification.md)
|
|
337
|
+
- [NotehubJs.SlackTransform](docs/SlackTransform.md)
|
|
335
338
|
- [NotehubJs.SlackWebHookNotification](docs/SlackWebHookNotification.md)
|
|
336
339
|
- [NotehubJs.Snowflake](docs/Snowflake.md)
|
|
337
|
-
- [NotehubJs.SnowflakeTransform](docs/SnowflakeTransform.md)
|
|
338
340
|
- [NotehubJs.Thingworx](docs/Thingworx.md)
|
|
339
341
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
340
342
|
- [NotehubJs.Twilio](docs/Twilio.md)
|
|
341
343
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
342
344
|
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
345
|
+
- [NotehubJs.UsageData](docs/UsageData.md)
|
|
343
346
|
- [NotehubJs.UserDbRoute](docs/UserDbRoute.md)
|
|
344
347
|
- [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
|
|
345
348
|
- [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.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 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.13
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -75,7 +75,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {};
|
|
77
77
|
if (typeof window === 'undefined') {
|
|
78
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.37-beta.
|
|
78
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.37-beta.13/Javascript';
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
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 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.13
|
|
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 1.0.37-beta.
|
|
33
|
+
* @version 1.0.37-beta.13
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,7 +46,7 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Gets
|
|
49
|
+
* Gets an API key from username and password
|
|
50
50
|
* @param {module:model/LoginRequest} loginRequest
|
|
51
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Login200Response} and HTTP response
|
|
52
52
|
*/
|
|
@@ -70,7 +70,7 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Gets
|
|
73
|
+
* Gets an API key from username and password
|
|
74
74
|
* @param {module:model/LoginRequest} loginRequest
|
|
75
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Login200Response}
|
|
76
76
|
*/
|
|
@@ -85,22 +85,18 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
85
|
/**
|
|
86
86
|
* Issue an OAuth 2.0 access token (Client Credentials)
|
|
87
87
|
* Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
|
|
88
|
-
* @param {module:model/String} grantType
|
|
89
88
|
* @param {String} clientId
|
|
90
89
|
* @param {String} clientSecret
|
|
90
|
+
* @param {module:model/String} grantType
|
|
91
91
|
* @param {Object} opts Optional parameters
|
|
92
92
|
* @param {String} opts.scope Space-delimited scopes.
|
|
93
93
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
|
|
94
94
|
*/
|
|
95
95
|
}, {
|
|
96
96
|
key: "oAuth2ClientCredentialsWithHttpInfo",
|
|
97
|
-
value: function oAuth2ClientCredentialsWithHttpInfo(
|
|
97
|
+
value: function oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts) {
|
|
98
98
|
opts = opts || {};
|
|
99
99
|
var postBody = null;
|
|
100
|
-
// verify the required parameter 'grantType' is set
|
|
101
|
-
if (grantType === undefined || grantType === null) {
|
|
102
|
-
throw new Error("Missing the required parameter 'grantType' when calling oAuth2ClientCredentials");
|
|
103
|
-
}
|
|
104
100
|
// verify the required parameter 'clientId' is set
|
|
105
101
|
if (clientId === undefined || clientId === null) {
|
|
106
102
|
throw new Error("Missing the required parameter 'clientId' when calling oAuth2ClientCredentials");
|
|
@@ -109,13 +105,17 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
105
|
if (clientSecret === undefined || clientSecret === null) {
|
|
110
106
|
throw new Error("Missing the required parameter 'clientSecret' when calling oAuth2ClientCredentials");
|
|
111
107
|
}
|
|
108
|
+
// verify the required parameter 'grantType' is set
|
|
109
|
+
if (grantType === undefined || grantType === null) {
|
|
110
|
+
throw new Error("Missing the required parameter 'grantType' when calling oAuth2ClientCredentials");
|
|
111
|
+
}
|
|
112
112
|
var pathParams = {};
|
|
113
113
|
var queryParams = {};
|
|
114
114
|
var headerParams = {};
|
|
115
115
|
var formParams = {
|
|
116
|
-
'grant_type': grantType,
|
|
117
116
|
'client_id': clientId,
|
|
118
117
|
'client_secret': clientSecret,
|
|
118
|
+
'grant_type': grantType,
|
|
119
119
|
'scope': opts['scope']
|
|
120
120
|
};
|
|
121
121
|
var authNames = [];
|
|
@@ -128,17 +128,17 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
128
128
|
/**
|
|
129
129
|
* Issue an OAuth 2.0 access token (Client Credentials)
|
|
130
130
|
* Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
|
|
131
|
-
* @param {module:model/String} grantType
|
|
132
131
|
* @param {String} clientId
|
|
133
132
|
* @param {String} clientSecret
|
|
133
|
+
* @param {module:model/String} grantType
|
|
134
134
|
* @param {Object} opts Optional parameters
|
|
135
135
|
* @param {String} opts.scope Space-delimited scopes.
|
|
136
136
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OAuth2TokenResponse}
|
|
137
137
|
*/
|
|
138
138
|
}, {
|
|
139
139
|
key: "oAuth2ClientCredentials",
|
|
140
|
-
value: function oAuth2ClientCredentials(
|
|
141
|
-
return this.oAuth2ClientCredentialsWithHttpInfo(
|
|
140
|
+
value: function oAuth2ClientCredentials(clientId, clientSecret, grantType, opts) {
|
|
141
|
+
return this.oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts).then(function (response_and_data) {
|
|
142
142
|
return response_and_data.data;
|
|
143
143
|
});
|
|
144
144
|
}
|
|
@@ -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.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.13
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -10,7 +10,7 @@ var _Device = _interopRequireDefault(require("../model/Device"));
|
|
|
10
10
|
var _EnvTreeJsonNode = _interopRequireDefault(require("../model/EnvTreeJsonNode"));
|
|
11
11
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
12
12
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
13
|
-
var
|
|
13
|
+
var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
|
|
14
14
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
|
|
15
15
|
var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
|
|
16
16
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
|
|
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
/**
|
|
47
47
|
* Device service.
|
|
48
48
|
* @module api/DeviceApi
|
|
49
|
-
* @version 1.0.37-beta.
|
|
49
|
+
* @version 1.0.37-beta.13
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -448,7 +448,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
448
|
* Get environment variables of a device
|
|
449
449
|
* @param {String} projectOrProductUID
|
|
450
450
|
* @param {String} deviceUID
|
|
451
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
451
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
452
452
|
*/
|
|
453
453
|
}, {
|
|
454
454
|
key: "getDeviceEnvironmentVariablesWithHttpInfo",
|
|
@@ -472,7 +472,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
472
472
|
var authNames = ['api_key'];
|
|
473
473
|
var contentTypes = [];
|
|
474
474
|
var accepts = ['application/json'];
|
|
475
|
-
var returnType =
|
|
475
|
+
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
476
476
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
477
477
|
}
|
|
478
478
|
|
|
@@ -480,7 +480,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
480
480
|
* Get environment variables of a device
|
|
481
481
|
* @param {String} projectOrProductUID
|
|
482
482
|
* @param {String} deviceUID
|
|
483
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
483
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
484
484
|
*/
|
|
485
485
|
}, {
|
|
486
486
|
key: "getDeviceEnvironmentVariables",
|
|
@@ -494,7 +494,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
494
494
|
* Get environment variables of a device with device pin authorization
|
|
495
495
|
* @param {String} productUID
|
|
496
496
|
* @param {String} deviceUID
|
|
497
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
497
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
498
498
|
*/
|
|
499
499
|
}, {
|
|
500
500
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
@@ -518,7 +518,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
518
518
|
var authNames = ['pin'];
|
|
519
519
|
var contentTypes = [];
|
|
520
520
|
var accepts = ['application/json'];
|
|
521
|
-
var returnType =
|
|
521
|
+
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
522
522
|
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
523
523
|
}
|
|
524
524
|
|
|
@@ -526,7 +526,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
526
526
|
* Get environment variables of a device with device pin authorization
|
|
527
527
|
* @param {String} productUID
|
|
528
528
|
* @param {String} deviceUID
|
|
529
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
529
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
530
530
|
*/
|
|
531
531
|
}, {
|
|
532
532
|
key: "getDeviceEnvironmentVariablesByPin",
|
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 1.0.37-beta.
|
|
33
|
+
* @version 1.0.37-beta.13
|
|
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 1.0.37-beta.
|
|
32
|
+
* @version 1.0.37-beta.13
|
|
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 1.0.37-beta.
|
|
32
|
+
* @version 1.0.37-beta.13
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,20 +47,20 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* Create a new Monitor
|
|
49
49
|
* @param {String} projectOrProductUID
|
|
50
|
-
* @param {module:model/
|
|
50
|
+
* @param {module:model/Monitor} body Body or payload of monitor to be created
|
|
51
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(MonitorApi, [{
|
|
54
54
|
key: "createMonitorWithHttpInfo",
|
|
55
|
-
value: function createMonitorWithHttpInfo(projectOrProductUID,
|
|
56
|
-
var postBody =
|
|
55
|
+
value: function createMonitorWithHttpInfo(projectOrProductUID, body) {
|
|
56
|
+
var postBody = body;
|
|
57
57
|
// verify the required parameter 'projectOrProductUID' is set
|
|
58
58
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
59
59
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createMonitor");
|
|
60
60
|
}
|
|
61
|
-
// verify the required parameter '
|
|
62
|
-
if (
|
|
63
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
61
|
+
// verify the required parameter 'body' is set
|
|
62
|
+
if (body === undefined || body === null) {
|
|
63
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling createMonitor");
|
|
64
64
|
}
|
|
65
65
|
var pathParams = {
|
|
66
66
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -78,13 +78,13 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
78
|
/**
|
|
79
79
|
* Create a new Monitor
|
|
80
80
|
* @param {String} projectOrProductUID
|
|
81
|
-
* @param {module:model/
|
|
81
|
+
* @param {module:model/Monitor} body Body or payload of monitor to be created
|
|
82
82
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
83
83
|
*/
|
|
84
84
|
}, {
|
|
85
85
|
key: "createMonitor",
|
|
86
|
-
value: function createMonitor(projectOrProductUID,
|
|
87
|
-
return this.createMonitorWithHttpInfo(projectOrProductUID,
|
|
86
|
+
value: function createMonitor(projectOrProductUID, body) {
|
|
87
|
+
return this.createMonitorWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
88
88
|
return response_and_data.data;
|
|
89
89
|
});
|
|
90
90
|
}
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -20,7 +20,7 @@ var _EnvironmentVariables = _interopRequireDefault(require("../model/Environment
|
|
|
20
20
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
21
21
|
var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
|
|
22
22
|
var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
23
|
-
var
|
|
23
|
+
var _GetDeviceFleets200Response = _interopRequireDefault(require("../model/GetDeviceFleets200Response"));
|
|
24
24
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
25
25
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
26
26
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
@@ -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 1.0.37-beta.
|
|
53
|
+
* @version 1.0.37-beta.13
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -242,7 +242,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
242
|
* @param {String} projectOrProductUID
|
|
243
243
|
* @param {String} deviceUID
|
|
244
244
|
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
245
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
246
|
*/
|
|
247
247
|
}, {
|
|
248
248
|
key: "deleteDeviceFleetsWithHttpInfo",
|
|
@@ -270,7 +270,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
270
270
|
var authNames = ['api_key'];
|
|
271
271
|
var contentTypes = ['application/json'];
|
|
272
272
|
var accepts = ['application/json'];
|
|
273
|
-
var returnType =
|
|
273
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
274
274
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -279,7 +279,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
279
279
|
* @param {String} projectOrProductUID
|
|
280
280
|
* @param {String} deviceUID
|
|
281
281
|
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
282
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
283
|
*/
|
|
284
284
|
}, {
|
|
285
285
|
key: "deleteDeviceFleets",
|
|
@@ -747,7 +747,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
747
747
|
* Get Device Fleets
|
|
748
748
|
* @param {String} projectOrProductUID
|
|
749
749
|
* @param {String} deviceUID
|
|
750
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
750
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
751
751
|
*/
|
|
752
752
|
}, {
|
|
753
753
|
key: "getDeviceFleetsWithHttpInfo",
|
|
@@ -771,7 +771,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
771
771
|
var authNames = ['api_key'];
|
|
772
772
|
var contentTypes = [];
|
|
773
773
|
var accepts = ['application/json'];
|
|
774
|
-
var returnType =
|
|
774
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
775
775
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
776
776
|
}
|
|
777
777
|
|
|
@@ -779,7 +779,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
779
779
|
* Get Device Fleets
|
|
780
780
|
* @param {String} projectOrProductUID
|
|
781
781
|
* @param {String} deviceUID
|
|
782
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
782
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
783
783
|
*/
|
|
784
784
|
}, {
|
|
785
785
|
key: "getDeviceFleets",
|
|
@@ -1367,7 +1367,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Get Project Fleets
|
|
1369
1369
|
* @param {String} projectOrProductUID
|
|
1370
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
1370
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1371
1371
|
*/
|
|
1372
1372
|
}, {
|
|
1373
1373
|
key: "getProjectFleetsWithHttpInfo",
|
|
@@ -1386,14 +1386,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1386
1386
|
var authNames = ['api_key'];
|
|
1387
1387
|
var contentTypes = [];
|
|
1388
1388
|
var accepts = ['application/json'];
|
|
1389
|
-
var returnType =
|
|
1389
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
1390
1390
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Get Project Fleets
|
|
1395
1395
|
* @param {String} projectOrProductUID
|
|
1396
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
1396
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1397
1397
|
*/
|
|
1398
1398
|
}, {
|
|
1399
1399
|
key: "getProjectFleets",
|
|
@@ -1517,7 +1517,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1517
1517
|
* @param {String} projectOrProductUID
|
|
1518
1518
|
* @param {String} deviceUID
|
|
1519
1519
|
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1520
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
1520
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1521
1521
|
*/
|
|
1522
1522
|
}, {
|
|
1523
1523
|
key: "putDeviceFleetsWithHttpInfo",
|
|
@@ -1545,7 +1545,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1545
1545
|
var authNames = ['api_key'];
|
|
1546
1546
|
var contentTypes = ['application/json'];
|
|
1547
1547
|
var accepts = ['application/json'];
|
|
1548
|
-
var returnType =
|
|
1548
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
1549
1549
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
@@ -1554,7 +1554,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1554
1554
|
* @param {String} projectOrProductUID
|
|
1555
1555
|
* @param {String} deviceUID
|
|
1556
1556
|
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1557
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
1557
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1558
1558
|
*/
|
|
1559
1559
|
}, {
|
|
1560
1560
|
key: "putDeviceFleets",
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -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 1.0.37-beta.
|
|
33
|
+
* @version 1.0.37-beta.13
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -0,0 +1,105 @@
|
|
|
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 _UsageData = _interopRequireDefault(require("../model/UsageData"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Notehub API
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
|
+
* Contact: engineering@blues.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Usage service.
|
|
30
|
+
* @module api/UsageApi
|
|
31
|
+
* @version 1.0.37-beta.13
|
|
32
|
+
*/
|
|
33
|
+
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new UsageApi.
|
|
36
|
+
* @alias module:api/UsageApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
|
+
function UsageApi(apiClient) {
|
|
42
|
+
_classCallCheck(this, UsageApi);
|
|
43
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
48
|
+
* @param {String} projectOrProductUID
|
|
49
|
+
* @param {module:model/String} period Period type for aggregation
|
|
50
|
+
* @param {Object} opts Optional parameters
|
|
51
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
52
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
53
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
54
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<Object>} and HTTP response
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(UsageApi, [{
|
|
57
|
+
key: "getProjectDataUsageWithHttpInfo",
|
|
58
|
+
value: function getProjectDataUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
59
|
+
opts = opts || {};
|
|
60
|
+
var postBody = null;
|
|
61
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
62
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
63
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDataUsage");
|
|
64
|
+
}
|
|
65
|
+
// verify the required parameter 'period' is set
|
|
66
|
+
if (period === undefined || period === null) {
|
|
67
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getProjectDataUsage");
|
|
68
|
+
}
|
|
69
|
+
var pathParams = {
|
|
70
|
+
'projectOrProductUID': projectOrProductUID
|
|
71
|
+
};
|
|
72
|
+
var queryParams = {
|
|
73
|
+
'startDate': opts['startDate'],
|
|
74
|
+
'endDate': opts['endDate'],
|
|
75
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
76
|
+
'period': period
|
|
77
|
+
};
|
|
78
|
+
var headerParams = {};
|
|
79
|
+
var formParams = {};
|
|
80
|
+
var authNames = ['api_key'];
|
|
81
|
+
var contentTypes = [];
|
|
82
|
+
var accepts = ['application/json'];
|
|
83
|
+
var returnType = [Object];
|
|
84
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/data', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
89
|
+
* @param {String} projectOrProductUID
|
|
90
|
+
* @param {module:model/String} period Period type for aggregation
|
|
91
|
+
* @param {Object} opts Optional parameters
|
|
92
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
93
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
94
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
95
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<Object>}
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "getProjectDataUsage",
|
|
99
|
+
value: function getProjectDataUsage(projectOrProductUID, period, opts) {
|
|
100
|
+
return this.getProjectDataUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
101
|
+
return response_and_data.data;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
}();
|
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 1.0.37-beta.
|
|
32
|
+
* @version 1.0.37-beta.13
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|