@blues-inc/notehub-js 3.0.0-beta.4 → 3.0.0-beta.5
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 +6 -7
- 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 +105 -161
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- 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 +1 -1
- 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/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 +90 -10
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +29 -36
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -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 +1 -1
- 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 +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/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/ListPendingNotefiles200Response.js +0 -115
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: 3.0.0-beta.
|
|
9
|
+
- Package version: 3.0.0-beta.5
|
|
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
|
|
|
@@ -135,9 +135,9 @@ Class | Method | HTTP request | Description
|
|
|
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
137
|
*NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
|
|
138
|
-
*NotehubJs.DeviceApi* | [**deleteDbNote**](docs/DeviceApi.md#deleteDbNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
139
138
|
*NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
|
|
140
139
|
*NotehubJs.DeviceApi* | [**deleteDeviceEnvironmentVariable**](docs/DeviceApi.md#deleteDeviceEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} |
|
|
140
|
+
*NotehubJs.DeviceApi* | [**deleteNote**](docs/DeviceApi.md#deleteNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
141
141
|
*NotehubJs.DeviceApi* | [**deleteNotefiles**](docs/DeviceApi.md#deleteNotefiles) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
|
|
142
142
|
*NotehubJs.DeviceApi* | [**disableDevice**](docs/DeviceApi.md#disableDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable |
|
|
143
143
|
*NotehubJs.DeviceApi* | [**disableDeviceConnectivityAssurance**](docs/DeviceApi.md#disableDeviceConnectivityAssurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance |
|
|
@@ -156,9 +156,8 @@ Class | Method | HTTP request | Description
|
|
|
156
156
|
*NotehubJs.DeviceApi* | [**getDeviceSessions**](docs/DeviceApi.md#getDeviceSessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions |
|
|
157
157
|
*NotehubJs.DeviceApi* | [**getDevices**](docs/DeviceApi.md#getDevices) | **GET** /v1/projects/{projectOrProductUID}/devices |
|
|
158
158
|
*NotehubJs.DeviceApi* | [**getFleetDevices**](docs/DeviceApi.md#getFleetDevices) | **GET** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices |
|
|
159
|
-
*NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}
|
|
160
|
-
*NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files
|
|
161
|
-
*NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
|
|
159
|
+
*NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
|
|
160
|
+
*NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
|
|
162
161
|
*NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
|
|
163
162
|
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariables**](docs/DeviceApi.md#setDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
|
|
164
163
|
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#setDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
@@ -308,8 +307,6 @@ Class | Method | HTTP request | Description
|
|
|
308
307
|
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
309
308
|
- [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
|
|
310
309
|
- [NotehubJs.HttpRoute](docs/HttpRoute.md)
|
|
311
|
-
- [NotehubJs.ListNotefiles200Response](docs/ListNotefiles200Response.md)
|
|
312
|
-
- [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
|
|
313
310
|
- [NotehubJs.Location](docs/Location.md)
|
|
314
311
|
- [NotehubJs.Login200Response](docs/Login200Response.md)
|
|
315
312
|
- [NotehubJs.LoginRequest](docs/LoginRequest.md)
|
|
@@ -317,6 +314,8 @@ Class | Method | HTTP request | Description
|
|
|
317
314
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
318
315
|
- [NotehubJs.MqttRoute](docs/MqttRoute.md)
|
|
319
316
|
- [NotehubJs.Note](docs/Note.md)
|
|
317
|
+
- [NotehubJs.NoteInput](docs/NoteInput.md)
|
|
318
|
+
- [NotehubJs.Notefile](docs/Notefile.md)
|
|
320
319
|
- [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
|
|
321
320
|
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
322
321
|
- [NotehubJs.NotehubRouteSummary](docs/NotehubRouteSummary.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 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.5
|
|
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/3.0.0-beta.
|
|
76
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/3.0.0-beta.5/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 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.5
|
|
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 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.5
|
|
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 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.5
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -21,9 +21,8 @@ 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
|
|
25
|
-
var
|
|
26
|
-
var _Note = _interopRequireDefault(require("../model/Note"));
|
|
24
|
+
var _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
|
|
25
|
+
var _Notefile = _interopRequireDefault(require("../model/Notefile"));
|
|
27
26
|
var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
|
|
28
27
|
var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
|
|
29
28
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -47,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
47
46
|
/**
|
|
48
47
|
* Device service.
|
|
49
48
|
* @module api/DeviceApi
|
|
50
|
-
* @version 3.0.0-beta.
|
|
49
|
+
* @version 3.0.0-beta.5
|
|
51
50
|
*/
|
|
52
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
53
52
|
/**
|
|
@@ -63,18 +62,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
/**
|
|
66
|
-
* Add a Note to a .db notefile
|
|
65
|
+
* Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
|
|
67
66
|
* @param {String} projectOrProductUID
|
|
68
67
|
* @param {String} deviceUID
|
|
69
68
|
* @param {String} notefileID
|
|
70
69
|
* @param {String} noteID
|
|
71
|
-
* @param {module:model/
|
|
70
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
72
71
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
73
72
|
*/
|
|
74
73
|
return _createClass(DeviceApi, [{
|
|
75
74
|
key: "addDbNoteWithHttpInfo",
|
|
76
|
-
value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
77
|
-
var postBody =
|
|
75
|
+
value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
|
|
76
|
+
var postBody = noteInput;
|
|
78
77
|
// verify the required parameter 'projectOrProductUID' is set
|
|
79
78
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
80
79
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
|
|
@@ -91,9 +90,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
91
90
|
if (noteID === undefined || noteID === null) {
|
|
92
91
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
|
|
93
92
|
}
|
|
94
|
-
// verify the required parameter '
|
|
95
|
-
if (
|
|
96
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
93
|
+
// verify the required parameter 'noteInput' is set
|
|
94
|
+
if (noteInput === undefined || noteInput === null) {
|
|
95
|
+
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
|
|
97
96
|
}
|
|
98
97
|
var pathParams = {
|
|
99
98
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -112,18 +111,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
/**
|
|
115
|
-
* Add a Note to a .db notefile
|
|
114
|
+
* Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
|
|
116
115
|
* @param {String} projectOrProductUID
|
|
117
116
|
* @param {String} deviceUID
|
|
118
117
|
* @param {String} notefileID
|
|
119
118
|
* @param {String} noteID
|
|
120
|
-
* @param {module:model/
|
|
119
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
121
120
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
122
121
|
*/
|
|
123
122
|
}, {
|
|
124
123
|
key: "addDbNote",
|
|
125
|
-
value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
126
|
-
return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
124
|
+
value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
|
|
125
|
+
return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
|
|
127
126
|
return response_and_data.data;
|
|
128
127
|
});
|
|
129
128
|
}
|
|
@@ -133,13 +132,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
132
|
* @param {String} projectOrProductUID
|
|
134
133
|
* @param {String} deviceUID
|
|
135
134
|
* @param {String} notefileID
|
|
136
|
-
* @param {module:model/
|
|
135
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
137
136
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
138
137
|
*/
|
|
139
138
|
}, {
|
|
140
139
|
key: "addQiNoteWithHttpInfo",
|
|
141
|
-
value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID,
|
|
142
|
-
var postBody =
|
|
140
|
+
value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
|
|
141
|
+
var postBody = noteInput;
|
|
143
142
|
// verify the required parameter 'projectOrProductUID' is set
|
|
144
143
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
145
144
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
|
|
@@ -152,9 +151,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
152
151
|
if (notefileID === undefined || notefileID === null) {
|
|
153
152
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
|
|
154
153
|
}
|
|
155
|
-
// verify the required parameter '
|
|
156
|
-
if (
|
|
157
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
154
|
+
// verify the required parameter 'noteInput' is set
|
|
155
|
+
if (noteInput === undefined || noteInput === null) {
|
|
156
|
+
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
|
|
158
157
|
}
|
|
159
158
|
var pathParams = {
|
|
160
159
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -176,73 +175,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
176
175
|
* @param {String} projectOrProductUID
|
|
177
176
|
* @param {String} deviceUID
|
|
178
177
|
* @param {String} notefileID
|
|
179
|
-
* @param {module:model/
|
|
178
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
180
179
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
181
180
|
*/
|
|
182
181
|
}, {
|
|
183
182
|
key: "addQiNote",
|
|
184
|
-
value: function addQiNote(projectOrProductUID, deviceUID, notefileID,
|
|
185
|
-
return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID,
|
|
186
|
-
return response_and_data.data;
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Delete a note from a .db notefile
|
|
192
|
-
* @param {String} projectOrProductUID
|
|
193
|
-
* @param {String} deviceUID
|
|
194
|
-
* @param {String} notefileID
|
|
195
|
-
* @param {String} noteID
|
|
196
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
197
|
-
*/
|
|
198
|
-
}, {
|
|
199
|
-
key: "deleteDbNoteWithHttpInfo",
|
|
200
|
-
value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
201
|
-
var postBody = null;
|
|
202
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
203
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
204
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
|
|
205
|
-
}
|
|
206
|
-
// verify the required parameter 'deviceUID' is set
|
|
207
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
208
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
|
|
209
|
-
}
|
|
210
|
-
// verify the required parameter 'notefileID' is set
|
|
211
|
-
if (notefileID === undefined || notefileID === null) {
|
|
212
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
|
|
213
|
-
}
|
|
214
|
-
// verify the required parameter 'noteID' is set
|
|
215
|
-
if (noteID === undefined || noteID === null) {
|
|
216
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
|
|
217
|
-
}
|
|
218
|
-
var pathParams = {
|
|
219
|
-
'projectOrProductUID': projectOrProductUID,
|
|
220
|
-
'deviceUID': deviceUID,
|
|
221
|
-
'notefileID': notefileID,
|
|
222
|
-
'noteID': noteID
|
|
223
|
-
};
|
|
224
|
-
var queryParams = {};
|
|
225
|
-
var headerParams = {};
|
|
226
|
-
var formParams = {};
|
|
227
|
-
var authNames = ['personalAccessToken'];
|
|
228
|
-
var contentTypes = [];
|
|
229
|
-
var accepts = ['application/json'];
|
|
230
|
-
var returnType = null;
|
|
231
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Delete a note from a .db notefile
|
|
236
|
-
* @param {String} projectOrProductUID
|
|
237
|
-
* @param {String} deviceUID
|
|
238
|
-
* @param {String} notefileID
|
|
239
|
-
* @param {String} noteID
|
|
240
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
241
|
-
*/
|
|
242
|
-
}, {
|
|
243
|
-
key: "deleteDbNote",
|
|
244
|
-
value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
245
|
-
return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
|
|
183
|
+
value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
|
|
184
|
+
return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
|
|
246
185
|
return response_and_data.data;
|
|
247
186
|
});
|
|
248
187
|
}
|
|
@@ -354,6 +293,66 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
293
|
});
|
|
355
294
|
}
|
|
356
295
|
|
|
296
|
+
/**
|
|
297
|
+
* Delete a note from a .db or .qi notefile
|
|
298
|
+
* @param {String} projectOrProductUID
|
|
299
|
+
* @param {String} deviceUID
|
|
300
|
+
* @param {String} notefileID
|
|
301
|
+
* @param {String} noteID
|
|
302
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
303
|
+
*/
|
|
304
|
+
}, {
|
|
305
|
+
key: "deleteNoteWithHttpInfo",
|
|
306
|
+
value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
307
|
+
var postBody = null;
|
|
308
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
309
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
310
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
|
|
311
|
+
}
|
|
312
|
+
// verify the required parameter 'deviceUID' is set
|
|
313
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
314
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
|
|
315
|
+
}
|
|
316
|
+
// verify the required parameter 'notefileID' is set
|
|
317
|
+
if (notefileID === undefined || notefileID === null) {
|
|
318
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
|
|
319
|
+
}
|
|
320
|
+
// verify the required parameter 'noteID' is set
|
|
321
|
+
if (noteID === undefined || noteID === null) {
|
|
322
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
323
|
+
}
|
|
324
|
+
var pathParams = {
|
|
325
|
+
'projectOrProductUID': projectOrProductUID,
|
|
326
|
+
'deviceUID': deviceUID,
|
|
327
|
+
'notefileID': notefileID,
|
|
328
|
+
'noteID': noteID
|
|
329
|
+
};
|
|
330
|
+
var queryParams = {};
|
|
331
|
+
var headerParams = {};
|
|
332
|
+
var formParams = {};
|
|
333
|
+
var authNames = ['personalAccessToken'];
|
|
334
|
+
var contentTypes = [];
|
|
335
|
+
var accepts = ['application/json'];
|
|
336
|
+
var returnType = null;
|
|
337
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Delete a note from a .db or .qi notefile
|
|
342
|
+
* @param {String} projectOrProductUID
|
|
343
|
+
* @param {String} deviceUID
|
|
344
|
+
* @param {String} notefileID
|
|
345
|
+
* @param {String} noteID
|
|
346
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
347
|
+
*/
|
|
348
|
+
}, {
|
|
349
|
+
key: "deleteNote",
|
|
350
|
+
value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
351
|
+
return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
|
|
352
|
+
return response_and_data.data;
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
357
356
|
/**
|
|
358
357
|
* Deletes Notefiles and the Notes they contain.
|
|
359
358
|
* @param {String} projectOrProductUID
|
|
@@ -591,7 +590,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
590
|
}
|
|
592
591
|
|
|
593
592
|
/**
|
|
594
|
-
* Get a note from a .db notefile
|
|
593
|
+
* Get a note from a .db or .qi notefile
|
|
595
594
|
* @param {String} projectOrProductUID
|
|
596
595
|
* @param {String} deviceUID
|
|
597
596
|
* @param {String} notefileID
|
|
@@ -642,7 +641,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
642
641
|
}
|
|
643
642
|
|
|
644
643
|
/**
|
|
645
|
-
* Get a note from a .db notefile
|
|
644
|
+
* Get a note from a .db or .qi notefile
|
|
646
645
|
* @param {String} projectOrProductUID
|
|
647
646
|
* @param {String} deviceUID
|
|
648
647
|
* @param {String} notefileID
|
|
@@ -1314,10 +1313,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1314
1313
|
* @param {String} deviceUID
|
|
1315
1314
|
* @param {String} notefileID
|
|
1316
1315
|
* @param {Object} opts Optional parameters
|
|
1317
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1318
1316
|
* @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.
|
|
1321
1317
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1322
1318
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1323
1319
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
@@ -1345,10 +1341,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1345
1341
|
'notefileID': notefileID
|
|
1346
1342
|
};
|
|
1347
1343
|
var queryParams = {
|
|
1348
|
-
'tracker': opts['tracker'],
|
|
1349
1344
|
'max': opts['max'],
|
|
1350
|
-
'start': opts['start'],
|
|
1351
|
-
'stop': opts['stop'],
|
|
1352
1345
|
'deleted': opts['deleted'],
|
|
1353
1346
|
'delete': opts['_delete']
|
|
1354
1347
|
};
|
|
@@ -1358,7 +1351,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1358
1351
|
var contentTypes = [];
|
|
1359
1352
|
var accepts = ['application/json'];
|
|
1360
1353
|
var returnType = _GetNotefile200Response["default"];
|
|
1361
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}
|
|
1354
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1362
1355
|
}
|
|
1363
1356
|
|
|
1364
1357
|
/**
|
|
@@ -1367,10 +1360,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1367
1360
|
* @param {String} deviceUID
|
|
1368
1361
|
* @param {String} notefileID
|
|
1369
1362
|
* @param {Object} opts Optional parameters
|
|
1370
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1371
1363
|
* @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.
|
|
1374
1364
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1375
1365
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1376
1366
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
@@ -1388,9 +1378,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1388
1378
|
* @param {String} projectOrProductUID
|
|
1389
1379
|
* @param {String} deviceUID
|
|
1390
1380
|
* @param {Object} opts Optional parameters
|
|
1391
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1392
1381
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1393
|
-
* @
|
|
1382
|
+
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1383
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
|
|
1394
1384
|
*/
|
|
1395
1385
|
}, {
|
|
1396
1386
|
key: "listNotefilesWithHttpInfo",
|
|
@@ -1410,16 +1400,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1410
1400
|
'deviceUID': deviceUID
|
|
1411
1401
|
};
|
|
1412
1402
|
var queryParams = {
|
|
1413
|
-
'
|
|
1414
|
-
'
|
|
1403
|
+
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
|
|
1404
|
+
'pending': opts['pending']
|
|
1415
1405
|
};
|
|
1416
1406
|
var headerParams = {};
|
|
1417
1407
|
var formParams = {};
|
|
1418
1408
|
var authNames = ['personalAccessToken'];
|
|
1419
1409
|
var contentTypes = [];
|
|
1420
1410
|
var accepts = ['application/json'];
|
|
1421
|
-
var returnType =
|
|
1422
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files
|
|
1411
|
+
var returnType = [_Notefile["default"]];
|
|
1412
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1423
1413
|
}
|
|
1424
1414
|
|
|
1425
1415
|
/**
|
|
@@ -1427,9 +1417,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1427
1417
|
* @param {String} projectOrProductUID
|
|
1428
1418
|
* @param {String} deviceUID
|
|
1429
1419
|
* @param {Object} opts Optional parameters
|
|
1430
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1431
1420
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1432
|
-
* @
|
|
1421
|
+
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1422
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
|
|
1433
1423
|
*/
|
|
1434
1424
|
}, {
|
|
1435
1425
|
key: "listNotefiles",
|
|
@@ -1439,52 +1429,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1439
1429
|
});
|
|
1440
1430
|
}
|
|
1441
1431
|
|
|
1442
|
-
/**
|
|
1443
|
-
* Lists .qi and .db files that are pending sync to the Notecard
|
|
1444
|
-
* @param {String} projectOrProductUID
|
|
1445
|
-
* @param {String} deviceUID
|
|
1446
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
|
|
1447
|
-
*/
|
|
1448
|
-
}, {
|
|
1449
|
-
key: "listPendingNotefilesWithHttpInfo",
|
|
1450
|
-
value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1451
|
-
var postBody = null;
|
|
1452
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1453
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1454
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
|
|
1455
|
-
}
|
|
1456
|
-
// verify the required parameter 'deviceUID' is set
|
|
1457
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
1458
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
|
|
1459
|
-
}
|
|
1460
|
-
var pathParams = {
|
|
1461
|
-
'projectOrProductUID': projectOrProductUID,
|
|
1462
|
-
'deviceUID': deviceUID
|
|
1463
|
-
};
|
|
1464
|
-
var queryParams = {};
|
|
1465
|
-
var headerParams = {};
|
|
1466
|
-
var formParams = {};
|
|
1467
|
-
var authNames = ['personalAccessToken'];
|
|
1468
|
-
var contentTypes = [];
|
|
1469
|
-
var accepts = ['application/json'];
|
|
1470
|
-
var returnType = _ListPendingNotefiles200Response["default"];
|
|
1471
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* Lists .qi and .db files that are pending sync to the Notecard
|
|
1476
|
-
* @param {String} projectOrProductUID
|
|
1477
|
-
* @param {String} deviceUID
|
|
1478
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
|
|
1479
|
-
*/
|
|
1480
|
-
}, {
|
|
1481
|
-
key: "listPendingNotefiles",
|
|
1482
|
-
value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
|
|
1483
|
-
return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1484
|
-
return response_and_data.data;
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
1432
|
/**
|
|
1489
1433
|
* Provision Device for a Project
|
|
1490
1434
|
* @param {String} projectOrProductUID
|
|
@@ -1694,18 +1638,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1694
1638
|
}
|
|
1695
1639
|
|
|
1696
1640
|
/**
|
|
1697
|
-
* Update a note in a .db notefile
|
|
1641
|
+
* Update a note in a .db or .qi notefile
|
|
1698
1642
|
* @param {String} projectOrProductUID
|
|
1699
1643
|
* @param {String} deviceUID
|
|
1700
1644
|
* @param {String} notefileID
|
|
1701
1645
|
* @param {String} noteID
|
|
1702
|
-
* @param {module:model/
|
|
1646
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1703
1647
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1704
1648
|
*/
|
|
1705
1649
|
}, {
|
|
1706
1650
|
key: "updateDbNoteWithHttpInfo",
|
|
1707
|
-
value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1708
|
-
var postBody =
|
|
1651
|
+
value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
|
|
1652
|
+
var postBody = noteInput;
|
|
1709
1653
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1710
1654
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1711
1655
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
|
|
@@ -1722,9 +1666,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1722
1666
|
if (noteID === undefined || noteID === null) {
|
|
1723
1667
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
|
|
1724
1668
|
}
|
|
1725
|
-
// verify the required parameter '
|
|
1726
|
-
if (
|
|
1727
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1669
|
+
// verify the required parameter 'noteInput' is set
|
|
1670
|
+
if (noteInput === undefined || noteInput === null) {
|
|
1671
|
+
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
|
|
1728
1672
|
}
|
|
1729
1673
|
var pathParams = {
|
|
1730
1674
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1743,18 +1687,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1743
1687
|
}
|
|
1744
1688
|
|
|
1745
1689
|
/**
|
|
1746
|
-
* Update a note in a .db notefile
|
|
1690
|
+
* Update a note in a .db or .qi notefile
|
|
1747
1691
|
* @param {String} projectOrProductUID
|
|
1748
1692
|
* @param {String} deviceUID
|
|
1749
1693
|
* @param {String} notefileID
|
|
1750
1694
|
* @param {String} noteID
|
|
1751
|
-
* @param {module:model/
|
|
1695
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1752
1696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1753
1697
|
*/
|
|
1754
1698
|
}, {
|
|
1755
1699
|
key: "updateDbNote",
|
|
1756
|
-
value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1757
|
-
return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1700
|
+
value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
|
|
1701
|
+
return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
|
|
1758
1702
|
return response_and_data.data;
|
|
1759
1703
|
});
|
|
1760
1704
|
}
|
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 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.5
|
|
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 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.5
|
|
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 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
50
|
/**
|
|
51
51
|
* Project service.
|
|
52
52
|
* @module api/ProjectApi
|
|
53
|
-
* @version 3.0.0-beta.
|
|
53
|
+
* @version 3.0.0-beta.5
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
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 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Usage service.
|
|
32
32
|
* @module api/UsageApi
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
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 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|