@blues-inc/notehub-js 2.3.0-beta.22 → 2.3.0-beta.23
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 +10 -11
- 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 +187 -243
- 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 +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 -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/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 2.3.0-beta.
|
|
49
|
+
* @version 2.3.0-beta.23
|
|
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,54 +111,48 @@ 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
|
}
|
|
130
129
|
|
|
131
130
|
/**
|
|
132
|
-
*
|
|
131
|
+
* Add environment variables of a device
|
|
133
132
|
* @param {String} projectOrProductUID
|
|
134
133
|
* @param {String} deviceUID
|
|
135
|
-
* @param {
|
|
136
|
-
* @
|
|
137
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
134
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
135
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
138
136
|
*/
|
|
139
137
|
}, {
|
|
140
|
-
key: "
|
|
141
|
-
value: function
|
|
142
|
-
var postBody =
|
|
138
|
+
key: "addDeviceEnvironmentVariablesWithHttpInfo",
|
|
139
|
+
value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
|
|
140
|
+
var postBody = environmentVariables;
|
|
143
141
|
// verify the required parameter 'projectOrProductUID' is set
|
|
144
142
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
145
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
143
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
|
|
146
144
|
}
|
|
147
145
|
// verify the required parameter 'deviceUID' is set
|
|
148
146
|
if (deviceUID === undefined || deviceUID === null) {
|
|
149
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
150
|
-
}
|
|
151
|
-
// verify the required parameter 'notefileID' is set
|
|
152
|
-
if (notefileID === undefined || notefileID === null) {
|
|
153
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
|
|
147
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
|
|
154
148
|
}
|
|
155
|
-
// verify the required parameter '
|
|
156
|
-
if (
|
|
157
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
149
|
+
// verify the required parameter 'environmentVariables' is set
|
|
150
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
151
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
|
|
158
152
|
}
|
|
159
153
|
var pathParams = {
|
|
160
154
|
'projectOrProductUID': projectOrProductUID,
|
|
161
|
-
'deviceUID': deviceUID
|
|
162
|
-
'notefileID': notefileID
|
|
155
|
+
'deviceUID': deviceUID
|
|
163
156
|
};
|
|
164
157
|
var queryParams = {};
|
|
165
158
|
var headerParams = {};
|
|
@@ -167,82 +160,132 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
167
160
|
var authNames = ['personalAccessToken'];
|
|
168
161
|
var contentTypes = ['application/json'];
|
|
169
162
|
var accepts = ['application/json'];
|
|
170
|
-
var returnType =
|
|
171
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
163
|
+
var returnType = _EnvironmentVariables["default"];
|
|
164
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
172
165
|
}
|
|
173
166
|
|
|
174
167
|
/**
|
|
175
|
-
*
|
|
168
|
+
* Add environment variables of a device
|
|
176
169
|
* @param {String} projectOrProductUID
|
|
177
170
|
* @param {String} deviceUID
|
|
178
|
-
* @param {
|
|
179
|
-
* @
|
|
180
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
171
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
172
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
181
173
|
*/
|
|
182
174
|
}, {
|
|
183
|
-
key: "
|
|
184
|
-
value: function
|
|
185
|
-
return this.
|
|
175
|
+
key: "addDeviceEnvironmentVariables",
|
|
176
|
+
value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
|
|
177
|
+
return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
178
|
+
return response_and_data.data;
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Add environment variables of a device with device pin authorization
|
|
184
|
+
* @param {String} productUID
|
|
185
|
+
* @param {String} deviceUID
|
|
186
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
187
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
188
|
+
*/
|
|
189
|
+
}, {
|
|
190
|
+
key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
191
|
+
value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
192
|
+
var postBody = environmentVariables;
|
|
193
|
+
// verify the required parameter 'productUID' is set
|
|
194
|
+
if (productUID === undefined || productUID === null) {
|
|
195
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
|
|
196
|
+
}
|
|
197
|
+
// verify the required parameter 'deviceUID' is set
|
|
198
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
199
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
|
|
200
|
+
}
|
|
201
|
+
// verify the required parameter 'environmentVariables' is set
|
|
202
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
203
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
|
|
204
|
+
}
|
|
205
|
+
var pathParams = {
|
|
206
|
+
'productUID': productUID,
|
|
207
|
+
'deviceUID': deviceUID
|
|
208
|
+
};
|
|
209
|
+
var queryParams = {};
|
|
210
|
+
var headerParams = {};
|
|
211
|
+
var formParams = {};
|
|
212
|
+
var authNames = ['pin'];
|
|
213
|
+
var contentTypes = ['application/json'];
|
|
214
|
+
var accepts = ['application/json'];
|
|
215
|
+
var returnType = _EnvironmentVariables["default"];
|
|
216
|
+
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Add environment variables of a device with device pin authorization
|
|
221
|
+
* @param {String} productUID
|
|
222
|
+
* @param {String} deviceUID
|
|
223
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
224
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
225
|
+
*/
|
|
226
|
+
}, {
|
|
227
|
+
key: "addDeviceEnvironmentVariablesByPin",
|
|
228
|
+
value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
229
|
+
return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
186
230
|
return response_and_data.data;
|
|
187
231
|
});
|
|
188
232
|
}
|
|
189
233
|
|
|
190
234
|
/**
|
|
191
|
-
*
|
|
235
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
192
236
|
* @param {String} projectOrProductUID
|
|
193
237
|
* @param {String} deviceUID
|
|
194
238
|
* @param {String} notefileID
|
|
195
|
-
* @param {
|
|
239
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
196
240
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
197
241
|
*/
|
|
198
242
|
}, {
|
|
199
|
-
key: "
|
|
200
|
-
value: function
|
|
201
|
-
var postBody =
|
|
243
|
+
key: "addQiNoteWithHttpInfo",
|
|
244
|
+
value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
|
|
245
|
+
var postBody = noteInput;
|
|
202
246
|
// verify the required parameter 'projectOrProductUID' is set
|
|
203
247
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
204
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
248
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
|
|
205
249
|
}
|
|
206
250
|
// verify the required parameter 'deviceUID' is set
|
|
207
251
|
if (deviceUID === undefined || deviceUID === null) {
|
|
208
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
252
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addQiNote");
|
|
209
253
|
}
|
|
210
254
|
// verify the required parameter 'notefileID' is set
|
|
211
255
|
if (notefileID === undefined || notefileID === null) {
|
|
212
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling
|
|
256
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
|
|
213
257
|
}
|
|
214
|
-
// verify the required parameter '
|
|
215
|
-
if (
|
|
216
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
258
|
+
// verify the required parameter 'noteInput' is set
|
|
259
|
+
if (noteInput === undefined || noteInput === null) {
|
|
260
|
+
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
|
|
217
261
|
}
|
|
218
262
|
var pathParams = {
|
|
219
263
|
'projectOrProductUID': projectOrProductUID,
|
|
220
264
|
'deviceUID': deviceUID,
|
|
221
|
-
'notefileID': notefileID
|
|
222
|
-
'noteID': noteID
|
|
265
|
+
'notefileID': notefileID
|
|
223
266
|
};
|
|
224
267
|
var queryParams = {};
|
|
225
268
|
var headerParams = {};
|
|
226
269
|
var formParams = {};
|
|
227
270
|
var authNames = ['personalAccessToken'];
|
|
228
|
-
var contentTypes = [];
|
|
271
|
+
var contentTypes = ['application/json'];
|
|
229
272
|
var accepts = ['application/json'];
|
|
230
273
|
var returnType = null;
|
|
231
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}
|
|
274
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
232
275
|
}
|
|
233
276
|
|
|
234
277
|
/**
|
|
235
|
-
*
|
|
278
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
236
279
|
* @param {String} projectOrProductUID
|
|
237
280
|
* @param {String} deviceUID
|
|
238
281
|
* @param {String} notefileID
|
|
239
|
-
* @param {
|
|
282
|
+
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
240
283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
241
284
|
*/
|
|
242
285
|
}, {
|
|
243
|
-
key: "
|
|
244
|
-
value: function
|
|
245
|
-
return this.
|
|
286
|
+
key: "addQiNote",
|
|
287
|
+
value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
|
|
288
|
+
return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
|
|
246
289
|
return response_and_data.data;
|
|
247
290
|
});
|
|
248
291
|
}
|
|
@@ -354,6 +397,66 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
397
|
});
|
|
355
398
|
}
|
|
356
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Delete a note from a .db or .qi notefile
|
|
402
|
+
* @param {String} projectOrProductUID
|
|
403
|
+
* @param {String} deviceUID
|
|
404
|
+
* @param {String} notefileID
|
|
405
|
+
* @param {String} noteID
|
|
406
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
407
|
+
*/
|
|
408
|
+
}, {
|
|
409
|
+
key: "deleteNoteWithHttpInfo",
|
|
410
|
+
value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
411
|
+
var postBody = null;
|
|
412
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
413
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
414
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
|
|
415
|
+
}
|
|
416
|
+
// verify the required parameter 'deviceUID' is set
|
|
417
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
418
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
|
|
419
|
+
}
|
|
420
|
+
// verify the required parameter 'notefileID' is set
|
|
421
|
+
if (notefileID === undefined || notefileID === null) {
|
|
422
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
|
|
423
|
+
}
|
|
424
|
+
// verify the required parameter 'noteID' is set
|
|
425
|
+
if (noteID === undefined || noteID === null) {
|
|
426
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
427
|
+
}
|
|
428
|
+
var pathParams = {
|
|
429
|
+
'projectOrProductUID': projectOrProductUID,
|
|
430
|
+
'deviceUID': deviceUID,
|
|
431
|
+
'notefileID': notefileID,
|
|
432
|
+
'noteID': noteID
|
|
433
|
+
};
|
|
434
|
+
var queryParams = {};
|
|
435
|
+
var headerParams = {};
|
|
436
|
+
var formParams = {};
|
|
437
|
+
var authNames = ['personalAccessToken'];
|
|
438
|
+
var contentTypes = [];
|
|
439
|
+
var accepts = ['application/json'];
|
|
440
|
+
var returnType = null;
|
|
441
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Delete a note from a .db or .qi notefile
|
|
446
|
+
* @param {String} projectOrProductUID
|
|
447
|
+
* @param {String} deviceUID
|
|
448
|
+
* @param {String} notefileID
|
|
449
|
+
* @param {String} noteID
|
|
450
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
451
|
+
*/
|
|
452
|
+
}, {
|
|
453
|
+
key: "deleteNote",
|
|
454
|
+
value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
455
|
+
return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
|
|
456
|
+
return response_and_data.data;
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
|
|
357
460
|
/**
|
|
358
461
|
* Deletes Notefiles and the Notes they contain.
|
|
359
462
|
* @param {String} projectOrProductUID
|
|
@@ -591,7 +694,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
694
|
}
|
|
592
695
|
|
|
593
696
|
/**
|
|
594
|
-
* Get a note from a .db notefile
|
|
697
|
+
* Get a note from a .db or .qi notefile
|
|
595
698
|
* @param {String} projectOrProductUID
|
|
596
699
|
* @param {String} deviceUID
|
|
597
700
|
* @param {String} notefileID
|
|
@@ -642,7 +745,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
642
745
|
}
|
|
643
746
|
|
|
644
747
|
/**
|
|
645
|
-
* Get a note from a .db notefile
|
|
748
|
+
* Get a note from a .db or .qi notefile
|
|
646
749
|
* @param {String} projectOrProductUID
|
|
647
750
|
* @param {String} deviceUID
|
|
648
751
|
* @param {String} notefileID
|
|
@@ -1314,10 +1417,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1314
1417
|
* @param {String} deviceUID
|
|
1315
1418
|
* @param {String} notefileID
|
|
1316
1419
|
* @param {Object} opts Optional parameters
|
|
1317
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1318
1420
|
* @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
1421
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1322
1422
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1323
1423
|
* @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 +1445,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1345
1445
|
'notefileID': notefileID
|
|
1346
1446
|
};
|
|
1347
1447
|
var queryParams = {
|
|
1348
|
-
'tracker': opts['tracker'],
|
|
1349
1448
|
'max': opts['max'],
|
|
1350
|
-
'start': opts['start'],
|
|
1351
|
-
'stop': opts['stop'],
|
|
1352
1449
|
'deleted': opts['deleted'],
|
|
1353
1450
|
'delete': opts['_delete']
|
|
1354
1451
|
};
|
|
@@ -1358,7 +1455,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1358
1455
|
var contentTypes = [];
|
|
1359
1456
|
var accepts = ['application/json'];
|
|
1360
1457
|
var returnType = _GetNotefile200Response["default"];
|
|
1361
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}
|
|
1458
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1362
1459
|
}
|
|
1363
1460
|
|
|
1364
1461
|
/**
|
|
@@ -1367,10 +1464,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1367
1464
|
* @param {String} deviceUID
|
|
1368
1465
|
* @param {String} notefileID
|
|
1369
1466
|
* @param {Object} opts Optional parameters
|
|
1370
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1371
1467
|
* @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
1468
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1375
1469
|
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1376
1470
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
@@ -1388,9 +1482,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1388
1482
|
* @param {String} projectOrProductUID
|
|
1389
1483
|
* @param {String} deviceUID
|
|
1390
1484
|
* @param {Object} opts Optional parameters
|
|
1391
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1392
1485
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1393
|
-
* @
|
|
1486
|
+
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1487
|
+
* @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
1488
|
*/
|
|
1395
1489
|
}, {
|
|
1396
1490
|
key: "listNotefilesWithHttpInfo",
|
|
@@ -1410,16 +1504,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1410
1504
|
'deviceUID': deviceUID
|
|
1411
1505
|
};
|
|
1412
1506
|
var queryParams = {
|
|
1413
|
-
'
|
|
1414
|
-
'
|
|
1507
|
+
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
|
|
1508
|
+
'pending': opts['pending']
|
|
1415
1509
|
};
|
|
1416
1510
|
var headerParams = {};
|
|
1417
1511
|
var formParams = {};
|
|
1418
1512
|
var authNames = ['personalAccessToken'];
|
|
1419
1513
|
var contentTypes = [];
|
|
1420
1514
|
var accepts = ['application/json'];
|
|
1421
|
-
var returnType =
|
|
1422
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files
|
|
1515
|
+
var returnType = [_Notefile["default"]];
|
|
1516
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1423
1517
|
}
|
|
1424
1518
|
|
|
1425
1519
|
/**
|
|
@@ -1427,9 +1521,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1427
1521
|
* @param {String} projectOrProductUID
|
|
1428
1522
|
* @param {String} deviceUID
|
|
1429
1523
|
* @param {Object} opts Optional parameters
|
|
1430
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1431
1524
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1432
|
-
* @
|
|
1525
|
+
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1526
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
|
|
1433
1527
|
*/
|
|
1434
1528
|
}, {
|
|
1435
1529
|
key: "listNotefiles",
|
|
@@ -1439,52 +1533,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1439
1533
|
});
|
|
1440
1534
|
}
|
|
1441
1535
|
|
|
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
1536
|
/**
|
|
1489
1537
|
* Provision Device for a Project
|
|
1490
1538
|
* @param {String} projectOrProductUID
|
|
@@ -1537,110 +1585,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1537
1585
|
});
|
|
1538
1586
|
}
|
|
1539
1587
|
|
|
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
|
-
|
|
1644
1588
|
/**
|
|
1645
1589
|
* Send a signal from Notehub to a Notecard.
|
|
1646
1590
|
* @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
|
}
|