@blues-inc/notehub-js 3.0.0-beta.7 → 3.0.0-beta.8
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 +7 -6
- 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 +161 -105
- 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 +1 -14
- 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/{NoteInput.js → ListNotefiles200Response.js} +36 -29
- package/dist/model/ListPendingNotefiles200Response.js +115 -0
- 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 +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 +16 -5
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +15 -5
- 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 -159
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.8
|
|
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} |
|
|
138
139
|
*NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
|
|
139
140
|
*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,8 +156,9 @@ 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 |
|
|
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 |
|
|
161
|
+
*NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
|
|
161
162
|
*NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
|
|
162
163
|
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariables**](docs/DeviceApi.md#setDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
|
|
163
164
|
*NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#setDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
@@ -307,6 +308,8 @@ Class | Method | HTTP request | Description
|
|
|
307
308
|
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
308
309
|
- [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
|
|
309
310
|
- [NotehubJs.HttpRoute](docs/HttpRoute.md)
|
|
311
|
+
- [NotehubJs.ListNotefiles200Response](docs/ListNotefiles200Response.md)
|
|
312
|
+
- [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
|
|
310
313
|
- [NotehubJs.Location](docs/Location.md)
|
|
311
314
|
- [NotehubJs.Login200Response](docs/Login200Response.md)
|
|
312
315
|
- [NotehubJs.LoginRequest](docs/LoginRequest.md)
|
|
@@ -314,8 +317,6 @@ Class | Method | HTTP request | Description
|
|
|
314
317
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
315
318
|
- [NotehubJs.MqttRoute](docs/MqttRoute.md)
|
|
316
319
|
- [NotehubJs.Note](docs/Note.md)
|
|
317
|
-
- [NotehubJs.NoteInput](docs/NoteInput.md)
|
|
318
|
-
- [NotehubJs.Notefile](docs/Notefile.md)
|
|
319
320
|
- [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
|
|
320
321
|
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
321
322
|
- [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.8
|
|
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.8/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.8
|
|
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.8
|
|
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.8
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -21,8 +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
|
|
25
|
-
var
|
|
24
|
+
var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
|
|
25
|
+
var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
|
|
26
|
+
var _Note = _interopRequireDefault(require("../model/Note"));
|
|
26
27
|
var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
|
|
27
28
|
var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
|
|
28
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -46,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
47
|
/**
|
|
47
48
|
* Device service.
|
|
48
49
|
* @module api/DeviceApi
|
|
49
|
-
* @version 3.0.0-beta.
|
|
50
|
+
* @version 3.0.0-beta.8
|
|
50
51
|
*/
|
|
51
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
53
|
/**
|
|
@@ -62,18 +63,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
/**
|
|
65
|
-
* Add a Note to a .db notefile
|
|
66
|
+
* Add a Note to a .db notefile
|
|
66
67
|
* @param {String} projectOrProductUID
|
|
67
68
|
* @param {String} deviceUID
|
|
68
69
|
* @param {String} notefileID
|
|
69
70
|
* @param {String} noteID
|
|
70
|
-
* @param {module:model/
|
|
71
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
71
72
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
72
73
|
*/
|
|
73
74
|
return _createClass(DeviceApi, [{
|
|
74
75
|
key: "addDbNoteWithHttpInfo",
|
|
75
|
-
value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
76
|
-
var postBody =
|
|
76
|
+
value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
77
|
+
var postBody = note;
|
|
77
78
|
// verify the required parameter 'projectOrProductUID' is set
|
|
78
79
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
79
80
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
|
|
@@ -90,9 +91,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
91
|
if (noteID === undefined || noteID === null) {
|
|
91
92
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
|
|
92
93
|
}
|
|
93
|
-
// verify the required parameter '
|
|
94
|
-
if (
|
|
95
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
94
|
+
// verify the required parameter 'note' is set
|
|
95
|
+
if (note === undefined || note === null) {
|
|
96
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling addDbNote");
|
|
96
97
|
}
|
|
97
98
|
var pathParams = {
|
|
98
99
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -111,18 +112,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
|
-
* Add a Note to a .db notefile
|
|
115
|
+
* Add a Note to a .db notefile
|
|
115
116
|
* @param {String} projectOrProductUID
|
|
116
117
|
* @param {String} deviceUID
|
|
117
118
|
* @param {String} notefileID
|
|
118
119
|
* @param {String} noteID
|
|
119
|
-
* @param {module:model/
|
|
120
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
120
121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
121
122
|
*/
|
|
122
123
|
}, {
|
|
123
124
|
key: "addDbNote",
|
|
124
|
-
value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
125
|
-
return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
125
|
+
value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
126
|
+
return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
|
|
126
127
|
return response_and_data.data;
|
|
127
128
|
});
|
|
128
129
|
}
|
|
@@ -132,13 +133,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
132
133
|
* @param {String} projectOrProductUID
|
|
133
134
|
* @param {String} deviceUID
|
|
134
135
|
* @param {String} notefileID
|
|
135
|
-
* @param {module:model/
|
|
136
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
136
137
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
137
138
|
*/
|
|
138
139
|
}, {
|
|
139
140
|
key: "addQiNoteWithHttpInfo",
|
|
140
|
-
value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID,
|
|
141
|
-
var postBody =
|
|
141
|
+
value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
|
|
142
|
+
var postBody = note;
|
|
142
143
|
// verify the required parameter 'projectOrProductUID' is set
|
|
143
144
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
144
145
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
|
|
@@ -151,9 +152,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
151
152
|
if (notefileID === undefined || notefileID === null) {
|
|
152
153
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
|
|
153
154
|
}
|
|
154
|
-
// verify the required parameter '
|
|
155
|
-
if (
|
|
156
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
155
|
+
// verify the required parameter 'note' is set
|
|
156
|
+
if (note === undefined || note === null) {
|
|
157
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
|
|
157
158
|
}
|
|
158
159
|
var pathParams = {
|
|
159
160
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -175,13 +176,73 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
176
|
* @param {String} projectOrProductUID
|
|
176
177
|
* @param {String} deviceUID
|
|
177
178
|
* @param {String} notefileID
|
|
178
|
-
* @param {module:model/
|
|
179
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
179
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
180
181
|
*/
|
|
181
182
|
}, {
|
|
182
183
|
key: "addQiNote",
|
|
183
|
-
value: function addQiNote(projectOrProductUID, deviceUID, notefileID,
|
|
184
|
-
return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID,
|
|
184
|
+
value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
|
|
185
|
+
return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
|
|
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) {
|
|
185
246
|
return response_and_data.data;
|
|
186
247
|
});
|
|
187
248
|
}
|
|
@@ -293,66 +354,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
354
|
});
|
|
294
355
|
}
|
|
295
356
|
|
|
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
|
-
|
|
356
357
|
/**
|
|
357
358
|
* Deletes Notefiles and the Notes they contain.
|
|
358
359
|
* @param {String} projectOrProductUID
|
|
@@ -590,7 +591,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
590
591
|
}
|
|
591
592
|
|
|
592
593
|
/**
|
|
593
|
-
* Get a note from a .db
|
|
594
|
+
* Get a note from a .db notefile
|
|
594
595
|
* @param {String} projectOrProductUID
|
|
595
596
|
* @param {String} deviceUID
|
|
596
597
|
* @param {String} notefileID
|
|
@@ -641,7 +642,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
641
642
|
}
|
|
642
643
|
|
|
643
644
|
/**
|
|
644
|
-
* Get a note from a .db
|
|
645
|
+
* Get a note from a .db notefile
|
|
645
646
|
* @param {String} projectOrProductUID
|
|
646
647
|
* @param {String} deviceUID
|
|
647
648
|
* @param {String} notefileID
|
|
@@ -1313,7 +1314,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1313
1314
|
* @param {String} deviceUID
|
|
1314
1315
|
* @param {String} notefileID
|
|
1315
1316
|
* @param {Object} opts Optional parameters
|
|
1317
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1316
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.
|
|
1317
1321
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1318
1322
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1319
1323
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
@@ -1341,7 +1345,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1341
1345
|
'notefileID': notefileID
|
|
1342
1346
|
};
|
|
1343
1347
|
var queryParams = {
|
|
1348
|
+
'tracker': opts['tracker'],
|
|
1344
1349
|
'max': opts['max'],
|
|
1350
|
+
'start': opts['start'],
|
|
1351
|
+
'stop': opts['stop'],
|
|
1345
1352
|
'deleted': opts['deleted'],
|
|
1346
1353
|
'delete': opts['_delete']
|
|
1347
1354
|
};
|
|
@@ -1351,7 +1358,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1351
1358
|
var contentTypes = [];
|
|
1352
1359
|
var accepts = ['application/json'];
|
|
1353
1360
|
var returnType = _GetNotefile200Response["default"];
|
|
1354
|
-
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);
|
|
1355
1362
|
}
|
|
1356
1363
|
|
|
1357
1364
|
/**
|
|
@@ -1360,7 +1367,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1360
1367
|
* @param {String} deviceUID
|
|
1361
1368
|
* @param {String} notefileID
|
|
1362
1369
|
* @param {Object} opts Optional parameters
|
|
1370
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1363
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.
|
|
1364
1374
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1365
1375
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1366
1376
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
@@ -1378,9 +1388,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1388
|
* @param {String} projectOrProductUID
|
|
1379
1389
|
* @param {String} deviceUID
|
|
1380
1390
|
* @param {Object} opts Optional parameters
|
|
1391
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1381
1392
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1382
|
-
* @
|
|
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
|
|
1393
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
|
|
1384
1394
|
*/
|
|
1385
1395
|
}, {
|
|
1386
1396
|
key: "listNotefilesWithHttpInfo",
|
|
@@ -1400,16 +1410,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1400
1410
|
'deviceUID': deviceUID
|
|
1401
1411
|
};
|
|
1402
1412
|
var queryParams = {
|
|
1403
|
-
'
|
|
1404
|
-
'
|
|
1413
|
+
'tracker': opts['tracker'],
|
|
1414
|
+
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
|
|
1405
1415
|
};
|
|
1406
1416
|
var headerParams = {};
|
|
1407
1417
|
var formParams = {};
|
|
1408
1418
|
var authNames = ['personalAccessToken'];
|
|
1409
1419
|
var contentTypes = [];
|
|
1410
1420
|
var accepts = ['application/json'];
|
|
1411
|
-
var returnType = [
|
|
1412
|
-
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);
|
|
1413
1423
|
}
|
|
1414
1424
|
|
|
1415
1425
|
/**
|
|
@@ -1417,9 +1427,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1427
|
* @param {String} projectOrProductUID
|
|
1418
1428
|
* @param {String} deviceUID
|
|
1419
1429
|
* @param {Object} opts Optional parameters
|
|
1430
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1420
1431
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1421
|
-
* @
|
|
1422
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
|
|
1432
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
|
|
1423
1433
|
*/
|
|
1424
1434
|
}, {
|
|
1425
1435
|
key: "listNotefiles",
|
|
@@ -1429,6 +1439,52 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1429
1439
|
});
|
|
1430
1440
|
}
|
|
1431
1441
|
|
|
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
|
+
|
|
1432
1488
|
/**
|
|
1433
1489
|
* Provision Device for a Project
|
|
1434
1490
|
* @param {String} projectOrProductUID
|
|
@@ -1638,18 +1694,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1638
1694
|
}
|
|
1639
1695
|
|
|
1640
1696
|
/**
|
|
1641
|
-
* Update a note in a .db
|
|
1697
|
+
* Update a note in a .db notefile
|
|
1642
1698
|
* @param {String} projectOrProductUID
|
|
1643
1699
|
* @param {String} deviceUID
|
|
1644
1700
|
* @param {String} notefileID
|
|
1645
1701
|
* @param {String} noteID
|
|
1646
|
-
* @param {module:model/
|
|
1702
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1647
1703
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1648
1704
|
*/
|
|
1649
1705
|
}, {
|
|
1650
1706
|
key: "updateDbNoteWithHttpInfo",
|
|
1651
|
-
value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1652
|
-
var postBody =
|
|
1707
|
+
value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1708
|
+
var postBody = note;
|
|
1653
1709
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1654
1710
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1655
1711
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
|
|
@@ -1666,9 +1722,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1666
1722
|
if (noteID === undefined || noteID === null) {
|
|
1667
1723
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
|
|
1668
1724
|
}
|
|
1669
|
-
// verify the required parameter '
|
|
1670
|
-
if (
|
|
1671
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1725
|
+
// verify the required parameter 'note' is set
|
|
1726
|
+
if (note === undefined || note === null) {
|
|
1727
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
|
|
1672
1728
|
}
|
|
1673
1729
|
var pathParams = {
|
|
1674
1730
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1687,18 +1743,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1687
1743
|
}
|
|
1688
1744
|
|
|
1689
1745
|
/**
|
|
1690
|
-
* Update a note in a .db
|
|
1746
|
+
* Update a note in a .db notefile
|
|
1691
1747
|
* @param {String} projectOrProductUID
|
|
1692
1748
|
* @param {String} deviceUID
|
|
1693
1749
|
* @param {String} notefileID
|
|
1694
1750
|
* @param {String} noteID
|
|
1695
|
-
* @param {module:model/
|
|
1751
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1696
1752
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1697
1753
|
*/
|
|
1698
1754
|
}, {
|
|
1699
1755
|
key: "updateDbNote",
|
|
1700
|
-
value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1701
|
-
return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID,
|
|
1756
|
+
value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1757
|
+
return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
|
|
1702
1758
|
return response_and_data.data;
|
|
1703
1759
|
});
|
|
1704
1760
|
}
|
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.8
|
|
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.8
|
|
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.8
|
|
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.8
|
|
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.8
|
|
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.8
|
|
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.8
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|