@blues-inc/notehub-js 2.3.0-beta.9 → 3.0.0-beta.1
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 +9 -10
- 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 +131 -166
- 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 +97 -97
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +23 -5
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- 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 +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.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/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +14 -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/Filter.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/FleetConnectivityAssurance.js +4 -27
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- 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/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/ListNotefiles200Response.js +106 -0
- package/dist/model/ListPendingNotefiles200Response.js +1 -1
- 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 +1 -1
- package/dist/model/Note.js +10 -90
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +15 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- 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/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- 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 +12 -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/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/Notefile.js +0 -147
- package/dist/model/NotefileTemplate.js +0 -128
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:
|
|
9
|
+
- Package version: 3.0.0-beta.1
|
|
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
|
|
|
@@ -134,8 +134,6 @@ Class | Method | HTTP request | Description
|
|
|
134
134
|
*NotehubJs.AuthorizationApi* | [**oAuth2ClientCredentials**](docs/AuthorizationApi.md#oAuth2ClientCredentials) | **POST** /oauth2/token | Issue an OAuth 2.0 access token (Client Credentials)
|
|
135
135
|
*NotehubJs.BillingAccountApi* | [**getBillingAccounts**](docs/BillingAccountApi.md#getBillingAccounts) | **GET** /v1/billing-accounts |
|
|
136
136
|
*NotehubJs.DeviceApi* | [**addDbNote**](docs/DeviceApi.md#addDbNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
137
|
-
*NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariables**](docs/DeviceApi.md#addDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
|
|
138
|
-
*NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#addDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
139
137
|
*NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
|
|
140
138
|
*NotehubJs.DeviceApi* | [**deleteDbNote**](docs/DeviceApi.md#deleteDbNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
141
139
|
*NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
|
|
@@ -158,11 +156,12 @@ Class | Method | HTTP request | Description
|
|
|
158
156
|
*NotehubJs.DeviceApi* | [**getDeviceSessions**](docs/DeviceApi.md#getDeviceSessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions |
|
|
159
157
|
*NotehubJs.DeviceApi* | [**getDevices**](docs/DeviceApi.md#getDevices) | **GET** /v1/projects/{projectOrProductUID}/devices |
|
|
160
158
|
*NotehubJs.DeviceApi* | [**getFleetDevices**](docs/DeviceApi.md#getFleetDevices) | **GET** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices |
|
|
161
|
-
*NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
|
|
162
|
-
*NotehubJs.DeviceApi* | [**
|
|
163
|
-
*NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
|
|
159
|
+
*NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes |
|
|
160
|
+
*NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes |
|
|
164
161
|
*NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
|
|
165
162
|
*NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
|
|
163
|
+
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariables**](docs/DeviceApi.md#setDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
|
|
164
|
+
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#setDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
166
165
|
*NotehubJs.DeviceApi* | [**signalDevice**](docs/DeviceApi.md#signalDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal |
|
|
167
166
|
*NotehubJs.DeviceApi* | [**updateDbNote**](docs/DeviceApi.md#updateDbNote) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
168
167
|
*NotehubJs.EventApi* | [**getEvents**](docs/EventApi.md#getEvents) | **GET** /v1/projects/{projectOrProductUID}/events |
|
|
@@ -179,8 +178,6 @@ Class | Method | HTTP request | Description
|
|
|
179
178
|
*NotehubJs.MonitorApi* | [**getMonitors**](docs/MonitorApi.md#getMonitors) | **GET** /v1/projects/{projectOrProductUID}/monitors |
|
|
180
179
|
*NotehubJs.MonitorApi* | [**updateMonitor**](docs/MonitorApi.md#updateMonitor) | **PUT** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
|
|
181
180
|
*NotehubJs.ProjectApi* | [**addDeviceToFleets**](docs/ProjectApi.md#addDeviceToFleets) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
|
|
182
|
-
*NotehubJs.ProjectApi* | [**addFleetEnvironmentVariables**](docs/ProjectApi.md#addFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
|
|
183
|
-
*NotehubJs.ProjectApi* | [**addProjectEnvironmentVariables**](docs/ProjectApi.md#addProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
|
|
184
181
|
*NotehubJs.ProjectApi* | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectOrProductUID}/clone |
|
|
185
182
|
*NotehubJs.ProjectApi* | [**createFleet**](docs/ProjectApi.md#createFleet) | **POST** /v1/projects/{projectOrProductUID}/fleets |
|
|
186
183
|
*NotehubJs.ProjectApi* | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectOrProductUID}/products |
|
|
@@ -212,7 +209,9 @@ Class | Method | HTTP request | Description
|
|
|
212
209
|
*NotehubJs.ProjectApi* | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectOrProductUID}/members |
|
|
213
210
|
*NotehubJs.ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
|
|
214
211
|
*NotehubJs.ProjectApi* | [**performDfuAction**](docs/ProjectApi.md#performDfuAction) | **POST** /v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action} |
|
|
212
|
+
*NotehubJs.ProjectApi* | [**setFleetEnvironmentVariables**](docs/ProjectApi.md#setFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
|
|
215
213
|
*NotehubJs.ProjectApi* | [**setGlobalEventTransformation**](docs/ProjectApi.md#setGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
|
|
214
|
+
*NotehubJs.ProjectApi* | [**setProjectEnvironmentVariables**](docs/ProjectApi.md#setProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
|
|
216
215
|
*NotehubJs.ProjectApi* | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
|
|
217
216
|
*NotehubJs.ProjectApi* | [**uploadFirmware**](docs/ProjectApi.md#uploadFirmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
218
217
|
*NotehubJs.RouteApi* | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectOrProductUID}/routes |
|
|
@@ -309,6 +308,7 @@ Class | Method | HTTP request | Description
|
|
|
309
308
|
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
310
309
|
- [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
|
|
311
310
|
- [NotehubJs.HttpRoute](docs/HttpRoute.md)
|
|
311
|
+
- [NotehubJs.ListNotefiles200Response](docs/ListNotefiles200Response.md)
|
|
312
312
|
- [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
|
|
313
313
|
- [NotehubJs.Location](docs/Location.md)
|
|
314
314
|
- [NotehubJs.Login200Response](docs/Login200Response.md)
|
|
@@ -317,9 +317,7 @@ Class | Method | HTTP request | Description
|
|
|
317
317
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
318
318
|
- [NotehubJs.MqttRoute](docs/MqttRoute.md)
|
|
319
319
|
- [NotehubJs.Note](docs/Note.md)
|
|
320
|
-
- [NotehubJs.Notefile](docs/Notefile.md)
|
|
321
320
|
- [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
|
|
322
|
-
- [NotehubJs.NotefileTemplate](docs/NotefileTemplate.md)
|
|
323
321
|
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
324
322
|
- [NotehubJs.NotehubRouteSummary](docs/NotehubRouteSummary.md)
|
|
325
323
|
- [NotehubJs.OAuth2Error](docs/OAuth2Error.md)
|
|
@@ -348,6 +346,7 @@ Class | Method | HTTP request | Description
|
|
|
348
346
|
- [NotehubJs.SlackRoute](docs/SlackRoute.md)
|
|
349
347
|
- [NotehubJs.SlackWebHookNotification](docs/SlackWebHookNotification.md)
|
|
350
348
|
- [NotehubJs.SnowflakeRoute](docs/SnowflakeRoute.md)
|
|
349
|
+
- [NotehubJs.SnowpipeStreamingRoute](docs/SnowpipeStreamingRoute.md)
|
|
351
350
|
- [NotehubJs.ThingworxRoute](docs/ThingworxRoute.md)
|
|
352
351
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
353
352
|
- [NotehubJs.TwilioRoute](docs/TwilioRoute.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
|
|
29
|
+
* @version 3.0.0-beta.1
|
|
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/
|
|
76
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/3.0.0-beta.1/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
|
|
31
|
+
* @version 3.0.0-beta.1
|
|
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
|
|
33
|
+
* @version 3.0.0-beta.1
|
|
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
|
|
31
|
+
* @version 3.0.0-beta.1
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -21,10 +21,9 @@ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/G
|
|
|
21
21
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
|
|
22
22
|
var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
|
|
23
23
|
var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
|
|
24
|
+
var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
|
|
24
25
|
var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
|
|
25
26
|
var _Note = _interopRequireDefault(require("../model/Note"));
|
|
26
|
-
var _Notefile = _interopRequireDefault(require("../model/Notefile"));
|
|
27
|
-
var _NotefileTemplate = _interopRequireDefault(require("../model/NotefileTemplate"));
|
|
28
27
|
var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
|
|
29
28
|
var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
|
|
30
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -48,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
47
|
/**
|
|
49
48
|
* Device service.
|
|
50
49
|
* @module api/DeviceApi
|
|
51
|
-
* @version
|
|
50
|
+
* @version 3.0.0-beta.1
|
|
52
51
|
*/
|
|
53
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
53
|
/**
|
|
@@ -64,7 +63,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
/**
|
|
67
|
-
* Add a Note to a .db notefile
|
|
66
|
+
* Add a Note to a .db notefile
|
|
68
67
|
* @param {String} projectOrProductUID
|
|
69
68
|
* @param {String} deviceUID
|
|
70
69
|
* @param {String} notefileID
|
|
@@ -113,7 +112,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
/**
|
|
116
|
-
* Add a Note to a .db notefile
|
|
115
|
+
* Add a Note to a .db notefile
|
|
117
116
|
* @param {String} projectOrProductUID
|
|
118
117
|
* @param {String} deviceUID
|
|
119
118
|
* @param {String} notefileID
|
|
@@ -129,110 +128,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
/**
|
|
133
|
-
* Add environment variables of a device
|
|
134
|
-
* @param {String} projectOrProductUID
|
|
135
|
-
* @param {String} deviceUID
|
|
136
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
137
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
138
|
-
*/
|
|
139
|
-
}, {
|
|
140
|
-
key: "addDeviceEnvironmentVariablesWithHttpInfo",
|
|
141
|
-
value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
|
|
142
|
-
var postBody = environmentVariables;
|
|
143
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
144
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
145
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
|
|
146
|
-
}
|
|
147
|
-
// verify the required parameter 'deviceUID' is set
|
|
148
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
149
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
|
|
150
|
-
}
|
|
151
|
-
// verify the required parameter 'environmentVariables' is set
|
|
152
|
-
if (environmentVariables === undefined || environmentVariables === null) {
|
|
153
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
|
|
154
|
-
}
|
|
155
|
-
var pathParams = {
|
|
156
|
-
'projectOrProductUID': projectOrProductUID,
|
|
157
|
-
'deviceUID': deviceUID
|
|
158
|
-
};
|
|
159
|
-
var queryParams = {};
|
|
160
|
-
var headerParams = {};
|
|
161
|
-
var formParams = {};
|
|
162
|
-
var authNames = ['personalAccessToken'];
|
|
163
|
-
var contentTypes = ['application/json'];
|
|
164
|
-
var accepts = ['application/json'];
|
|
165
|
-
var returnType = _EnvironmentVariables["default"];
|
|
166
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Add environment variables of a device
|
|
171
|
-
* @param {String} projectOrProductUID
|
|
172
|
-
* @param {String} deviceUID
|
|
173
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
174
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
175
|
-
*/
|
|
176
|
-
}, {
|
|
177
|
-
key: "addDeviceEnvironmentVariables",
|
|
178
|
-
value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
|
|
179
|
-
return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
180
|
-
return response_and_data.data;
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Add environment variables of a device with device pin authorization
|
|
186
|
-
* @param {String} productUID
|
|
187
|
-
* @param {String} deviceUID
|
|
188
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
189
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
190
|
-
*/
|
|
191
|
-
}, {
|
|
192
|
-
key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
193
|
-
value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
194
|
-
var postBody = environmentVariables;
|
|
195
|
-
// verify the required parameter 'productUID' is set
|
|
196
|
-
if (productUID === undefined || productUID === null) {
|
|
197
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
|
|
198
|
-
}
|
|
199
|
-
// verify the required parameter 'deviceUID' is set
|
|
200
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
201
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
|
|
202
|
-
}
|
|
203
|
-
// verify the required parameter 'environmentVariables' is set
|
|
204
|
-
if (environmentVariables === undefined || environmentVariables === null) {
|
|
205
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
|
|
206
|
-
}
|
|
207
|
-
var pathParams = {
|
|
208
|
-
'productUID': productUID,
|
|
209
|
-
'deviceUID': deviceUID
|
|
210
|
-
};
|
|
211
|
-
var queryParams = {};
|
|
212
|
-
var headerParams = {};
|
|
213
|
-
var formParams = {};
|
|
214
|
-
var authNames = ['pin'];
|
|
215
|
-
var contentTypes = ['application/json'];
|
|
216
|
-
var accepts = ['application/json'];
|
|
217
|
-
var returnType = _EnvironmentVariables["default"];
|
|
218
|
-
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Add environment variables of a device with device pin authorization
|
|
223
|
-
* @param {String} productUID
|
|
224
|
-
* @param {String} deviceUID
|
|
225
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
226
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
227
|
-
*/
|
|
228
|
-
}, {
|
|
229
|
-
key: "addDeviceEnvironmentVariablesByPin",
|
|
230
|
-
value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
231
|
-
return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
232
|
-
return response_and_data.data;
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
131
|
/**
|
|
237
132
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
238
133
|
* @param {String} projectOrProductUID
|
|
@@ -293,7 +188,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
188
|
}
|
|
294
189
|
|
|
295
190
|
/**
|
|
296
|
-
* Delete a note from a .db
|
|
191
|
+
* Delete a note from a .db notefile
|
|
297
192
|
* @param {String} projectOrProductUID
|
|
298
193
|
* @param {String} deviceUID
|
|
299
194
|
* @param {String} notefileID
|
|
@@ -337,7 +232,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
232
|
}
|
|
338
233
|
|
|
339
234
|
/**
|
|
340
|
-
* Delete a note from a .db
|
|
235
|
+
* Delete a note from a .db notefile
|
|
341
236
|
* @param {String} projectOrProductUID
|
|
342
237
|
* @param {String} deviceUID
|
|
343
238
|
* @param {String} notefileID
|
|
@@ -696,7 +591,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
696
591
|
}
|
|
697
592
|
|
|
698
593
|
/**
|
|
699
|
-
* Get a note from a .db
|
|
594
|
+
* Get a note from a .db notefile
|
|
700
595
|
* @param {String} projectOrProductUID
|
|
701
596
|
* @param {String} deviceUID
|
|
702
597
|
* @param {String} notefileID
|
|
@@ -747,7 +642,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
747
642
|
}
|
|
748
643
|
|
|
749
644
|
/**
|
|
750
|
-
* Get a note from a .db
|
|
645
|
+
* Get a note from a .db notefile
|
|
751
646
|
* @param {String} projectOrProductUID
|
|
752
647
|
* @param {String} deviceUID
|
|
753
648
|
* @param {String} notefileID
|
|
@@ -1419,7 +1314,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1419
1314
|
* @param {String} deviceUID
|
|
1420
1315
|
* @param {String} notefileID
|
|
1421
1316
|
* @param {Object} opts Optional parameters
|
|
1317
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1422
1318
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1319
|
+
* @param {Boolean} opts.start true to reset the tracker to the beginning.
|
|
1320
|
+
* @param {Boolean} opts.stop true to delete the tracker.
|
|
1423
1321
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1424
1322
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1425
1323
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
@@ -1447,7 +1345,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1447
1345
|
'notefileID': notefileID
|
|
1448
1346
|
};
|
|
1449
1347
|
var queryParams = {
|
|
1348
|
+
'tracker': opts['tracker'],
|
|
1450
1349
|
'max': opts['max'],
|
|
1350
|
+
'start': opts['start'],
|
|
1351
|
+
'stop': opts['stop'],
|
|
1451
1352
|
'deleted': opts['deleted'],
|
|
1452
1353
|
'delete': opts['_delete']
|
|
1453
1354
|
};
|
|
@@ -1457,7 +1358,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1457
1358
|
var contentTypes = [];
|
|
1458
1359
|
var accepts = ['application/json'];
|
|
1459
1360
|
var returnType = _GetNotefile200Response["default"];
|
|
1460
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1361
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1461
1362
|
}
|
|
1462
1363
|
|
|
1463
1364
|
/**
|
|
@@ -1466,7 +1367,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1466
1367
|
* @param {String} deviceUID
|
|
1467
1368
|
* @param {String} notefileID
|
|
1468
1369
|
* @param {Object} opts Optional parameters
|
|
1370
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1469
1371
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1372
|
+
* @param {Boolean} opts.start true to reset the tracker to the beginning.
|
|
1373
|
+
* @param {Boolean} opts.stop true to delete the tracker.
|
|
1470
1374
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1471
1375
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1472
1376
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
@@ -1479,59 +1383,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1479
1383
|
});
|
|
1480
1384
|
}
|
|
1481
1385
|
|
|
1482
|
-
/**
|
|
1483
|
-
* Get Notefile Templates
|
|
1484
|
-
* @param {String} projectOrProductUID
|
|
1485
|
-
* @param {String} deviceUID
|
|
1486
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileTemplate>} and HTTP response
|
|
1487
|
-
*/
|
|
1488
|
-
}, {
|
|
1489
|
-
key: "getNotefileTemplatesWithHttpInfo",
|
|
1490
|
-
value: function getNotefileTemplatesWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1491
|
-
var postBody = null;
|
|
1492
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1493
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1494
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileTemplates");
|
|
1495
|
-
}
|
|
1496
|
-
// verify the required parameter 'deviceUID' is set
|
|
1497
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
1498
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getNotefileTemplates");
|
|
1499
|
-
}
|
|
1500
|
-
var pathParams = {
|
|
1501
|
-
'projectOrProductUID': projectOrProductUID,
|
|
1502
|
-
'deviceUID': deviceUID
|
|
1503
|
-
};
|
|
1504
|
-
var queryParams = {};
|
|
1505
|
-
var headerParams = {};
|
|
1506
|
-
var formParams = {};
|
|
1507
|
-
var authNames = ['personalAccessToken'];
|
|
1508
|
-
var contentTypes = [];
|
|
1509
|
-
var accepts = ['application/json'];
|
|
1510
|
-
var returnType = [_NotefileTemplate["default"]];
|
|
1511
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/templates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* Get Notefile Templates
|
|
1516
|
-
* @param {String} projectOrProductUID
|
|
1517
|
-
* @param {String} deviceUID
|
|
1518
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileTemplate>}
|
|
1519
|
-
*/
|
|
1520
|
-
}, {
|
|
1521
|
-
key: "getNotefileTemplates",
|
|
1522
|
-
value: function getNotefileTemplates(projectOrProductUID, deviceUID) {
|
|
1523
|
-
return this.getNotefileTemplatesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1524
|
-
return response_and_data.data;
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
1386
|
/**
|
|
1529
1387
|
* Lists .qi and .db files for the device
|
|
1530
1388
|
* @param {String} projectOrProductUID
|
|
1531
1389
|
* @param {String} deviceUID
|
|
1532
1390
|
* @param {Object} opts Optional parameters
|
|
1391
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1533
1392
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1534
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link
|
|
1393
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
|
|
1535
1394
|
*/
|
|
1536
1395
|
}, {
|
|
1537
1396
|
key: "listNotefilesWithHttpInfo",
|
|
@@ -1551,6 +1410,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1551
1410
|
'deviceUID': deviceUID
|
|
1552
1411
|
};
|
|
1553
1412
|
var queryParams = {
|
|
1413
|
+
'tracker': opts['tracker'],
|
|
1554
1414
|
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
|
|
1555
1415
|
};
|
|
1556
1416
|
var headerParams = {};
|
|
@@ -1558,8 +1418,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1558
1418
|
var authNames = ['personalAccessToken'];
|
|
1559
1419
|
var contentTypes = [];
|
|
1560
1420
|
var accepts = ['application/json'];
|
|
1561
|
-
var returnType = [
|
|
1562
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1421
|
+
var returnType = _ListNotefiles200Response["default"];
|
|
1422
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1563
1423
|
}
|
|
1564
1424
|
|
|
1565
1425
|
/**
|
|
@@ -1567,8 +1427,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1567
1427
|
* @param {String} projectOrProductUID
|
|
1568
1428
|
* @param {String} deviceUID
|
|
1569
1429
|
* @param {Object} opts Optional parameters
|
|
1430
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1570
1431
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1571
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link
|
|
1432
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
|
|
1572
1433
|
*/
|
|
1573
1434
|
}, {
|
|
1574
1435
|
key: "listNotefiles",
|
|
@@ -1676,6 +1537,110 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1676
1537
|
});
|
|
1677
1538
|
}
|
|
1678
1539
|
|
|
1540
|
+
/**
|
|
1541
|
+
* Set environment variables of a device
|
|
1542
|
+
* @param {String} projectOrProductUID
|
|
1543
|
+
* @param {String} deviceUID
|
|
1544
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1545
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1546
|
+
*/
|
|
1547
|
+
}, {
|
|
1548
|
+
key: "setDeviceEnvironmentVariablesWithHttpInfo",
|
|
1549
|
+
value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
|
|
1550
|
+
var postBody = environmentVariables;
|
|
1551
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1552
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1553
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
|
|
1554
|
+
}
|
|
1555
|
+
// verify the required parameter 'deviceUID' is set
|
|
1556
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1557
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
|
|
1558
|
+
}
|
|
1559
|
+
// verify the required parameter 'environmentVariables' is set
|
|
1560
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1561
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
|
|
1562
|
+
}
|
|
1563
|
+
var pathParams = {
|
|
1564
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1565
|
+
'deviceUID': deviceUID
|
|
1566
|
+
};
|
|
1567
|
+
var queryParams = {};
|
|
1568
|
+
var headerParams = {};
|
|
1569
|
+
var formParams = {};
|
|
1570
|
+
var authNames = ['personalAccessToken'];
|
|
1571
|
+
var contentTypes = ['application/json'];
|
|
1572
|
+
var accepts = ['application/json'];
|
|
1573
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1574
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Set environment variables of a device
|
|
1579
|
+
* @param {String} projectOrProductUID
|
|
1580
|
+
* @param {String} deviceUID
|
|
1581
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1582
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1583
|
+
*/
|
|
1584
|
+
}, {
|
|
1585
|
+
key: "setDeviceEnvironmentVariables",
|
|
1586
|
+
value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
|
|
1587
|
+
return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1588
|
+
return response_and_data.data;
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Set environment variables of a device with device pin authorization
|
|
1594
|
+
* @param {String} productUID
|
|
1595
|
+
* @param {String} deviceUID
|
|
1596
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1597
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1598
|
+
*/
|
|
1599
|
+
}, {
|
|
1600
|
+
key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
1601
|
+
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
1602
|
+
var postBody = environmentVariables;
|
|
1603
|
+
// verify the required parameter 'productUID' is set
|
|
1604
|
+
if (productUID === undefined || productUID === null) {
|
|
1605
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
|
|
1606
|
+
}
|
|
1607
|
+
// verify the required parameter 'deviceUID' is set
|
|
1608
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1609
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
|
|
1610
|
+
}
|
|
1611
|
+
// verify the required parameter 'environmentVariables' is set
|
|
1612
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1613
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
1614
|
+
}
|
|
1615
|
+
var pathParams = {
|
|
1616
|
+
'productUID': productUID,
|
|
1617
|
+
'deviceUID': deviceUID
|
|
1618
|
+
};
|
|
1619
|
+
var queryParams = {};
|
|
1620
|
+
var headerParams = {};
|
|
1621
|
+
var formParams = {};
|
|
1622
|
+
var authNames = ['pin'];
|
|
1623
|
+
var contentTypes = ['application/json'];
|
|
1624
|
+
var accepts = ['application/json'];
|
|
1625
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1626
|
+
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Set environment variables of a device with device pin authorization
|
|
1631
|
+
* @param {String} productUID
|
|
1632
|
+
* @param {String} deviceUID
|
|
1633
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1634
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1635
|
+
*/
|
|
1636
|
+
}, {
|
|
1637
|
+
key: "setDeviceEnvironmentVariablesByPin",
|
|
1638
|
+
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
1639
|
+
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1640
|
+
return response_and_data.data;
|
|
1641
|
+
});
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1679
1644
|
/**
|
|
1680
1645
|
* Send a signal from Notehub to a Notecard.
|
|
1681
1646
|
* @param {String} projectOrProductUID
|
|
@@ -1729,7 +1694,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1729
1694
|
}
|
|
1730
1695
|
|
|
1731
1696
|
/**
|
|
1732
|
-
* Update a note in a .db
|
|
1697
|
+
* Update a note in a .db notefile
|
|
1733
1698
|
* @param {String} projectOrProductUID
|
|
1734
1699
|
* @param {String} deviceUID
|
|
1735
1700
|
* @param {String} notefileID
|
|
@@ -1778,7 +1743,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1778
1743
|
}
|
|
1779
1744
|
|
|
1780
1745
|
/**
|
|
1781
|
-
* Update a note in a .db
|
|
1746
|
+
* Update a note in a .db notefile
|
|
1782
1747
|
* @param {String} projectOrProductUID
|
|
1783
1748
|
* @param {String} deviceUID
|
|
1784
1749
|
* @param {String} notefileID
|
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
|
|
33
|
+
* @version 3.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 3.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 3.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|