@blues-inc/notehub-js 1.0.21 → 1.0.23-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +188 -178
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -20
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +380 -329
- package/dist/api/EventApi.js +162 -121
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +246 -246
- package/dist/api/RouteApi.js +77 -77
- package/dist/model/Alert.js +72 -57
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +127 -126
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/FirmwareStatus.js +28 -28
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +16 -15
- package/dist/model/GetBillingAccounts200Response.js +11 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +13 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +11 -10
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +18 -17
- package/dist/model/GetProjectEvents200Response.js +30 -16
- package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
- package/dist/model/GetProjectFleets200Response.js +13 -12
- package/dist/model/GetProjectMembers200Response.js +13 -12
- package/dist/model/GetProjectProducts200Response.js +11 -10
- package/dist/model/GetProjects200Response.js +11 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +101 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -11
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/OTAStatus.js +89 -89
- package/dist/model/OTAStatusList.js +14 -13
- package/dist/model/OTAUpdateRequest.js +54 -54
- package/dist/model/OTAUpdateStatus.js +18 -18
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Route.js +37 -37
- package/dist/model/RouteSchema.js +46 -47
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UserDbRoute.js +26 -26
- package/package.json +4 -4
package/dist/api/DeviceApi.js
CHANGED
|
@@ -32,9 +32,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
32
32
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
33
33
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
34
34
|
* Notehub API
|
|
35
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
35
|
+
* The OpenAPI definition for the Notehub.io API. Beta test change
|
|
36
36
|
*
|
|
37
|
-
* The version of the OpenAPI document: 1.1.
|
|
37
|
+
* The version of the OpenAPI document: 1.1.2
|
|
38
38
|
* Contact: engineering@blues.io
|
|
39
39
|
*
|
|
40
40
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,18 +43,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
* Device service.
|
|
47
|
+
* @module api/DeviceApi
|
|
48
|
+
* @version 1.0.23-beta.1
|
|
49
|
+
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
* Constructs a new DeviceApi.
|
|
53
|
+
* @alias module:api/DeviceApi
|
|
54
|
+
* @class
|
|
55
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
56
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
57
|
+
*/
|
|
58
58
|
function DeviceApi(apiClient) {
|
|
59
59
|
_classCallCheck(this, DeviceApi);
|
|
60
60
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -62,8 +62,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Delete environment variable of a device
|
|
65
|
-
* @param {String} projectUID
|
|
66
|
-
* @param {String} deviceUID
|
|
65
|
+
* @param {String} projectUID
|
|
66
|
+
* @param {String} deviceUID
|
|
67
67
|
* @param {String} key The environment variable key to delete.
|
|
68
68
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
69
69
|
*/
|
|
@@ -84,24 +84,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
85
85
|
}
|
|
86
86
|
var pathParams = {
|
|
87
|
-
projectUID: projectUID,
|
|
88
|
-
deviceUID: deviceUID,
|
|
89
|
-
key: key
|
|
87
|
+
'projectUID': projectUID,
|
|
88
|
+
'deviceUID': deviceUID,
|
|
89
|
+
'key': key
|
|
90
90
|
};
|
|
91
91
|
var queryParams = {};
|
|
92
92
|
var headerParams = {};
|
|
93
93
|
var formParams = {};
|
|
94
|
-
var authNames = [
|
|
94
|
+
var authNames = ['api_key'];
|
|
95
95
|
var contentTypes = [];
|
|
96
|
-
var accepts = [
|
|
96
|
+
var accepts = ['application/json'];
|
|
97
97
|
var returnType = _EnvironmentVariables["default"];
|
|
98
|
-
return this.apiClient.callApi(
|
|
98
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Delete environment variable of a device
|
|
103
|
-
* @param {String} projectUID
|
|
104
|
-
* @param {String} deviceUID
|
|
103
|
+
* @param {String} projectUID
|
|
104
|
+
* @param {String} deviceUID
|
|
105
105
|
* @param {String} key The environment variable key to delete.
|
|
106
106
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
107
107
|
*/
|
|
@@ -115,9 +115,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Delete Device
|
|
118
|
-
* @param {String} projectUID
|
|
119
|
-
* @param {String} deviceUID
|
|
120
|
-
* @param {
|
|
118
|
+
* @param {String} projectUID
|
|
119
|
+
* @param {String} deviceUID
|
|
120
|
+
* @param {Boolean} purge
|
|
121
121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
122
122
|
*/
|
|
123
123
|
}, {
|
|
@@ -137,26 +137,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
137
|
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
138
138
|
}
|
|
139
139
|
var pathParams = {
|
|
140
|
-
projectUID: projectUID,
|
|
141
|
-
deviceUID: deviceUID
|
|
140
|
+
'projectUID': projectUID,
|
|
141
|
+
'deviceUID': deviceUID
|
|
142
142
|
};
|
|
143
143
|
var queryParams = {
|
|
144
|
-
purge: purge
|
|
144
|
+
'purge': purge
|
|
145
145
|
};
|
|
146
146
|
var headerParams = {};
|
|
147
147
|
var formParams = {};
|
|
148
|
-
var authNames = [
|
|
148
|
+
var authNames = ['api_key'];
|
|
149
149
|
var contentTypes = [];
|
|
150
|
-
var accepts = [
|
|
150
|
+
var accepts = ['application/json'];
|
|
151
151
|
var returnType = null;
|
|
152
|
-
return this.apiClient.callApi(
|
|
152
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* Delete Device
|
|
157
|
-
* @param {String} projectUID
|
|
158
|
-
* @param {String} deviceUID
|
|
159
|
-
* @param {
|
|
157
|
+
* @param {String} projectUID
|
|
158
|
+
* @param {String} deviceUID
|
|
159
|
+
* @param {Boolean} purge
|
|
160
160
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
161
161
|
*/
|
|
162
162
|
}, {
|
|
@@ -169,8 +169,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Disable Device
|
|
172
|
-
* @param {String} projectUID
|
|
173
|
-
* @param {String} deviceUID
|
|
172
|
+
* @param {String} projectUID
|
|
173
|
+
* @param {String} deviceUID
|
|
174
174
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
175
175
|
*/
|
|
176
176
|
}, {
|
|
@@ -186,23 +186,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
186
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
187
187
|
}
|
|
188
188
|
var pathParams = {
|
|
189
|
-
projectUID: projectUID,
|
|
190
|
-
deviceUID: deviceUID
|
|
189
|
+
'projectUID': projectUID,
|
|
190
|
+
'deviceUID': deviceUID
|
|
191
191
|
};
|
|
192
192
|
var queryParams = {};
|
|
193
193
|
var headerParams = {};
|
|
194
194
|
var formParams = {};
|
|
195
|
-
var authNames = [
|
|
195
|
+
var authNames = ['api_key'];
|
|
196
196
|
var contentTypes = [];
|
|
197
|
-
var accepts = [
|
|
197
|
+
var accepts = ['application/json'];
|
|
198
198
|
var returnType = null;
|
|
199
|
-
return this.apiClient.callApi(
|
|
199
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Disable Device
|
|
204
|
-
* @param {String} projectUID
|
|
205
|
-
* @param {String} deviceUID
|
|
204
|
+
* @param {String} projectUID
|
|
205
|
+
* @param {String} deviceUID
|
|
206
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
207
207
|
*/
|
|
208
208
|
}, {
|
|
@@ -215,8 +215,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* Disable Connectivity Assurance
|
|
218
|
-
* @param {String} projectUID
|
|
219
|
-
* @param {String} deviceUID
|
|
218
|
+
* @param {String} projectUID
|
|
219
|
+
* @param {String} deviceUID
|
|
220
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
221
221
|
*/
|
|
222
222
|
}, {
|
|
@@ -232,23 +232,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
232
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
233
233
|
}
|
|
234
234
|
var pathParams = {
|
|
235
|
-
projectUID: projectUID,
|
|
236
|
-
deviceUID: deviceUID
|
|
235
|
+
'projectUID': projectUID,
|
|
236
|
+
'deviceUID': deviceUID
|
|
237
237
|
};
|
|
238
238
|
var queryParams = {};
|
|
239
239
|
var headerParams = {};
|
|
240
240
|
var formParams = {};
|
|
241
|
-
var authNames = [
|
|
241
|
+
var authNames = ['api_key'];
|
|
242
242
|
var contentTypes = [];
|
|
243
|
-
var accepts = [
|
|
243
|
+
var accepts = ['application/json'];
|
|
244
244
|
var returnType = null;
|
|
245
|
-
return this.apiClient.callApi(
|
|
245
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* Disable Connectivity Assurance
|
|
250
|
-
* @param {String} projectUID
|
|
251
|
-
* @param {String} deviceUID
|
|
250
|
+
* @param {String} projectUID
|
|
251
|
+
* @param {String} deviceUID
|
|
252
252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
253
253
|
*/
|
|
254
254
|
}, {
|
|
@@ -261,8 +261,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* Enable Device
|
|
264
|
-
* @param {String} projectUID
|
|
265
|
-
* @param {String} deviceUID
|
|
264
|
+
* @param {String} projectUID
|
|
265
|
+
* @param {String} deviceUID
|
|
266
266
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
267
267
|
*/
|
|
268
268
|
}, {
|
|
@@ -278,23 +278,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
278
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
279
279
|
}
|
|
280
280
|
var pathParams = {
|
|
281
|
-
projectUID: projectUID,
|
|
282
|
-
deviceUID: deviceUID
|
|
281
|
+
'projectUID': projectUID,
|
|
282
|
+
'deviceUID': deviceUID
|
|
283
283
|
};
|
|
284
284
|
var queryParams = {};
|
|
285
285
|
var headerParams = {};
|
|
286
286
|
var formParams = {};
|
|
287
|
-
var authNames = [
|
|
287
|
+
var authNames = ['api_key'];
|
|
288
288
|
var contentTypes = [];
|
|
289
|
-
var accepts = [
|
|
289
|
+
var accepts = ['application/json'];
|
|
290
290
|
var returnType = null;
|
|
291
|
-
return this.apiClient.callApi(
|
|
291
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
295
|
* Enable Device
|
|
296
|
-
* @param {String} projectUID
|
|
297
|
-
* @param {String} deviceUID
|
|
296
|
+
* @param {String} projectUID
|
|
297
|
+
* @param {String} deviceUID
|
|
298
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
299
299
|
*/
|
|
300
300
|
}, {
|
|
@@ -307,8 +307,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* Enable Connectivity Assurance
|
|
310
|
-
* @param {String} projectUID
|
|
311
|
-
* @param {String} deviceUID
|
|
310
|
+
* @param {String} projectUID
|
|
311
|
+
* @param {String} deviceUID
|
|
312
312
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
313
313
|
*/
|
|
314
314
|
}, {
|
|
@@ -324,23 +324,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
324
324
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
325
325
|
}
|
|
326
326
|
var pathParams = {
|
|
327
|
-
projectUID: projectUID,
|
|
328
|
-
deviceUID: deviceUID
|
|
327
|
+
'projectUID': projectUID,
|
|
328
|
+
'deviceUID': deviceUID
|
|
329
329
|
};
|
|
330
330
|
var queryParams = {};
|
|
331
331
|
var headerParams = {};
|
|
332
332
|
var formParams = {};
|
|
333
|
-
var authNames = [
|
|
333
|
+
var authNames = ['api_key'];
|
|
334
334
|
var contentTypes = [];
|
|
335
|
-
var accepts = [
|
|
335
|
+
var accepts = ['application/json'];
|
|
336
336
|
var returnType = null;
|
|
337
|
-
return this.apiClient.callApi(
|
|
337
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* Enable Connectivity Assurance
|
|
342
|
-
* @param {String} projectUID
|
|
343
|
-
* @param {String} deviceUID
|
|
342
|
+
* @param {String} projectUID
|
|
343
|
+
* @param {String} deviceUID
|
|
344
344
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
345
345
|
*/
|
|
346
346
|
}, {
|
|
@@ -353,8 +353,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Get Device
|
|
356
|
-
* @param {String} projectUID
|
|
357
|
-
* @param {String} deviceUID
|
|
356
|
+
* @param {String} projectUID
|
|
357
|
+
* @param {String} deviceUID
|
|
358
358
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
359
359
|
*/
|
|
360
360
|
}, {
|
|
@@ -370,23 +370,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
370
370
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
371
371
|
}
|
|
372
372
|
var pathParams = {
|
|
373
|
-
projectUID: projectUID,
|
|
374
|
-
deviceUID: deviceUID
|
|
373
|
+
'projectUID': projectUID,
|
|
374
|
+
'deviceUID': deviceUID
|
|
375
375
|
};
|
|
376
376
|
var queryParams = {};
|
|
377
377
|
var headerParams = {};
|
|
378
378
|
var formParams = {};
|
|
379
|
-
var authNames = [
|
|
379
|
+
var authNames = ['api_key'];
|
|
380
380
|
var contentTypes = [];
|
|
381
|
-
var accepts = [
|
|
381
|
+
var accepts = ['application/json'];
|
|
382
382
|
var returnType = _Device["default"];
|
|
383
|
-
return this.apiClient.callApi(
|
|
383
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
387
|
* Get Device
|
|
388
|
-
* @param {String} projectUID
|
|
389
|
-
* @param {String} deviceUID
|
|
388
|
+
* @param {String} projectUID
|
|
389
|
+
* @param {String} deviceUID
|
|
390
390
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
391
391
|
*/
|
|
392
392
|
}, {
|
|
@@ -399,8 +399,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* Get environment variables of a device
|
|
402
|
-
* @param {String} projectUID
|
|
403
|
-
* @param {String} deviceUID
|
|
402
|
+
* @param {String} projectUID
|
|
403
|
+
* @param {String} deviceUID
|
|
404
404
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
405
405
|
*/
|
|
406
406
|
}, {
|
|
@@ -416,23 +416,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
416
416
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
417
417
|
}
|
|
418
418
|
var pathParams = {
|
|
419
|
-
projectUID: projectUID,
|
|
420
|
-
deviceUID: deviceUID
|
|
419
|
+
'projectUID': projectUID,
|
|
420
|
+
'deviceUID': deviceUID
|
|
421
421
|
};
|
|
422
422
|
var queryParams = {};
|
|
423
423
|
var headerParams = {};
|
|
424
424
|
var formParams = {};
|
|
425
|
-
var authNames = [
|
|
425
|
+
var authNames = ['api_key'];
|
|
426
426
|
var contentTypes = [];
|
|
427
|
-
var accepts = [
|
|
427
|
+
var accepts = ['application/json'];
|
|
428
428
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
429
|
-
return this.apiClient.callApi(
|
|
429
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* Get environment variables of a device
|
|
434
|
-
* @param {String} projectUID
|
|
435
|
-
* @param {String} deviceUID
|
|
434
|
+
* @param {String} projectUID
|
|
435
|
+
* @param {String} deviceUID
|
|
436
436
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
437
437
|
*/
|
|
438
438
|
}, {
|
|
@@ -445,8 +445,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* Get environment variables of a device with device pin authorization
|
|
448
|
-
* @param {String} productUID
|
|
449
|
-
* @param {String} deviceUID
|
|
448
|
+
* @param {String} productUID
|
|
449
|
+
* @param {String} deviceUID
|
|
450
450
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
451
451
|
*/
|
|
452
452
|
}, {
|
|
@@ -462,23 +462,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
462
462
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
463
463
|
}
|
|
464
464
|
var pathParams = {
|
|
465
|
-
productUID: productUID,
|
|
466
|
-
deviceUID: deviceUID
|
|
465
|
+
'productUID': productUID,
|
|
466
|
+
'deviceUID': deviceUID
|
|
467
467
|
};
|
|
468
468
|
var queryParams = {};
|
|
469
469
|
var headerParams = {};
|
|
470
470
|
var formParams = {};
|
|
471
|
-
var authNames = [
|
|
471
|
+
var authNames = ['pin'];
|
|
472
472
|
var contentTypes = [];
|
|
473
|
-
var accepts = [
|
|
473
|
+
var accepts = ['application/json'];
|
|
474
474
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
475
|
-
return this.apiClient.callApi(
|
|
475
|
+
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
/**
|
|
479
479
|
* Get environment variables of a device with device pin authorization
|
|
480
|
-
* @param {String} productUID
|
|
481
|
-
* @param {String} deviceUID
|
|
480
|
+
* @param {String} productUID
|
|
481
|
+
* @param {String} deviceUID
|
|
482
482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
483
483
|
*/
|
|
484
484
|
}, {
|
|
@@ -491,8 +491,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Get Device Health Log
|
|
494
|
-
* @param {String} projectUID
|
|
495
|
-
* @param {String} deviceUID
|
|
494
|
+
* @param {String} projectUID
|
|
495
|
+
* @param {String} deviceUID
|
|
496
496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
497
497
|
*/
|
|
498
498
|
}, {
|
|
@@ -508,23 +508,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
508
508
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
509
509
|
}
|
|
510
510
|
var pathParams = {
|
|
511
|
-
projectUID: projectUID,
|
|
512
|
-
deviceUID: deviceUID
|
|
511
|
+
'projectUID': projectUID,
|
|
512
|
+
'deviceUID': deviceUID
|
|
513
513
|
};
|
|
514
514
|
var queryParams = {};
|
|
515
515
|
var headerParams = {};
|
|
516
516
|
var formParams = {};
|
|
517
|
-
var authNames = [
|
|
517
|
+
var authNames = ['api_key'];
|
|
518
518
|
var contentTypes = [];
|
|
519
|
-
var accepts = [
|
|
519
|
+
var accepts = ['application/json'];
|
|
520
520
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
521
|
-
return this.apiClient.callApi(
|
|
521
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Get Device Health Log
|
|
526
|
-
* @param {String} projectUID
|
|
527
|
-
* @param {String} deviceUID
|
|
526
|
+
* @param {String} projectUID
|
|
527
|
+
* @param {String} deviceUID
|
|
528
528
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
529
529
|
*/
|
|
530
530
|
}, {
|
|
@@ -537,8 +537,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* Get Device Latest Events
|
|
540
|
-
* @param {String} projectUID
|
|
541
|
-
* @param {String} deviceUID
|
|
540
|
+
* @param {String} projectUID
|
|
541
|
+
* @param {String} deviceUID
|
|
542
542
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
|
|
543
543
|
*/
|
|
544
544
|
}, {
|
|
@@ -554,23 +554,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
554
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
|
|
555
555
|
}
|
|
556
556
|
var pathParams = {
|
|
557
|
-
projectUID: projectUID,
|
|
558
|
-
deviceUID: deviceUID
|
|
557
|
+
'projectUID': projectUID,
|
|
558
|
+
'deviceUID': deviceUID
|
|
559
559
|
};
|
|
560
560
|
var queryParams = {};
|
|
561
561
|
var headerParams = {};
|
|
562
562
|
var formParams = {};
|
|
563
|
-
var authNames = [
|
|
563
|
+
var authNames = ['api_key'];
|
|
564
564
|
var contentTypes = [];
|
|
565
|
-
var accepts = [
|
|
565
|
+
var accepts = ['application/json'];
|
|
566
566
|
var returnType = _GetDeviceLatest200Response["default"];
|
|
567
|
-
return this.apiClient.callApi(
|
|
567
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Get Device Latest Events
|
|
572
|
-
* @param {String} projectUID
|
|
573
|
-
* @param {String} deviceUID
|
|
572
|
+
* @param {String} projectUID
|
|
573
|
+
* @param {String} deviceUID
|
|
574
574
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
|
|
575
575
|
*/
|
|
576
576
|
}, {
|
|
@@ -583,8 +583,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* Get Device Public Key
|
|
586
|
-
* @param {String} projectUID
|
|
587
|
-
* @param {String} deviceUID
|
|
586
|
+
* @param {String} projectUID
|
|
587
|
+
* @param {String} deviceUID
|
|
588
588
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
589
589
|
*/
|
|
590
590
|
}, {
|
|
@@ -600,23 +600,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
600
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
601
601
|
}
|
|
602
602
|
var pathParams = {
|
|
603
|
-
projectUID: projectUID,
|
|
604
|
-
deviceUID: deviceUID
|
|
603
|
+
'projectUID': projectUID,
|
|
604
|
+
'deviceUID': deviceUID
|
|
605
605
|
};
|
|
606
606
|
var queryParams = {};
|
|
607
607
|
var headerParams = {};
|
|
608
608
|
var formParams = {};
|
|
609
|
-
var authNames = [
|
|
609
|
+
var authNames = ['api_key'];
|
|
610
610
|
var contentTypes = [];
|
|
611
|
-
var accepts = [
|
|
611
|
+
var accepts = ['application/json'];
|
|
612
612
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
613
|
-
return this.apiClient.callApi(
|
|
613
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* Get Device Public Key
|
|
618
|
-
* @param {String} projectUID
|
|
619
|
-
* @param {String} deviceUID
|
|
618
|
+
* @param {String} projectUID
|
|
619
|
+
* @param {String} deviceUID
|
|
620
620
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
621
621
|
*/
|
|
622
622
|
}, {
|
|
@@ -629,8 +629,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Get Device Sessions
|
|
632
|
-
* @param {String} projectUID
|
|
633
|
-
* @param {String} deviceUID
|
|
632
|
+
* @param {String} projectUID
|
|
633
|
+
* @param {String} deviceUID
|
|
634
634
|
* @param {Object} opts Optional parameters
|
|
635
635
|
* @param {Number} opts.pageSize (default to 50)
|
|
636
636
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -650,26 +650,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
650
650
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
651
651
|
}
|
|
652
652
|
var pathParams = {
|
|
653
|
-
projectUID: projectUID,
|
|
654
|
-
deviceUID: deviceUID
|
|
653
|
+
'projectUID': projectUID,
|
|
654
|
+
'deviceUID': deviceUID
|
|
655
655
|
};
|
|
656
656
|
var queryParams = {
|
|
657
|
-
pageSize: opts[
|
|
658
|
-
pageNum: opts[
|
|
657
|
+
'pageSize': opts['pageSize'],
|
|
658
|
+
'pageNum': opts['pageNum']
|
|
659
659
|
};
|
|
660
660
|
var headerParams = {};
|
|
661
661
|
var formParams = {};
|
|
662
|
-
var authNames = [
|
|
662
|
+
var authNames = ['api_key'];
|
|
663
663
|
var contentTypes = [];
|
|
664
|
-
var accepts = [
|
|
664
|
+
var accepts = ['application/json'];
|
|
665
665
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
666
|
-
return this.apiClient.callApi(
|
|
666
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
/**
|
|
670
670
|
* Get Device Sessions
|
|
671
|
-
* @param {String} projectUID
|
|
672
|
-
* @param {String} deviceUID
|
|
671
|
+
* @param {String} projectUID
|
|
672
|
+
* @param {String} deviceUID
|
|
673
673
|
* @param {Object} opts Optional parameters
|
|
674
674
|
* @param {Number} opts.pageSize (default to 50)
|
|
675
675
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -685,7 +685,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
687
|
* Get Device Public Keys of a Project
|
|
688
|
-
* @param {String} projectUID
|
|
688
|
+
* @param {String} projectUID
|
|
689
689
|
* @param {Object} opts Optional parameters
|
|
690
690
|
* @param {Number} opts.pageSize (default to 50)
|
|
691
691
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -701,24 +701,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
701
701
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
|
|
702
702
|
}
|
|
703
703
|
var pathParams = {
|
|
704
|
-
projectUID: projectUID
|
|
704
|
+
'projectUID': projectUID
|
|
705
705
|
};
|
|
706
706
|
var queryParams = {
|
|
707
|
-
pageSize: opts[
|
|
708
|
-
pageNum: opts[
|
|
707
|
+
'pageSize': opts['pageSize'],
|
|
708
|
+
'pageNum': opts['pageNum']
|
|
709
709
|
};
|
|
710
710
|
var headerParams = {};
|
|
711
711
|
var formParams = {};
|
|
712
|
-
var authNames = [
|
|
712
|
+
var authNames = ['api_key'];
|
|
713
713
|
var contentTypes = [];
|
|
714
|
-
var accepts = [
|
|
714
|
+
var accepts = ['application/json'];
|
|
715
715
|
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
716
|
-
return this.apiClient.callApi(
|
|
716
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
720
|
* Get Device Public Keys of a Project
|
|
721
|
-
* @param {String} projectUID
|
|
721
|
+
* @param {String} projectUID
|
|
722
722
|
* @param {Object} opts Optional parameters
|
|
723
723
|
* @param {Number} opts.pageSize (default to 50)
|
|
724
724
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -734,10 +734,19 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
734
734
|
|
|
735
735
|
/**
|
|
736
736
|
* Get Devices of a Project
|
|
737
|
-
* @param {String} projectUID
|
|
737
|
+
* @param {String} projectUID
|
|
738
738
|
* @param {Object} opts Optional parameters
|
|
739
739
|
* @param {Number} opts.pageSize (default to 50)
|
|
740
740
|
* @param {Number} opts.pageNum (default to 1)
|
|
741
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
742
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
743
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
744
|
+
* @param {String} opts.fleetUID
|
|
745
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
746
|
+
* @param {Array.<String>} opts.location Location filter
|
|
747
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
748
|
+
* @param {Array.<String>} opts.productUID
|
|
749
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
741
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
742
751
|
*/
|
|
743
752
|
}, {
|
|
@@ -750,27 +759,45 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
750
759
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
|
|
751
760
|
}
|
|
752
761
|
var pathParams = {
|
|
753
|
-
projectUID: projectUID
|
|
762
|
+
'projectUID': projectUID
|
|
754
763
|
};
|
|
755
764
|
var queryParams = {
|
|
756
|
-
pageSize: opts[
|
|
757
|
-
pageNum: opts[
|
|
765
|
+
'pageSize': opts['pageSize'],
|
|
766
|
+
'pageNum': opts['pageNum'],
|
|
767
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
768
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
769
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
770
|
+
'fleetUID': opts['fleetUID'],
|
|
771
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
772
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
773
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
774
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
775
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
758
776
|
};
|
|
759
777
|
var headerParams = {};
|
|
760
778
|
var formParams = {};
|
|
761
|
-
var authNames = [
|
|
779
|
+
var authNames = ['api_key'];
|
|
762
780
|
var contentTypes = [];
|
|
763
|
-
var accepts = [
|
|
781
|
+
var accepts = ['application/json'];
|
|
764
782
|
var returnType = _GetProjectDevices200Response["default"];
|
|
765
|
-
return this.apiClient.callApi(
|
|
783
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
766
784
|
}
|
|
767
785
|
|
|
768
786
|
/**
|
|
769
787
|
* Get Devices of a Project
|
|
770
|
-
* @param {String} projectUID
|
|
788
|
+
* @param {String} projectUID
|
|
771
789
|
* @param {Object} opts Optional parameters
|
|
772
790
|
* @param {Number} opts.pageSize (default to 50)
|
|
773
791
|
* @param {Number} opts.pageNum (default to 1)
|
|
792
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
793
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
794
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
795
|
+
* @param {String} opts.fleetUID
|
|
796
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
797
|
+
* @param {Array.<String>} opts.location Location filter
|
|
798
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
799
|
+
* @param {Array.<String>} opts.productUID
|
|
800
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
774
801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
775
802
|
*/
|
|
776
803
|
}, {
|
|
@@ -783,11 +810,19 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
783
810
|
|
|
784
811
|
/**
|
|
785
812
|
* Get Devices of a Fleet within a Project
|
|
786
|
-
* @param {String} projectUID
|
|
787
|
-
* @param {String} fleetUID
|
|
813
|
+
* @param {String} projectUID
|
|
814
|
+
* @param {String} fleetUID
|
|
788
815
|
* @param {Object} opts Optional parameters
|
|
789
816
|
* @param {Number} opts.pageSize (default to 50)
|
|
790
817
|
* @param {Number} opts.pageNum (default to 1)
|
|
818
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
819
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
820
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
821
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
822
|
+
* @param {Array.<String>} opts.location Location filter
|
|
823
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
824
|
+
* @param {Array.<String>} opts.productUID
|
|
825
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
791
826
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
792
827
|
*/
|
|
793
828
|
}, {
|
|
@@ -804,29 +839,45 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
804
839
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
805
840
|
}
|
|
806
841
|
var pathParams = {
|
|
807
|
-
projectUID: projectUID,
|
|
808
|
-
fleetUID: fleetUID
|
|
842
|
+
'projectUID': projectUID,
|
|
843
|
+
'fleetUID': fleetUID
|
|
809
844
|
};
|
|
810
845
|
var queryParams = {
|
|
811
|
-
pageSize: opts[
|
|
812
|
-
pageNum: opts[
|
|
846
|
+
'pageSize': opts['pageSize'],
|
|
847
|
+
'pageNum': opts['pageNum'],
|
|
848
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
849
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
850
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
851
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
852
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
853
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
854
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
855
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
813
856
|
};
|
|
814
857
|
var headerParams = {};
|
|
815
858
|
var formParams = {};
|
|
816
|
-
var authNames = [
|
|
859
|
+
var authNames = ['api_key'];
|
|
817
860
|
var contentTypes = [];
|
|
818
|
-
var accepts = [
|
|
861
|
+
var accepts = ['application/json'];
|
|
819
862
|
var returnType = _GetProjectDevices200Response["default"];
|
|
820
|
-
return this.apiClient.callApi(
|
|
863
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
821
864
|
}
|
|
822
865
|
|
|
823
866
|
/**
|
|
824
867
|
* Get Devices of a Fleet within a Project
|
|
825
|
-
* @param {String} projectUID
|
|
826
|
-
* @param {String} fleetUID
|
|
868
|
+
* @param {String} projectUID
|
|
869
|
+
* @param {String} fleetUID
|
|
827
870
|
* @param {Object} opts Optional parameters
|
|
828
871
|
* @param {Number} opts.pageSize (default to 50)
|
|
829
872
|
* @param {Number} opts.pageNum (default to 1)
|
|
873
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
874
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
875
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
876
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
877
|
+
* @param {Array.<String>} opts.location Location filter
|
|
878
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
879
|
+
* @param {Array.<String>} opts.productUID
|
|
880
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
830
881
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
831
882
|
*/
|
|
832
883
|
}, {
|
|
@@ -839,9 +890,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
839
890
|
|
|
840
891
|
/**
|
|
841
892
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
842
|
-
* @param {String} projectUID
|
|
843
|
-
* @param {String} deviceUID
|
|
844
|
-
* @param {String} notefileID
|
|
893
|
+
* @param {String} projectUID
|
|
894
|
+
* @param {String} deviceUID
|
|
895
|
+
* @param {String} notefileID
|
|
845
896
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
846
897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
847
898
|
*/
|
|
@@ -866,25 +917,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
866
917
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
867
918
|
}
|
|
868
919
|
var pathParams = {
|
|
869
|
-
projectUID: projectUID,
|
|
870
|
-
deviceUID: deviceUID,
|
|
871
|
-
notefileID: notefileID
|
|
920
|
+
'projectUID': projectUID,
|
|
921
|
+
'deviceUID': deviceUID,
|
|
922
|
+
'notefileID': notefileID
|
|
872
923
|
};
|
|
873
924
|
var queryParams = {};
|
|
874
925
|
var headerParams = {};
|
|
875
926
|
var formParams = {};
|
|
876
|
-
var authNames = [
|
|
877
|
-
var contentTypes = [
|
|
878
|
-
var accepts = [
|
|
927
|
+
var authNames = ['api_key'];
|
|
928
|
+
var contentTypes = ['application/json'];
|
|
929
|
+
var accepts = ['application/json'];
|
|
879
930
|
var returnType = null;
|
|
880
|
-
return this.apiClient.callApi(
|
|
931
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
881
932
|
}
|
|
882
933
|
|
|
883
934
|
/**
|
|
884
935
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
885
|
-
* @param {String} projectUID
|
|
886
|
-
* @param {String} deviceUID
|
|
887
|
-
* @param {String} notefileID
|
|
936
|
+
* @param {String} projectUID
|
|
937
|
+
* @param {String} deviceUID
|
|
938
|
+
* @param {String} notefileID
|
|
888
939
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
889
940
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
890
941
|
*/
|
|
@@ -898,9 +949,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
949
|
|
|
899
950
|
/**
|
|
900
951
|
* Incrementally retrieve changes within a specific Notefile.
|
|
901
|
-
* @param {String} projectUID
|
|
902
|
-
* @param {String} deviceUID
|
|
903
|
-
* @param {String} notefileID
|
|
952
|
+
* @param {String} projectUID
|
|
953
|
+
* @param {String} deviceUID
|
|
954
|
+
* @param {String} notefileID
|
|
904
955
|
* @param {Object} opts Optional parameters
|
|
905
956
|
* @param {String} opts.tracker The change tracker ID.
|
|
906
957
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -928,32 +979,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
928
979
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
929
980
|
}
|
|
930
981
|
var pathParams = {
|
|
931
|
-
projectUID: projectUID,
|
|
932
|
-
deviceUID: deviceUID,
|
|
933
|
-
notefileID: notefileID
|
|
982
|
+
'projectUID': projectUID,
|
|
983
|
+
'deviceUID': deviceUID,
|
|
984
|
+
'notefileID': notefileID
|
|
934
985
|
};
|
|
935
986
|
var queryParams = {
|
|
936
|
-
tracker: opts[
|
|
937
|
-
max: opts[
|
|
938
|
-
start: opts[
|
|
939
|
-
stop: opts[
|
|
940
|
-
deleted: opts[
|
|
941
|
-
|
|
987
|
+
'tracker': opts['tracker'],
|
|
988
|
+
'max': opts['max'],
|
|
989
|
+
'start': opts['start'],
|
|
990
|
+
'stop': opts['stop'],
|
|
991
|
+
'deleted': opts['deleted'],
|
|
992
|
+
'delete': opts['_delete']
|
|
942
993
|
};
|
|
943
994
|
var headerParams = {};
|
|
944
995
|
var formParams = {};
|
|
945
|
-
var authNames = [
|
|
996
|
+
var authNames = ['api_key'];
|
|
946
997
|
var contentTypes = [];
|
|
947
|
-
var accepts = [
|
|
998
|
+
var accepts = ['application/json'];
|
|
948
999
|
var returnType = _HandleNoteChanges200Response["default"];
|
|
949
|
-
return this.apiClient.callApi(
|
|
1000
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
950
1001
|
}
|
|
951
1002
|
|
|
952
1003
|
/**
|
|
953
1004
|
* Incrementally retrieve changes within a specific Notefile.
|
|
954
|
-
* @param {String} projectUID
|
|
955
|
-
* @param {String} deviceUID
|
|
956
|
-
* @param {String} notefileID
|
|
1005
|
+
* @param {String} projectUID
|
|
1006
|
+
* @param {String} deviceUID
|
|
1007
|
+
* @param {String} notefileID
|
|
957
1008
|
* @param {Object} opts Optional parameters
|
|
958
1009
|
* @param {String} opts.tracker The change tracker ID.
|
|
959
1010
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -973,10 +1024,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
973
1024
|
|
|
974
1025
|
/**
|
|
975
1026
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
976
|
-
* @param {String} projectUID
|
|
977
|
-
* @param {String} deviceUID
|
|
978
|
-
* @param {String} notefileID
|
|
979
|
-
* @param {String} noteID
|
|
1027
|
+
* @param {String} projectUID
|
|
1028
|
+
* @param {String} deviceUID
|
|
1029
|
+
* @param {String} notefileID
|
|
1030
|
+
* @param {String} noteID
|
|
980
1031
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
981
1032
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
982
1033
|
*/
|
|
@@ -1005,27 +1056,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1005
1056
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
1006
1057
|
}
|
|
1007
1058
|
var pathParams = {
|
|
1008
|
-
projectUID: projectUID,
|
|
1009
|
-
deviceUID: deviceUID,
|
|
1010
|
-
notefileID: notefileID,
|
|
1011
|
-
noteID: noteID
|
|
1059
|
+
'projectUID': projectUID,
|
|
1060
|
+
'deviceUID': deviceUID,
|
|
1061
|
+
'notefileID': notefileID,
|
|
1062
|
+
'noteID': noteID
|
|
1012
1063
|
};
|
|
1013
1064
|
var queryParams = {};
|
|
1014
1065
|
var headerParams = {};
|
|
1015
1066
|
var formParams = {};
|
|
1016
|
-
var authNames = [
|
|
1017
|
-
var contentTypes = [
|
|
1018
|
-
var accepts = [
|
|
1067
|
+
var authNames = ['api_key'];
|
|
1068
|
+
var contentTypes = ['application/json'];
|
|
1069
|
+
var accepts = ['application/json'];
|
|
1019
1070
|
var returnType = null;
|
|
1020
|
-
return this.apiClient.callApi(
|
|
1071
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1021
1072
|
}
|
|
1022
1073
|
|
|
1023
1074
|
/**
|
|
1024
1075
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1025
|
-
* @param {String} projectUID
|
|
1026
|
-
* @param {String} deviceUID
|
|
1027
|
-
* @param {String} notefileID
|
|
1028
|
-
* @param {String} noteID
|
|
1076
|
+
* @param {String} projectUID
|
|
1077
|
+
* @param {String} deviceUID
|
|
1078
|
+
* @param {String} notefileID
|
|
1079
|
+
* @param {String} noteID
|
|
1029
1080
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1030
1081
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1031
1082
|
*/
|
|
@@ -1039,10 +1090,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1039
1090
|
|
|
1040
1091
|
/**
|
|
1041
1092
|
* Delete a note from a DB notefile
|
|
1042
|
-
* @param {String} projectUID
|
|
1043
|
-
* @param {String} deviceUID
|
|
1044
|
-
* @param {String} notefileID
|
|
1045
|
-
* @param {String} noteID
|
|
1093
|
+
* @param {String} projectUID
|
|
1094
|
+
* @param {String} deviceUID
|
|
1095
|
+
* @param {String} notefileID
|
|
1096
|
+
* @param {String} noteID
|
|
1046
1097
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1047
1098
|
*/
|
|
1048
1099
|
}, {
|
|
@@ -1066,27 +1117,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1066
1117
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
|
|
1067
1118
|
}
|
|
1068
1119
|
var pathParams = {
|
|
1069
|
-
projectUID: projectUID,
|
|
1070
|
-
deviceUID: deviceUID,
|
|
1071
|
-
notefileID: notefileID,
|
|
1072
|
-
noteID: noteID
|
|
1120
|
+
'projectUID': projectUID,
|
|
1121
|
+
'deviceUID': deviceUID,
|
|
1122
|
+
'notefileID': notefileID,
|
|
1123
|
+
'noteID': noteID
|
|
1073
1124
|
};
|
|
1074
1125
|
var queryParams = {};
|
|
1075
1126
|
var headerParams = {};
|
|
1076
1127
|
var formParams = {};
|
|
1077
|
-
var authNames = [
|
|
1128
|
+
var authNames = ['api_key'];
|
|
1078
1129
|
var contentTypes = [];
|
|
1079
|
-
var accepts = [
|
|
1130
|
+
var accepts = ['application/json'];
|
|
1080
1131
|
var returnType = null;
|
|
1081
|
-
return this.apiClient.callApi(
|
|
1132
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1082
1133
|
}
|
|
1083
1134
|
|
|
1084
1135
|
/**
|
|
1085
1136
|
* Delete a note from a DB notefile
|
|
1086
|
-
* @param {String} projectUID
|
|
1087
|
-
* @param {String} deviceUID
|
|
1088
|
-
* @param {String} notefileID
|
|
1089
|
-
* @param {String} noteID
|
|
1137
|
+
* @param {String} projectUID
|
|
1138
|
+
* @param {String} deviceUID
|
|
1139
|
+
* @param {String} notefileID
|
|
1140
|
+
* @param {String} noteID
|
|
1090
1141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1091
1142
|
*/
|
|
1092
1143
|
}, {
|
|
@@ -1099,10 +1150,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1099
1150
|
|
|
1100
1151
|
/**
|
|
1101
1152
|
* Get a note from a DB notefile
|
|
1102
|
-
* @param {String} projectUID
|
|
1103
|
-
* @param {String} deviceUID
|
|
1104
|
-
* @param {String} notefileID
|
|
1105
|
-
* @param {String} noteID
|
|
1153
|
+
* @param {String} projectUID
|
|
1154
|
+
* @param {String} deviceUID
|
|
1155
|
+
* @param {String} notefileID
|
|
1156
|
+
* @param {String} noteID
|
|
1106
1157
|
* @param {Object} opts Optional parameters
|
|
1107
1158
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1108
1159
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1130,30 +1181,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1130
1181
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
|
|
1131
1182
|
}
|
|
1132
1183
|
var pathParams = {
|
|
1133
|
-
projectUID: projectUID,
|
|
1134
|
-
deviceUID: deviceUID,
|
|
1135
|
-
notefileID: notefileID,
|
|
1136
|
-
noteID: noteID
|
|
1184
|
+
'projectUID': projectUID,
|
|
1185
|
+
'deviceUID': deviceUID,
|
|
1186
|
+
'notefileID': notefileID,
|
|
1187
|
+
'noteID': noteID
|
|
1137
1188
|
};
|
|
1138
1189
|
var queryParams = {
|
|
1139
|
-
|
|
1140
|
-
deleted: opts[
|
|
1190
|
+
'delete': opts['_delete'],
|
|
1191
|
+
'deleted': opts['deleted']
|
|
1141
1192
|
};
|
|
1142
1193
|
var headerParams = {};
|
|
1143
1194
|
var formParams = {};
|
|
1144
|
-
var authNames = [
|
|
1195
|
+
var authNames = ['api_key'];
|
|
1145
1196
|
var contentTypes = [];
|
|
1146
|
-
var accepts = [
|
|
1197
|
+
var accepts = ['application/json'];
|
|
1147
1198
|
var returnType = _HandleNoteGet200Response["default"];
|
|
1148
|
-
return this.apiClient.callApi(
|
|
1199
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1149
1200
|
}
|
|
1150
1201
|
|
|
1151
1202
|
/**
|
|
1152
1203
|
* Get a note from a DB notefile
|
|
1153
|
-
* @param {String} projectUID
|
|
1154
|
-
* @param {String} deviceUID
|
|
1155
|
-
* @param {String} notefileID
|
|
1156
|
-
* @param {String} noteID
|
|
1204
|
+
* @param {String} projectUID
|
|
1205
|
+
* @param {String} deviceUID
|
|
1206
|
+
* @param {String} notefileID
|
|
1207
|
+
* @param {String} noteID
|
|
1157
1208
|
* @param {Object} opts Optional parameters
|
|
1158
1209
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1159
1210
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1169,8 +1220,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1169
1220
|
|
|
1170
1221
|
/**
|
|
1171
1222
|
* Send a signal from Notehub to a Notecard.
|
|
1172
|
-
* @param {String} projectUID
|
|
1173
|
-
* @param {String} deviceUID
|
|
1223
|
+
* @param {String} projectUID
|
|
1224
|
+
* @param {String} deviceUID
|
|
1174
1225
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1175
1226
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
|
|
1176
1227
|
*/
|
|
@@ -1191,23 +1242,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1191
1242
|
throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
|
|
1192
1243
|
}
|
|
1193
1244
|
var pathParams = {
|
|
1194
|
-
projectUID: projectUID,
|
|
1195
|
-
deviceUID: deviceUID
|
|
1245
|
+
'projectUID': projectUID,
|
|
1246
|
+
'deviceUID': deviceUID
|
|
1196
1247
|
};
|
|
1197
1248
|
var queryParams = {};
|
|
1198
1249
|
var headerParams = {};
|
|
1199
1250
|
var formParams = {};
|
|
1200
|
-
var authNames = [
|
|
1201
|
-
var contentTypes = [
|
|
1202
|
-
var accepts = [
|
|
1251
|
+
var authNames = ['api_key'];
|
|
1252
|
+
var contentTypes = ['application/json'];
|
|
1253
|
+
var accepts = ['application/json'];
|
|
1203
1254
|
var returnType = _HandleNoteSignal200Response["default"];
|
|
1204
|
-
return this.apiClient.callApi(
|
|
1255
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1205
1256
|
}
|
|
1206
1257
|
|
|
1207
1258
|
/**
|
|
1208
1259
|
* Send a signal from Notehub to a Notecard.
|
|
1209
|
-
* @param {String} projectUID
|
|
1210
|
-
* @param {String} deviceUID
|
|
1260
|
+
* @param {String} projectUID
|
|
1261
|
+
* @param {String} deviceUID
|
|
1211
1262
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1212
1263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
|
|
1213
1264
|
*/
|
|
@@ -1221,10 +1272,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1221
1272
|
|
|
1222
1273
|
/**
|
|
1223
1274
|
* Update a note in a DB notefile
|
|
1224
|
-
* @param {String} projectUID
|
|
1225
|
-
* @param {String} deviceUID
|
|
1226
|
-
* @param {String} notefileID
|
|
1227
|
-
* @param {String} noteID
|
|
1275
|
+
* @param {String} projectUID
|
|
1276
|
+
* @param {String} deviceUID
|
|
1277
|
+
* @param {String} notefileID
|
|
1278
|
+
* @param {String} noteID
|
|
1228
1279
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1229
1280
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1230
1281
|
*/
|
|
@@ -1253,27 +1304,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1253
1304
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
|
|
1254
1305
|
}
|
|
1255
1306
|
var pathParams = {
|
|
1256
|
-
projectUID: projectUID,
|
|
1257
|
-
deviceUID: deviceUID,
|
|
1258
|
-
notefileID: notefileID,
|
|
1259
|
-
noteID: noteID
|
|
1307
|
+
'projectUID': projectUID,
|
|
1308
|
+
'deviceUID': deviceUID,
|
|
1309
|
+
'notefileID': notefileID,
|
|
1310
|
+
'noteID': noteID
|
|
1260
1311
|
};
|
|
1261
1312
|
var queryParams = {};
|
|
1262
1313
|
var headerParams = {};
|
|
1263
1314
|
var formParams = {};
|
|
1264
|
-
var authNames = [
|
|
1265
|
-
var contentTypes = [
|
|
1266
|
-
var accepts = [
|
|
1315
|
+
var authNames = ['api_key'];
|
|
1316
|
+
var contentTypes = ['application/json'];
|
|
1317
|
+
var accepts = ['application/json'];
|
|
1267
1318
|
var returnType = null;
|
|
1268
|
-
return this.apiClient.callApi(
|
|
1319
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1269
1320
|
}
|
|
1270
1321
|
|
|
1271
1322
|
/**
|
|
1272
1323
|
* Update a note in a DB notefile
|
|
1273
|
-
* @param {String} projectUID
|
|
1274
|
-
* @param {String} deviceUID
|
|
1275
|
-
* @param {String} notefileID
|
|
1276
|
-
* @param {String} noteID
|
|
1324
|
+
* @param {String} projectUID
|
|
1325
|
+
* @param {String} deviceUID
|
|
1326
|
+
* @param {String} notefileID
|
|
1327
|
+
* @param {String} noteID
|
|
1277
1328
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1278
1329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1279
1330
|
*/
|
|
@@ -1287,8 +1338,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1287
1338
|
|
|
1288
1339
|
/**
|
|
1289
1340
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1290
|
-
* @param {String} projectUID
|
|
1291
|
-
* @param {String} deviceUID
|
|
1341
|
+
* @param {String} projectUID
|
|
1342
|
+
* @param {String} deviceUID
|
|
1292
1343
|
* @param {Object} opts Optional parameters
|
|
1293
1344
|
* @param {String} opts.tracker The change tracker ID.
|
|
1294
1345
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1308,26 +1359,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1308
1359
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
|
|
1309
1360
|
}
|
|
1310
1361
|
var pathParams = {
|
|
1311
|
-
projectUID: projectUID,
|
|
1312
|
-
deviceUID: deviceUID
|
|
1362
|
+
'projectUID': projectUID,
|
|
1363
|
+
'deviceUID': deviceUID
|
|
1313
1364
|
};
|
|
1314
1365
|
var queryParams = {
|
|
1315
|
-
tracker: opts[
|
|
1316
|
-
files: this.apiClient.buildCollectionParam(opts[
|
|
1366
|
+
'tracker': opts['tracker'],
|
|
1367
|
+
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
|
|
1317
1368
|
};
|
|
1318
1369
|
var headerParams = {};
|
|
1319
1370
|
var formParams = {};
|
|
1320
|
-
var authNames = [
|
|
1371
|
+
var authNames = ['api_key'];
|
|
1321
1372
|
var contentTypes = [];
|
|
1322
|
-
var accepts = [
|
|
1373
|
+
var accepts = ['application/json'];
|
|
1323
1374
|
var returnType = _HandleNotefileChanges200Response["default"];
|
|
1324
|
-
return this.apiClient.callApi(
|
|
1375
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1325
1376
|
}
|
|
1326
1377
|
|
|
1327
1378
|
/**
|
|
1328
1379
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1329
|
-
* @param {String} projectUID
|
|
1330
|
-
* @param {String} deviceUID
|
|
1380
|
+
* @param {String} projectUID
|
|
1381
|
+
* @param {String} deviceUID
|
|
1331
1382
|
* @param {Object} opts Optional parameters
|
|
1332
1383
|
* @param {String} opts.tracker The change tracker ID.
|
|
1333
1384
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1343,8 +1394,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1343
1394
|
|
|
1344
1395
|
/**
|
|
1345
1396
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1346
|
-
* @param {String} projectUID
|
|
1347
|
-
* @param {String} deviceUID
|
|
1397
|
+
* @param {String} projectUID
|
|
1398
|
+
* @param {String} deviceUID
|
|
1348
1399
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
|
|
1349
1400
|
*/
|
|
1350
1401
|
}, {
|
|
@@ -1360,23 +1411,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1360
1411
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
|
|
1361
1412
|
}
|
|
1362
1413
|
var pathParams = {
|
|
1363
|
-
projectUID: projectUID,
|
|
1364
|
-
deviceUID: deviceUID
|
|
1414
|
+
'projectUID': projectUID,
|
|
1415
|
+
'deviceUID': deviceUID
|
|
1365
1416
|
};
|
|
1366
1417
|
var queryParams = {};
|
|
1367
1418
|
var headerParams = {};
|
|
1368
1419
|
var formParams = {};
|
|
1369
|
-
var authNames = [
|
|
1420
|
+
var authNames = ['api_key'];
|
|
1370
1421
|
var contentTypes = [];
|
|
1371
|
-
var accepts = [
|
|
1422
|
+
var accepts = ['application/json'];
|
|
1372
1423
|
var returnType = _HandleNotefileChangesPending200Response["default"];
|
|
1373
|
-
return this.apiClient.callApi(
|
|
1424
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1374
1425
|
}
|
|
1375
1426
|
|
|
1376
1427
|
/**
|
|
1377
1428
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1378
|
-
* @param {String} projectUID
|
|
1379
|
-
* @param {String} deviceUID
|
|
1429
|
+
* @param {String} projectUID
|
|
1430
|
+
* @param {String} deviceUID
|
|
1380
1431
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
|
|
1381
1432
|
*/
|
|
1382
1433
|
}, {
|
|
@@ -1389,9 +1440,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1389
1440
|
|
|
1390
1441
|
/**
|
|
1391
1442
|
* Deletes Notefiles and the Notes they contain.
|
|
1392
|
-
* @param {String} projectUID
|
|
1393
|
-
* @param {String} deviceUID
|
|
1394
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1443
|
+
* @param {String} projectUID
|
|
1444
|
+
* @param {String} deviceUID
|
|
1445
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1395
1446
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1396
1447
|
*/
|
|
1397
1448
|
}, {
|
|
@@ -1411,24 +1462,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1411
1462
|
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
1412
1463
|
}
|
|
1413
1464
|
var pathParams = {
|
|
1414
|
-
projectUID: projectUID,
|
|
1415
|
-
deviceUID: deviceUID
|
|
1465
|
+
'projectUID': projectUID,
|
|
1466
|
+
'deviceUID': deviceUID
|
|
1416
1467
|
};
|
|
1417
1468
|
var queryParams = {};
|
|
1418
1469
|
var headerParams = {};
|
|
1419
1470
|
var formParams = {};
|
|
1420
|
-
var authNames = [
|
|
1421
|
-
var contentTypes = [
|
|
1422
|
-
var accepts = [
|
|
1471
|
+
var authNames = ['api_key'];
|
|
1472
|
+
var contentTypes = ['application/json'];
|
|
1473
|
+
var accepts = ['application/json'];
|
|
1423
1474
|
var returnType = null;
|
|
1424
|
-
return this.apiClient.callApi(
|
|
1475
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1425
1476
|
}
|
|
1426
1477
|
|
|
1427
1478
|
/**
|
|
1428
1479
|
* Deletes Notefiles and the Notes they contain.
|
|
1429
|
-
* @param {String} projectUID
|
|
1430
|
-
* @param {String} deviceUID
|
|
1431
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1480
|
+
* @param {String} projectUID
|
|
1481
|
+
* @param {String} deviceUID
|
|
1482
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1432
1483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1433
1484
|
*/
|
|
1434
1485
|
}, {
|
|
@@ -1441,8 +1492,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1441
1492
|
|
|
1442
1493
|
/**
|
|
1443
1494
|
* Provision Device for a Project
|
|
1444
|
-
* @param {String} projectUID
|
|
1445
|
-
* @param {String} deviceUID
|
|
1495
|
+
* @param {String} projectUID
|
|
1496
|
+
* @param {String} deviceUID
|
|
1446
1497
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1447
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1448
1499
|
*/
|
|
@@ -1463,23 +1514,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1463
1514
|
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
1464
1515
|
}
|
|
1465
1516
|
var pathParams = {
|
|
1466
|
-
projectUID: projectUID,
|
|
1467
|
-
deviceUID: deviceUID
|
|
1517
|
+
'projectUID': projectUID,
|
|
1518
|
+
'deviceUID': deviceUID
|
|
1468
1519
|
};
|
|
1469
1520
|
var queryParams = {};
|
|
1470
1521
|
var headerParams = {};
|
|
1471
1522
|
var formParams = {};
|
|
1472
|
-
var authNames = [
|
|
1473
|
-
var contentTypes = [
|
|
1474
|
-
var accepts = [
|
|
1523
|
+
var authNames = ['api_key'];
|
|
1524
|
+
var contentTypes = ['application/json'];
|
|
1525
|
+
var accepts = ['application/json'];
|
|
1475
1526
|
var returnType = Object;
|
|
1476
|
-
return this.apiClient.callApi(
|
|
1527
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1477
1528
|
}
|
|
1478
1529
|
|
|
1479
1530
|
/**
|
|
1480
1531
|
* Provision Device for a Project
|
|
1481
|
-
* @param {String} projectUID
|
|
1482
|
-
* @param {String} deviceUID
|
|
1532
|
+
* @param {String} projectUID
|
|
1533
|
+
* @param {String} deviceUID
|
|
1483
1534
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1484
1535
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1485
1536
|
*/
|
|
@@ -1493,8 +1544,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1493
1544
|
|
|
1494
1545
|
/**
|
|
1495
1546
|
* Put environment variables of a device
|
|
1496
|
-
* @param {String} projectUID
|
|
1497
|
-
* @param {String} deviceUID
|
|
1547
|
+
* @param {String} projectUID
|
|
1548
|
+
* @param {String} deviceUID
|
|
1498
1549
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1499
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1500
1551
|
*/
|
|
@@ -1515,23 +1566,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1515
1566
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
1516
1567
|
}
|
|
1517
1568
|
var pathParams = {
|
|
1518
|
-
projectUID: projectUID,
|
|
1519
|
-
deviceUID: deviceUID
|
|
1569
|
+
'projectUID': projectUID,
|
|
1570
|
+
'deviceUID': deviceUID
|
|
1520
1571
|
};
|
|
1521
1572
|
var queryParams = {};
|
|
1522
1573
|
var headerParams = {};
|
|
1523
1574
|
var formParams = {};
|
|
1524
|
-
var authNames = [
|
|
1525
|
-
var contentTypes = [
|
|
1526
|
-
var accepts = [
|
|
1575
|
+
var authNames = ['api_key'];
|
|
1576
|
+
var contentTypes = ['application/json'];
|
|
1577
|
+
var accepts = ['application/json'];
|
|
1527
1578
|
var returnType = _EnvironmentVariables["default"];
|
|
1528
|
-
return this.apiClient.callApi(
|
|
1579
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1529
1580
|
}
|
|
1530
1581
|
|
|
1531
1582
|
/**
|
|
1532
1583
|
* Put environment variables of a device
|
|
1533
|
-
* @param {String} projectUID
|
|
1534
|
-
* @param {String} deviceUID
|
|
1584
|
+
* @param {String} projectUID
|
|
1585
|
+
* @param {String} deviceUID
|
|
1535
1586
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1536
1587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1537
1588
|
*/
|
|
@@ -1545,8 +1596,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1545
1596
|
|
|
1546
1597
|
/**
|
|
1547
1598
|
* Put environment variables of a device with device pin authorization
|
|
1548
|
-
* @param {String} productUID
|
|
1549
|
-
* @param {String} deviceUID
|
|
1599
|
+
* @param {String} productUID
|
|
1600
|
+
* @param {String} deviceUID
|
|
1550
1601
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1551
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1552
1603
|
*/
|
|
@@ -1567,23 +1618,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1567
1618
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
1568
1619
|
}
|
|
1569
1620
|
var pathParams = {
|
|
1570
|
-
productUID: productUID,
|
|
1571
|
-
deviceUID: deviceUID
|
|
1621
|
+
'productUID': productUID,
|
|
1622
|
+
'deviceUID': deviceUID
|
|
1572
1623
|
};
|
|
1573
1624
|
var queryParams = {};
|
|
1574
1625
|
var headerParams = {};
|
|
1575
1626
|
var formParams = {};
|
|
1576
|
-
var authNames = [
|
|
1577
|
-
var contentTypes = [
|
|
1578
|
-
var accepts = [
|
|
1627
|
+
var authNames = ['pin'];
|
|
1628
|
+
var contentTypes = ['application/json'];
|
|
1629
|
+
var accepts = ['application/json'];
|
|
1579
1630
|
var returnType = _EnvironmentVariables["default"];
|
|
1580
|
-
return this.apiClient.callApi(
|
|
1631
|
+
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1581
1632
|
}
|
|
1582
1633
|
|
|
1583
1634
|
/**
|
|
1584
1635
|
* Put environment variables of a device with device pin authorization
|
|
1585
|
-
* @param {String} productUID
|
|
1586
|
-
* @param {String} deviceUID
|
|
1636
|
+
* @param {String} productUID
|
|
1637
|
+
* @param {String} deviceUID
|
|
1587
1638
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1588
1639
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1589
1640
|
*/
|