@blues-inc/notehub-js 1.0.38-beta.8 → 1.0.38
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 +239 -250
- package/dist/ApiClient.js +156 -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 +366 -426
- 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 +374 -384
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +51 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -28
- 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/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/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/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/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- 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/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- 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/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 +59 -72
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +24 -24
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +29 -29
- package/dist/model/UsageRouteLogsResponse.js +11 -12
- package/dist/model/UsageSessionsData.js +24 -24
- package/dist/model/UsageSessionsResponse.js +11 -12
- 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/model/CellularPlan.js +0 -141
- package/dist/model/DataUsage.js +0 -133
- package/dist/model/GetDevicePlans200Response.js +0 -112
- package/dist/model/SatellitePlan.js +0 -164
package/dist/api/DeviceApi.js
CHANGED
|
@@ -13,7 +13,6 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
13
13
|
var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
|
|
14
14
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
|
|
15
15
|
var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
|
|
16
|
-
var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
|
|
17
16
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
|
|
18
17
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
|
|
19
18
|
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
|
|
@@ -34,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
34
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
35
34
|
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
35
|
* Notehub API
|
|
37
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
36
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
38
37
|
*
|
|
39
38
|
* The version of the OpenAPI document: 1.2.0
|
|
40
39
|
* Contact: engineering@blues.io
|
|
@@ -45,18 +44,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
44
|
*
|
|
46
45
|
*/
|
|
47
46
|
/**
|
|
48
|
-
* Device service.
|
|
49
|
-
* @module api/DeviceApi
|
|
50
|
-
* @version 1.0.38
|
|
51
|
-
*/
|
|
47
|
+
* Device service.
|
|
48
|
+
* @module api/DeviceApi
|
|
49
|
+
* @version 1.0.38
|
|
50
|
+
*/
|
|
52
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
53
52
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
* Constructs a new DeviceApi.
|
|
54
|
+
* @alias module:api/DeviceApi
|
|
55
|
+
* @class
|
|
56
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
57
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
58
|
+
*/
|
|
60
59
|
function DeviceApi(apiClient) {
|
|
61
60
|
_classCallCheck(this, DeviceApi);
|
|
62
61
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -64,8 +63,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
63
|
|
|
65
64
|
/**
|
|
66
65
|
* Delete environment variable of a device
|
|
67
|
-
* @param {String} projectOrProductUID
|
|
68
|
-
* @param {String} deviceUID
|
|
66
|
+
* @param {String} projectOrProductUID
|
|
67
|
+
* @param {String} deviceUID
|
|
69
68
|
* @param {String} key The environment variable key to delete.
|
|
70
69
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
71
70
|
*/
|
|
@@ -86,24 +85,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
85
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
87
86
|
}
|
|
88
87
|
var pathParams = {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
projectOrProductUID: projectOrProductUID,
|
|
89
|
+
deviceUID: deviceUID,
|
|
90
|
+
key: key
|
|
92
91
|
};
|
|
93
92
|
var queryParams = {};
|
|
94
93
|
var headerParams = {};
|
|
95
94
|
var formParams = {};
|
|
96
|
-
var authNames = [
|
|
95
|
+
var authNames = ["api_key"];
|
|
97
96
|
var contentTypes = [];
|
|
98
|
-
var accepts = [
|
|
97
|
+
var accepts = ["application/json"];
|
|
99
98
|
var returnType = _EnvironmentVariables["default"];
|
|
100
|
-
return this.apiClient.callApi(
|
|
99
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
103
|
* Delete environment variable of a device
|
|
105
|
-
* @param {String} projectOrProductUID
|
|
106
|
-
* @param {String} deviceUID
|
|
104
|
+
* @param {String} projectOrProductUID
|
|
105
|
+
* @param {String} deviceUID
|
|
107
106
|
* @param {String} key The environment variable key to delete.
|
|
108
107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
109
108
|
*/
|
|
@@ -117,9 +116,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
116
|
|
|
118
117
|
/**
|
|
119
118
|
* Delete Device
|
|
120
|
-
* @param {String} projectOrProductUID
|
|
121
|
-
* @param {String} deviceUID
|
|
122
|
-
* @param {Boolean} purge
|
|
119
|
+
* @param {String} projectOrProductUID
|
|
120
|
+
* @param {String} deviceUID
|
|
121
|
+
* @param {Boolean} purge
|
|
123
122
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
124
123
|
*/
|
|
125
124
|
}, {
|
|
@@ -139,26 +138,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
139
138
|
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
140
139
|
}
|
|
141
140
|
var pathParams = {
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
projectOrProductUID: projectOrProductUID,
|
|
142
|
+
deviceUID: deviceUID
|
|
144
143
|
};
|
|
145
144
|
var queryParams = {
|
|
146
|
-
|
|
145
|
+
purge: purge
|
|
147
146
|
};
|
|
148
147
|
var headerParams = {};
|
|
149
148
|
var formParams = {};
|
|
150
|
-
var authNames = [
|
|
149
|
+
var authNames = ["api_key"];
|
|
151
150
|
var contentTypes = [];
|
|
152
|
-
var accepts = [
|
|
151
|
+
var accepts = ["application/json"];
|
|
153
152
|
var returnType = null;
|
|
154
|
-
return this.apiClient.callApi(
|
|
153
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
155
154
|
}
|
|
156
155
|
|
|
157
156
|
/**
|
|
158
157
|
* Delete Device
|
|
159
|
-
* @param {String} projectOrProductUID
|
|
160
|
-
* @param {String} deviceUID
|
|
161
|
-
* @param {Boolean} purge
|
|
158
|
+
* @param {String} projectOrProductUID
|
|
159
|
+
* @param {String} deviceUID
|
|
160
|
+
* @param {Boolean} purge
|
|
162
161
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
163
162
|
*/
|
|
164
163
|
}, {
|
|
@@ -171,8 +170,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
171
170
|
|
|
172
171
|
/**
|
|
173
172
|
* Disable Device
|
|
174
|
-
* @param {String} projectOrProductUID
|
|
175
|
-
* @param {String} deviceUID
|
|
173
|
+
* @param {String} projectOrProductUID
|
|
174
|
+
* @param {String} deviceUID
|
|
176
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
177
176
|
*/
|
|
178
177
|
}, {
|
|
@@ -188,23 +187,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
187
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
189
188
|
}
|
|
190
189
|
var pathParams = {
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
projectOrProductUID: projectOrProductUID,
|
|
191
|
+
deviceUID: deviceUID
|
|
193
192
|
};
|
|
194
193
|
var queryParams = {};
|
|
195
194
|
var headerParams = {};
|
|
196
195
|
var formParams = {};
|
|
197
|
-
var authNames = [
|
|
196
|
+
var authNames = ["api_key"];
|
|
198
197
|
var contentTypes = [];
|
|
199
|
-
var accepts = [
|
|
198
|
+
var accepts = ["application/json"];
|
|
200
199
|
var returnType = null;
|
|
201
|
-
return this.apiClient.callApi(
|
|
200
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
/**
|
|
205
204
|
* Disable Device
|
|
206
|
-
* @param {String} projectOrProductUID
|
|
207
|
-
* @param {String} deviceUID
|
|
205
|
+
* @param {String} projectOrProductUID
|
|
206
|
+
* @param {String} deviceUID
|
|
208
207
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
209
208
|
*/
|
|
210
209
|
}, {
|
|
@@ -217,8 +216,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
216
|
|
|
218
217
|
/**
|
|
219
218
|
* Disable Connectivity Assurance
|
|
220
|
-
* @param {String} projectOrProductUID
|
|
221
|
-
* @param {String} deviceUID
|
|
219
|
+
* @param {String} projectOrProductUID
|
|
220
|
+
* @param {String} deviceUID
|
|
222
221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
223
222
|
*/
|
|
224
223
|
}, {
|
|
@@ -234,23 +233,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
233
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
235
234
|
}
|
|
236
235
|
var pathParams = {
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
projectOrProductUID: projectOrProductUID,
|
|
237
|
+
deviceUID: deviceUID
|
|
239
238
|
};
|
|
240
239
|
var queryParams = {};
|
|
241
240
|
var headerParams = {};
|
|
242
241
|
var formParams = {};
|
|
243
|
-
var authNames = [
|
|
242
|
+
var authNames = ["api_key"];
|
|
244
243
|
var contentTypes = [];
|
|
245
|
-
var accepts = [
|
|
244
|
+
var accepts = ["application/json"];
|
|
246
245
|
var returnType = null;
|
|
247
|
-
return this.apiClient.callApi(
|
|
246
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
248
247
|
}
|
|
249
248
|
|
|
250
249
|
/**
|
|
251
250
|
* Disable Connectivity Assurance
|
|
252
|
-
* @param {String} projectOrProductUID
|
|
253
|
-
* @param {String} deviceUID
|
|
251
|
+
* @param {String} projectOrProductUID
|
|
252
|
+
* @param {String} deviceUID
|
|
254
253
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
255
254
|
*/
|
|
256
255
|
}, {
|
|
@@ -263,8 +262,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
263
262
|
|
|
264
263
|
/**
|
|
265
264
|
* Enable Device
|
|
266
|
-
* @param {String} projectOrProductUID
|
|
267
|
-
* @param {String} deviceUID
|
|
265
|
+
* @param {String} projectOrProductUID
|
|
266
|
+
* @param {String} deviceUID
|
|
268
267
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
269
268
|
*/
|
|
270
269
|
}, {
|
|
@@ -280,23 +279,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
279
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
281
280
|
}
|
|
282
281
|
var pathParams = {
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
projectOrProductUID: projectOrProductUID,
|
|
283
|
+
deviceUID: deviceUID
|
|
285
284
|
};
|
|
286
285
|
var queryParams = {};
|
|
287
286
|
var headerParams = {};
|
|
288
287
|
var formParams = {};
|
|
289
|
-
var authNames = [
|
|
288
|
+
var authNames = ["api_key"];
|
|
290
289
|
var contentTypes = [];
|
|
291
|
-
var accepts = [
|
|
290
|
+
var accepts = ["application/json"];
|
|
292
291
|
var returnType = null;
|
|
293
|
-
return this.apiClient.callApi(
|
|
292
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
294
293
|
}
|
|
295
294
|
|
|
296
295
|
/**
|
|
297
296
|
* Enable Device
|
|
298
|
-
* @param {String} projectOrProductUID
|
|
299
|
-
* @param {String} deviceUID
|
|
297
|
+
* @param {String} projectOrProductUID
|
|
298
|
+
* @param {String} deviceUID
|
|
300
299
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
301
300
|
*/
|
|
302
301
|
}, {
|
|
@@ -309,8 +308,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
308
|
|
|
310
309
|
/**
|
|
311
310
|
* Enable Connectivity Assurance
|
|
312
|
-
* @param {String} projectOrProductUID
|
|
313
|
-
* @param {String} deviceUID
|
|
311
|
+
* @param {String} projectOrProductUID
|
|
312
|
+
* @param {String} deviceUID
|
|
314
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
315
314
|
*/
|
|
316
315
|
}, {
|
|
@@ -326,23 +325,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
326
325
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
327
326
|
}
|
|
328
327
|
var pathParams = {
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
projectOrProductUID: projectOrProductUID,
|
|
329
|
+
deviceUID: deviceUID
|
|
331
330
|
};
|
|
332
331
|
var queryParams = {};
|
|
333
332
|
var headerParams = {};
|
|
334
333
|
var formParams = {};
|
|
335
|
-
var authNames = [
|
|
334
|
+
var authNames = ["api_key"];
|
|
336
335
|
var contentTypes = [];
|
|
337
|
-
var accepts = [
|
|
336
|
+
var accepts = ["application/json"];
|
|
338
337
|
var returnType = null;
|
|
339
|
-
return this.apiClient.callApi(
|
|
338
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
340
339
|
}
|
|
341
340
|
|
|
342
341
|
/**
|
|
343
342
|
* Enable Connectivity Assurance
|
|
344
|
-
* @param {String} projectOrProductUID
|
|
345
|
-
* @param {String} deviceUID
|
|
343
|
+
* @param {String} projectOrProductUID
|
|
344
|
+
* @param {String} deviceUID
|
|
346
345
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
347
346
|
*/
|
|
348
347
|
}, {
|
|
@@ -355,8 +354,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
354
|
|
|
356
355
|
/**
|
|
357
356
|
* Get Device
|
|
358
|
-
* @param {String} projectOrProductUID
|
|
359
|
-
* @param {String} deviceUID
|
|
357
|
+
* @param {String} projectOrProductUID
|
|
358
|
+
* @param {String} deviceUID
|
|
360
359
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
361
360
|
*/
|
|
362
361
|
}, {
|
|
@@ -372,23 +371,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
372
371
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
373
372
|
}
|
|
374
373
|
var pathParams = {
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
projectOrProductUID: projectOrProductUID,
|
|
375
|
+
deviceUID: deviceUID
|
|
377
376
|
};
|
|
378
377
|
var queryParams = {};
|
|
379
378
|
var headerParams = {};
|
|
380
379
|
var formParams = {};
|
|
381
|
-
var authNames = [
|
|
380
|
+
var authNames = ["api_key"];
|
|
382
381
|
var contentTypes = [];
|
|
383
|
-
var accepts = [
|
|
382
|
+
var accepts = ["application/json"];
|
|
384
383
|
var returnType = _Device["default"];
|
|
385
|
-
return this.apiClient.callApi(
|
|
384
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
386
385
|
}
|
|
387
386
|
|
|
388
387
|
/**
|
|
389
388
|
* Get Device
|
|
390
|
-
* @param {String} projectOrProductUID
|
|
391
|
-
* @param {String} deviceUID
|
|
389
|
+
* @param {String} projectOrProductUID
|
|
390
|
+
* @param {String} deviceUID
|
|
392
391
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
393
392
|
*/
|
|
394
393
|
}, {
|
|
@@ -401,8 +400,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
401
400
|
|
|
402
401
|
/**
|
|
403
402
|
* Get environment variable hierarchy for a device
|
|
404
|
-
* @param {String} projectOrProductUID
|
|
405
|
-
* @param {String} deviceUID
|
|
403
|
+
* @param {String} projectOrProductUID
|
|
404
|
+
* @param {String} deviceUID
|
|
406
405
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
407
406
|
*/
|
|
408
407
|
}, {
|
|
@@ -418,23 +417,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
418
417
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
419
418
|
}
|
|
420
419
|
var pathParams = {
|
|
421
|
-
|
|
422
|
-
|
|
420
|
+
projectOrProductUID: projectOrProductUID,
|
|
421
|
+
deviceUID: deviceUID
|
|
423
422
|
};
|
|
424
423
|
var queryParams = {};
|
|
425
424
|
var headerParams = {};
|
|
426
425
|
var formParams = {};
|
|
427
|
-
var authNames = [
|
|
426
|
+
var authNames = ["api_key"];
|
|
428
427
|
var contentTypes = [];
|
|
429
|
-
var accepts = [
|
|
428
|
+
var accepts = ["application/json"];
|
|
430
429
|
var returnType = _EnvTreeJsonNode["default"];
|
|
431
|
-
return this.apiClient.callApi(
|
|
430
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
432
431
|
}
|
|
433
432
|
|
|
434
433
|
/**
|
|
435
434
|
* Get environment variable hierarchy for a device
|
|
436
|
-
* @param {String} projectOrProductUID
|
|
437
|
-
* @param {String} deviceUID
|
|
435
|
+
* @param {String} projectOrProductUID
|
|
436
|
+
* @param {String} deviceUID
|
|
438
437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
439
438
|
*/
|
|
440
439
|
}, {
|
|
@@ -447,8 +446,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
446
|
|
|
448
447
|
/**
|
|
449
448
|
* Get environment variables of a device
|
|
450
|
-
* @param {String} projectOrProductUID
|
|
451
|
-
* @param {String} deviceUID
|
|
449
|
+
* @param {String} projectOrProductUID
|
|
450
|
+
* @param {String} deviceUID
|
|
452
451
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
453
452
|
*/
|
|
454
453
|
}, {
|
|
@@ -464,23 +463,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
464
463
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
465
464
|
}
|
|
466
465
|
var pathParams = {
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
projectOrProductUID: projectOrProductUID,
|
|
467
|
+
deviceUID: deviceUID
|
|
469
468
|
};
|
|
470
469
|
var queryParams = {};
|
|
471
470
|
var headerParams = {};
|
|
472
471
|
var formParams = {};
|
|
473
|
-
var authNames = [
|
|
472
|
+
var authNames = ["api_key"];
|
|
474
473
|
var contentTypes = [];
|
|
475
|
-
var accepts = [
|
|
474
|
+
var accepts = ["application/json"];
|
|
476
475
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
477
|
-
return this.apiClient.callApi(
|
|
476
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
478
477
|
}
|
|
479
478
|
|
|
480
479
|
/**
|
|
481
480
|
* Get environment variables of a device
|
|
482
|
-
* @param {String} projectOrProductUID
|
|
483
|
-
* @param {String} deviceUID
|
|
481
|
+
* @param {String} projectOrProductUID
|
|
482
|
+
* @param {String} deviceUID
|
|
484
483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
485
484
|
*/
|
|
486
485
|
}, {
|
|
@@ -493,8 +492,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
492
|
|
|
494
493
|
/**
|
|
495
494
|
* Get environment variables of a device with device pin authorization
|
|
496
|
-
* @param {String} productUID
|
|
497
|
-
* @param {String} deviceUID
|
|
495
|
+
* @param {String} productUID
|
|
496
|
+
* @param {String} deviceUID
|
|
498
497
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
499
498
|
*/
|
|
500
499
|
}, {
|
|
@@ -510,23 +509,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
509
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
511
510
|
}
|
|
512
511
|
var pathParams = {
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
productUID: productUID,
|
|
513
|
+
deviceUID: deviceUID
|
|
515
514
|
};
|
|
516
515
|
var queryParams = {};
|
|
517
516
|
var headerParams = {};
|
|
518
517
|
var formParams = {};
|
|
519
|
-
var authNames = [
|
|
518
|
+
var authNames = ["pin"];
|
|
520
519
|
var contentTypes = [];
|
|
521
|
-
var accepts = [
|
|
520
|
+
var accepts = ["application/json"];
|
|
522
521
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
523
|
-
return this.apiClient.callApi(
|
|
522
|
+
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
523
|
}
|
|
525
524
|
|
|
526
525
|
/**
|
|
527
526
|
* Get environment variables of a device with device pin authorization
|
|
528
|
-
* @param {String} productUID
|
|
529
|
-
* @param {String} deviceUID
|
|
527
|
+
* @param {String} productUID
|
|
528
|
+
* @param {String} deviceUID
|
|
530
529
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
531
530
|
*/
|
|
532
531
|
}, {
|
|
@@ -539,18 +538,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
539
538
|
|
|
540
539
|
/**
|
|
541
540
|
* Get Device Health Log
|
|
542
|
-
* @param {String} projectOrProductUID
|
|
543
|
-
* @param {String} deviceUID
|
|
544
|
-
* @param {Object} opts Optional parameters
|
|
545
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
546
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
547
|
-
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
541
|
+
* @param {String} projectOrProductUID
|
|
542
|
+
* @param {String} deviceUID
|
|
548
543
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
549
544
|
*/
|
|
550
545
|
}, {
|
|
551
546
|
key: "getDeviceHealthLogWithHttpInfo",
|
|
552
|
-
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID
|
|
553
|
-
opts = opts || {};
|
|
547
|
+
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
554
548
|
var postBody = null;
|
|
555
549
|
// verify the required parameter 'projectOrProductUID' is set
|
|
556
550
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
@@ -561,45 +555,37 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
561
555
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
562
556
|
}
|
|
563
557
|
var pathParams = {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
};
|
|
567
|
-
var queryParams = {
|
|
568
|
-
'startDate': opts['startDate'],
|
|
569
|
-
'endDate': opts['endDate'],
|
|
570
|
-
'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
|
|
558
|
+
projectOrProductUID: projectOrProductUID,
|
|
559
|
+
deviceUID: deviceUID
|
|
571
560
|
};
|
|
561
|
+
var queryParams = {};
|
|
572
562
|
var headerParams = {};
|
|
573
563
|
var formParams = {};
|
|
574
|
-
var authNames = [
|
|
564
|
+
var authNames = ["api_key"];
|
|
575
565
|
var contentTypes = [];
|
|
576
|
-
var accepts = [
|
|
566
|
+
var accepts = ["application/json"];
|
|
577
567
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
578
|
-
return this.apiClient.callApi(
|
|
568
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
579
569
|
}
|
|
580
570
|
|
|
581
571
|
/**
|
|
582
572
|
* Get Device Health Log
|
|
583
|
-
* @param {String} projectOrProductUID
|
|
584
|
-
* @param {String} deviceUID
|
|
585
|
-
* @param {Object} opts Optional parameters
|
|
586
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
587
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
588
|
-
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
573
|
+
* @param {String} projectOrProductUID
|
|
574
|
+
* @param {String} deviceUID
|
|
589
575
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
590
576
|
*/
|
|
591
577
|
}, {
|
|
592
578
|
key: "getDeviceHealthLog",
|
|
593
|
-
value: function getDeviceHealthLog(projectOrProductUID, deviceUID
|
|
594
|
-
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID
|
|
579
|
+
value: function getDeviceHealthLog(projectOrProductUID, deviceUID) {
|
|
580
|
+
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
595
581
|
return response_and_data.data;
|
|
596
582
|
});
|
|
597
583
|
}
|
|
598
584
|
|
|
599
585
|
/**
|
|
600
586
|
* Get Device Latest Events
|
|
601
|
-
* @param {String} projectOrProductUID
|
|
602
|
-
* @param {String} deviceUID
|
|
587
|
+
* @param {String} projectOrProductUID
|
|
588
|
+
* @param {String} deviceUID
|
|
603
589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
|
|
604
590
|
*/
|
|
605
591
|
}, {
|
|
@@ -615,23 +601,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
615
601
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
|
|
616
602
|
}
|
|
617
603
|
var pathParams = {
|
|
618
|
-
|
|
619
|
-
|
|
604
|
+
projectOrProductUID: projectOrProductUID,
|
|
605
|
+
deviceUID: deviceUID
|
|
620
606
|
};
|
|
621
607
|
var queryParams = {};
|
|
622
608
|
var headerParams = {};
|
|
623
609
|
var formParams = {};
|
|
624
|
-
var authNames = [
|
|
610
|
+
var authNames = ["api_key"];
|
|
625
611
|
var contentTypes = [];
|
|
626
|
-
var accepts = [
|
|
612
|
+
var accepts = ["application/json"];
|
|
627
613
|
var returnType = _GetDeviceLatest200Response["default"];
|
|
628
|
-
return this.apiClient.callApi(
|
|
614
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
629
615
|
}
|
|
630
616
|
|
|
631
617
|
/**
|
|
632
618
|
* Get Device Latest Events
|
|
633
|
-
* @param {String} projectOrProductUID
|
|
634
|
-
* @param {String} deviceUID
|
|
619
|
+
* @param {String} projectOrProductUID
|
|
620
|
+
* @param {String} deviceUID
|
|
635
621
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
|
|
636
622
|
*/
|
|
637
623
|
}, {
|
|
@@ -642,56 +628,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
642
628
|
});
|
|
643
629
|
}
|
|
644
630
|
|
|
645
|
-
/**
|
|
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
|
|
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
|
-
*/
|
|
651
|
-
}, {
|
|
652
|
-
key: "getDevicePlansWithHttpInfo",
|
|
653
|
-
value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
654
|
-
var postBody = null;
|
|
655
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
656
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
657
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
|
|
658
|
-
}
|
|
659
|
-
// verify the required parameter 'deviceUID' is set
|
|
660
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
661
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
662
|
-
}
|
|
663
|
-
var pathParams = {
|
|
664
|
-
'projectOrProductUID': projectOrProductUID,
|
|
665
|
-
'deviceUID': deviceUID
|
|
666
|
-
};
|
|
667
|
-
var queryParams = {};
|
|
668
|
-
var headerParams = {};
|
|
669
|
-
var formParams = {};
|
|
670
|
-
var authNames = [];
|
|
671
|
-
var contentTypes = [];
|
|
672
|
-
var accepts = ['application/json'];
|
|
673
|
-
var returnType = _GetDevicePlans200Response["default"];
|
|
674
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/**
|
|
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
|
|
681
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
682
|
-
*/
|
|
683
|
-
}, {
|
|
684
|
-
key: "getDevicePlans",
|
|
685
|
-
value: function getDevicePlans(projectOrProductUID, deviceUID) {
|
|
686
|
-
return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
687
|
-
return response_and_data.data;
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
|
|
691
631
|
/**
|
|
692
632
|
* Get Device Public Key
|
|
693
|
-
* @param {String} projectOrProductUID
|
|
694
|
-
* @param {String} deviceUID
|
|
633
|
+
* @param {String} projectOrProductUID
|
|
634
|
+
* @param {String} deviceUID
|
|
695
635
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
696
636
|
*/
|
|
697
637
|
}, {
|
|
@@ -707,23 +647,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
647
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
708
648
|
}
|
|
709
649
|
var pathParams = {
|
|
710
|
-
|
|
711
|
-
|
|
650
|
+
projectOrProductUID: projectOrProductUID,
|
|
651
|
+
deviceUID: deviceUID
|
|
712
652
|
};
|
|
713
653
|
var queryParams = {};
|
|
714
654
|
var headerParams = {};
|
|
715
655
|
var formParams = {};
|
|
716
|
-
var authNames = [
|
|
656
|
+
var authNames = ["api_key"];
|
|
717
657
|
var contentTypes = [];
|
|
718
|
-
var accepts = [
|
|
658
|
+
var accepts = ["application/json"];
|
|
719
659
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
720
|
-
return this.apiClient.callApi(
|
|
660
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
721
661
|
}
|
|
722
662
|
|
|
723
663
|
/**
|
|
724
664
|
* Get Device Public Key
|
|
725
|
-
* @param {String} projectOrProductUID
|
|
726
|
-
* @param {String} deviceUID
|
|
665
|
+
* @param {String} projectOrProductUID
|
|
666
|
+
* @param {String} deviceUID
|
|
727
667
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
728
668
|
*/
|
|
729
669
|
}, {
|
|
@@ -736,8 +676,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
736
676
|
|
|
737
677
|
/**
|
|
738
678
|
* Get Device Sessions
|
|
739
|
-
* @param {String} projectOrProductUID
|
|
740
|
-
* @param {String} deviceUID
|
|
679
|
+
* @param {String} projectOrProductUID
|
|
680
|
+
* @param {String} deviceUID
|
|
741
681
|
* @param {Object} opts Optional parameters
|
|
742
682
|
* @param {Number} opts.pageSize (default to 50)
|
|
743
683
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -759,28 +699,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
759
699
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
760
700
|
}
|
|
761
701
|
var pathParams = {
|
|
762
|
-
|
|
763
|
-
|
|
702
|
+
projectOrProductUID: projectOrProductUID,
|
|
703
|
+
deviceUID: deviceUID
|
|
764
704
|
};
|
|
765
705
|
var queryParams = {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
706
|
+
pageSize: opts["pageSize"],
|
|
707
|
+
pageNum: opts["pageNum"],
|
|
708
|
+
startDate: opts["startDate"],
|
|
709
|
+
endDate: opts["endDate"]
|
|
770
710
|
};
|
|
771
711
|
var headerParams = {};
|
|
772
712
|
var formParams = {};
|
|
773
|
-
var authNames = [
|
|
713
|
+
var authNames = ["api_key"];
|
|
774
714
|
var contentTypes = [];
|
|
775
|
-
var accepts = [
|
|
715
|
+
var accepts = ["application/json"];
|
|
776
716
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
777
|
-
return this.apiClient.callApi(
|
|
717
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
778
718
|
}
|
|
779
719
|
|
|
780
720
|
/**
|
|
781
721
|
* Get Device Sessions
|
|
782
|
-
* @param {String} projectOrProductUID
|
|
783
|
-
* @param {String} deviceUID
|
|
722
|
+
* @param {String} projectOrProductUID
|
|
723
|
+
* @param {String} deviceUID
|
|
784
724
|
* @param {Object} opts Optional parameters
|
|
785
725
|
* @param {Number} opts.pageSize (default to 50)
|
|
786
726
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -798,7 +738,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
798
738
|
|
|
799
739
|
/**
|
|
800
740
|
* Get Device Public Keys of a Project
|
|
801
|
-
* @param {String} projectOrProductUID
|
|
741
|
+
* @param {String} projectOrProductUID
|
|
802
742
|
* @param {Object} opts Optional parameters
|
|
803
743
|
* @param {Number} opts.pageSize (default to 50)
|
|
804
744
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -814,24 +754,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
814
754
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
|
|
815
755
|
}
|
|
816
756
|
var pathParams = {
|
|
817
|
-
|
|
757
|
+
projectOrProductUID: projectOrProductUID
|
|
818
758
|
};
|
|
819
759
|
var queryParams = {
|
|
820
|
-
|
|
821
|
-
|
|
760
|
+
pageSize: opts["pageSize"],
|
|
761
|
+
pageNum: opts["pageNum"]
|
|
822
762
|
};
|
|
823
763
|
var headerParams = {};
|
|
824
764
|
var formParams = {};
|
|
825
|
-
var authNames = [
|
|
765
|
+
var authNames = ["api_key"];
|
|
826
766
|
var contentTypes = [];
|
|
827
|
-
var accepts = [
|
|
767
|
+
var accepts = ["application/json"];
|
|
828
768
|
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
829
|
-
return this.apiClient.callApi(
|
|
769
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
830
770
|
}
|
|
831
771
|
|
|
832
772
|
/**
|
|
833
773
|
* Get Device Public Keys of a Project
|
|
834
|
-
* @param {String} projectOrProductUID
|
|
774
|
+
* @param {String} projectOrProductUID
|
|
835
775
|
* @param {Object} opts Optional parameters
|
|
836
776
|
* @param {Number} opts.pageSize (default to 50)
|
|
837
777
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -847,18 +787,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
847
787
|
|
|
848
788
|
/**
|
|
849
789
|
* Get Devices of a Project
|
|
850
|
-
* @param {String} projectOrProductUID
|
|
790
|
+
* @param {String} projectOrProductUID
|
|
851
791
|
* @param {Object} opts Optional parameters
|
|
852
792
|
* @param {Number} opts.pageSize (default to 50)
|
|
853
793
|
* @param {Number} opts.pageNum (default to 1)
|
|
854
794
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
855
795
|
* @param {Array.<String>} opts.tag Tag filter
|
|
856
796
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
857
|
-
* @param {Array.<String>} opts.fleetUID
|
|
797
|
+
* @param {Array.<String>} opts.fleetUID
|
|
858
798
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
859
799
|
* @param {Array.<String>} opts.location Location filter
|
|
860
800
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
861
|
-
* @param {Array.<String>} opts.productUID
|
|
801
|
+
* @param {Array.<String>} opts.productUID
|
|
862
802
|
* @param {Array.<String>} opts.sku SKU filter
|
|
863
803
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
864
804
|
*/
|
|
@@ -872,44 +812,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
872
812
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
|
|
873
813
|
}
|
|
874
814
|
var pathParams = {
|
|
875
|
-
|
|
815
|
+
projectOrProductUID: projectOrProductUID
|
|
876
816
|
};
|
|
877
817
|
var queryParams = {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
818
|
+
pageSize: opts["pageSize"],
|
|
819
|
+
pageNum: opts["pageNum"],
|
|
820
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
821
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
822
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
823
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
824
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
825
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
826
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
827
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
828
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
889
829
|
};
|
|
890
830
|
var headerParams = {};
|
|
891
831
|
var formParams = {};
|
|
892
|
-
var authNames = [
|
|
832
|
+
var authNames = ["api_key"];
|
|
893
833
|
var contentTypes = [];
|
|
894
|
-
var accepts = [
|
|
834
|
+
var accepts = ["application/json"];
|
|
895
835
|
var returnType = _GetProjectDevices200Response["default"];
|
|
896
|
-
return this.apiClient.callApi(
|
|
836
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
897
837
|
}
|
|
898
838
|
|
|
899
839
|
/**
|
|
900
840
|
* Get Devices of a Project
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
841
|
+
* @param {String} projectOrProductUID
|
|
902
842
|
* @param {Object} opts Optional parameters
|
|
903
843
|
* @param {Number} opts.pageSize (default to 50)
|
|
904
844
|
* @param {Number} opts.pageNum (default to 1)
|
|
905
845
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
906
846
|
* @param {Array.<String>} opts.tag Tag filter
|
|
907
847
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
908
|
-
* @param {Array.<String>} opts.fleetUID
|
|
848
|
+
* @param {Array.<String>} opts.fleetUID
|
|
909
849
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
910
850
|
* @param {Array.<String>} opts.location Location filter
|
|
911
851
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
912
|
-
* @param {Array.<String>} opts.productUID
|
|
852
|
+
* @param {Array.<String>} opts.productUID
|
|
913
853
|
* @param {Array.<String>} opts.sku SKU filter
|
|
914
854
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
915
855
|
*/
|
|
@@ -923,8 +863,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
923
863
|
|
|
924
864
|
/**
|
|
925
865
|
* Get Devices of a Fleet within a Project
|
|
926
|
-
* @param {String} projectOrProductUID
|
|
927
|
-
* @param {String} fleetUID
|
|
866
|
+
* @param {String} projectOrProductUID
|
|
867
|
+
* @param {String} fleetUID
|
|
928
868
|
* @param {Object} opts Optional parameters
|
|
929
869
|
* @param {Number} opts.pageSize (default to 50)
|
|
930
870
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -934,7 +874,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
934
874
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
935
875
|
* @param {Array.<String>} opts.location Location filter
|
|
936
876
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
937
|
-
* @param {Array.<String>} opts.productUID
|
|
877
|
+
* @param {Array.<String>} opts.productUID
|
|
938
878
|
* @param {Array.<String>} opts.sku SKU filter
|
|
939
879
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
940
880
|
*/
|
|
@@ -952,34 +892,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
952
892
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
953
893
|
}
|
|
954
894
|
var pathParams = {
|
|
955
|
-
|
|
956
|
-
|
|
895
|
+
projectOrProductUID: projectOrProductUID,
|
|
896
|
+
fleetUID: fleetUID
|
|
957
897
|
};
|
|
958
898
|
var queryParams = {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
899
|
+
pageSize: opts["pageSize"],
|
|
900
|
+
pageNum: opts["pageNum"],
|
|
901
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
902
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
903
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
904
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
905
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
906
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
907
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
908
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
969
909
|
};
|
|
970
910
|
var headerParams = {};
|
|
971
911
|
var formParams = {};
|
|
972
|
-
var authNames = [
|
|
912
|
+
var authNames = ["api_key"];
|
|
973
913
|
var contentTypes = [];
|
|
974
|
-
var accepts = [
|
|
914
|
+
var accepts = ["application/json"];
|
|
975
915
|
var returnType = _GetProjectDevices200Response["default"];
|
|
976
|
-
return this.apiClient.callApi(
|
|
916
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
977
917
|
}
|
|
978
918
|
|
|
979
919
|
/**
|
|
980
920
|
* Get Devices of a Fleet within a Project
|
|
981
|
-
* @param {String} projectOrProductUID
|
|
982
|
-
* @param {String} fleetUID
|
|
921
|
+
* @param {String} projectOrProductUID
|
|
922
|
+
* @param {String} fleetUID
|
|
983
923
|
* @param {Object} opts Optional parameters
|
|
984
924
|
* @param {Number} opts.pageSize (default to 50)
|
|
985
925
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -989,7 +929,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
989
929
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
990
930
|
* @param {Array.<String>} opts.location Location filter
|
|
991
931
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
992
|
-
* @param {Array.<String>} opts.productUID
|
|
932
|
+
* @param {Array.<String>} opts.productUID
|
|
993
933
|
* @param {Array.<String>} opts.sku SKU filter
|
|
994
934
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
995
935
|
*/
|
|
@@ -1003,9 +943,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1003
943
|
|
|
1004
944
|
/**
|
|
1005
945
|
* 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
|
|
946
|
+
* @param {String} projectOrProductUID
|
|
947
|
+
* @param {String} deviceUID
|
|
948
|
+
* @param {String} notefileID
|
|
1009
949
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1010
950
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1011
951
|
*/
|
|
@@ -1030,25 +970,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1030
970
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
1031
971
|
}
|
|
1032
972
|
var pathParams = {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
973
|
+
projectOrProductUID: projectOrProductUID,
|
|
974
|
+
deviceUID: deviceUID,
|
|
975
|
+
notefileID: notefileID
|
|
1036
976
|
};
|
|
1037
977
|
var queryParams = {};
|
|
1038
978
|
var headerParams = {};
|
|
1039
979
|
var formParams = {};
|
|
1040
|
-
var authNames = [
|
|
1041
|
-
var contentTypes = [
|
|
1042
|
-
var accepts = [
|
|
980
|
+
var authNames = ["api_key"];
|
|
981
|
+
var contentTypes = ["application/json"];
|
|
982
|
+
var accepts = ["application/json"];
|
|
1043
983
|
var returnType = null;
|
|
1044
|
-
return this.apiClient.callApi(
|
|
984
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1045
985
|
}
|
|
1046
986
|
|
|
1047
987
|
/**
|
|
1048
988
|
* 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
|
|
989
|
+
* @param {String} projectOrProductUID
|
|
990
|
+
* @param {String} deviceUID
|
|
991
|
+
* @param {String} notefileID
|
|
1052
992
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1053
993
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1054
994
|
*/
|
|
@@ -1062,9 +1002,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1062
1002
|
|
|
1063
1003
|
/**
|
|
1064
1004
|
* Incrementally retrieve changes within a specific Notefile.
|
|
1065
|
-
* @param {String} projectOrProductUID
|
|
1066
|
-
* @param {String} deviceUID
|
|
1067
|
-
* @param {String} notefileID
|
|
1005
|
+
* @param {String} projectOrProductUID
|
|
1006
|
+
* @param {String} deviceUID
|
|
1007
|
+
* @param {String} notefileID
|
|
1068
1008
|
* @param {Object} opts Optional parameters
|
|
1069
1009
|
* @param {String} opts.tracker The change tracker ID.
|
|
1070
1010
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -1092,32 +1032,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1092
1032
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
1093
1033
|
}
|
|
1094
1034
|
var pathParams = {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1035
|
+
projectOrProductUID: projectOrProductUID,
|
|
1036
|
+
deviceUID: deviceUID,
|
|
1037
|
+
notefileID: notefileID
|
|
1098
1038
|
};
|
|
1099
1039
|
var queryParams = {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1040
|
+
tracker: opts["tracker"],
|
|
1041
|
+
max: opts["max"],
|
|
1042
|
+
start: opts["start"],
|
|
1043
|
+
stop: opts["stop"],
|
|
1044
|
+
deleted: opts["deleted"],
|
|
1045
|
+
"delete": opts["_delete"]
|
|
1106
1046
|
};
|
|
1107
1047
|
var headerParams = {};
|
|
1108
1048
|
var formParams = {};
|
|
1109
|
-
var authNames = [
|
|
1049
|
+
var authNames = ["api_key"];
|
|
1110
1050
|
var contentTypes = [];
|
|
1111
|
-
var accepts = [
|
|
1051
|
+
var accepts = ["application/json"];
|
|
1112
1052
|
var returnType = _HandleNoteChanges200Response["default"];
|
|
1113
|
-
return this.apiClient.callApi(
|
|
1053
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1114
1054
|
}
|
|
1115
1055
|
|
|
1116
1056
|
/**
|
|
1117
1057
|
* Incrementally retrieve changes within a specific Notefile.
|
|
1118
|
-
* @param {String} projectOrProductUID
|
|
1119
|
-
* @param {String} deviceUID
|
|
1120
|
-
* @param {String} notefileID
|
|
1058
|
+
* @param {String} projectOrProductUID
|
|
1059
|
+
* @param {String} deviceUID
|
|
1060
|
+
* @param {String} notefileID
|
|
1121
1061
|
* @param {Object} opts Optional parameters
|
|
1122
1062
|
* @param {String} opts.tracker The change tracker ID.
|
|
1123
1063
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -1137,10 +1077,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1137
1077
|
|
|
1138
1078
|
/**
|
|
1139
1079
|
* 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
|
|
1080
|
+
* @param {String} projectOrProductUID
|
|
1081
|
+
* @param {String} deviceUID
|
|
1082
|
+
* @param {String} notefileID
|
|
1083
|
+
* @param {String} noteID
|
|
1144
1084
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1145
1085
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1146
1086
|
*/
|
|
@@ -1169,27 +1109,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1169
1109
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
1170
1110
|
}
|
|
1171
1111
|
var pathParams = {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1112
|
+
projectOrProductUID: projectOrProductUID,
|
|
1113
|
+
deviceUID: deviceUID,
|
|
1114
|
+
notefileID: notefileID,
|
|
1115
|
+
noteID: noteID
|
|
1176
1116
|
};
|
|
1177
1117
|
var queryParams = {};
|
|
1178
1118
|
var headerParams = {};
|
|
1179
1119
|
var formParams = {};
|
|
1180
|
-
var authNames = [
|
|
1181
|
-
var contentTypes = [
|
|
1182
|
-
var accepts = [
|
|
1120
|
+
var authNames = ["api_key"];
|
|
1121
|
+
var contentTypes = ["application/json"];
|
|
1122
|
+
var accepts = ["application/json"];
|
|
1183
1123
|
var returnType = null;
|
|
1184
|
-
return this.apiClient.callApi(
|
|
1124
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1185
1125
|
}
|
|
1186
1126
|
|
|
1187
1127
|
/**
|
|
1188
1128
|
* 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
|
|
1129
|
+
* @param {String} projectOrProductUID
|
|
1130
|
+
* @param {String} deviceUID
|
|
1131
|
+
* @param {String} notefileID
|
|
1132
|
+
* @param {String} noteID
|
|
1193
1133
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1194
1134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1195
1135
|
*/
|
|
@@ -1203,10 +1143,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1203
1143
|
|
|
1204
1144
|
/**
|
|
1205
1145
|
* Delete a note from a DB notefile
|
|
1206
|
-
* @param {String} projectOrProductUID
|
|
1207
|
-
* @param {String} deviceUID
|
|
1208
|
-
* @param {String} notefileID
|
|
1209
|
-
* @param {String} noteID
|
|
1146
|
+
* @param {String} projectOrProductUID
|
|
1147
|
+
* @param {String} deviceUID
|
|
1148
|
+
* @param {String} notefileID
|
|
1149
|
+
* @param {String} noteID
|
|
1210
1150
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1211
1151
|
*/
|
|
1212
1152
|
}, {
|
|
@@ -1230,27 +1170,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1230
1170
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
|
|
1231
1171
|
}
|
|
1232
1172
|
var pathParams = {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1173
|
+
projectOrProductUID: projectOrProductUID,
|
|
1174
|
+
deviceUID: deviceUID,
|
|
1175
|
+
notefileID: notefileID,
|
|
1176
|
+
noteID: noteID
|
|
1237
1177
|
};
|
|
1238
1178
|
var queryParams = {};
|
|
1239
1179
|
var headerParams = {};
|
|
1240
1180
|
var formParams = {};
|
|
1241
|
-
var authNames = [
|
|
1181
|
+
var authNames = ["api_key"];
|
|
1242
1182
|
var contentTypes = [];
|
|
1243
|
-
var accepts = [
|
|
1183
|
+
var accepts = ["application/json"];
|
|
1244
1184
|
var returnType = null;
|
|
1245
|
-
return this.apiClient.callApi(
|
|
1185
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1246
1186
|
}
|
|
1247
1187
|
|
|
1248
1188
|
/**
|
|
1249
1189
|
* Delete a note from a DB notefile
|
|
1250
|
-
* @param {String} projectOrProductUID
|
|
1251
|
-
* @param {String} deviceUID
|
|
1252
|
-
* @param {String} notefileID
|
|
1253
|
-
* @param {String} noteID
|
|
1190
|
+
* @param {String} projectOrProductUID
|
|
1191
|
+
* @param {String} deviceUID
|
|
1192
|
+
* @param {String} notefileID
|
|
1193
|
+
* @param {String} noteID
|
|
1254
1194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1255
1195
|
*/
|
|
1256
1196
|
}, {
|
|
@@ -1263,10 +1203,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1263
1203
|
|
|
1264
1204
|
/**
|
|
1265
1205
|
* Get a note from a DB notefile
|
|
1266
|
-
* @param {String} projectOrProductUID
|
|
1267
|
-
* @param {String} deviceUID
|
|
1268
|
-
* @param {String} notefileID
|
|
1269
|
-
* @param {String} noteID
|
|
1206
|
+
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} deviceUID
|
|
1208
|
+
* @param {String} notefileID
|
|
1209
|
+
* @param {String} noteID
|
|
1270
1210
|
* @param {Object} opts Optional parameters
|
|
1271
1211
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1272
1212
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1294,30 +1234,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1294
1234
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
|
|
1295
1235
|
}
|
|
1296
1236
|
var pathParams = {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1237
|
+
projectOrProductUID: projectOrProductUID,
|
|
1238
|
+
deviceUID: deviceUID,
|
|
1239
|
+
notefileID: notefileID,
|
|
1240
|
+
noteID: noteID
|
|
1301
1241
|
};
|
|
1302
1242
|
var queryParams = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1243
|
+
"delete": opts["_delete"],
|
|
1244
|
+
deleted: opts["deleted"]
|
|
1305
1245
|
};
|
|
1306
1246
|
var headerParams = {};
|
|
1307
1247
|
var formParams = {};
|
|
1308
|
-
var authNames = [
|
|
1248
|
+
var authNames = ["api_key"];
|
|
1309
1249
|
var contentTypes = [];
|
|
1310
|
-
var accepts = [
|
|
1250
|
+
var accepts = ["application/json"];
|
|
1311
1251
|
var returnType = _HandleNoteGet200Response["default"];
|
|
1312
|
-
return this.apiClient.callApi(
|
|
1252
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1313
1253
|
}
|
|
1314
1254
|
|
|
1315
1255
|
/**
|
|
1316
1256
|
* Get a note from a DB notefile
|
|
1317
|
-
* @param {String} projectOrProductUID
|
|
1318
|
-
* @param {String} deviceUID
|
|
1319
|
-
* @param {String} notefileID
|
|
1320
|
-
* @param {String} noteID
|
|
1257
|
+
* @param {String} projectOrProductUID
|
|
1258
|
+
* @param {String} deviceUID
|
|
1259
|
+
* @param {String} notefileID
|
|
1260
|
+
* @param {String} noteID
|
|
1321
1261
|
* @param {Object} opts Optional parameters
|
|
1322
1262
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1323
1263
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -1333,8 +1273,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1333
1273
|
|
|
1334
1274
|
/**
|
|
1335
1275
|
* Send a signal from Notehub to a Notecard.
|
|
1336
|
-
* @param {String} projectOrProductUID
|
|
1337
|
-
* @param {String} deviceUID
|
|
1276
|
+
* @param {String} projectOrProductUID
|
|
1277
|
+
* @param {String} deviceUID
|
|
1338
1278
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1339
1279
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
|
|
1340
1280
|
*/
|
|
@@ -1355,23 +1295,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1355
1295
|
throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
|
|
1356
1296
|
}
|
|
1357
1297
|
var pathParams = {
|
|
1358
|
-
|
|
1359
|
-
|
|
1298
|
+
projectOrProductUID: projectOrProductUID,
|
|
1299
|
+
deviceUID: deviceUID
|
|
1360
1300
|
};
|
|
1361
1301
|
var queryParams = {};
|
|
1362
1302
|
var headerParams = {};
|
|
1363
1303
|
var formParams = {};
|
|
1364
|
-
var authNames = [
|
|
1365
|
-
var contentTypes = [
|
|
1366
|
-
var accepts = [
|
|
1304
|
+
var authNames = ["api_key"];
|
|
1305
|
+
var contentTypes = ["application/json"];
|
|
1306
|
+
var accepts = ["application/json"];
|
|
1367
1307
|
var returnType = _HandleNoteSignal200Response["default"];
|
|
1368
|
-
return this.apiClient.callApi(
|
|
1308
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1369
1309
|
}
|
|
1370
1310
|
|
|
1371
1311
|
/**
|
|
1372
1312
|
* Send a signal from Notehub to a Notecard.
|
|
1373
|
-
* @param {String} projectOrProductUID
|
|
1374
|
-
* @param {String} deviceUID
|
|
1313
|
+
* @param {String} projectOrProductUID
|
|
1314
|
+
* @param {String} deviceUID
|
|
1375
1315
|
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1376
1316
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
|
|
1377
1317
|
*/
|
|
@@ -1385,10 +1325,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1385
1325
|
|
|
1386
1326
|
/**
|
|
1387
1327
|
* Update a note in a DB notefile
|
|
1388
|
-
* @param {String} projectOrProductUID
|
|
1389
|
-
* @param {String} deviceUID
|
|
1390
|
-
* @param {String} notefileID
|
|
1391
|
-
* @param {String} noteID
|
|
1328
|
+
* @param {String} projectOrProductUID
|
|
1329
|
+
* @param {String} deviceUID
|
|
1330
|
+
* @param {String} notefileID
|
|
1331
|
+
* @param {String} noteID
|
|
1392
1332
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1393
1333
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1394
1334
|
*/
|
|
@@ -1417,27 +1357,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1357
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
|
|
1418
1358
|
}
|
|
1419
1359
|
var pathParams = {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1360
|
+
projectOrProductUID: projectOrProductUID,
|
|
1361
|
+
deviceUID: deviceUID,
|
|
1362
|
+
notefileID: notefileID,
|
|
1363
|
+
noteID: noteID
|
|
1424
1364
|
};
|
|
1425
1365
|
var queryParams = {};
|
|
1426
1366
|
var headerParams = {};
|
|
1427
1367
|
var formParams = {};
|
|
1428
|
-
var authNames = [
|
|
1429
|
-
var contentTypes = [
|
|
1430
|
-
var accepts = [
|
|
1368
|
+
var authNames = ["api_key"];
|
|
1369
|
+
var contentTypes = ["application/json"];
|
|
1370
|
+
var accepts = ["application/json"];
|
|
1431
1371
|
var returnType = null;
|
|
1432
|
-
return this.apiClient.callApi(
|
|
1372
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1433
1373
|
}
|
|
1434
1374
|
|
|
1435
1375
|
/**
|
|
1436
1376
|
* Update a note in a DB notefile
|
|
1437
|
-
* @param {String} projectOrProductUID
|
|
1438
|
-
* @param {String} deviceUID
|
|
1439
|
-
* @param {String} notefileID
|
|
1440
|
-
* @param {String} noteID
|
|
1377
|
+
* @param {String} projectOrProductUID
|
|
1378
|
+
* @param {String} deviceUID
|
|
1379
|
+
* @param {String} notefileID
|
|
1380
|
+
* @param {String} noteID
|
|
1441
1381
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1442
1382
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1443
1383
|
*/
|
|
@@ -1451,8 +1391,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1451
1391
|
|
|
1452
1392
|
/**
|
|
1453
1393
|
* 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
|
|
1394
|
+
* @param {String} projectOrProductUID
|
|
1395
|
+
* @param {String} deviceUID
|
|
1456
1396
|
* @param {Object} opts Optional parameters
|
|
1457
1397
|
* @param {String} opts.tracker The change tracker ID.
|
|
1458
1398
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1472,26 +1412,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1472
1412
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
|
|
1473
1413
|
}
|
|
1474
1414
|
var pathParams = {
|
|
1475
|
-
|
|
1476
|
-
|
|
1415
|
+
projectOrProductUID: projectOrProductUID,
|
|
1416
|
+
deviceUID: deviceUID
|
|
1477
1417
|
};
|
|
1478
1418
|
var queryParams = {
|
|
1479
|
-
|
|
1480
|
-
|
|
1419
|
+
tracker: opts["tracker"],
|
|
1420
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi")
|
|
1481
1421
|
};
|
|
1482
1422
|
var headerParams = {};
|
|
1483
1423
|
var formParams = {};
|
|
1484
|
-
var authNames = [
|
|
1424
|
+
var authNames = ["api_key"];
|
|
1485
1425
|
var contentTypes = [];
|
|
1486
|
-
var accepts = [
|
|
1426
|
+
var accepts = ["application/json"];
|
|
1487
1427
|
var returnType = _HandleNotefileChanges200Response["default"];
|
|
1488
|
-
return this.apiClient.callApi(
|
|
1428
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1489
1429
|
}
|
|
1490
1430
|
|
|
1491
1431
|
/**
|
|
1492
1432
|
* 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
|
|
1433
|
+
* @param {String} projectOrProductUID
|
|
1434
|
+
* @param {String} deviceUID
|
|
1495
1435
|
* @param {Object} opts Optional parameters
|
|
1496
1436
|
* @param {String} opts.tracker The change tracker ID.
|
|
1497
1437
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
@@ -1507,8 +1447,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1507
1447
|
|
|
1508
1448
|
/**
|
|
1509
1449
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1510
|
-
* @param {String} projectOrProductUID
|
|
1511
|
-
* @param {String} deviceUID
|
|
1450
|
+
* @param {String} projectOrProductUID
|
|
1451
|
+
* @param {String} deviceUID
|
|
1512
1452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
|
|
1513
1453
|
*/
|
|
1514
1454
|
}, {
|
|
@@ -1524,23 +1464,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1524
1464
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
|
|
1525
1465
|
}
|
|
1526
1466
|
var pathParams = {
|
|
1527
|
-
|
|
1528
|
-
|
|
1467
|
+
projectOrProductUID: projectOrProductUID,
|
|
1468
|
+
deviceUID: deviceUID
|
|
1529
1469
|
};
|
|
1530
1470
|
var queryParams = {};
|
|
1531
1471
|
var headerParams = {};
|
|
1532
1472
|
var formParams = {};
|
|
1533
|
-
var authNames = [
|
|
1473
|
+
var authNames = ["api_key"];
|
|
1534
1474
|
var contentTypes = [];
|
|
1535
|
-
var accepts = [
|
|
1475
|
+
var accepts = ["application/json"];
|
|
1536
1476
|
var returnType = _HandleNotefileChangesPending200Response["default"];
|
|
1537
|
-
return this.apiClient.callApi(
|
|
1477
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1538
1478
|
}
|
|
1539
1479
|
|
|
1540
1480
|
/**
|
|
1541
1481
|
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1542
|
-
* @param {String} projectOrProductUID
|
|
1543
|
-
* @param {String} deviceUID
|
|
1482
|
+
* @param {String} projectOrProductUID
|
|
1483
|
+
* @param {String} deviceUID
|
|
1544
1484
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
|
|
1545
1485
|
*/
|
|
1546
1486
|
}, {
|
|
@@ -1553,9 +1493,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1553
1493
|
|
|
1554
1494
|
/**
|
|
1555
1495
|
* Deletes Notefiles and the Notes they contain.
|
|
1556
|
-
* @param {String} projectOrProductUID
|
|
1557
|
-
* @param {String} deviceUID
|
|
1558
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1496
|
+
* @param {String} projectOrProductUID
|
|
1497
|
+
* @param {String} deviceUID
|
|
1498
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1559
1499
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1560
1500
|
*/
|
|
1561
1501
|
}, {
|
|
@@ -1575,24 +1515,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1575
1515
|
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
1576
1516
|
}
|
|
1577
1517
|
var pathParams = {
|
|
1578
|
-
|
|
1579
|
-
|
|
1518
|
+
projectOrProductUID: projectOrProductUID,
|
|
1519
|
+
deviceUID: deviceUID
|
|
1580
1520
|
};
|
|
1581
1521
|
var queryParams = {};
|
|
1582
1522
|
var headerParams = {};
|
|
1583
1523
|
var formParams = {};
|
|
1584
|
-
var authNames = [
|
|
1585
|
-
var contentTypes = [
|
|
1586
|
-
var accepts = [
|
|
1524
|
+
var authNames = ["api_key"];
|
|
1525
|
+
var contentTypes = ["application/json"];
|
|
1526
|
+
var accepts = ["application/json"];
|
|
1587
1527
|
var returnType = null;
|
|
1588
|
-
return this.apiClient.callApi(
|
|
1528
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1589
1529
|
}
|
|
1590
1530
|
|
|
1591
1531
|
/**
|
|
1592
1532
|
* Deletes Notefiles and the Notes they contain.
|
|
1593
|
-
* @param {String} projectOrProductUID
|
|
1594
|
-
* @param {String} deviceUID
|
|
1595
|
-
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1533
|
+
* @param {String} projectOrProductUID
|
|
1534
|
+
* @param {String} deviceUID
|
|
1535
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1596
1536
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1597
1537
|
*/
|
|
1598
1538
|
}, {
|
|
@@ -1605,8 +1545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1605
1545
|
|
|
1606
1546
|
/**
|
|
1607
1547
|
* Provision Device for a Project
|
|
1608
|
-
* @param {String} projectOrProductUID
|
|
1609
|
-
* @param {String} deviceUID
|
|
1548
|
+
* @param {String} projectOrProductUID
|
|
1549
|
+
* @param {String} deviceUID
|
|
1610
1550
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1611
1551
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1612
1552
|
*/
|
|
@@ -1627,23 +1567,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1627
1567
|
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
1628
1568
|
}
|
|
1629
1569
|
var pathParams = {
|
|
1630
|
-
|
|
1631
|
-
|
|
1570
|
+
projectOrProductUID: projectOrProductUID,
|
|
1571
|
+
deviceUID: deviceUID
|
|
1632
1572
|
};
|
|
1633
1573
|
var queryParams = {};
|
|
1634
1574
|
var headerParams = {};
|
|
1635
1575
|
var formParams = {};
|
|
1636
|
-
var authNames = [
|
|
1637
|
-
var contentTypes = [
|
|
1638
|
-
var accepts = [
|
|
1576
|
+
var authNames = ["api_key"];
|
|
1577
|
+
var contentTypes = ["application/json"];
|
|
1578
|
+
var accepts = ["application/json"];
|
|
1639
1579
|
var returnType = Object;
|
|
1640
|
-
return this.apiClient.callApi(
|
|
1580
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1641
1581
|
}
|
|
1642
1582
|
|
|
1643
1583
|
/**
|
|
1644
1584
|
* Provision Device for a Project
|
|
1645
|
-
* @param {String} projectOrProductUID
|
|
1646
|
-
* @param {String} deviceUID
|
|
1585
|
+
* @param {String} projectOrProductUID
|
|
1586
|
+
* @param {String} deviceUID
|
|
1647
1587
|
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1648
1588
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1649
1589
|
*/
|
|
@@ -1657,8 +1597,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1657
1597
|
|
|
1658
1598
|
/**
|
|
1659
1599
|
* Put environment variables of a device
|
|
1660
|
-
* @param {String} projectOrProductUID
|
|
1661
|
-
* @param {String} deviceUID
|
|
1600
|
+
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} deviceUID
|
|
1662
1602
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1663
1603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1664
1604
|
*/
|
|
@@ -1679,23 +1619,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1619
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
1680
1620
|
}
|
|
1681
1621
|
var pathParams = {
|
|
1682
|
-
|
|
1683
|
-
|
|
1622
|
+
projectOrProductUID: projectOrProductUID,
|
|
1623
|
+
deviceUID: deviceUID
|
|
1684
1624
|
};
|
|
1685
1625
|
var queryParams = {};
|
|
1686
1626
|
var headerParams = {};
|
|
1687
1627
|
var formParams = {};
|
|
1688
|
-
var authNames = [
|
|
1689
|
-
var contentTypes = [
|
|
1690
|
-
var accepts = [
|
|
1628
|
+
var authNames = ["api_key"];
|
|
1629
|
+
var contentTypes = ["application/json"];
|
|
1630
|
+
var accepts = ["application/json"];
|
|
1691
1631
|
var returnType = _EnvironmentVariables["default"];
|
|
1692
|
-
return this.apiClient.callApi(
|
|
1632
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1693
1633
|
}
|
|
1694
1634
|
|
|
1695
1635
|
/**
|
|
1696
1636
|
* Put environment variables of a device
|
|
1697
|
-
* @param {String} projectOrProductUID
|
|
1698
|
-
* @param {String} deviceUID
|
|
1637
|
+
* @param {String} projectOrProductUID
|
|
1638
|
+
* @param {String} deviceUID
|
|
1699
1639
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1700
1640
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1701
1641
|
*/
|
|
@@ -1709,8 +1649,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1709
1649
|
|
|
1710
1650
|
/**
|
|
1711
1651
|
* Put environment variables of a device with device pin authorization
|
|
1712
|
-
* @param {String} productUID
|
|
1713
|
-
* @param {String} deviceUID
|
|
1652
|
+
* @param {String} productUID
|
|
1653
|
+
* @param {String} deviceUID
|
|
1714
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1715
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1716
1656
|
*/
|
|
@@ -1731,23 +1671,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1731
1671
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
1732
1672
|
}
|
|
1733
1673
|
var pathParams = {
|
|
1734
|
-
|
|
1735
|
-
|
|
1674
|
+
productUID: productUID,
|
|
1675
|
+
deviceUID: deviceUID
|
|
1736
1676
|
};
|
|
1737
1677
|
var queryParams = {};
|
|
1738
1678
|
var headerParams = {};
|
|
1739
1679
|
var formParams = {};
|
|
1740
|
-
var authNames = [
|
|
1741
|
-
var contentTypes = [
|
|
1742
|
-
var accepts = [
|
|
1680
|
+
var authNames = ["pin"];
|
|
1681
|
+
var contentTypes = ["application/json"];
|
|
1682
|
+
var accepts = ["application/json"];
|
|
1743
1683
|
var returnType = _EnvironmentVariables["default"];
|
|
1744
|
-
return this.apiClient.callApi(
|
|
1684
|
+
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
1685
|
}
|
|
1746
1686
|
|
|
1747
1687
|
/**
|
|
1748
1688
|
* Put environment variables of a device with device pin authorization
|
|
1749
|
-
* @param {String} productUID
|
|
1750
|
-
* @param {String} deviceUID
|
|
1689
|
+
* @param {String} productUID
|
|
1690
|
+
* @param {String} deviceUID
|
|
1751
1691
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1752
1692
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1753
1693
|
*/
|