@blues-inc/notehub-js 2.1.0-beta.9 → 2.2.0
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 +238 -246
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +374 -374
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +50 -41
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/AwsFilter.js +19 -19
- package/dist/model/AwsTransform.js +20 -20
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +101 -102
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +53 -43
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackTransform.js +12 -12
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +38 -28
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +35 -36
- package/dist/model/UsageSessionsData.js +38 -28
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/api/DeviceApi.js
CHANGED
|
@@ -34,7 +34,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
34
34
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
35
35
|
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); } /**
|
|
36
36
|
* Notehub API
|
|
37
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
37
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
38
38
|
*
|
|
39
39
|
* The version of the OpenAPI document: 1.2.0
|
|
40
40
|
* Contact: engineering@blues.io
|
|
@@ -45,18 +45,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
*
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
|
-
* Device service.
|
|
49
|
-
* @module api/DeviceApi
|
|
50
|
-
* @version 2.
|
|
51
|
-
*/
|
|
48
|
+
* Device service.
|
|
49
|
+
* @module api/DeviceApi
|
|
50
|
+
* @version 2.2.0
|
|
51
|
+
*/
|
|
52
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
53
53
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
* Constructs a new DeviceApi.
|
|
55
|
+
* @alias module:api/DeviceApi
|
|
56
|
+
* @class
|
|
57
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
58
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
59
|
+
*/
|
|
60
60
|
function DeviceApi(apiClient) {
|
|
61
61
|
_classCallCheck(this, DeviceApi);
|
|
62
62
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -64,8 +64,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Delete environment variable of a device
|
|
67
|
-
* @param {String} projectOrProductUID
|
|
68
|
-
* @param {String} deviceUID
|
|
67
|
+
* @param {String} projectOrProductUID
|
|
68
|
+
* @param {String} deviceUID
|
|
69
69
|
* @param {String} key The environment variable key to delete.
|
|
70
70
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
71
71
|
*/
|
|
@@ -86,24 +86,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
86
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
87
87
|
}
|
|
88
88
|
var pathParams = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
projectOrProductUID: projectOrProductUID,
|
|
90
|
+
deviceUID: deviceUID,
|
|
91
|
+
key: key
|
|
92
92
|
};
|
|
93
93
|
var queryParams = {};
|
|
94
94
|
var headerParams = {};
|
|
95
95
|
var formParams = {};
|
|
96
|
-
var authNames = [
|
|
96
|
+
var authNames = ["personalAccessToken"];
|
|
97
97
|
var contentTypes = [];
|
|
98
|
-
var accepts = [
|
|
98
|
+
var accepts = ["application/json"];
|
|
99
99
|
var returnType = _EnvironmentVariables["default"];
|
|
100
|
-
return this.apiClient.callApi(
|
|
100
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Delete environment variable of a device
|
|
105
|
-
* @param {String} projectOrProductUID
|
|
106
|
-
* @param {String} deviceUID
|
|
105
|
+
* @param {String} projectOrProductUID
|
|
106
|
+
* @param {String} deviceUID
|
|
107
107
|
* @param {String} key The environment variable key to delete.
|
|
108
108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
109
109
|
*/
|
|
@@ -117,9 +117,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Delete Device
|
|
120
|
-
* @param {String} projectOrProductUID
|
|
121
|
-
* @param {String} deviceUID
|
|
122
|
-
* @param {Boolean} purge
|
|
120
|
+
* @param {String} projectOrProductUID
|
|
121
|
+
* @param {String} deviceUID
|
|
122
|
+
* @param {Boolean} purge
|
|
123
123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
124
124
|
*/
|
|
125
125
|
}, {
|
|
@@ -139,26 +139,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
139
139
|
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
140
140
|
}
|
|
141
141
|
var pathParams = {
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
projectOrProductUID: projectOrProductUID,
|
|
143
|
+
deviceUID: deviceUID
|
|
144
144
|
};
|
|
145
145
|
var queryParams = {
|
|
146
|
-
|
|
146
|
+
purge: purge
|
|
147
147
|
};
|
|
148
148
|
var headerParams = {};
|
|
149
149
|
var formParams = {};
|
|
150
|
-
var authNames = [
|
|
150
|
+
var authNames = ["personalAccessToken"];
|
|
151
151
|
var contentTypes = [];
|
|
152
|
-
var accepts = [
|
|
152
|
+
var accepts = ["application/json"];
|
|
153
153
|
var returnType = null;
|
|
154
|
-
return this.apiClient.callApi(
|
|
154
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Delete Device
|
|
159
|
-
* @param {String} projectOrProductUID
|
|
160
|
-
* @param {String} deviceUID
|
|
161
|
-
* @param {Boolean} purge
|
|
159
|
+
* @param {String} projectOrProductUID
|
|
160
|
+
* @param {String} deviceUID
|
|
161
|
+
* @param {Boolean} purge
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
163
163
|
*/
|
|
164
164
|
}, {
|
|
@@ -171,8 +171,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Disable Device
|
|
174
|
-
* @param {String} projectOrProductUID
|
|
175
|
-
* @param {String} deviceUID
|
|
174
|
+
* @param {String} projectOrProductUID
|
|
175
|
+
* @param {String} deviceUID
|
|
176
176
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
177
177
|
*/
|
|
178
178
|
}, {
|
|
@@ -188,23 +188,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
188
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
189
189
|
}
|
|
190
190
|
var pathParams = {
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
projectOrProductUID: projectOrProductUID,
|
|
192
|
+
deviceUID: deviceUID
|
|
193
193
|
};
|
|
194
194
|
var queryParams = {};
|
|
195
195
|
var headerParams = {};
|
|
196
196
|
var formParams = {};
|
|
197
|
-
var authNames = [
|
|
197
|
+
var authNames = ["personalAccessToken"];
|
|
198
198
|
var contentTypes = [];
|
|
199
|
-
var accepts = [
|
|
199
|
+
var accepts = ["application/json"];
|
|
200
200
|
var returnType = null;
|
|
201
|
-
return this.apiClient.callApi(
|
|
201
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Disable Device
|
|
206
|
-
* @param {String} projectOrProductUID
|
|
207
|
-
* @param {String} deviceUID
|
|
206
|
+
* @param {String} projectOrProductUID
|
|
207
|
+
* @param {String} deviceUID
|
|
208
208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
209
209
|
*/
|
|
210
210
|
}, {
|
|
@@ -217,8 +217,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
219
|
* Disable Connectivity Assurance
|
|
220
|
-
* @param {String} projectOrProductUID
|
|
221
|
-
* @param {String} deviceUID
|
|
220
|
+
* @param {String} projectOrProductUID
|
|
221
|
+
* @param {String} deviceUID
|
|
222
222
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
223
223
|
*/
|
|
224
224
|
}, {
|
|
@@ -234,23 +234,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
234
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
235
235
|
}
|
|
236
236
|
var pathParams = {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
projectOrProductUID: projectOrProductUID,
|
|
238
|
+
deviceUID: deviceUID
|
|
239
239
|
};
|
|
240
240
|
var queryParams = {};
|
|
241
241
|
var headerParams = {};
|
|
242
242
|
var formParams = {};
|
|
243
|
-
var authNames = [
|
|
243
|
+
var authNames = ["personalAccessToken"];
|
|
244
244
|
var contentTypes = [];
|
|
245
|
-
var accepts = [
|
|
245
|
+
var accepts = ["application/json"];
|
|
246
246
|
var returnType = null;
|
|
247
|
-
return this.apiClient.callApi(
|
|
247
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* Disable Connectivity Assurance
|
|
252
|
-
* @param {String} projectOrProductUID
|
|
253
|
-
* @param {String} deviceUID
|
|
252
|
+
* @param {String} projectOrProductUID
|
|
253
|
+
* @param {String} deviceUID
|
|
254
254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
255
255
|
*/
|
|
256
256
|
}, {
|
|
@@ -263,8 +263,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
265
|
* Enable Device
|
|
266
|
-
* @param {String} projectOrProductUID
|
|
267
|
-
* @param {String} deviceUID
|
|
266
|
+
* @param {String} projectOrProductUID
|
|
267
|
+
* @param {String} deviceUID
|
|
268
268
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
269
269
|
*/
|
|
270
270
|
}, {
|
|
@@ -280,23 +280,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
280
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
281
281
|
}
|
|
282
282
|
var pathParams = {
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
projectOrProductUID: projectOrProductUID,
|
|
284
|
+
deviceUID: deviceUID
|
|
285
285
|
};
|
|
286
286
|
var queryParams = {};
|
|
287
287
|
var headerParams = {};
|
|
288
288
|
var formParams = {};
|
|
289
|
-
var authNames = [
|
|
289
|
+
var authNames = ["personalAccessToken"];
|
|
290
290
|
var contentTypes = [];
|
|
291
|
-
var accepts = [
|
|
291
|
+
var accepts = ["application/json"];
|
|
292
292
|
var returnType = null;
|
|
293
|
-
return this.apiClient.callApi(
|
|
293
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* Enable Device
|
|
298
|
-
* @param {String} projectOrProductUID
|
|
299
|
-
* @param {String} deviceUID
|
|
298
|
+
* @param {String} projectOrProductUID
|
|
299
|
+
* @param {String} deviceUID
|
|
300
300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
301
301
|
*/
|
|
302
302
|
}, {
|
|
@@ -309,8 +309,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* Enable Connectivity Assurance
|
|
312
|
-
* @param {String} projectOrProductUID
|
|
313
|
-
* @param {String} deviceUID
|
|
312
|
+
* @param {String} projectOrProductUID
|
|
313
|
+
* @param {String} deviceUID
|
|
314
314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
315
315
|
*/
|
|
316
316
|
}, {
|
|
@@ -326,23 +326,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
326
326
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
327
327
|
}
|
|
328
328
|
var pathParams = {
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
projectOrProductUID: projectOrProductUID,
|
|
330
|
+
deviceUID: deviceUID
|
|
331
331
|
};
|
|
332
332
|
var queryParams = {};
|
|
333
333
|
var headerParams = {};
|
|
334
334
|
var formParams = {};
|
|
335
|
-
var authNames = [
|
|
335
|
+
var authNames = ["personalAccessToken"];
|
|
336
336
|
var contentTypes = [];
|
|
337
|
-
var accepts = [
|
|
337
|
+
var accepts = ["application/json"];
|
|
338
338
|
var returnType = null;
|
|
339
|
-
return this.apiClient.callApi(
|
|
339
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
343
|
* Enable Connectivity Assurance
|
|
344
|
-
* @param {String} projectOrProductUID
|
|
345
|
-
* @param {String} deviceUID
|
|
344
|
+
* @param {String} projectOrProductUID
|
|
345
|
+
* @param {String} deviceUID
|
|
346
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
347
347
|
*/
|
|
348
348
|
}, {
|
|
@@ -355,8 +355,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* Get Device
|
|
358
|
-
* @param {String} projectOrProductUID
|
|
359
|
-
* @param {String} deviceUID
|
|
358
|
+
* @param {String} projectOrProductUID
|
|
359
|
+
* @param {String} deviceUID
|
|
360
360
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
361
361
|
*/
|
|
362
362
|
}, {
|
|
@@ -372,23 +372,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
372
372
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
373
373
|
}
|
|
374
374
|
var pathParams = {
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
projectOrProductUID: projectOrProductUID,
|
|
376
|
+
deviceUID: deviceUID
|
|
377
377
|
};
|
|
378
378
|
var queryParams = {};
|
|
379
379
|
var headerParams = {};
|
|
380
380
|
var formParams = {};
|
|
381
|
-
var authNames = [
|
|
381
|
+
var authNames = ["personalAccessToken"];
|
|
382
382
|
var contentTypes = [];
|
|
383
|
-
var accepts = [
|
|
383
|
+
var accepts = ["application/json"];
|
|
384
384
|
var returnType = _Device["default"];
|
|
385
|
-
return this.apiClient.callApi(
|
|
385
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* Get Device
|
|
390
|
-
* @param {String} projectOrProductUID
|
|
391
|
-
* @param {String} deviceUID
|
|
390
|
+
* @param {String} projectOrProductUID
|
|
391
|
+
* @param {String} deviceUID
|
|
392
392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
393
393
|
*/
|
|
394
394
|
}, {
|
|
@@ -401,8 +401,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
403
|
* Get environment variable hierarchy for a device
|
|
404
|
-
* @param {String} projectOrProductUID
|
|
405
|
-
* @param {String} deviceUID
|
|
404
|
+
* @param {String} projectOrProductUID
|
|
405
|
+
* @param {String} deviceUID
|
|
406
406
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
407
407
|
*/
|
|
408
408
|
}, {
|
|
@@ -418,23 +418,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
418
418
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
419
419
|
}
|
|
420
420
|
var pathParams = {
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
projectOrProductUID: projectOrProductUID,
|
|
422
|
+
deviceUID: deviceUID
|
|
423
423
|
};
|
|
424
424
|
var queryParams = {};
|
|
425
425
|
var headerParams = {};
|
|
426
426
|
var formParams = {};
|
|
427
|
-
var authNames = [
|
|
427
|
+
var authNames = ["personalAccessToken"];
|
|
428
428
|
var contentTypes = [];
|
|
429
|
-
var accepts = [
|
|
429
|
+
var accepts = ["application/json"];
|
|
430
430
|
var returnType = _EnvTreeJsonNode["default"];
|
|
431
|
-
return this.apiClient.callApi(
|
|
431
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* Get environment variable hierarchy for a device
|
|
436
|
-
* @param {String} projectOrProductUID
|
|
437
|
-
* @param {String} deviceUID
|
|
436
|
+
* @param {String} projectOrProductUID
|
|
437
|
+
* @param {String} deviceUID
|
|
438
438
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
439
439
|
*/
|
|
440
440
|
}, {
|
|
@@ -447,8 +447,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
447
|
|
|
448
448
|
/**
|
|
449
449
|
* Get environment variables of a device
|
|
450
|
-
* @param {String} projectOrProductUID
|
|
451
|
-
* @param {String} deviceUID
|
|
450
|
+
* @param {String} projectOrProductUID
|
|
451
|
+
* @param {String} deviceUID
|
|
452
452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
453
453
|
*/
|
|
454
454
|
}, {
|
|
@@ -464,23 +464,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
464
464
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
465
465
|
}
|
|
466
466
|
var pathParams = {
|
|
467
|
-
|
|
468
|
-
|
|
467
|
+
projectOrProductUID: projectOrProductUID,
|
|
468
|
+
deviceUID: deviceUID
|
|
469
469
|
};
|
|
470
470
|
var queryParams = {};
|
|
471
471
|
var headerParams = {};
|
|
472
472
|
var formParams = {};
|
|
473
|
-
var authNames = [
|
|
473
|
+
var authNames = ["personalAccessToken"];
|
|
474
474
|
var contentTypes = [];
|
|
475
|
-
var accepts = [
|
|
475
|
+
var accepts = ["application/json"];
|
|
476
476
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
477
|
-
return this.apiClient.callApi(
|
|
477
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Get environment variables of a device
|
|
482
|
-
* @param {String} projectOrProductUID
|
|
483
|
-
* @param {String} deviceUID
|
|
482
|
+
* @param {String} projectOrProductUID
|
|
483
|
+
* @param {String} deviceUID
|
|
484
484
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
485
485
|
*/
|
|
486
486
|
}, {
|
|
@@ -493,8 +493,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
495
|
* Get environment variables of a device with device pin authorization
|
|
496
|
-
* @param {String} productUID
|
|
497
|
-
* @param {String} deviceUID
|
|
496
|
+
* @param {String} productUID
|
|
497
|
+
* @param {String} deviceUID
|
|
498
498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
499
499
|
*/
|
|
500
500
|
}, {
|
|
@@ -510,23 +510,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
510
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
511
511
|
}
|
|
512
512
|
var pathParams = {
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
productUID: productUID,
|
|
514
|
+
deviceUID: deviceUID
|
|
515
515
|
};
|
|
516
516
|
var queryParams = {};
|
|
517
517
|
var headerParams = {};
|
|
518
518
|
var formParams = {};
|
|
519
|
-
var authNames = [
|
|
519
|
+
var authNames = ["pin"];
|
|
520
520
|
var contentTypes = [];
|
|
521
|
-
var accepts = [
|
|
521
|
+
var accepts = ["application/json"];
|
|
522
522
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
523
|
-
return this.apiClient.callApi(
|
|
523
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
527
|
* Get environment variables of a device with device pin authorization
|
|
528
|
-
* @param {String} productUID
|
|
529
|
-
* @param {String} deviceUID
|
|
528
|
+
* @param {String} productUID
|
|
529
|
+
* @param {String} deviceUID
|
|
530
530
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
531
531
|
*/
|
|
532
532
|
}, {
|
|
@@ -539,8 +539,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
541
|
* Get Device Health Log
|
|
542
|
-
* @param {String} projectOrProductUID
|
|
543
|
-
* @param {String} deviceUID
|
|
542
|
+
* @param {String} projectOrProductUID
|
|
543
|
+
* @param {String} deviceUID
|
|
544
544
|
* @param {Object} opts Optional parameters
|
|
545
545
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
546
546
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -561,27 +561,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
561
561
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
562
562
|
}
|
|
563
563
|
var pathParams = {
|
|
564
|
-
|
|
565
|
-
|
|
564
|
+
projectOrProductUID: projectOrProductUID,
|
|
565
|
+
deviceUID: deviceUID
|
|
566
566
|
};
|
|
567
567
|
var queryParams = {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
568
|
+
startDate: opts["startDate"],
|
|
569
|
+
endDate: opts["endDate"],
|
|
570
|
+
log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
|
|
571
571
|
};
|
|
572
572
|
var headerParams = {};
|
|
573
573
|
var formParams = {};
|
|
574
|
-
var authNames = [
|
|
574
|
+
var authNames = ["personalAccessToken"];
|
|
575
575
|
var contentTypes = [];
|
|
576
|
-
var accepts = [
|
|
576
|
+
var accepts = ["application/json"];
|
|
577
577
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
578
|
-
return this.apiClient.callApi(
|
|
578
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
/**
|
|
582
582
|
* Get Device Health Log
|
|
583
|
-
* @param {String} projectOrProductUID
|
|
584
|
-
* @param {String} deviceUID
|
|
583
|
+
* @param {String} projectOrProductUID
|
|
584
|
+
* @param {String} deviceUID
|
|
585
585
|
* @param {Object} opts Optional parameters
|
|
586
586
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
587
587
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -598,8 +598,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
600
|
* Get Device Latest Events
|
|
601
|
-
* @param {String} projectOrProductUID
|
|
602
|
-
* @param {String} deviceUID
|
|
601
|
+
* @param {String} projectOrProductUID
|
|
602
|
+
* @param {String} deviceUID
|
|
603
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
|
|
604
604
|
*/
|
|
605
605
|
}, {
|
|
@@ -615,23 +615,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
615
615
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
|
|
616
616
|
}
|
|
617
617
|
var pathParams = {
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
projectOrProductUID: projectOrProductUID,
|
|
619
|
+
deviceUID: deviceUID
|
|
620
620
|
};
|
|
621
621
|
var queryParams = {};
|
|
622
622
|
var headerParams = {};
|
|
623
623
|
var formParams = {};
|
|
624
|
-
var authNames = [
|
|
624
|
+
var authNames = ["personalAccessToken"];
|
|
625
625
|
var contentTypes = [];
|
|
626
|
-
var accepts = [
|
|
626
|
+
var accepts = ["application/json"];
|
|
627
627
|
var returnType = _GetDeviceLatest200Response["default"];
|
|
628
|
-
return this.apiClient.callApi(
|
|
628
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* Get Device Latest Events
|
|
633
|
-
* @param {String} projectOrProductUID
|
|
634
|
-
* @param {String} deviceUID
|
|
633
|
+
* @param {String} projectOrProductUID
|
|
634
|
+
* @param {String} deviceUID
|
|
635
635
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
|
|
636
636
|
*/
|
|
637
637
|
}, {
|
|
@@ -644,8 +644,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
644
644
|
|
|
645
645
|
/**
|
|
646
646
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
647
|
-
* @param {String} projectOrProductUID
|
|
648
|
-
* @param {String} deviceUID
|
|
647
|
+
* @param {String} projectOrProductUID
|
|
648
|
+
* @param {String} deviceUID
|
|
649
649
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
650
650
|
*/
|
|
651
651
|
}, {
|
|
@@ -661,23 +661,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
661
661
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
662
662
|
}
|
|
663
663
|
var pathParams = {
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
projectOrProductUID: projectOrProductUID,
|
|
665
|
+
deviceUID: deviceUID
|
|
666
666
|
};
|
|
667
667
|
var queryParams = {};
|
|
668
668
|
var headerParams = {};
|
|
669
669
|
var formParams = {};
|
|
670
|
-
var authNames = [];
|
|
670
|
+
var authNames = ["personalAccessToken"];
|
|
671
671
|
var contentTypes = [];
|
|
672
|
-
var accepts = [
|
|
672
|
+
var accepts = ["application/json"];
|
|
673
673
|
var returnType = _GetDevicePlans200Response["default"];
|
|
674
|
-
return this.apiClient.callApi(
|
|
674
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
/**
|
|
678
678
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
679
|
-
* @param {String} projectOrProductUID
|
|
680
|
-
* @param {String} deviceUID
|
|
679
|
+
* @param {String} projectOrProductUID
|
|
680
|
+
* @param {String} deviceUID
|
|
681
681
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
682
682
|
*/
|
|
683
683
|
}, {
|
|
@@ -690,8 +690,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
692
|
* Get Device Public Key
|
|
693
|
-
* @param {String} projectOrProductUID
|
|
694
|
-
* @param {String} deviceUID
|
|
693
|
+
* @param {String} projectOrProductUID
|
|
694
|
+
* @param {String} deviceUID
|
|
695
695
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
696
696
|
*/
|
|
697
697
|
}, {
|
|
@@ -707,23 +707,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
707
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
708
708
|
}
|
|
709
709
|
var pathParams = {
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
projectOrProductUID: projectOrProductUID,
|
|
711
|
+
deviceUID: deviceUID
|
|
712
712
|
};
|
|
713
713
|
var queryParams = {};
|
|
714
714
|
var headerParams = {};
|
|
715
715
|
var formParams = {};
|
|
716
|
-
var authNames = [
|
|
716
|
+
var authNames = ["personalAccessToken"];
|
|
717
717
|
var contentTypes = [];
|
|
718
|
-
var accepts = [
|
|
718
|
+
var accepts = ["application/json"];
|
|
719
719
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
720
|
-
return this.apiClient.callApi(
|
|
720
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
/**
|
|
724
724
|
* Get Device Public Key
|
|
725
|
-
* @param {String} projectOrProductUID
|
|
726
|
-
* @param {String} deviceUID
|
|
725
|
+
* @param {String} projectOrProductUID
|
|
726
|
+
* @param {String} deviceUID
|
|
727
727
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
728
728
|
*/
|
|
729
729
|
}, {
|
|
@@ -736,8 +736,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
736
736
|
|
|
737
737
|
/**
|
|
738
738
|
* Get Device Sessions
|
|
739
|
-
* @param {String} projectOrProductUID
|
|
740
|
-
* @param {String} deviceUID
|
|
739
|
+
* @param {String} projectOrProductUID
|
|
740
|
+
* @param {String} deviceUID
|
|
741
741
|
* @param {Object} opts Optional parameters
|
|
742
742
|
* @param {Number} opts.pageSize (default to 50)
|
|
743
743
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -759,28 +759,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
759
759
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
760
760
|
}
|
|
761
761
|
var pathParams = {
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
projectOrProductUID: projectOrProductUID,
|
|
763
|
+
deviceUID: deviceUID
|
|
764
764
|
};
|
|
765
765
|
var queryParams = {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
766
|
+
pageSize: opts["pageSize"],
|
|
767
|
+
pageNum: opts["pageNum"],
|
|
768
|
+
startDate: opts["startDate"],
|
|
769
|
+
endDate: opts["endDate"]
|
|
770
770
|
};
|
|
771
771
|
var headerParams = {};
|
|
772
772
|
var formParams = {};
|
|
773
|
-
var authNames = [
|
|
773
|
+
var authNames = ["personalAccessToken"];
|
|
774
774
|
var contentTypes = [];
|
|
775
|
-
var accepts = [
|
|
775
|
+
var accepts = ["application/json"];
|
|
776
776
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
777
|
-
return this.apiClient.callApi(
|
|
777
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
781
|
* Get Device Sessions
|
|
782
|
-
* @param {String} projectOrProductUID
|
|
783
|
-
* @param {String} deviceUID
|
|
782
|
+
* @param {String} projectOrProductUID
|
|
783
|
+
* @param {String} deviceUID
|
|
784
784
|
* @param {Object} opts Optional parameters
|
|
785
785
|
* @param {Number} opts.pageSize (default to 50)
|
|
786
786
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -798,7 +798,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
798
798
|
|
|
799
799
|
/**
|
|
800
800
|
* Get Device Public Keys of a Project
|
|
801
|
-
* @param {String} projectOrProductUID
|
|
801
|
+
* @param {String} projectOrProductUID
|
|
802
802
|
* @param {Object} opts Optional parameters
|
|
803
803
|
* @param {Number} opts.pageSize (default to 50)
|
|
804
804
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -814,24 +814,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
814
814
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
|
|
815
815
|
}
|
|
816
816
|
var pathParams = {
|
|
817
|
-
|
|
817
|
+
projectOrProductUID: projectOrProductUID
|
|
818
818
|
};
|
|
819
819
|
var queryParams = {
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
pageSize: opts["pageSize"],
|
|
821
|
+
pageNum: opts["pageNum"]
|
|
822
822
|
};
|
|
823
823
|
var headerParams = {};
|
|
824
824
|
var formParams = {};
|
|
825
|
-
var authNames = [
|
|
825
|
+
var authNames = ["personalAccessToken"];
|
|
826
826
|
var contentTypes = [];
|
|
827
|
-
var accepts = [
|
|
827
|
+
var accepts = ["application/json"];
|
|
828
828
|
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
829
|
-
return this.apiClient.callApi(
|
|
829
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
833
|
* Get Device Public Keys of a Project
|
|
834
|
-
* @param {String} projectOrProductUID
|
|
834
|
+
* @param {String} projectOrProductUID
|
|
835
835
|
* @param {Object} opts Optional parameters
|
|
836
836
|
* @param {Number} opts.pageSize (default to 50)
|
|
837
837
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -847,18 +847,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
847
847
|
|
|
848
848
|
/**
|
|
849
849
|
* Get Devices of a Project
|
|
850
|
-
* @param {String} projectOrProductUID
|
|
850
|
+
* @param {String} projectOrProductUID
|
|
851
851
|
* @param {Object} opts Optional parameters
|
|
852
852
|
* @param {Number} opts.pageSize (default to 50)
|
|
853
853
|
* @param {Number} opts.pageNum (default to 1)
|
|
854
854
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
855
855
|
* @param {Array.<String>} opts.tag Tag filter
|
|
856
856
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
857
|
-
* @param {Array.<String>} opts.fleetUID
|
|
857
|
+
* @param {Array.<String>} opts.fleetUID
|
|
858
858
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
859
859
|
* @param {Array.<String>} opts.location Location filter
|
|
860
860
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
861
|
-
* @param {Array.<String>} opts.productUID
|
|
861
|
+
* @param {Array.<String>} opts.productUID
|
|
862
862
|
* @param {Array.<String>} opts.sku SKU filter
|
|
863
863
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
864
864
|
*/
|
|
@@ -872,44 +872,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
872
872
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
|
|
873
873
|
}
|
|
874
874
|
var pathParams = {
|
|
875
|
-
|
|
875
|
+
projectOrProductUID: projectOrProductUID
|
|
876
876
|
};
|
|
877
877
|
var queryParams = {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
878
|
+
pageSize: opts["pageSize"],
|
|
879
|
+
pageNum: opts["pageNum"],
|
|
880
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
881
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
882
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
883
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
884
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
885
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
886
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
887
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
888
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
889
889
|
};
|
|
890
890
|
var headerParams = {};
|
|
891
891
|
var formParams = {};
|
|
892
|
-
var authNames = [
|
|
892
|
+
var authNames = ["personalAccessToken"];
|
|
893
893
|
var contentTypes = [];
|
|
894
|
-
var accepts = [
|
|
894
|
+
var accepts = ["application/json"];
|
|
895
895
|
var returnType = _GetProjectDevices200Response["default"];
|
|
896
|
-
return this.apiClient.callApi(
|
|
896
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
900
|
* Get Devices of a Project
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
901
|
+
* @param {String} projectOrProductUID
|
|
902
902
|
* @param {Object} opts Optional parameters
|
|
903
903
|
* @param {Number} opts.pageSize (default to 50)
|
|
904
904
|
* @param {Number} opts.pageNum (default to 1)
|
|
905
905
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
906
906
|
* @param {Array.<String>} opts.tag Tag filter
|
|
907
907
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
908
|
-
* @param {Array.<String>} opts.fleetUID
|
|
908
|
+
* @param {Array.<String>} opts.fleetUID
|
|
909
909
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
910
910
|
* @param {Array.<String>} opts.location Location filter
|
|
911
911
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
912
|
-
* @param {Array.<String>} opts.productUID
|
|
912
|
+
* @param {Array.<String>} opts.productUID
|
|
913
913
|
* @param {Array.<String>} opts.sku SKU filter
|
|
914
914
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
915
915
|
*/
|
|
@@ -923,8 +923,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
923
923
|
|
|
924
924
|
/**
|
|
925
925
|
* Get Devices of a Fleet within a Project
|
|
926
|
-
* @param {String} projectOrProductUID
|
|
927
|
-
* @param {String} fleetUID
|
|
926
|
+
* @param {String} projectOrProductUID
|
|
927
|
+
* @param {String} fleetUID
|
|
928
928
|
* @param {Object} opts Optional parameters
|
|
929
929
|
* @param {Number} opts.pageSize (default to 50)
|
|
930
930
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -934,7 +934,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
934
934
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
935
935
|
* @param {Array.<String>} opts.location Location filter
|
|
936
936
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
937
|
-
* @param {Array.<String>} opts.productUID
|
|
937
|
+
* @param {Array.<String>} opts.productUID
|
|
938
938
|
* @param {Array.<String>} opts.sku SKU filter
|
|
939
939
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
940
940
|
*/
|
|
@@ -952,34 +952,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
952
952
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
953
953
|
}
|
|
954
954
|
var pathParams = {
|
|
955
|
-
|
|
956
|
-
|
|
955
|
+
projectOrProductUID: projectOrProductUID,
|
|
956
|
+
fleetUID: fleetUID
|
|
957
957
|
};
|
|
958
958
|
var queryParams = {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
959
|
+
pageSize: opts["pageSize"],
|
|
960
|
+
pageNum: opts["pageNum"],
|
|
961
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
962
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
963
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
964
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
965
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
966
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
967
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
968
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
969
969
|
};
|
|
970
970
|
var headerParams = {};
|
|
971
971
|
var formParams = {};
|
|
972
|
-
var authNames = [
|
|
972
|
+
var authNames = ["personalAccessToken"];
|
|
973
973
|
var contentTypes = [];
|
|
974
|
-
var accepts = [
|
|
974
|
+
var accepts = ["application/json"];
|
|
975
975
|
var returnType = _GetProjectDevices200Response["default"];
|
|
976
|
-
return this.apiClient.callApi(
|
|
976
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
/**
|
|
980
980
|
* Get Devices of a Fleet within a Project
|
|
981
|
-
* @param {String} projectOrProductUID
|
|
982
|
-
* @param {String} fleetUID
|
|
981
|
+
* @param {String} projectOrProductUID
|
|
982
|
+
* @param {String} fleetUID
|
|
983
983
|
* @param {Object} opts Optional parameters
|
|
984
984
|
* @param {Number} opts.pageSize (default to 50)
|
|
985
985
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -989,7 +989,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
989
989
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
990
990
|
* @param {Array.<String>} opts.location Location filter
|
|
991
991
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
992
|
-
* @param {Array.<String>} opts.productUID
|
|
992
|
+
* @param {Array.<String>} opts.productUID
|
|
993
993
|
* @param {Array.<String>} opts.sku SKU filter
|
|
994
994
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
995
995
|
*/
|
|
@@ -1003,9 +1003,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1003
1003
|
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1006
|
-
* @param {String} projectOrProductUID
|
|
1007
|
-
* @param {String} deviceUID
|
|
1008
|
-
* @param {String} notefileID
|
|
1006
|
+
* @param {String} projectOrProductUID
|
|
1007
|
+
* @param {String} deviceUID
|
|
1008
|
+
* @param {String} notefileID
|
|
1009
1009
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1010
1010
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1011
1011
|
*/
|
|
@@ -1030,25 +1030,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1030
1030
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
1031
1031
|
}
|
|
1032
1032
|
var pathParams = {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1033
|
+
projectOrProductUID: projectOrProductUID,
|
|
1034
|
+
deviceUID: deviceUID,
|
|
1035
|
+
notefileID: notefileID
|
|
1036
1036
|
};
|
|
1037
1037
|
var queryParams = {};
|
|
1038
1038
|
var headerParams = {};
|
|
1039
1039
|
var formParams = {};
|
|
1040
|
-
var authNames = [
|
|
1041
|
-
var contentTypes = [
|
|
1042
|
-
var accepts = [
|
|
1040
|
+
var authNames = ["personalAccessToken"];
|
|
1041
|
+
var contentTypes = ["application/json"];
|
|
1042
|
+
var accepts = ["application/json"];
|
|
1043
1043
|
var returnType = null;
|
|
1044
|
-
return this.apiClient.callApi(
|
|
1044
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1049
|
-
* @param {String} projectOrProductUID
|
|
1050
|
-
* @param {String} deviceUID
|
|
1051
|
-
* @param {String} notefileID
|
|
1049
|
+
* @param {String} projectOrProductUID
|
|
1050
|
+
* @param {String} deviceUID
|
|
1051
|
+
* @param {String} notefileID
|
|
1052
1052
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1053
1053
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1054
1054
|
*/
|
|
@@ -1062,9 +1062,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1062
1062
|
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Incrementally retrieve changes within a specific Notefile.
|
|
1065
|
-
* @param {String} projectOrProductUID
|
|
1066
|
-
* @param {String} deviceUID
|
|
1067
|
-
* @param {String} notefileID
|
|
1065
|
+
* @param {String} projectOrProductUID
|
|
1066
|
+
* @param {String} deviceUID
|
|
1067
|
+
* @param {String} notefileID
|
|
1068
1068
|
* @param {Object} opts Optional parameters
|
|
1069
1069
|
* @param {String} opts.tracker The change tracker ID.
|
|
1070
1070
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -1092,32 +1092,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1092
1092
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
1093
1093
|
}
|
|
1094
1094
|
var pathParams = {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1095
|
+
projectOrProductUID: projectOrProductUID,
|
|
1096
|
+
deviceUID: deviceUID,
|
|
1097
|
+
notefileID: notefileID
|
|
1098
1098
|
};
|
|
1099
1099
|
var queryParams = {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1100
|
+
tracker: opts["tracker"],
|
|
1101
|
+
max: opts["max"],
|
|
1102
|
+
start: opts["start"],
|
|
1103
|
+
stop: opts["stop"],
|
|
1104
|
+
deleted: opts["deleted"],
|
|
1105
|
+
"delete": opts["_delete"]
|
|
1106
1106
|
};
|
|
1107
1107
|
var headerParams = {};
|
|
1108
1108
|
var formParams = {};
|
|
1109
|
-
var authNames = [
|
|
1109
|
+
var authNames = ["personalAccessToken"];
|
|
1110
1110
|
var contentTypes = [];
|
|
1111
|
-
var accepts = [
|
|
1111
|
+
var accepts = ["application/json"];
|
|
1112
1112
|
var returnType = _HandleNoteChanges200Response["default"];
|
|
1113
|
-
return this.apiClient.callApi(
|
|
1113
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Incrementally retrieve changes within a specific Notefile.
|
|
1118
|
-
* @param {String} projectOrProductUID
|
|
1119
|
-
* @param {String} deviceUID
|
|
1120
|
-
* @param {String} notefileID
|
|
1118
|
+
* @param {String} projectOrProductUID
|
|
1119
|
+
* @param {String} deviceUID
|
|
1120
|
+
* @param {String} notefileID
|
|
1121
1121
|
* @param {Object} opts Optional parameters
|
|
1122
1122
|
* @param {String} opts.tracker The change tracker ID.
|
|
1123
1123
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -1137,10 +1137,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1140
|
-
* @param {String} projectOrProductUID
|
|
1141
|
-
* @param {String} deviceUID
|
|
1142
|
-
* @param {String} notefileID
|
|
1143
|
-
* @param {String} noteID
|
|
1140
|
+
* @param {String} projectOrProductUID
|
|
1141
|
+
* @param {String} deviceUID
|
|
1142
|
+
* @param {String} notefileID
|
|
1143
|
+
* @param {String} noteID
|
|
1144
1144
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1145
1145
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1146
1146
|
*/
|
|
@@ -1169,27 +1169,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1169
1169
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
1170
1170
|
}
|
|
1171
1171
|
var pathParams = {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1172
|
+
projectOrProductUID: projectOrProductUID,
|
|
1173
|
+
deviceUID: deviceUID,
|
|
1174
|
+
notefileID: notefileID,
|
|
1175
|
+
noteID: noteID
|
|
1176
1176
|
};
|
|
1177
1177
|
var queryParams = {};
|
|
1178
1178
|
var headerParams = {};
|
|
1179
1179
|
var formParams = {};
|
|
1180
|
-
var authNames = [
|
|
1181
|
-
var contentTypes = [
|
|
1182
|
-
var accepts = [
|
|
1180
|
+
var authNames = ["personalAccessToken"];
|
|
1181
|
+
var contentTypes = ["application/json"];
|
|
1182
|
+
var accepts = ["application/json"];
|
|
1183
1183
|
var returnType = null;
|
|
1184
|
-
return this.apiClient.callApi(
|
|
1184
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1189
|
-
* @param {String} projectOrProductUID
|
|
1190
|
-
* @param {String} deviceUID
|
|
1191
|
-
* @param {String} notefileID
|
|
1192
|
-
* @param {String} noteID
|
|
1189
|
+
* @param {String} projectOrProductUID
|
|
1190
|
+
* @param {String} deviceUID
|
|
1191
|
+
* @param {String} notefileID
|
|
1192
|
+
* @param {String} noteID
|
|
1193
1193
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1194
1194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1195
1195
|
*/
|
|
@@ -1203,10 +1203,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1203
1203
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Delete a note from a DB notefile
|
|
1206
|
-
* @param {String} projectOrProductUID
|
|
1207
|
-
* @param {String} deviceUID
|
|
1208
|
-
* @param {String} notefileID
|
|
1209
|
-
* @param {String} noteID
|
|
1206
|
+
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} deviceUID
|
|
1208
|
+
* @param {String} notefileID
|
|
1209
|
+
* @param {String} noteID
|
|
1210
1210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1211
1211
|
*/
|
|
1212
1212
|
}, {
|
|
@@ -1230,27 +1230,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1230
1230
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
|
|
1231
1231
|
}
|
|
1232
1232
|
var pathParams = {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1233
|
+
projectOrProductUID: projectOrProductUID,
|
|
1234
|
+
deviceUID: deviceUID,
|
|
1235
|
+
notefileID: notefileID,
|
|
1236
|
+
noteID: noteID
|
|
1237
1237
|
};
|
|
1238
1238
|
var queryParams = {};
|
|
1239
1239
|
var headerParams = {};
|
|
1240
1240
|
var formParams = {};
|
|
1241
|
-
var authNames = [
|
|
1241
|
+
var authNames = ["personalAccessToken"];
|
|
1242
1242
|
var contentTypes = [];
|
|
1243
|
-
var accepts = [
|
|
1243
|
+
var accepts = ["application/json"];
|
|
1244
1244
|
var returnType = null;
|
|
1245
|
-
return this.apiClient.callApi(
|
|
1245
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Delete a note from a DB notefile
|
|
1250
|
-
* @param {String} projectOrProductUID
|
|
1251
|
-
* @param {String} deviceUID
|
|
1252
|
-
* @param {String} notefileID
|
|
1253
|
-
* @param {String} noteID
|
|
1250
|
+
* @param {String} projectOrProductUID
|
|
1251
|
+
* @param {String} deviceUID
|
|
1252
|
+
* @param {String} notefileID
|
|
1253
|
+
* @param {String} noteID
|
|
1254
1254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1255
1255
|
*/
|
|
1256
1256
|
}, {
|
|
@@ -1263,10 +1263,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1263
1263
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Get a note from a DB notefile
|
|
1266
|
-
* @param {String} projectOrProductUID
|
|
1267
|
-
* @param {String} deviceUID
|
|
1268
|
-
* @param {String} notefileID
|
|
1269
|
-
* @param {String} noteID
|
|
1266
|
+
* @param {String} projectOrProductUID
|
|
1267
|
+
* @param {String} deviceUID
|
|
1268
|
+
* @param {String} notefileID
|
|
1269
|
+
* @param {String} noteID
|
|
1270
1270
|
* @param {Object} opts Optional parameters
|
|
1271
1271
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1272
1272
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1294,30 +1294,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1294
1294
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
|
|
1295
1295
|
}
|
|
1296
1296
|
var pathParams = {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1297
|
+
projectOrProductUID: projectOrProductUID,
|
|
1298
|
+
deviceUID: deviceUID,
|
|
1299
|
+
notefileID: notefileID,
|
|
1300
|
+
noteID: noteID
|
|
1301
1301
|
};
|
|
1302
1302
|
var queryParams = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1303
|
+
"delete": opts["_delete"],
|
|
1304
|
+
deleted: opts["deleted"]
|
|
1305
1305
|
};
|
|
1306
1306
|
var headerParams = {};
|
|
1307
1307
|
var formParams = {};
|
|
1308
|
-
var authNames = [
|
|
1308
|
+
var authNames = ["personalAccessToken"];
|
|
1309
1309
|
var contentTypes = [];
|
|
1310
|
-
var accepts = [
|
|
1310
|
+
var accepts = ["application/json"];
|
|
1311
1311
|
var returnType = _HandleNoteGet200Response["default"];
|
|
1312
|
-
return this.apiClient.callApi(
|
|
1312
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Get a note from a DB notefile
|
|
1317
|
-
* @param {String} projectOrProductUID
|
|
1318
|
-
* @param {String} deviceUID
|
|
1319
|
-
* @param {String} notefileID
|
|
1320
|
-
* @param {String} noteID
|
|
1317
|
+
* @param {String} projectOrProductUID
|
|
1318
|
+
* @param {String} deviceUID
|
|
1319
|
+
* @param {String} notefileID
|
|
1320
|
+
* @param {String} noteID
|
|
1321
1321
|
* @param {Object} opts Optional parameters
|
|
1322
1322
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1323
1323
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1333,8 +1333,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1333
1333
|
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Send a signal from Notehub to a Notecard.
|
|
1336
|
-
* @param {String} projectOrProductUID
|
|
1337
|
-
* @param {String} deviceUID
|
|
1336
|
+
* @param {String} projectOrProductUID
|
|
1337
|
+
* @param {String} deviceUID
|
|
1338
1338
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1339
1339
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
|
|
1340
1340
|
*/
|
|
@@ -1355,23 +1355,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1355
1355
|
throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
|
|
1356
1356
|
}
|
|
1357
1357
|
var pathParams = {
|
|
1358
|
-
|
|
1359
|
-
|
|
1358
|
+
projectOrProductUID: projectOrProductUID,
|
|
1359
|
+
deviceUID: deviceUID
|
|
1360
1360
|
};
|
|
1361
1361
|
var queryParams = {};
|
|
1362
1362
|
var headerParams = {};
|
|
1363
1363
|
var formParams = {};
|
|
1364
|
-
var authNames = [
|
|
1365
|
-
var contentTypes = [
|
|
1366
|
-
var accepts = [
|
|
1364
|
+
var authNames = ["personalAccessToken"];
|
|
1365
|
+
var contentTypes = ["application/json"];
|
|
1366
|
+
var accepts = ["application/json"];
|
|
1367
1367
|
var returnType = _HandleNoteSignal200Response["default"];
|
|
1368
|
-
return this.apiClient.callApi(
|
|
1368
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Send a signal from Notehub to a Notecard.
|
|
1373
|
-
* @param {String} projectOrProductUID
|
|
1374
|
-
* @param {String} deviceUID
|
|
1373
|
+
* @param {String} projectOrProductUID
|
|
1374
|
+
* @param {String} deviceUID
|
|
1375
1375
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1376
1376
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
|
|
1377
1377
|
*/
|
|
@@ -1385,10 +1385,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1385
1385
|
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Update a note in a DB notefile
|
|
1388
|
-
* @param {String} projectOrProductUID
|
|
1389
|
-
* @param {String} deviceUID
|
|
1390
|
-
* @param {String} notefileID
|
|
1391
|
-
* @param {String} noteID
|
|
1388
|
+
* @param {String} projectOrProductUID
|
|
1389
|
+
* @param {String} deviceUID
|
|
1390
|
+
* @param {String} notefileID
|
|
1391
|
+
* @param {String} noteID
|
|
1392
1392
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1393
1393
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1394
1394
|
*/
|
|
@@ -1417,27 +1417,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1417
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
|
|
1418
1418
|
}
|
|
1419
1419
|
var pathParams = {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1420
|
+
projectOrProductUID: projectOrProductUID,
|
|
1421
|
+
deviceUID: deviceUID,
|
|
1422
|
+
notefileID: notefileID,
|
|
1423
|
+
noteID: noteID
|
|
1424
1424
|
};
|
|
1425
1425
|
var queryParams = {};
|
|
1426
1426
|
var headerParams = {};
|
|
1427
1427
|
var formParams = {};
|
|
1428
|
-
var authNames = [
|
|
1429
|
-
var contentTypes = [
|
|
1430
|
-
var accepts = [
|
|
1428
|
+
var authNames = ["personalAccessToken"];
|
|
1429
|
+
var contentTypes = ["application/json"];
|
|
1430
|
+
var accepts = ["application/json"];
|
|
1431
1431
|
var returnType = null;
|
|
1432
|
-
return this.apiClient.callApi(
|
|
1432
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Update a note in a DB notefile
|
|
1437
|
-
* @param {String} projectOrProductUID
|
|
1438
|
-
* @param {String} deviceUID
|
|
1439
|
-
* @param {String} notefileID
|
|
1440
|
-
* @param {String} noteID
|
|
1437
|
+
* @param {String} projectOrProductUID
|
|
1438
|
+
* @param {String} deviceUID
|
|
1439
|
+
* @param {String} notefileID
|
|
1440
|
+
* @param {String} noteID
|
|
1441
1441
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1442
1442
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1443
1443
|
*/
|
|
@@ -1451,8 +1451,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1454
|
-
* @param {String} projectOrProductUID
|
|
1455
|
-
* @param {String} deviceUID
|
|
1454
|
+
* @param {String} projectOrProductUID
|
|
1455
|
+
* @param {String} deviceUID
|
|
1456
1456
|
* @param {Object} opts Optional parameters
|
|
1457
1457
|
* @param {String} opts.tracker The change tracker ID.
|
|
1458
1458
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1472,26 +1472,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1472
1472
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
|
|
1473
1473
|
}
|
|
1474
1474
|
var pathParams = {
|
|
1475
|
-
|
|
1476
|
-
|
|
1475
|
+
projectOrProductUID: projectOrProductUID,
|
|
1476
|
+
deviceUID: deviceUID
|
|
1477
1477
|
};
|
|
1478
1478
|
var queryParams = {
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
tracker: opts["tracker"],
|
|
1480
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi")
|
|
1481
1481
|
};
|
|
1482
1482
|
var headerParams = {};
|
|
1483
1483
|
var formParams = {};
|
|
1484
|
-
var authNames = [
|
|
1484
|
+
var authNames = ["personalAccessToken"];
|
|
1485
1485
|
var contentTypes = [];
|
|
1486
|
-
var accepts = [
|
|
1486
|
+
var accepts = ["application/json"];
|
|
1487
1487
|
var returnType = _HandleNotefileChanges200Response["default"];
|
|
1488
|
-
return this.apiClient.callApi(
|
|
1488
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1489
1489
|
}
|
|
1490
1490
|
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1493
|
-
* @param {String} projectOrProductUID
|
|
1494
|
-
* @param {String} deviceUID
|
|
1493
|
+
* @param {String} projectOrProductUID
|
|
1494
|
+
* @param {String} deviceUID
|
|
1495
1495
|
* @param {Object} opts Optional parameters
|
|
1496
1496
|
* @param {String} opts.tracker The change tracker ID.
|
|
1497
1497
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1507,8 +1507,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1507
1507
|
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1510
|
-
* @param {String} projectOrProductUID
|
|
1511
|
-
* @param {String} deviceUID
|
|
1510
|
+
* @param {String} projectOrProductUID
|
|
1511
|
+
* @param {String} deviceUID
|
|
1512
1512
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
|
|
1513
1513
|
*/
|
|
1514
1514
|
}, {
|
|
@@ -1524,23 +1524,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1524
1524
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
|
|
1525
1525
|
}
|
|
1526
1526
|
var pathParams = {
|
|
1527
|
-
|
|
1528
|
-
|
|
1527
|
+
projectOrProductUID: projectOrProductUID,
|
|
1528
|
+
deviceUID: deviceUID
|
|
1529
1529
|
};
|
|
1530
1530
|
var queryParams = {};
|
|
1531
1531
|
var headerParams = {};
|
|
1532
1532
|
var formParams = {};
|
|
1533
|
-
var authNames = [
|
|
1533
|
+
var authNames = ["personalAccessToken"];
|
|
1534
1534
|
var contentTypes = [];
|
|
1535
|
-
var accepts = [
|
|
1535
|
+
var accepts = ["application/json"];
|
|
1536
1536
|
var returnType = _HandleNotefileChangesPending200Response["default"];
|
|
1537
|
-
return this.apiClient.callApi(
|
|
1537
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1538
1538
|
}
|
|
1539
1539
|
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1542
|
-
* @param {String} projectOrProductUID
|
|
1543
|
-
* @param {String} deviceUID
|
|
1542
|
+
* @param {String} projectOrProductUID
|
|
1543
|
+
* @param {String} deviceUID
|
|
1544
1544
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
|
|
1545
1545
|
*/
|
|
1546
1546
|
}, {
|
|
@@ -1553,9 +1553,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1553
1553
|
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Deletes Notefiles and the Notes they contain.
|
|
1556
|
-
* @param {String} projectOrProductUID
|
|
1557
|
-
* @param {String} deviceUID
|
|
1558
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1556
|
+
* @param {String} projectOrProductUID
|
|
1557
|
+
* @param {String} deviceUID
|
|
1558
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1559
1559
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1560
1560
|
*/
|
|
1561
1561
|
}, {
|
|
@@ -1575,24 +1575,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1575
1575
|
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
1576
1576
|
}
|
|
1577
1577
|
var pathParams = {
|
|
1578
|
-
|
|
1579
|
-
|
|
1578
|
+
projectOrProductUID: projectOrProductUID,
|
|
1579
|
+
deviceUID: deviceUID
|
|
1580
1580
|
};
|
|
1581
1581
|
var queryParams = {};
|
|
1582
1582
|
var headerParams = {};
|
|
1583
1583
|
var formParams = {};
|
|
1584
|
-
var authNames = [
|
|
1585
|
-
var contentTypes = [
|
|
1586
|
-
var accepts = [
|
|
1584
|
+
var authNames = ["personalAccessToken"];
|
|
1585
|
+
var contentTypes = ["application/json"];
|
|
1586
|
+
var accepts = ["application/json"];
|
|
1587
1587
|
var returnType = null;
|
|
1588
|
-
return this.apiClient.callApi(
|
|
1588
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Deletes Notefiles and the Notes they contain.
|
|
1593
|
-
* @param {String} projectOrProductUID
|
|
1594
|
-
* @param {String} deviceUID
|
|
1595
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1593
|
+
* @param {String} projectOrProductUID
|
|
1594
|
+
* @param {String} deviceUID
|
|
1595
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1596
1596
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1597
1597
|
*/
|
|
1598
1598
|
}, {
|
|
@@ -1605,8 +1605,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1605
1605
|
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Provision Device for a Project
|
|
1608
|
-
* @param {String} projectOrProductUID
|
|
1609
|
-
* @param {String} deviceUID
|
|
1608
|
+
* @param {String} projectOrProductUID
|
|
1609
|
+
* @param {String} deviceUID
|
|
1610
1610
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1611
1611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1612
1612
|
*/
|
|
@@ -1627,23 +1627,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1627
1627
|
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
1628
1628
|
}
|
|
1629
1629
|
var pathParams = {
|
|
1630
|
-
|
|
1631
|
-
|
|
1630
|
+
projectOrProductUID: projectOrProductUID,
|
|
1631
|
+
deviceUID: deviceUID
|
|
1632
1632
|
};
|
|
1633
1633
|
var queryParams = {};
|
|
1634
1634
|
var headerParams = {};
|
|
1635
1635
|
var formParams = {};
|
|
1636
|
-
var authNames = [
|
|
1637
|
-
var contentTypes = [
|
|
1638
|
-
var accepts = [
|
|
1636
|
+
var authNames = ["personalAccessToken"];
|
|
1637
|
+
var contentTypes = ["application/json"];
|
|
1638
|
+
var accepts = ["application/json"];
|
|
1639
1639
|
var returnType = Object;
|
|
1640
|
-
return this.apiClient.callApi(
|
|
1640
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
1643
|
/**
|
|
1644
1644
|
* Provision Device for a Project
|
|
1645
|
-
* @param {String} projectOrProductUID
|
|
1646
|
-
* @param {String} deviceUID
|
|
1645
|
+
* @param {String} projectOrProductUID
|
|
1646
|
+
* @param {String} deviceUID
|
|
1647
1647
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1648
1648
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1649
1649
|
*/
|
|
@@ -1657,8 +1657,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1657
1657
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Put environment variables of a device
|
|
1660
|
-
* @param {String} projectOrProductUID
|
|
1661
|
-
* @param {String} deviceUID
|
|
1660
|
+
* @param {String} projectOrProductUID
|
|
1661
|
+
* @param {String} deviceUID
|
|
1662
1662
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1663
1663
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1664
1664
|
*/
|
|
@@ -1679,23 +1679,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1679
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
1680
1680
|
}
|
|
1681
1681
|
var pathParams = {
|
|
1682
|
-
|
|
1683
|
-
|
|
1682
|
+
projectOrProductUID: projectOrProductUID,
|
|
1683
|
+
deviceUID: deviceUID
|
|
1684
1684
|
};
|
|
1685
1685
|
var queryParams = {};
|
|
1686
1686
|
var headerParams = {};
|
|
1687
1687
|
var formParams = {};
|
|
1688
|
-
var authNames = [
|
|
1689
|
-
var contentTypes = [
|
|
1690
|
-
var accepts = [
|
|
1688
|
+
var authNames = ["personalAccessToken"];
|
|
1689
|
+
var contentTypes = ["application/json"];
|
|
1690
|
+
var accepts = ["application/json"];
|
|
1691
1691
|
var returnType = _EnvironmentVariables["default"];
|
|
1692
|
-
return this.apiClient.callApi(
|
|
1692
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Put environment variables of a device
|
|
1697
|
-
* @param {String} projectOrProductUID
|
|
1698
|
-
* @param {String} deviceUID
|
|
1697
|
+
* @param {String} projectOrProductUID
|
|
1698
|
+
* @param {String} deviceUID
|
|
1699
1699
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1700
1700
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1701
1701
|
*/
|
|
@@ -1709,8 +1709,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1709
1709
|
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Put environment variables of a device with device pin authorization
|
|
1712
|
-
* @param {String} productUID
|
|
1713
|
-
* @param {String} deviceUID
|
|
1712
|
+
* @param {String} productUID
|
|
1713
|
+
* @param {String} deviceUID
|
|
1714
1714
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1715
1715
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1716
1716
|
*/
|
|
@@ -1731,23 +1731,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1731
1731
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
1732
1732
|
}
|
|
1733
1733
|
var pathParams = {
|
|
1734
|
-
|
|
1735
|
-
|
|
1734
|
+
productUID: productUID,
|
|
1735
|
+
deviceUID: deviceUID
|
|
1736
1736
|
};
|
|
1737
1737
|
var queryParams = {};
|
|
1738
1738
|
var headerParams = {};
|
|
1739
1739
|
var formParams = {};
|
|
1740
|
-
var authNames = [
|
|
1741
|
-
var contentTypes = [
|
|
1742
|
-
var accepts = [
|
|
1740
|
+
var authNames = ["pin"];
|
|
1741
|
+
var contentTypes = ["application/json"];
|
|
1742
|
+
var accepts = ["application/json"];
|
|
1743
1743
|
var returnType = _EnvironmentVariables["default"];
|
|
1744
|
-
return this.apiClient.callApi(
|
|
1744
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
/**
|
|
1748
1748
|
* Put environment variables of a device with device pin authorization
|
|
1749
|
-
* @param {String} productUID
|
|
1750
|
-
* @param {String} deviceUID
|
|
1749
|
+
* @param {String} productUID
|
|
1750
|
+
* @param {String} deviceUID
|
|
1751
1751
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1752
1752
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1753
1753
|
*/
|