@blues-inc/notehub-js 2.3.0-beta.7 → 2.3.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -45
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +762 -765
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +282 -282
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +10 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +84 -77
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
- package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
- package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
- package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
- package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
- package/dist/model/HandleNotefileChanges200Response.js +106 -0
- package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
- package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +10 -90
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +15 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/Notefile.js +0 -147
package/dist/api/DeviceApi.js
CHANGED
|
@@ -6,26 +6,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Body = _interopRequireDefault(require("../model/Body"));
|
|
9
|
-
var _DeleteNotefilesRequest = _interopRequireDefault(require("../model/DeleteNotefilesRequest"));
|
|
10
9
|
var _Device = _interopRequireDefault(require("../model/Device"));
|
|
11
10
|
var _EnvTreeJsonNode = _interopRequireDefault(require("../model/EnvTreeJsonNode"));
|
|
12
11
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
13
12
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
14
|
-
var _GetDbNote200Response = _interopRequireDefault(require("../model/GetDbNote200Response"));
|
|
15
13
|
var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
|
|
16
14
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
|
|
17
|
-
var
|
|
15
|
+
var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
|
|
18
16
|
var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
|
|
19
17
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
|
|
20
|
-
var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetDevicePublicKeys200Response"));
|
|
21
18
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
19
|
+
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
|
|
20
|
+
var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
|
|
21
|
+
var _HandleNoteChanges200Response = _interopRequireDefault(require("../model/HandleNoteChanges200Response"));
|
|
22
|
+
var _HandleNoteGet200Response = _interopRequireDefault(require("../model/HandleNoteGet200Response"));
|
|
23
|
+
var _HandleNoteSignal200Response = _interopRequireDefault(require("../model/HandleNoteSignal200Response"));
|
|
24
|
+
var _HandleNotefileChanges200Response = _interopRequireDefault(require("../model/HandleNotefileChanges200Response"));
|
|
25
|
+
var _HandleNotefileChangesPending200Response = _interopRequireDefault(require("../model/HandleNotefileChangesPending200Response"));
|
|
26
|
+
var _HandleNotefileDeleteRequest = _interopRequireDefault(require("../model/HandleNotefileDeleteRequest"));
|
|
25
27
|
var _Note = _interopRequireDefault(require("../model/Note"));
|
|
26
|
-
var
|
|
27
|
-
var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
|
|
28
|
-
var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
|
|
28
|
+
var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
|
|
29
29
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
30
30
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
31
31
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -47,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
47
47
|
/**
|
|
48
48
|
* Device service.
|
|
49
49
|
* @module api/DeviceApi
|
|
50
|
-
* @version 2.3.0-beta.
|
|
50
|
+
* @version 2.3.0-beta.8
|
|
51
51
|
*/
|
|
52
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
53
53
|
/**
|
|
@@ -63,267 +63,225 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Delete environment variable of a device
|
|
67
67
|
* @param {String} projectOrProductUID
|
|
68
68
|
* @param {String} deviceUID
|
|
69
|
-
* @param {String}
|
|
70
|
-
* @
|
|
71
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
72
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
69
|
+
* @param {String} key The environment variable key to delete.
|
|
70
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
73
71
|
*/
|
|
74
72
|
return _createClass(DeviceApi, [{
|
|
75
|
-
key: "
|
|
76
|
-
value: function
|
|
77
|
-
var postBody =
|
|
73
|
+
key: "deleteDeviceEnvironmentVariableWithHttpInfo",
|
|
74
|
+
value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
|
|
75
|
+
var postBody = null;
|
|
78
76
|
// verify the required parameter 'projectOrProductUID' is set
|
|
79
77
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
80
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
78
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
|
|
81
79
|
}
|
|
82
80
|
// verify the required parameter 'deviceUID' is set
|
|
83
81
|
if (deviceUID === undefined || deviceUID === null) {
|
|
84
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
85
|
-
}
|
|
86
|
-
// verify the required parameter 'notefileID' is set
|
|
87
|
-
if (notefileID === undefined || notefileID === null) {
|
|
88
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addDbNote");
|
|
89
|
-
}
|
|
90
|
-
// verify the required parameter 'noteID' is set
|
|
91
|
-
if (noteID === undefined || noteID === null) {
|
|
92
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
|
|
82
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
|
|
93
83
|
}
|
|
94
|
-
// verify the required parameter '
|
|
95
|
-
if (
|
|
96
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
84
|
+
// verify the required parameter 'key' is set
|
|
85
|
+
if (key === undefined || key === null) {
|
|
86
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
97
87
|
}
|
|
98
88
|
var pathParams = {
|
|
99
89
|
'projectOrProductUID': projectOrProductUID,
|
|
100
90
|
'deviceUID': deviceUID,
|
|
101
|
-
'
|
|
102
|
-
'noteID': noteID
|
|
91
|
+
'key': key
|
|
103
92
|
};
|
|
104
93
|
var queryParams = {};
|
|
105
94
|
var headerParams = {};
|
|
106
95
|
var formParams = {};
|
|
107
96
|
var authNames = ['personalAccessToken'];
|
|
108
|
-
var contentTypes = [
|
|
97
|
+
var contentTypes = [];
|
|
109
98
|
var accepts = ['application/json'];
|
|
110
|
-
var returnType =
|
|
111
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
99
|
+
var returnType = _EnvironmentVariables["default"];
|
|
100
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
112
101
|
}
|
|
113
102
|
|
|
114
103
|
/**
|
|
115
|
-
*
|
|
104
|
+
* Delete environment variable of a device
|
|
116
105
|
* @param {String} projectOrProductUID
|
|
117
106
|
* @param {String} deviceUID
|
|
118
|
-
* @param {String}
|
|
119
|
-
* @
|
|
120
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
121
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
107
|
+
* @param {String} key The environment variable key to delete.
|
|
108
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
122
109
|
*/
|
|
123
110
|
}, {
|
|
124
|
-
key: "
|
|
125
|
-
value: function
|
|
126
|
-
return this.
|
|
111
|
+
key: "deleteDeviceEnvironmentVariable",
|
|
112
|
+
value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
|
|
113
|
+
return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
|
|
127
114
|
return response_and_data.data;
|
|
128
115
|
});
|
|
129
116
|
}
|
|
130
117
|
|
|
131
118
|
/**
|
|
132
|
-
*
|
|
119
|
+
* Delete Device
|
|
133
120
|
* @param {String} projectOrProductUID
|
|
134
121
|
* @param {String} deviceUID
|
|
135
|
-
* @param {
|
|
136
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing
|
|
122
|
+
* @param {Boolean} purge
|
|
123
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
137
124
|
*/
|
|
138
125
|
}, {
|
|
139
|
-
key: "
|
|
140
|
-
value: function
|
|
141
|
-
var postBody =
|
|
126
|
+
key: "deleteProjectDeviceWithHttpInfo",
|
|
127
|
+
value: function deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
|
|
128
|
+
var postBody = null;
|
|
142
129
|
// verify the required parameter 'projectOrProductUID' is set
|
|
143
130
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
144
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
131
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectDevice");
|
|
145
132
|
}
|
|
146
133
|
// verify the required parameter 'deviceUID' is set
|
|
147
134
|
if (deviceUID === undefined || deviceUID === null) {
|
|
148
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
135
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteProjectDevice");
|
|
149
136
|
}
|
|
150
|
-
// verify the required parameter '
|
|
151
|
-
if (
|
|
152
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
137
|
+
// verify the required parameter 'purge' is set
|
|
138
|
+
if (purge === undefined || purge === null) {
|
|
139
|
+
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
|
|
153
140
|
}
|
|
154
141
|
var pathParams = {
|
|
155
142
|
'projectOrProductUID': projectOrProductUID,
|
|
156
143
|
'deviceUID': deviceUID
|
|
157
144
|
};
|
|
158
|
-
var queryParams = {
|
|
145
|
+
var queryParams = {
|
|
146
|
+
'purge': purge
|
|
147
|
+
};
|
|
159
148
|
var headerParams = {};
|
|
160
149
|
var formParams = {};
|
|
161
150
|
var authNames = ['personalAccessToken'];
|
|
162
|
-
var contentTypes = [
|
|
151
|
+
var contentTypes = [];
|
|
163
152
|
var accepts = ['application/json'];
|
|
164
|
-
var returnType =
|
|
165
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}
|
|
153
|
+
var returnType = null;
|
|
154
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
166
155
|
}
|
|
167
156
|
|
|
168
157
|
/**
|
|
169
|
-
*
|
|
158
|
+
* Delete Device
|
|
170
159
|
* @param {String} projectOrProductUID
|
|
171
160
|
* @param {String} deviceUID
|
|
172
|
-
* @param {
|
|
173
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
161
|
+
* @param {Boolean} purge
|
|
162
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
174
163
|
*/
|
|
175
164
|
}, {
|
|
176
|
-
key: "
|
|
177
|
-
value: function
|
|
178
|
-
return this.
|
|
165
|
+
key: "deleteProjectDevice",
|
|
166
|
+
value: function deleteProjectDevice(projectOrProductUID, deviceUID, purge) {
|
|
167
|
+
return this.deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
|
|
179
168
|
return response_and_data.data;
|
|
180
169
|
});
|
|
181
170
|
}
|
|
182
171
|
|
|
183
172
|
/**
|
|
184
|
-
*
|
|
185
|
-
* @param {String}
|
|
173
|
+
* Disable Device
|
|
174
|
+
* @param {String} projectOrProductUID
|
|
186
175
|
* @param {String} deviceUID
|
|
187
|
-
* @
|
|
188
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
176
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
189
177
|
*/
|
|
190
178
|
}, {
|
|
191
|
-
key: "
|
|
192
|
-
value: function
|
|
193
|
-
var postBody =
|
|
194
|
-
// verify the required parameter '
|
|
195
|
-
if (
|
|
196
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
179
|
+
key: "disableDeviceWithHttpInfo",
|
|
180
|
+
value: function disableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
181
|
+
var postBody = null;
|
|
182
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
183
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
184
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDevice");
|
|
197
185
|
}
|
|
198
186
|
// verify the required parameter 'deviceUID' is set
|
|
199
187
|
if (deviceUID === undefined || deviceUID === null) {
|
|
200
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
201
|
-
}
|
|
202
|
-
// verify the required parameter 'environmentVariables' is set
|
|
203
|
-
if (environmentVariables === undefined || environmentVariables === null) {
|
|
204
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
|
|
188
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
205
189
|
}
|
|
206
190
|
var pathParams = {
|
|
207
|
-
'
|
|
191
|
+
'projectOrProductUID': projectOrProductUID,
|
|
208
192
|
'deviceUID': deviceUID
|
|
209
193
|
};
|
|
210
194
|
var queryParams = {};
|
|
211
195
|
var headerParams = {};
|
|
212
196
|
var formParams = {};
|
|
213
|
-
var authNames = ['
|
|
214
|
-
var contentTypes = [
|
|
197
|
+
var authNames = ['personalAccessToken'];
|
|
198
|
+
var contentTypes = [];
|
|
215
199
|
var accepts = ['application/json'];
|
|
216
|
-
var returnType =
|
|
217
|
-
return this.apiClient.callApi('/v1/
|
|
200
|
+
var returnType = null;
|
|
201
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
218
202
|
}
|
|
219
203
|
|
|
220
204
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @param {String}
|
|
205
|
+
* Disable Device
|
|
206
|
+
* @param {String} projectOrProductUID
|
|
223
207
|
* @param {String} deviceUID
|
|
224
|
-
* @
|
|
225
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
208
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
226
209
|
*/
|
|
227
210
|
}, {
|
|
228
|
-
key: "
|
|
229
|
-
value: function
|
|
230
|
-
return this.
|
|
211
|
+
key: "disableDevice",
|
|
212
|
+
value: function disableDevice(projectOrProductUID, deviceUID) {
|
|
213
|
+
return this.disableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
231
214
|
return response_and_data.data;
|
|
232
215
|
});
|
|
233
216
|
}
|
|
234
217
|
|
|
235
218
|
/**
|
|
236
|
-
*
|
|
219
|
+
* Disable Connectivity Assurance
|
|
237
220
|
* @param {String} projectOrProductUID
|
|
238
221
|
* @param {String} deviceUID
|
|
239
|
-
* @param {String} notefileID
|
|
240
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
241
222
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
242
223
|
*/
|
|
243
224
|
}, {
|
|
244
|
-
key: "
|
|
245
|
-
value: function
|
|
246
|
-
var postBody =
|
|
225
|
+
key: "disableDeviceConnectivityAssuranceWithHttpInfo",
|
|
226
|
+
value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
227
|
+
var postBody = null;
|
|
247
228
|
// verify the required parameter 'projectOrProductUID' is set
|
|
248
229
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
249
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
230
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDeviceConnectivityAssurance");
|
|
250
231
|
}
|
|
251
232
|
// verify the required parameter 'deviceUID' is set
|
|
252
233
|
if (deviceUID === undefined || deviceUID === null) {
|
|
253
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
254
|
-
}
|
|
255
|
-
// verify the required parameter 'notefileID' is set
|
|
256
|
-
if (notefileID === undefined || notefileID === null) {
|
|
257
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
|
|
258
|
-
}
|
|
259
|
-
// verify the required parameter 'note' is set
|
|
260
|
-
if (note === undefined || note === null) {
|
|
261
|
-
throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
|
|
234
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
262
235
|
}
|
|
263
236
|
var pathParams = {
|
|
264
237
|
'projectOrProductUID': projectOrProductUID,
|
|
265
|
-
'deviceUID': deviceUID
|
|
266
|
-
'notefileID': notefileID
|
|
238
|
+
'deviceUID': deviceUID
|
|
267
239
|
};
|
|
268
240
|
var queryParams = {};
|
|
269
241
|
var headerParams = {};
|
|
270
242
|
var formParams = {};
|
|
271
243
|
var authNames = ['personalAccessToken'];
|
|
272
|
-
var contentTypes = [
|
|
244
|
+
var contentTypes = [];
|
|
273
245
|
var accepts = ['application/json'];
|
|
274
246
|
var returnType = null;
|
|
275
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
247
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
276
248
|
}
|
|
277
249
|
|
|
278
250
|
/**
|
|
279
|
-
*
|
|
251
|
+
* Disable Connectivity Assurance
|
|
280
252
|
* @param {String} projectOrProductUID
|
|
281
253
|
* @param {String} deviceUID
|
|
282
|
-
* @param {String} notefileID
|
|
283
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
284
254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
285
255
|
*/
|
|
286
256
|
}, {
|
|
287
|
-
key: "
|
|
288
|
-
value: function
|
|
289
|
-
return this.
|
|
257
|
+
key: "disableDeviceConnectivityAssurance",
|
|
258
|
+
value: function disableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
|
|
259
|
+
return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
290
260
|
return response_and_data.data;
|
|
291
261
|
});
|
|
292
262
|
}
|
|
293
263
|
|
|
294
264
|
/**
|
|
295
|
-
*
|
|
265
|
+
* Enable Device
|
|
296
266
|
* @param {String} projectOrProductUID
|
|
297
267
|
* @param {String} deviceUID
|
|
298
|
-
* @param {String} notefileID
|
|
299
|
-
* @param {String} noteID
|
|
300
268
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
301
269
|
*/
|
|
302
270
|
}, {
|
|
303
|
-
key: "
|
|
304
|
-
value: function
|
|
271
|
+
key: "enableDeviceWithHttpInfo",
|
|
272
|
+
value: function enableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
305
273
|
var postBody = null;
|
|
306
274
|
// verify the required parameter 'projectOrProductUID' is set
|
|
307
275
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
308
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
276
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDevice");
|
|
309
277
|
}
|
|
310
278
|
// verify the required parameter 'deviceUID' is set
|
|
311
279
|
if (deviceUID === undefined || deviceUID === null) {
|
|
312
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
313
|
-
}
|
|
314
|
-
// verify the required parameter 'notefileID' is set
|
|
315
|
-
if (notefileID === undefined || notefileID === null) {
|
|
316
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
|
|
317
|
-
}
|
|
318
|
-
// verify the required parameter 'noteID' is set
|
|
319
|
-
if (noteID === undefined || noteID === null) {
|
|
320
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
|
|
280
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
321
281
|
}
|
|
322
282
|
var pathParams = {
|
|
323
283
|
'projectOrProductUID': projectOrProductUID,
|
|
324
|
-
'deviceUID': deviceUID
|
|
325
|
-
'notefileID': notefileID,
|
|
326
|
-
'noteID': noteID
|
|
284
|
+
'deviceUID': deviceUID
|
|
327
285
|
};
|
|
328
286
|
var queryParams = {};
|
|
329
287
|
var headerParams = {};
|
|
@@ -332,106 +290,90 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
290
|
var contentTypes = [];
|
|
333
291
|
var accepts = ['application/json'];
|
|
334
292
|
var returnType = null;
|
|
335
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
293
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
336
294
|
}
|
|
337
295
|
|
|
338
296
|
/**
|
|
339
|
-
*
|
|
297
|
+
* Enable Device
|
|
340
298
|
* @param {String} projectOrProductUID
|
|
341
299
|
* @param {String} deviceUID
|
|
342
|
-
* @param {String} notefileID
|
|
343
|
-
* @param {String} noteID
|
|
344
300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
345
301
|
*/
|
|
346
302
|
}, {
|
|
347
|
-
key: "
|
|
348
|
-
value: function
|
|
349
|
-
return this.
|
|
303
|
+
key: "enableDevice",
|
|
304
|
+
value: function enableDevice(projectOrProductUID, deviceUID) {
|
|
305
|
+
return this.enableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
350
306
|
return response_and_data.data;
|
|
351
307
|
});
|
|
352
308
|
}
|
|
353
309
|
|
|
354
310
|
/**
|
|
355
|
-
*
|
|
311
|
+
* Enable Connectivity Assurance
|
|
356
312
|
* @param {String} projectOrProductUID
|
|
357
313
|
* @param {String} deviceUID
|
|
358
|
-
* @param {Boolean} purge
|
|
359
314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
360
315
|
*/
|
|
361
316
|
}, {
|
|
362
|
-
key: "
|
|
363
|
-
value: function
|
|
317
|
+
key: "enableDeviceConnectivityAssuranceWithHttpInfo",
|
|
318
|
+
value: function enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
364
319
|
var postBody = null;
|
|
365
320
|
// verify the required parameter 'projectOrProductUID' is set
|
|
366
321
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
367
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
322
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDeviceConnectivityAssurance");
|
|
368
323
|
}
|
|
369
324
|
// verify the required parameter 'deviceUID' is set
|
|
370
325
|
if (deviceUID === undefined || deviceUID === null) {
|
|
371
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
372
|
-
}
|
|
373
|
-
// verify the required parameter 'purge' is set
|
|
374
|
-
if (purge === undefined || purge === null) {
|
|
375
|
-
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
|
|
326
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
376
327
|
}
|
|
377
328
|
var pathParams = {
|
|
378
329
|
'projectOrProductUID': projectOrProductUID,
|
|
379
330
|
'deviceUID': deviceUID
|
|
380
331
|
};
|
|
381
|
-
var queryParams = {
|
|
382
|
-
'purge': purge
|
|
383
|
-
};
|
|
332
|
+
var queryParams = {};
|
|
384
333
|
var headerParams = {};
|
|
385
334
|
var formParams = {};
|
|
386
335
|
var authNames = ['personalAccessToken'];
|
|
387
336
|
var contentTypes = [];
|
|
388
337
|
var accepts = ['application/json'];
|
|
389
338
|
var returnType = null;
|
|
390
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', '
|
|
339
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
391
340
|
}
|
|
392
341
|
|
|
393
342
|
/**
|
|
394
|
-
*
|
|
343
|
+
* Enable Connectivity Assurance
|
|
395
344
|
* @param {String} projectOrProductUID
|
|
396
345
|
* @param {String} deviceUID
|
|
397
|
-
* @param {Boolean} purge
|
|
398
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
399
347
|
*/
|
|
400
348
|
}, {
|
|
401
|
-
key: "
|
|
402
|
-
value: function
|
|
403
|
-
return this.
|
|
349
|
+
key: "enableDeviceConnectivityAssurance",
|
|
350
|
+
value: function enableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
|
|
351
|
+
return this.enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
404
352
|
return response_and_data.data;
|
|
405
353
|
});
|
|
406
354
|
}
|
|
407
355
|
|
|
408
356
|
/**
|
|
409
|
-
*
|
|
357
|
+
* Get Device
|
|
410
358
|
* @param {String} projectOrProductUID
|
|
411
359
|
* @param {String} deviceUID
|
|
412
|
-
* @
|
|
413
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
360
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
414
361
|
*/
|
|
415
362
|
}, {
|
|
416
|
-
key: "
|
|
417
|
-
value: function
|
|
363
|
+
key: "getDeviceWithHttpInfo",
|
|
364
|
+
value: function getDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
418
365
|
var postBody = null;
|
|
419
366
|
// verify the required parameter 'projectOrProductUID' is set
|
|
420
367
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
421
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
368
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevice");
|
|
422
369
|
}
|
|
423
370
|
// verify the required parameter 'deviceUID' is set
|
|
424
371
|
if (deviceUID === undefined || deviceUID === null) {
|
|
425
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
426
|
-
}
|
|
427
|
-
// verify the required parameter 'key' is set
|
|
428
|
-
if (key === undefined || key === null) {
|
|
429
|
-
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
372
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
430
373
|
}
|
|
431
374
|
var pathParams = {
|
|
432
375
|
'projectOrProductUID': projectOrProductUID,
|
|
433
|
-
'deviceUID': deviceUID
|
|
434
|
-
'key': key
|
|
376
|
+
'deviceUID': deviceUID
|
|
435
377
|
};
|
|
436
378
|
var queryParams = {};
|
|
437
379
|
var headerParams = {};
|
|
@@ -439,47 +381,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
439
381
|
var authNames = ['personalAccessToken'];
|
|
440
382
|
var contentTypes = [];
|
|
441
383
|
var accepts = ['application/json'];
|
|
442
|
-
var returnType =
|
|
443
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}
|
|
384
|
+
var returnType = _Device["default"];
|
|
385
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
444
386
|
}
|
|
445
387
|
|
|
446
388
|
/**
|
|
447
|
-
*
|
|
389
|
+
* Get Device
|
|
448
390
|
* @param {String} projectOrProductUID
|
|
449
391
|
* @param {String} deviceUID
|
|
450
|
-
* @
|
|
451
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
392
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
452
393
|
*/
|
|
453
394
|
}, {
|
|
454
|
-
key: "
|
|
455
|
-
value: function
|
|
456
|
-
return this.
|
|
395
|
+
key: "getDevice",
|
|
396
|
+
value: function getDevice(projectOrProductUID, deviceUID) {
|
|
397
|
+
return this.getDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
457
398
|
return response_and_data.data;
|
|
458
399
|
});
|
|
459
400
|
}
|
|
460
401
|
|
|
461
402
|
/**
|
|
462
|
-
*
|
|
403
|
+
* Get environment variable hierarchy for a device
|
|
463
404
|
* @param {String} projectOrProductUID
|
|
464
405
|
* @param {String} deviceUID
|
|
465
|
-
* @
|
|
466
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
406
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
467
407
|
*/
|
|
468
408
|
}, {
|
|
469
|
-
key: "
|
|
470
|
-
value: function
|
|
471
|
-
var postBody =
|
|
409
|
+
key: "getDeviceEnvironmentHierarchyWithHttpInfo",
|
|
410
|
+
value: function getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
411
|
+
var postBody = null;
|
|
472
412
|
// verify the required parameter 'projectOrProductUID' is set
|
|
473
413
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
474
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
414
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentHierarchy");
|
|
475
415
|
}
|
|
476
416
|
// verify the required parameter 'deviceUID' is set
|
|
477
417
|
if (deviceUID === undefined || deviceUID === null) {
|
|
478
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
479
|
-
}
|
|
480
|
-
// verify the required parameter 'deleteNotefilesRequest' is set
|
|
481
|
-
if (deleteNotefilesRequest === undefined || deleteNotefilesRequest === null) {
|
|
482
|
-
throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
|
|
418
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
483
419
|
}
|
|
484
420
|
var pathParams = {
|
|
485
421
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -489,44 +425,43 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
489
425
|
var headerParams = {};
|
|
490
426
|
var formParams = {};
|
|
491
427
|
var authNames = ['personalAccessToken'];
|
|
492
|
-
var contentTypes = [
|
|
428
|
+
var contentTypes = [];
|
|
493
429
|
var accepts = ['application/json'];
|
|
494
|
-
var returnType =
|
|
495
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
430
|
+
var returnType = _EnvTreeJsonNode["default"];
|
|
431
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
496
432
|
}
|
|
497
433
|
|
|
498
434
|
/**
|
|
499
|
-
*
|
|
435
|
+
* Get environment variable hierarchy for a device
|
|
500
436
|
* @param {String} projectOrProductUID
|
|
501
437
|
* @param {String} deviceUID
|
|
502
|
-
* @
|
|
503
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
438
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
504
439
|
*/
|
|
505
440
|
}, {
|
|
506
|
-
key: "
|
|
507
|
-
value: function
|
|
508
|
-
return this.
|
|
441
|
+
key: "getDeviceEnvironmentHierarchy",
|
|
442
|
+
value: function getDeviceEnvironmentHierarchy(projectOrProductUID, deviceUID) {
|
|
443
|
+
return this.getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
509
444
|
return response_and_data.data;
|
|
510
445
|
});
|
|
511
446
|
}
|
|
512
447
|
|
|
513
448
|
/**
|
|
514
|
-
*
|
|
449
|
+
* Get environment variables of a device
|
|
515
450
|
* @param {String} projectOrProductUID
|
|
516
451
|
* @param {String} deviceUID
|
|
517
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
452
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
518
453
|
*/
|
|
519
454
|
}, {
|
|
520
|
-
key: "
|
|
521
|
-
value: function
|
|
455
|
+
key: "getDeviceEnvironmentVariablesWithHttpInfo",
|
|
456
|
+
value: function getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
522
457
|
var postBody = null;
|
|
523
458
|
// verify the required parameter 'projectOrProductUID' is set
|
|
524
459
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
525
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
460
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentVariables");
|
|
526
461
|
}
|
|
527
462
|
// verify the required parameter 'deviceUID' is set
|
|
528
463
|
if (deviceUID === undefined || deviceUID === null) {
|
|
529
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
464
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
530
465
|
}
|
|
531
466
|
var pathParams = {
|
|
532
467
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -538,133 +473,146 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
538
473
|
var authNames = ['personalAccessToken'];
|
|
539
474
|
var contentTypes = [];
|
|
540
475
|
var accepts = ['application/json'];
|
|
541
|
-
var returnType =
|
|
542
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
476
|
+
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
477
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
543
478
|
}
|
|
544
479
|
|
|
545
480
|
/**
|
|
546
|
-
*
|
|
481
|
+
* Get environment variables of a device
|
|
547
482
|
* @param {String} projectOrProductUID
|
|
548
483
|
* @param {String} deviceUID
|
|
549
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
484
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
550
485
|
*/
|
|
551
486
|
}, {
|
|
552
|
-
key: "
|
|
553
|
-
value: function
|
|
554
|
-
return this.
|
|
487
|
+
key: "getDeviceEnvironmentVariables",
|
|
488
|
+
value: function getDeviceEnvironmentVariables(projectOrProductUID, deviceUID) {
|
|
489
|
+
return this.getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
555
490
|
return response_and_data.data;
|
|
556
491
|
});
|
|
557
492
|
}
|
|
558
493
|
|
|
559
494
|
/**
|
|
560
|
-
*
|
|
561
|
-
* @param {String}
|
|
495
|
+
* Get environment variables of a device with device pin authorization
|
|
496
|
+
* @param {String} productUID
|
|
562
497
|
* @param {String} deviceUID
|
|
563
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
498
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
564
499
|
*/
|
|
565
500
|
}, {
|
|
566
|
-
key: "
|
|
567
|
-
value: function
|
|
501
|
+
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
502
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
568
503
|
var postBody = null;
|
|
569
|
-
// verify the required parameter '
|
|
570
|
-
if (
|
|
571
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
504
|
+
// verify the required parameter 'productUID' is set
|
|
505
|
+
if (productUID === undefined || productUID === null) {
|
|
506
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
572
507
|
}
|
|
573
508
|
// verify the required parameter 'deviceUID' is set
|
|
574
509
|
if (deviceUID === undefined || deviceUID === null) {
|
|
575
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
510
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
576
511
|
}
|
|
577
512
|
var pathParams = {
|
|
578
|
-
'
|
|
513
|
+
'productUID': productUID,
|
|
579
514
|
'deviceUID': deviceUID
|
|
580
515
|
};
|
|
581
516
|
var queryParams = {};
|
|
582
517
|
var headerParams = {};
|
|
583
518
|
var formParams = {};
|
|
584
|
-
var authNames = ['
|
|
519
|
+
var authNames = ['pin'];
|
|
585
520
|
var contentTypes = [];
|
|
586
521
|
var accepts = ['application/json'];
|
|
587
|
-
var returnType =
|
|
588
|
-
return this.apiClient.callApi('/v1/
|
|
522
|
+
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
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);
|
|
589
524
|
}
|
|
590
525
|
|
|
591
526
|
/**
|
|
592
|
-
*
|
|
593
|
-
* @param {String}
|
|
527
|
+
* Get environment variables of a device with device pin authorization
|
|
528
|
+
* @param {String} productUID
|
|
594
529
|
* @param {String} deviceUID
|
|
595
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
530
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
596
531
|
*/
|
|
597
532
|
}, {
|
|
598
|
-
key: "
|
|
599
|
-
value: function
|
|
600
|
-
return this.
|
|
533
|
+
key: "getDeviceEnvironmentVariablesByPin",
|
|
534
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
535
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
601
536
|
return response_and_data.data;
|
|
602
537
|
});
|
|
603
538
|
}
|
|
604
539
|
|
|
605
540
|
/**
|
|
606
|
-
*
|
|
541
|
+
* Get Device Health Log
|
|
607
542
|
* @param {String} projectOrProductUID
|
|
608
543
|
* @param {String} deviceUID
|
|
609
|
-
* @
|
|
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
|
|
548
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
610
549
|
*/
|
|
611
550
|
}, {
|
|
612
|
-
key: "
|
|
613
|
-
value: function
|
|
551
|
+
key: "getDeviceHealthLogWithHttpInfo",
|
|
552
|
+
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
553
|
+
opts = opts || {};
|
|
614
554
|
var postBody = null;
|
|
615
555
|
// verify the required parameter 'projectOrProductUID' is set
|
|
616
556
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
617
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
557
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceHealthLog");
|
|
618
558
|
}
|
|
619
559
|
// verify the required parameter 'deviceUID' is set
|
|
620
560
|
if (deviceUID === undefined || deviceUID === null) {
|
|
621
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
561
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
622
562
|
}
|
|
623
563
|
var pathParams = {
|
|
624
564
|
'projectOrProductUID': projectOrProductUID,
|
|
625
565
|
'deviceUID': deviceUID
|
|
626
566
|
};
|
|
627
|
-
var queryParams = {
|
|
567
|
+
var queryParams = {
|
|
568
|
+
'startDate': opts['startDate'],
|
|
569
|
+
'endDate': opts['endDate'],
|
|
570
|
+
'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
|
|
571
|
+
};
|
|
628
572
|
var headerParams = {};
|
|
629
573
|
var formParams = {};
|
|
630
574
|
var authNames = ['personalAccessToken'];
|
|
631
575
|
var contentTypes = [];
|
|
632
576
|
var accepts = ['application/json'];
|
|
633
|
-
var returnType =
|
|
634
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
577
|
+
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
578
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
635
579
|
}
|
|
636
580
|
|
|
637
581
|
/**
|
|
638
|
-
*
|
|
582
|
+
* Get Device Health Log
|
|
639
583
|
* @param {String} projectOrProductUID
|
|
640
584
|
* @param {String} deviceUID
|
|
641
|
-
* @
|
|
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
|
|
589
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
642
590
|
*/
|
|
643
591
|
}, {
|
|
644
|
-
key: "
|
|
645
|
-
value: function
|
|
646
|
-
return this.
|
|
592
|
+
key: "getDeviceHealthLog",
|
|
593
|
+
value: function getDeviceHealthLog(projectOrProductUID, deviceUID, opts) {
|
|
594
|
+
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
647
595
|
return response_and_data.data;
|
|
648
596
|
});
|
|
649
597
|
}
|
|
650
598
|
|
|
651
599
|
/**
|
|
652
|
-
*
|
|
600
|
+
* Get Device Latest Events
|
|
653
601
|
* @param {String} projectOrProductUID
|
|
654
602
|
* @param {String} deviceUID
|
|
655
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
603
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
|
|
656
604
|
*/
|
|
657
605
|
}, {
|
|
658
|
-
key: "
|
|
659
|
-
value: function
|
|
606
|
+
key: "getDeviceLatestWithHttpInfo",
|
|
607
|
+
value: function getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
660
608
|
var postBody = null;
|
|
661
609
|
// verify the required parameter 'projectOrProductUID' is set
|
|
662
610
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
663
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
611
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatest");
|
|
664
612
|
}
|
|
665
613
|
// verify the required parameter 'deviceUID' is set
|
|
666
614
|
if (deviceUID === undefined || deviceUID === null) {
|
|
667
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
615
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
|
|
668
616
|
}
|
|
669
617
|
var pathParams = {
|
|
670
618
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -676,111 +624,87 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
624
|
var authNames = ['personalAccessToken'];
|
|
677
625
|
var contentTypes = [];
|
|
678
626
|
var accepts = ['application/json'];
|
|
679
|
-
var returnType =
|
|
680
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
627
|
+
var returnType = _GetDeviceLatest200Response["default"];
|
|
628
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
681
629
|
}
|
|
682
630
|
|
|
683
631
|
/**
|
|
684
|
-
*
|
|
632
|
+
* Get Device Latest Events
|
|
685
633
|
* @param {String} projectOrProductUID
|
|
686
634
|
* @param {String} deviceUID
|
|
687
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
635
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
|
|
688
636
|
*/
|
|
689
637
|
}, {
|
|
690
|
-
key: "
|
|
691
|
-
value: function
|
|
692
|
-
return this.
|
|
638
|
+
key: "getDeviceLatest",
|
|
639
|
+
value: function getDeviceLatest(projectOrProductUID, deviceUID) {
|
|
640
|
+
return this.getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
693
641
|
return response_and_data.data;
|
|
694
642
|
});
|
|
695
643
|
}
|
|
696
644
|
|
|
697
645
|
/**
|
|
698
|
-
* Get
|
|
646
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
699
647
|
* @param {String} projectOrProductUID
|
|
700
648
|
* @param {String} deviceUID
|
|
701
|
-
* @
|
|
702
|
-
* @param {String} noteID
|
|
703
|
-
* @param {Object} opts Optional parameters
|
|
704
|
-
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
705
|
-
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
706
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
|
|
649
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
707
650
|
*/
|
|
708
651
|
}, {
|
|
709
|
-
key: "
|
|
710
|
-
value: function
|
|
711
|
-
opts = opts || {};
|
|
652
|
+
key: "getDevicePlansWithHttpInfo",
|
|
653
|
+
value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
712
654
|
var postBody = null;
|
|
713
655
|
// verify the required parameter 'projectOrProductUID' is set
|
|
714
656
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
715
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
657
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
|
|
716
658
|
}
|
|
717
659
|
// verify the required parameter 'deviceUID' is set
|
|
718
660
|
if (deviceUID === undefined || deviceUID === null) {
|
|
719
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
720
|
-
}
|
|
721
|
-
// verify the required parameter 'notefileID' is set
|
|
722
|
-
if (notefileID === undefined || notefileID === null) {
|
|
723
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getDbNote");
|
|
724
|
-
}
|
|
725
|
-
// verify the required parameter 'noteID' is set
|
|
726
|
-
if (noteID === undefined || noteID === null) {
|
|
727
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
|
|
661
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
728
662
|
}
|
|
729
663
|
var pathParams = {
|
|
730
664
|
'projectOrProductUID': projectOrProductUID,
|
|
731
|
-
'deviceUID': deviceUID
|
|
732
|
-
'notefileID': notefileID,
|
|
733
|
-
'noteID': noteID
|
|
734
|
-
};
|
|
735
|
-
var queryParams = {
|
|
736
|
-
'delete': opts['_delete'],
|
|
737
|
-
'deleted': opts['deleted']
|
|
665
|
+
'deviceUID': deviceUID
|
|
738
666
|
};
|
|
667
|
+
var queryParams = {};
|
|
739
668
|
var headerParams = {};
|
|
740
669
|
var formParams = {};
|
|
741
670
|
var authNames = ['personalAccessToken'];
|
|
742
671
|
var contentTypes = [];
|
|
743
672
|
var accepts = ['application/json'];
|
|
744
|
-
var returnType =
|
|
745
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
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);
|
|
746
675
|
}
|
|
747
676
|
|
|
748
677
|
/**
|
|
749
|
-
* Get
|
|
678
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
750
679
|
* @param {String} projectOrProductUID
|
|
751
680
|
* @param {String} deviceUID
|
|
752
|
-
* @
|
|
753
|
-
* @param {String} noteID
|
|
754
|
-
* @param {Object} opts Optional parameters
|
|
755
|
-
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
756
|
-
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
757
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
|
|
681
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
758
682
|
*/
|
|
759
683
|
}, {
|
|
760
|
-
key: "
|
|
761
|
-
value: function
|
|
762
|
-
return this.
|
|
684
|
+
key: "getDevicePlans",
|
|
685
|
+
value: function getDevicePlans(projectOrProductUID, deviceUID) {
|
|
686
|
+
return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
763
687
|
return response_and_data.data;
|
|
764
688
|
});
|
|
765
689
|
}
|
|
766
690
|
|
|
767
691
|
/**
|
|
768
|
-
* Get Device
|
|
692
|
+
* Get Device Public Key
|
|
769
693
|
* @param {String} projectOrProductUID
|
|
770
694
|
* @param {String} deviceUID
|
|
771
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
695
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
772
696
|
*/
|
|
773
697
|
}, {
|
|
774
|
-
key: "
|
|
775
|
-
value: function
|
|
698
|
+
key: "getDevicePublicKeyWithHttpInfo",
|
|
699
|
+
value: function getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
776
700
|
var postBody = null;
|
|
777
701
|
// verify the required parameter 'projectOrProductUID' is set
|
|
778
702
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
779
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
703
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKey");
|
|
780
704
|
}
|
|
781
705
|
// verify the required parameter 'deviceUID' is set
|
|
782
706
|
if (deviceUID === undefined || deviceUID === null) {
|
|
783
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
707
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
784
708
|
}
|
|
785
709
|
var pathParams = {
|
|
786
710
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -792,720 +716,756 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
792
716
|
var authNames = ['personalAccessToken'];
|
|
793
717
|
var contentTypes = [];
|
|
794
718
|
var accepts = ['application/json'];
|
|
795
|
-
var returnType =
|
|
796
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
719
|
+
var returnType = _GetDevicePublicKey200Response["default"];
|
|
720
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
797
721
|
}
|
|
798
722
|
|
|
799
723
|
/**
|
|
800
|
-
* Get Device
|
|
724
|
+
* Get Device Public Key
|
|
801
725
|
* @param {String} projectOrProductUID
|
|
802
726
|
* @param {String} deviceUID
|
|
803
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
727
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
804
728
|
*/
|
|
805
729
|
}, {
|
|
806
|
-
key: "
|
|
807
|
-
value: function
|
|
808
|
-
return this.
|
|
730
|
+
key: "getDevicePublicKey",
|
|
731
|
+
value: function getDevicePublicKey(projectOrProductUID, deviceUID) {
|
|
732
|
+
return this.getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
809
733
|
return response_and_data.data;
|
|
810
734
|
});
|
|
811
735
|
}
|
|
812
736
|
|
|
813
737
|
/**
|
|
814
|
-
* Get
|
|
738
|
+
* Get Device Sessions
|
|
815
739
|
* @param {String} projectOrProductUID
|
|
816
740
|
* @param {String} deviceUID
|
|
817
|
-
* @
|
|
741
|
+
* @param {Object} opts Optional parameters
|
|
742
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
743
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
744
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
745
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
746
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
818
747
|
*/
|
|
819
748
|
}, {
|
|
820
|
-
key: "
|
|
821
|
-
value: function
|
|
749
|
+
key: "getDeviceSessionsWithHttpInfo",
|
|
750
|
+
value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
751
|
+
opts = opts || {};
|
|
822
752
|
var postBody = null;
|
|
823
753
|
// verify the required parameter 'projectOrProductUID' is set
|
|
824
754
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
825
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
755
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
|
|
826
756
|
}
|
|
827
757
|
// verify the required parameter 'deviceUID' is set
|
|
828
758
|
if (deviceUID === undefined || deviceUID === null) {
|
|
829
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
759
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
830
760
|
}
|
|
831
761
|
var pathParams = {
|
|
832
762
|
'projectOrProductUID': projectOrProductUID,
|
|
833
763
|
'deviceUID': deviceUID
|
|
834
764
|
};
|
|
835
|
-
var queryParams = {
|
|
765
|
+
var queryParams = {
|
|
766
|
+
'pageSize': opts['pageSize'],
|
|
767
|
+
'pageNum': opts['pageNum'],
|
|
768
|
+
'startDate': opts['startDate'],
|
|
769
|
+
'endDate': opts['endDate']
|
|
770
|
+
};
|
|
836
771
|
var headerParams = {};
|
|
837
772
|
var formParams = {};
|
|
838
773
|
var authNames = ['personalAccessToken'];
|
|
839
774
|
var contentTypes = [];
|
|
840
775
|
var accepts = ['application/json'];
|
|
841
|
-
var returnType =
|
|
842
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
776
|
+
var returnType = _GetDeviceSessions200Response["default"];
|
|
777
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
843
778
|
}
|
|
844
779
|
|
|
845
780
|
/**
|
|
846
|
-
* Get
|
|
781
|
+
* Get Device Sessions
|
|
847
782
|
* @param {String} projectOrProductUID
|
|
848
783
|
* @param {String} deviceUID
|
|
849
|
-
* @
|
|
784
|
+
* @param {Object} opts Optional parameters
|
|
785
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
786
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
787
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
788
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
789
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
850
790
|
*/
|
|
851
791
|
}, {
|
|
852
|
-
key: "
|
|
853
|
-
value: function
|
|
854
|
-
return this.
|
|
792
|
+
key: "getDeviceSessions",
|
|
793
|
+
value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
|
|
794
|
+
return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
855
795
|
return response_and_data.data;
|
|
856
796
|
});
|
|
857
797
|
}
|
|
858
798
|
|
|
859
799
|
/**
|
|
860
|
-
* Get
|
|
800
|
+
* Get Device Public Keys of a Project
|
|
861
801
|
* @param {String} projectOrProductUID
|
|
862
|
-
* @param {
|
|
863
|
-
* @
|
|
802
|
+
* @param {Object} opts Optional parameters
|
|
803
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
804
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
805
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
|
|
864
806
|
*/
|
|
865
807
|
}, {
|
|
866
|
-
key: "
|
|
867
|
-
value: function
|
|
808
|
+
key: "getProjectDevicePublicKeysWithHttpInfo",
|
|
809
|
+
value: function getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
|
|
810
|
+
opts = opts || {};
|
|
868
811
|
var postBody = null;
|
|
869
812
|
// verify the required parameter 'projectOrProductUID' is set
|
|
870
813
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
871
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
872
|
-
}
|
|
873
|
-
// verify the required parameter 'deviceUID' is set
|
|
874
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
875
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
814
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
|
|
876
815
|
}
|
|
877
816
|
var pathParams = {
|
|
878
|
-
'projectOrProductUID': projectOrProductUID
|
|
879
|
-
|
|
817
|
+
'projectOrProductUID': projectOrProductUID
|
|
818
|
+
};
|
|
819
|
+
var queryParams = {
|
|
820
|
+
'pageSize': opts['pageSize'],
|
|
821
|
+
'pageNum': opts['pageNum']
|
|
880
822
|
};
|
|
881
|
-
var queryParams = {};
|
|
882
823
|
var headerParams = {};
|
|
883
824
|
var formParams = {};
|
|
884
825
|
var authNames = ['personalAccessToken'];
|
|
885
826
|
var contentTypes = [];
|
|
886
827
|
var accepts = ['application/json'];
|
|
887
|
-
var returnType =
|
|
888
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/
|
|
828
|
+
var returnType = _GetProjectDevicePublicKeys200Response["default"];
|
|
829
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
889
830
|
}
|
|
890
831
|
|
|
891
832
|
/**
|
|
892
|
-
* Get
|
|
833
|
+
* Get Device Public Keys of a Project
|
|
893
834
|
* @param {String} projectOrProductUID
|
|
894
|
-
* @param {
|
|
895
|
-
* @
|
|
835
|
+
* @param {Object} opts Optional parameters
|
|
836
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
837
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
838
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
|
|
896
839
|
*/
|
|
897
840
|
}, {
|
|
898
|
-
key: "
|
|
899
|
-
value: function
|
|
900
|
-
return this.
|
|
841
|
+
key: "getProjectDevicePublicKeys",
|
|
842
|
+
value: function getProjectDevicePublicKeys(projectOrProductUID, opts) {
|
|
843
|
+
return this.getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
901
844
|
return response_and_data.data;
|
|
902
845
|
});
|
|
903
846
|
}
|
|
904
847
|
|
|
905
848
|
/**
|
|
906
|
-
* Get
|
|
907
|
-
* @param {String} productUID
|
|
908
|
-
* @param {String} deviceUID
|
|
909
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
910
|
-
*/
|
|
911
|
-
}, {
|
|
912
|
-
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
913
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
914
|
-
var postBody = null;
|
|
915
|
-
// verify the required parameter 'productUID' is set
|
|
916
|
-
if (productUID === undefined || productUID === null) {
|
|
917
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
918
|
-
}
|
|
919
|
-
// verify the required parameter 'deviceUID' is set
|
|
920
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
921
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
922
|
-
}
|
|
923
|
-
var pathParams = {
|
|
924
|
-
'productUID': productUID,
|
|
925
|
-
'deviceUID': deviceUID
|
|
926
|
-
};
|
|
927
|
-
var queryParams = {};
|
|
928
|
-
var headerParams = {};
|
|
929
|
-
var formParams = {};
|
|
930
|
-
var authNames = ['pin'];
|
|
931
|
-
var contentTypes = [];
|
|
932
|
-
var accepts = ['application/json'];
|
|
933
|
-
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
934
|
-
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* Get environment variables of a device with device pin authorization
|
|
939
|
-
* @param {String} productUID
|
|
940
|
-
* @param {String} deviceUID
|
|
941
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
942
|
-
*/
|
|
943
|
-
}, {
|
|
944
|
-
key: "getDeviceEnvironmentVariablesByPin",
|
|
945
|
-
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
946
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
947
|
-
return response_and_data.data;
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* Get Device Health Log
|
|
849
|
+
* Get Devices of a Project
|
|
953
850
|
* @param {String} projectOrProductUID
|
|
954
|
-
* @param {String} deviceUID
|
|
955
851
|
* @param {Object} opts Optional parameters
|
|
956
|
-
* @param {Number} opts.
|
|
957
|
-
* @param {Number} opts.
|
|
958
|
-
* @param {Array.<
|
|
959
|
-
* @
|
|
852
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
853
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
854
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
855
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
856
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
857
|
+
* @param {Array.<String>} opts.fleetUID
|
|
858
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
859
|
+
* @param {Array.<String>} opts.location Location filter
|
|
860
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
861
|
+
* @param {Array.<String>} opts.productUID
|
|
862
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
863
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
960
864
|
*/
|
|
961
865
|
}, {
|
|
962
|
-
key: "
|
|
963
|
-
value: function
|
|
866
|
+
key: "getProjectDevicesWithHttpInfo",
|
|
867
|
+
value: function getProjectDevicesWithHttpInfo(projectOrProductUID, opts) {
|
|
964
868
|
opts = opts || {};
|
|
965
869
|
var postBody = null;
|
|
966
870
|
// verify the required parameter 'projectOrProductUID' is set
|
|
967
871
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
968
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
969
|
-
}
|
|
970
|
-
// verify the required parameter 'deviceUID' is set
|
|
971
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
972
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
872
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
|
|
973
873
|
}
|
|
974
874
|
var pathParams = {
|
|
975
|
-
'projectOrProductUID': projectOrProductUID
|
|
976
|
-
'deviceUID': deviceUID
|
|
875
|
+
'projectOrProductUID': projectOrProductUID
|
|
977
876
|
};
|
|
978
877
|
var queryParams = {
|
|
979
|
-
'
|
|
980
|
-
'
|
|
981
|
-
'
|
|
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')
|
|
982
889
|
};
|
|
983
890
|
var headerParams = {};
|
|
984
891
|
var formParams = {};
|
|
985
892
|
var authNames = ['personalAccessToken'];
|
|
986
893
|
var contentTypes = [];
|
|
987
894
|
var accepts = ['application/json'];
|
|
988
|
-
var returnType =
|
|
989
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices
|
|
895
|
+
var returnType = _GetProjectDevices200Response["default"];
|
|
896
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
990
897
|
}
|
|
991
898
|
|
|
992
899
|
/**
|
|
993
|
-
* Get
|
|
900
|
+
* Get Devices of a Project
|
|
994
901
|
* @param {String} projectOrProductUID
|
|
995
|
-
* @param {String} deviceUID
|
|
996
902
|
* @param {Object} opts Optional parameters
|
|
997
|
-
* @param {Number} opts.
|
|
998
|
-
* @param {Number} opts.
|
|
999
|
-
* @param {Array.<
|
|
1000
|
-
* @
|
|
903
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
904
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
905
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
906
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
907
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
908
|
+
* @param {Array.<String>} opts.fleetUID
|
|
909
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
910
|
+
* @param {Array.<String>} opts.location Location filter
|
|
911
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
912
|
+
* @param {Array.<String>} opts.productUID
|
|
913
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
914
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
1001
915
|
*/
|
|
1002
916
|
}, {
|
|
1003
|
-
key: "
|
|
1004
|
-
value: function
|
|
1005
|
-
return this.
|
|
917
|
+
key: "getProjectDevices",
|
|
918
|
+
value: function getProjectDevices(projectOrProductUID, opts) {
|
|
919
|
+
return this.getProjectDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1006
920
|
return response_and_data.data;
|
|
1007
921
|
});
|
|
1008
922
|
}
|
|
1009
923
|
|
|
1010
924
|
/**
|
|
1011
|
-
* Get
|
|
925
|
+
* Get Devices of a Fleet within a Project
|
|
1012
926
|
* @param {String} projectOrProductUID
|
|
1013
|
-
* @param {String}
|
|
1014
|
-
* @
|
|
927
|
+
* @param {String} fleetUID
|
|
928
|
+
* @param {Object} opts Optional parameters
|
|
929
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
930
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
931
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
932
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
933
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
934
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
935
|
+
* @param {Array.<String>} opts.location Location filter
|
|
936
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
937
|
+
* @param {Array.<String>} opts.productUID
|
|
938
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
939
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
1015
940
|
*/
|
|
1016
941
|
}, {
|
|
1017
|
-
key: "
|
|
1018
|
-
value: function
|
|
942
|
+
key: "getProjectFleetDevicesWithHttpInfo",
|
|
943
|
+
value: function getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
944
|
+
opts = opts || {};
|
|
1019
945
|
var postBody = null;
|
|
1020
946
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1021
947
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1022
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
948
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleetDevices");
|
|
1023
949
|
}
|
|
1024
|
-
// verify the required parameter '
|
|
1025
|
-
if (
|
|
1026
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
950
|
+
// verify the required parameter 'fleetUID' is set
|
|
951
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
952
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
1027
953
|
}
|
|
1028
954
|
var pathParams = {
|
|
1029
955
|
'projectOrProductUID': projectOrProductUID,
|
|
1030
|
-
'
|
|
956
|
+
'fleetUID': fleetUID
|
|
957
|
+
};
|
|
958
|
+
var queryParams = {
|
|
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')
|
|
1031
969
|
};
|
|
1032
|
-
var queryParams = {};
|
|
1033
970
|
var headerParams = {};
|
|
1034
971
|
var formParams = {};
|
|
1035
972
|
var authNames = ['personalAccessToken'];
|
|
1036
973
|
var contentTypes = [];
|
|
1037
974
|
var accepts = ['application/json'];
|
|
1038
|
-
var returnType =
|
|
1039
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
975
|
+
var returnType = _GetProjectDevices200Response["default"];
|
|
976
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1040
977
|
}
|
|
1041
978
|
|
|
1042
979
|
/**
|
|
1043
|
-
* Get
|
|
980
|
+
* Get Devices of a Fleet within a Project
|
|
1044
981
|
* @param {String} projectOrProductUID
|
|
1045
|
-
* @param {String}
|
|
1046
|
-
* @
|
|
982
|
+
* @param {String} fleetUID
|
|
983
|
+
* @param {Object} opts Optional parameters
|
|
984
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
985
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
986
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
987
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
988
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
989
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
990
|
+
* @param {Array.<String>} opts.location Location filter
|
|
991
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
992
|
+
* @param {Array.<String>} opts.productUID
|
|
993
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
994
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
1047
995
|
*/
|
|
1048
996
|
}, {
|
|
1049
|
-
key: "
|
|
1050
|
-
value: function
|
|
1051
|
-
return this.
|
|
997
|
+
key: "getProjectFleetDevices",
|
|
998
|
+
value: function getProjectFleetDevices(projectOrProductUID, fleetUID, opts) {
|
|
999
|
+
return this.getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
1052
1000
|
return response_and_data.data;
|
|
1053
1001
|
});
|
|
1054
1002
|
}
|
|
1055
1003
|
|
|
1056
1004
|
/**
|
|
1057
|
-
*
|
|
1005
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1058
1006
|
* @param {String} projectOrProductUID
|
|
1059
1007
|
* @param {String} deviceUID
|
|
1060
|
-
* @
|
|
1008
|
+
* @param {String} notefileID
|
|
1009
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1010
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1061
1011
|
*/
|
|
1062
1012
|
}, {
|
|
1063
|
-
key: "
|
|
1064
|
-
value: function
|
|
1065
|
-
var postBody =
|
|
1013
|
+
key: "handleNoteAddWithHttpInfo",
|
|
1014
|
+
value: function handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
|
|
1015
|
+
var postBody = note;
|
|
1066
1016
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1067
1017
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1068
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1018
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteAdd");
|
|
1069
1019
|
}
|
|
1070
1020
|
// verify the required parameter 'deviceUID' is set
|
|
1071
1021
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1072
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1022
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteAdd");
|
|
1023
|
+
}
|
|
1024
|
+
// verify the required parameter 'notefileID' is set
|
|
1025
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1026
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteAdd");
|
|
1027
|
+
}
|
|
1028
|
+
// verify the required parameter 'note' is set
|
|
1029
|
+
if (note === undefined || note === null) {
|
|
1030
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
1073
1031
|
}
|
|
1074
1032
|
var pathParams = {
|
|
1075
1033
|
'projectOrProductUID': projectOrProductUID,
|
|
1076
|
-
'deviceUID': deviceUID
|
|
1034
|
+
'deviceUID': deviceUID,
|
|
1035
|
+
'notefileID': notefileID
|
|
1077
1036
|
};
|
|
1078
1037
|
var queryParams = {};
|
|
1079
1038
|
var headerParams = {};
|
|
1080
1039
|
var formParams = {};
|
|
1081
1040
|
var authNames = ['personalAccessToken'];
|
|
1082
|
-
var contentTypes = [];
|
|
1041
|
+
var contentTypes = ['application/json'];
|
|
1083
1042
|
var accepts = ['application/json'];
|
|
1084
|
-
var returnType =
|
|
1085
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1043
|
+
var returnType = null;
|
|
1044
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1086
1045
|
}
|
|
1087
1046
|
|
|
1088
1047
|
/**
|
|
1089
|
-
*
|
|
1048
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1090
1049
|
* @param {String} projectOrProductUID
|
|
1091
1050
|
* @param {String} deviceUID
|
|
1092
|
-
* @
|
|
1051
|
+
* @param {String} notefileID
|
|
1052
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1053
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1093
1054
|
*/
|
|
1094
1055
|
}, {
|
|
1095
|
-
key: "
|
|
1096
|
-
value: function
|
|
1097
|
-
return this.
|
|
1056
|
+
key: "handleNoteAdd",
|
|
1057
|
+
value: function handleNoteAdd(projectOrProductUID, deviceUID, notefileID, note) {
|
|
1058
|
+
return this.handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
|
|
1098
1059
|
return response_and_data.data;
|
|
1099
1060
|
});
|
|
1100
1061
|
}
|
|
1101
1062
|
|
|
1102
1063
|
/**
|
|
1103
|
-
*
|
|
1064
|
+
* Incrementally retrieve changes within a specific Notefile.
|
|
1104
1065
|
* @param {String} projectOrProductUID
|
|
1105
1066
|
* @param {String} deviceUID
|
|
1106
|
-
* @
|
|
1067
|
+
* @param {String} notefileID
|
|
1068
|
+
* @param {Object} opts Optional parameters
|
|
1069
|
+
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1070
|
+
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1071
|
+
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1072
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteChanges200Response} and HTTP response
|
|
1107
1073
|
*/
|
|
1108
1074
|
}, {
|
|
1109
|
-
key: "
|
|
1110
|
-
value: function
|
|
1075
|
+
key: "handleNoteChangesWithHttpInfo",
|
|
1076
|
+
value: function handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
|
|
1077
|
+
opts = opts || {};
|
|
1111
1078
|
var postBody = null;
|
|
1112
1079
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1113
1080
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1114
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1081
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteChanges");
|
|
1115
1082
|
}
|
|
1116
1083
|
// verify the required parameter 'deviceUID' is set
|
|
1117
1084
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1118
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1085
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteChanges");
|
|
1086
|
+
}
|
|
1087
|
+
// verify the required parameter 'notefileID' is set
|
|
1088
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1089
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
1119
1090
|
}
|
|
1120
1091
|
var pathParams = {
|
|
1121
1092
|
'projectOrProductUID': projectOrProductUID,
|
|
1122
|
-
'deviceUID': deviceUID
|
|
1093
|
+
'deviceUID': deviceUID,
|
|
1094
|
+
'notefileID': notefileID
|
|
1095
|
+
};
|
|
1096
|
+
var queryParams = {
|
|
1097
|
+
'max': opts['max'],
|
|
1098
|
+
'deleted': opts['deleted'],
|
|
1099
|
+
'delete': opts['_delete']
|
|
1123
1100
|
};
|
|
1124
|
-
var queryParams = {};
|
|
1125
1101
|
var headerParams = {};
|
|
1126
1102
|
var formParams = {};
|
|
1127
1103
|
var authNames = ['personalAccessToken'];
|
|
1128
1104
|
var contentTypes = [];
|
|
1129
1105
|
var accepts = ['application/json'];
|
|
1130
|
-
var returnType =
|
|
1131
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1106
|
+
var returnType = _HandleNoteChanges200Response["default"];
|
|
1107
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1132
1108
|
}
|
|
1133
1109
|
|
|
1134
1110
|
/**
|
|
1135
|
-
*
|
|
1111
|
+
* Incrementally retrieve changes within a specific Notefile.
|
|
1136
1112
|
* @param {String} projectOrProductUID
|
|
1137
1113
|
* @param {String} deviceUID
|
|
1138
|
-
* @
|
|
1114
|
+
* @param {String} notefileID
|
|
1115
|
+
* @param {Object} opts Optional parameters
|
|
1116
|
+
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1117
|
+
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1118
|
+
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1119
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteChanges200Response}
|
|
1139
1120
|
*/
|
|
1140
1121
|
}, {
|
|
1141
|
-
key: "
|
|
1142
|
-
value: function
|
|
1143
|
-
return this.
|
|
1122
|
+
key: "handleNoteChanges",
|
|
1123
|
+
value: function handleNoteChanges(projectOrProductUID, deviceUID, notefileID, opts) {
|
|
1124
|
+
return this.handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
|
|
1144
1125
|
return response_and_data.data;
|
|
1145
1126
|
});
|
|
1146
1127
|
}
|
|
1147
1128
|
|
|
1148
1129
|
/**
|
|
1149
|
-
*
|
|
1130
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1150
1131
|
* @param {String} projectOrProductUID
|
|
1151
|
-
* @param {
|
|
1152
|
-
* @param {
|
|
1153
|
-
* @param {
|
|
1154
|
-
* @
|
|
1132
|
+
* @param {String} deviceUID
|
|
1133
|
+
* @param {String} notefileID
|
|
1134
|
+
* @param {String} noteID
|
|
1135
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1155
1137
|
*/
|
|
1156
1138
|
}, {
|
|
1157
|
-
key: "
|
|
1158
|
-
value: function
|
|
1159
|
-
|
|
1160
|
-
var postBody = null;
|
|
1139
|
+
key: "handleNoteCreateAddWithHttpInfo",
|
|
1140
|
+
value: function handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1141
|
+
var postBody = note;
|
|
1161
1142
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1162
1143
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1163
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1144
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteCreateAdd");
|
|
1145
|
+
}
|
|
1146
|
+
// verify the required parameter 'deviceUID' is set
|
|
1147
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1148
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteCreateAdd");
|
|
1149
|
+
}
|
|
1150
|
+
// verify the required parameter 'notefileID' is set
|
|
1151
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1152
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteCreateAdd");
|
|
1153
|
+
}
|
|
1154
|
+
// verify the required parameter 'noteID' is set
|
|
1155
|
+
if (noteID === undefined || noteID === null) {
|
|
1156
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteCreateAdd");
|
|
1157
|
+
}
|
|
1158
|
+
// verify the required parameter 'note' is set
|
|
1159
|
+
if (note === undefined || note === null) {
|
|
1160
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
1164
1161
|
}
|
|
1165
1162
|
var pathParams = {
|
|
1166
|
-
'projectOrProductUID': projectOrProductUID
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
'
|
|
1170
|
-
'pageNum': opts['pageNum']
|
|
1163
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1164
|
+
'deviceUID': deviceUID,
|
|
1165
|
+
'notefileID': notefileID,
|
|
1166
|
+
'noteID': noteID
|
|
1171
1167
|
};
|
|
1168
|
+
var queryParams = {};
|
|
1172
1169
|
var headerParams = {};
|
|
1173
1170
|
var formParams = {};
|
|
1174
1171
|
var authNames = ['personalAccessToken'];
|
|
1175
|
-
var contentTypes = [];
|
|
1172
|
+
var contentTypes = ['application/json'];
|
|
1176
1173
|
var accepts = ['application/json'];
|
|
1177
|
-
var returnType =
|
|
1178
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/
|
|
1174
|
+
var returnType = null;
|
|
1175
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1179
1176
|
}
|
|
1180
1177
|
|
|
1181
1178
|
/**
|
|
1182
|
-
*
|
|
1179
|
+
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
1183
1180
|
* @param {String} projectOrProductUID
|
|
1184
|
-
* @param {
|
|
1185
|
-
* @param {
|
|
1186
|
-
* @param {
|
|
1187
|
-
* @
|
|
1181
|
+
* @param {String} deviceUID
|
|
1182
|
+
* @param {String} notefileID
|
|
1183
|
+
* @param {String} noteID
|
|
1184
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1185
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1188
1186
|
*/
|
|
1189
1187
|
}, {
|
|
1190
|
-
key: "
|
|
1191
|
-
value: function
|
|
1192
|
-
return this.
|
|
1188
|
+
key: "handleNoteCreateAdd",
|
|
1189
|
+
value: function handleNoteCreateAdd(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1190
|
+
return this.handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
|
|
1193
1191
|
return response_and_data.data;
|
|
1194
1192
|
});
|
|
1195
1193
|
}
|
|
1196
1194
|
|
|
1197
1195
|
/**
|
|
1198
|
-
*
|
|
1196
|
+
* Delete a note from a DB notefile
|
|
1199
1197
|
* @param {String} projectOrProductUID
|
|
1200
1198
|
* @param {String} deviceUID
|
|
1201
|
-
* @param {
|
|
1202
|
-
* @param {
|
|
1203
|
-
* @
|
|
1204
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1205
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1206
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
1199
|
+
* @param {String} notefileID
|
|
1200
|
+
* @param {String} noteID
|
|
1201
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1207
1202
|
*/
|
|
1208
1203
|
}, {
|
|
1209
|
-
key: "
|
|
1210
|
-
value: function
|
|
1211
|
-
opts = opts || {};
|
|
1204
|
+
key: "handleNoteDeleteWithHttpInfo",
|
|
1205
|
+
value: function handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
1212
1206
|
var postBody = null;
|
|
1213
1207
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1214
1208
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1215
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1209
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteDelete");
|
|
1216
1210
|
}
|
|
1217
1211
|
// verify the required parameter 'deviceUID' is set
|
|
1218
1212
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1219
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1213
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteDelete");
|
|
1214
|
+
}
|
|
1215
|
+
// verify the required parameter 'notefileID' is set
|
|
1216
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1217
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteDelete");
|
|
1218
|
+
}
|
|
1219
|
+
// verify the required parameter 'noteID' is set
|
|
1220
|
+
if (noteID === undefined || noteID === null) {
|
|
1221
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
|
|
1220
1222
|
}
|
|
1221
1223
|
var pathParams = {
|
|
1222
1224
|
'projectOrProductUID': projectOrProductUID,
|
|
1223
|
-
'deviceUID': deviceUID
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
'pageSize': opts['pageSize'],
|
|
1227
|
-
'pageNum': opts['pageNum'],
|
|
1228
|
-
'startDate': opts['startDate'],
|
|
1229
|
-
'endDate': opts['endDate']
|
|
1225
|
+
'deviceUID': deviceUID,
|
|
1226
|
+
'notefileID': notefileID,
|
|
1227
|
+
'noteID': noteID
|
|
1230
1228
|
};
|
|
1229
|
+
var queryParams = {};
|
|
1231
1230
|
var headerParams = {};
|
|
1232
1231
|
var formParams = {};
|
|
1233
1232
|
var authNames = ['personalAccessToken'];
|
|
1234
1233
|
var contentTypes = [];
|
|
1235
1234
|
var accepts = ['application/json'];
|
|
1236
|
-
var returnType =
|
|
1237
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1235
|
+
var returnType = null;
|
|
1236
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1238
1237
|
}
|
|
1239
1238
|
|
|
1240
1239
|
/**
|
|
1241
|
-
*
|
|
1240
|
+
* Delete a note from a DB notefile
|
|
1242
1241
|
* @param {String} projectOrProductUID
|
|
1243
1242
|
* @param {String} deviceUID
|
|
1244
|
-
* @param {
|
|
1245
|
-
* @param {
|
|
1246
|
-
* @
|
|
1247
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1248
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1249
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
1243
|
+
* @param {String} notefileID
|
|
1244
|
+
* @param {String} noteID
|
|
1245
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1250
1246
|
*/
|
|
1251
1247
|
}, {
|
|
1252
|
-
key: "
|
|
1253
|
-
value: function
|
|
1254
|
-
return this.
|
|
1248
|
+
key: "handleNoteDelete",
|
|
1249
|
+
value: function handleNoteDelete(projectOrProductUID, deviceUID, notefileID, noteID) {
|
|
1250
|
+
return this.handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
|
|
1255
1251
|
return response_and_data.data;
|
|
1256
1252
|
});
|
|
1257
1253
|
}
|
|
1258
1254
|
|
|
1259
1255
|
/**
|
|
1260
|
-
* Get
|
|
1256
|
+
* Get a note from a DB notefile
|
|
1261
1257
|
* @param {String} projectOrProductUID
|
|
1258
|
+
* @param {String} deviceUID
|
|
1259
|
+
* @param {String} notefileID
|
|
1260
|
+
* @param {String} noteID
|
|
1262
1261
|
* @param {Object} opts Optional parameters
|
|
1263
|
-
* @param {
|
|
1264
|
-
* @param {
|
|
1265
|
-
* @
|
|
1266
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1267
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1268
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1269
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1270
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1271
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1272
|
-
* @param {Array.<String>} opts.productUID
|
|
1273
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1274
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1262
|
+
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1263
|
+
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
1264
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteGet200Response} and HTTP response
|
|
1275
1265
|
*/
|
|
1276
1266
|
}, {
|
|
1277
|
-
key: "
|
|
1278
|
-
value: function
|
|
1267
|
+
key: "handleNoteGetWithHttpInfo",
|
|
1268
|
+
value: function handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
|
|
1279
1269
|
opts = opts || {};
|
|
1280
1270
|
var postBody = null;
|
|
1281
1271
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1282
1272
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1283
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1273
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteGet");
|
|
1274
|
+
}
|
|
1275
|
+
// verify the required parameter 'deviceUID' is set
|
|
1276
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1277
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteGet");
|
|
1278
|
+
}
|
|
1279
|
+
// verify the required parameter 'notefileID' is set
|
|
1280
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1281
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteGet");
|
|
1282
|
+
}
|
|
1283
|
+
// verify the required parameter 'noteID' is set
|
|
1284
|
+
if (noteID === undefined || noteID === null) {
|
|
1285
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
|
|
1284
1286
|
}
|
|
1285
1287
|
var pathParams = {
|
|
1286
|
-
'projectOrProductUID': projectOrProductUID
|
|
1288
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1289
|
+
'deviceUID': deviceUID,
|
|
1290
|
+
'notefileID': notefileID,
|
|
1291
|
+
'noteID': noteID
|
|
1287
1292
|
};
|
|
1288
1293
|
var queryParams = {
|
|
1289
|
-
'
|
|
1290
|
-
'
|
|
1291
|
-
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1292
|
-
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1293
|
-
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1294
|
-
'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
|
|
1295
|
-
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1296
|
-
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1297
|
-
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1298
|
-
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1299
|
-
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1294
|
+
'delete': opts['_delete'],
|
|
1295
|
+
'deleted': opts['deleted']
|
|
1300
1296
|
};
|
|
1301
1297
|
var headerParams = {};
|
|
1302
1298
|
var formParams = {};
|
|
1303
1299
|
var authNames = ['personalAccessToken'];
|
|
1304
1300
|
var contentTypes = [];
|
|
1305
1301
|
var accepts = ['application/json'];
|
|
1306
|
-
var returnType =
|
|
1307
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1302
|
+
var returnType = _HandleNoteGet200Response["default"];
|
|
1303
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1308
1304
|
}
|
|
1309
1305
|
|
|
1310
1306
|
/**
|
|
1311
|
-
* Get
|
|
1307
|
+
* Get a note from a DB notefile
|
|
1312
1308
|
* @param {String} projectOrProductUID
|
|
1309
|
+
* @param {String} deviceUID
|
|
1310
|
+
* @param {String} notefileID
|
|
1311
|
+
* @param {String} noteID
|
|
1313
1312
|
* @param {Object} opts Optional parameters
|
|
1314
|
-
* @param {
|
|
1315
|
-
* @param {
|
|
1316
|
-
* @
|
|
1317
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1318
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1319
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1320
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1321
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1322
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1323
|
-
* @param {Array.<String>} opts.productUID
|
|
1324
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1325
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1313
|
+
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
1314
|
+
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
1315
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteGet200Response}
|
|
1326
1316
|
*/
|
|
1327
1317
|
}, {
|
|
1328
|
-
key: "
|
|
1329
|
-
value: function
|
|
1330
|
-
return this.
|
|
1318
|
+
key: "handleNoteGet",
|
|
1319
|
+
value: function handleNoteGet(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
|
|
1320
|
+
return this.handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
|
|
1331
1321
|
return response_and_data.data;
|
|
1332
1322
|
});
|
|
1333
1323
|
}
|
|
1334
1324
|
|
|
1335
1325
|
/**
|
|
1336
|
-
*
|
|
1326
|
+
* Send a signal from Notehub to a Notecard.
|
|
1337
1327
|
* @param {String} projectOrProductUID
|
|
1338
|
-
* @param {String}
|
|
1339
|
-
* @param {
|
|
1340
|
-
* @
|
|
1341
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
1342
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1343
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1344
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1345
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1346
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1347
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1348
|
-
* @param {Array.<String>} opts.productUID
|
|
1349
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1350
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1328
|
+
* @param {String} deviceUID
|
|
1329
|
+
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1330
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
|
|
1351
1331
|
*/
|
|
1352
1332
|
}, {
|
|
1353
|
-
key: "
|
|
1354
|
-
value: function
|
|
1355
|
-
|
|
1356
|
-
var postBody = null;
|
|
1333
|
+
key: "handleNoteSignalWithHttpInfo",
|
|
1334
|
+
value: function handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body) {
|
|
1335
|
+
var postBody = body;
|
|
1357
1336
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1358
1337
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1359
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1338
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteSignal");
|
|
1360
1339
|
}
|
|
1361
|
-
// verify the required parameter '
|
|
1362
|
-
if (
|
|
1363
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1340
|
+
// verify the required parameter 'deviceUID' is set
|
|
1341
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1342
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteSignal");
|
|
1343
|
+
}
|
|
1344
|
+
// verify the required parameter 'body' is set
|
|
1345
|
+
if (body === undefined || body === null) {
|
|
1346
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
|
|
1364
1347
|
}
|
|
1365
1348
|
var pathParams = {
|
|
1366
1349
|
'projectOrProductUID': projectOrProductUID,
|
|
1367
|
-
'
|
|
1368
|
-
};
|
|
1369
|
-
var queryParams = {
|
|
1370
|
-
'pageSize': opts['pageSize'],
|
|
1371
|
-
'pageNum': opts['pageNum'],
|
|
1372
|
-
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1373
|
-
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1374
|
-
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1375
|
-
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1376
|
-
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1377
|
-
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1378
|
-
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1379
|
-
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1350
|
+
'deviceUID': deviceUID
|
|
1380
1351
|
};
|
|
1352
|
+
var queryParams = {};
|
|
1381
1353
|
var headerParams = {};
|
|
1382
1354
|
var formParams = {};
|
|
1383
1355
|
var authNames = ['personalAccessToken'];
|
|
1384
|
-
var contentTypes = [];
|
|
1356
|
+
var contentTypes = ['application/json'];
|
|
1385
1357
|
var accepts = ['application/json'];
|
|
1386
|
-
var returnType =
|
|
1387
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
1358
|
+
var returnType = _HandleNoteSignal200Response["default"];
|
|
1359
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1388
1360
|
}
|
|
1389
1361
|
|
|
1390
1362
|
/**
|
|
1391
|
-
*
|
|
1363
|
+
* Send a signal from Notehub to a Notecard.
|
|
1392
1364
|
* @param {String} projectOrProductUID
|
|
1393
|
-
* @param {String}
|
|
1394
|
-
* @param {
|
|
1395
|
-
* @
|
|
1396
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
1397
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1398
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1399
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1400
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1401
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1402
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1403
|
-
* @param {Array.<String>} opts.productUID
|
|
1404
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1405
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1365
|
+
* @param {String} deviceUID
|
|
1366
|
+
* @param {module:model/Body} body Body or payload of singnal to be sent to the device
|
|
1367
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
|
|
1406
1368
|
*/
|
|
1407
1369
|
}, {
|
|
1408
|
-
key: "
|
|
1409
|
-
value: function
|
|
1410
|
-
return this.
|
|
1370
|
+
key: "handleNoteSignal",
|
|
1371
|
+
value: function handleNoteSignal(projectOrProductUID, deviceUID, body) {
|
|
1372
|
+
return this.handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
|
|
1411
1373
|
return response_and_data.data;
|
|
1412
1374
|
});
|
|
1413
1375
|
}
|
|
1414
1376
|
|
|
1415
1377
|
/**
|
|
1416
|
-
*
|
|
1378
|
+
* Update a note in a DB notefile
|
|
1417
1379
|
* @param {String} projectOrProductUID
|
|
1418
1380
|
* @param {String} deviceUID
|
|
1419
1381
|
* @param {String} notefileID
|
|
1420
|
-
* @param {
|
|
1421
|
-
* @param {
|
|
1422
|
-
* @
|
|
1423
|
-
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1424
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
1382
|
+
* @param {String} noteID
|
|
1383
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1384
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1425
1385
|
*/
|
|
1426
1386
|
}, {
|
|
1427
|
-
key: "
|
|
1428
|
-
value: function
|
|
1429
|
-
|
|
1430
|
-
var postBody = null;
|
|
1387
|
+
key: "handleNoteUpdateWithHttpInfo",
|
|
1388
|
+
value: function handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1389
|
+
var postBody = note;
|
|
1431
1390
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1432
1391
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1433
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1392
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteUpdate");
|
|
1434
1393
|
}
|
|
1435
1394
|
// verify the required parameter 'deviceUID' is set
|
|
1436
1395
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1437
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1396
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteUpdate");
|
|
1438
1397
|
}
|
|
1439
1398
|
// verify the required parameter 'notefileID' is set
|
|
1440
1399
|
if (notefileID === undefined || notefileID === null) {
|
|
1441
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling
|
|
1400
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteUpdate");
|
|
1401
|
+
}
|
|
1402
|
+
// verify the required parameter 'noteID' is set
|
|
1403
|
+
if (noteID === undefined || noteID === null) {
|
|
1404
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteUpdate");
|
|
1405
|
+
}
|
|
1406
|
+
// verify the required parameter 'note' is set
|
|
1407
|
+
if (note === undefined || note === null) {
|
|
1408
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
|
|
1442
1409
|
}
|
|
1443
1410
|
var pathParams = {
|
|
1444
1411
|
'projectOrProductUID': projectOrProductUID,
|
|
1445
1412
|
'deviceUID': deviceUID,
|
|
1446
|
-
'notefileID': notefileID
|
|
1447
|
-
|
|
1448
|
-
var queryParams = {
|
|
1449
|
-
'max': opts['max'],
|
|
1450
|
-
'deleted': opts['deleted'],
|
|
1451
|
-
'delete': opts['_delete']
|
|
1413
|
+
'notefileID': notefileID,
|
|
1414
|
+
'noteID': noteID
|
|
1452
1415
|
};
|
|
1416
|
+
var queryParams = {};
|
|
1453
1417
|
var headerParams = {};
|
|
1454
1418
|
var formParams = {};
|
|
1455
1419
|
var authNames = ['personalAccessToken'];
|
|
1456
|
-
var contentTypes = [];
|
|
1420
|
+
var contentTypes = ['application/json'];
|
|
1457
1421
|
var accepts = ['application/json'];
|
|
1458
|
-
var returnType =
|
|
1459
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', '
|
|
1422
|
+
var returnType = null;
|
|
1423
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1460
1424
|
}
|
|
1461
1425
|
|
|
1462
1426
|
/**
|
|
1463
|
-
*
|
|
1427
|
+
* Update a note in a DB notefile
|
|
1464
1428
|
* @param {String} projectOrProductUID
|
|
1465
1429
|
* @param {String} deviceUID
|
|
1466
1430
|
* @param {String} notefileID
|
|
1467
|
-
* @param {
|
|
1468
|
-
* @param {
|
|
1469
|
-
* @
|
|
1470
|
-
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1471
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
1431
|
+
* @param {String} noteID
|
|
1432
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1433
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1472
1434
|
*/
|
|
1473
1435
|
}, {
|
|
1474
|
-
key: "
|
|
1475
|
-
value: function
|
|
1476
|
-
return this.
|
|
1436
|
+
key: "handleNoteUpdate",
|
|
1437
|
+
value: function handleNoteUpdate(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1438
|
+
return this.handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
|
|
1477
1439
|
return response_and_data.data;
|
|
1478
1440
|
});
|
|
1479
1441
|
}
|
|
1480
1442
|
|
|
1481
1443
|
/**
|
|
1482
|
-
*
|
|
1444
|
+
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1483
1445
|
* @param {String} projectOrProductUID
|
|
1484
1446
|
* @param {String} deviceUID
|
|
1485
1447
|
* @param {Object} opts Optional parameters
|
|
1486
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1487
1448
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1488
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link
|
|
1449
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChanges200Response} and HTTP response
|
|
1489
1450
|
*/
|
|
1490
1451
|
}, {
|
|
1491
|
-
key: "
|
|
1492
|
-
value: function
|
|
1452
|
+
key: "handleNotefileChangesWithHttpInfo",
|
|
1453
|
+
value: function handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
1493
1454
|
opts = opts || {};
|
|
1494
1455
|
var postBody = null;
|
|
1495
1456
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1496
1457
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1497
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1458
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChanges");
|
|
1498
1459
|
}
|
|
1499
1460
|
// verify the required parameter 'deviceUID' is set
|
|
1500
1461
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1501
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1462
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
|
|
1502
1463
|
}
|
|
1503
1464
|
var pathParams = {
|
|
1504
1465
|
'projectOrProductUID': projectOrProductUID,
|
|
1505
1466
|
'deviceUID': deviceUID
|
|
1506
1467
|
};
|
|
1507
1468
|
var queryParams = {
|
|
1508
|
-
'tracker': opts['tracker'],
|
|
1509
1469
|
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
|
|
1510
1470
|
};
|
|
1511
1471
|
var headerParams = {};
|
|
@@ -1513,44 +1473,43 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1513
1473
|
var authNames = ['personalAccessToken'];
|
|
1514
1474
|
var contentTypes = [];
|
|
1515
1475
|
var accepts = ['application/json'];
|
|
1516
|
-
var returnType = [
|
|
1517
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1476
|
+
var returnType = _HandleNotefileChanges200Response["default"];
|
|
1477
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1518
1478
|
}
|
|
1519
1479
|
|
|
1520
1480
|
/**
|
|
1521
|
-
*
|
|
1481
|
+
* Used to perform queries on a single or multiple files to determine if new Notes are available to read
|
|
1522
1482
|
* @param {String} projectOrProductUID
|
|
1523
1483
|
* @param {String} deviceUID
|
|
1524
1484
|
* @param {Object} opts Optional parameters
|
|
1525
|
-
* @param {String} opts.tracker The change tracker ID.
|
|
1526
1485
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1527
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link
|
|
1486
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChanges200Response}
|
|
1528
1487
|
*/
|
|
1529
1488
|
}, {
|
|
1530
|
-
key: "
|
|
1531
|
-
value: function
|
|
1532
|
-
return this.
|
|
1489
|
+
key: "handleNotefileChanges",
|
|
1490
|
+
value: function handleNotefileChanges(projectOrProductUID, deviceUID, opts) {
|
|
1491
|
+
return this.handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
1533
1492
|
return response_and_data.data;
|
|
1534
1493
|
});
|
|
1535
1494
|
}
|
|
1536
1495
|
|
|
1537
1496
|
/**
|
|
1538
|
-
*
|
|
1497
|
+
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1539
1498
|
* @param {String} projectOrProductUID
|
|
1540
1499
|
* @param {String} deviceUID
|
|
1541
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
1500
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
|
|
1542
1501
|
*/
|
|
1543
1502
|
}, {
|
|
1544
|
-
key: "
|
|
1545
|
-
value: function
|
|
1503
|
+
key: "handleNotefileChangesPendingWithHttpInfo",
|
|
1504
|
+
value: function handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1546
1505
|
var postBody = null;
|
|
1547
1506
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1548
1507
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1549
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1508
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChangesPending");
|
|
1550
1509
|
}
|
|
1551
1510
|
// verify the required parameter 'deviceUID' is set
|
|
1552
1511
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1553
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1512
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
|
|
1554
1513
|
}
|
|
1555
1514
|
var pathParams = {
|
|
1556
1515
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1562,46 +1521,46 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1562
1521
|
var authNames = ['personalAccessToken'];
|
|
1563
1522
|
var contentTypes = [];
|
|
1564
1523
|
var accepts = ['application/json'];
|
|
1565
|
-
var returnType =
|
|
1524
|
+
var returnType = _HandleNotefileChangesPending200Response["default"];
|
|
1566
1525
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1567
1526
|
}
|
|
1568
1527
|
|
|
1569
1528
|
/**
|
|
1570
|
-
*
|
|
1529
|
+
* Returns info about file changes that are pending upload to Notehub or download to the Notecard.
|
|
1571
1530
|
* @param {String} projectOrProductUID
|
|
1572
1531
|
* @param {String} deviceUID
|
|
1573
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
1532
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
|
|
1574
1533
|
*/
|
|
1575
1534
|
}, {
|
|
1576
|
-
key: "
|
|
1577
|
-
value: function
|
|
1578
|
-
return this.
|
|
1535
|
+
key: "handleNotefileChangesPending",
|
|
1536
|
+
value: function handleNotefileChangesPending(projectOrProductUID, deviceUID) {
|
|
1537
|
+
return this.handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1579
1538
|
return response_and_data.data;
|
|
1580
1539
|
});
|
|
1581
1540
|
}
|
|
1582
1541
|
|
|
1583
1542
|
/**
|
|
1584
|
-
*
|
|
1543
|
+
* Deletes Notefiles and the Notes they contain.
|
|
1585
1544
|
* @param {String} projectOrProductUID
|
|
1586
1545
|
* @param {String} deviceUID
|
|
1587
|
-
* @param {module:model/
|
|
1588
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing
|
|
1546
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1547
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1589
1548
|
*/
|
|
1590
1549
|
}, {
|
|
1591
|
-
key: "
|
|
1592
|
-
value: function
|
|
1593
|
-
var postBody =
|
|
1550
|
+
key: "handleNotefileDeleteWithHttpInfo",
|
|
1551
|
+
value: function handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
|
|
1552
|
+
var postBody = handleNotefileDeleteRequest;
|
|
1594
1553
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1595
1554
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1596
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1555
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileDelete");
|
|
1597
1556
|
}
|
|
1598
1557
|
// verify the required parameter 'deviceUID' is set
|
|
1599
1558
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1600
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1559
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileDelete");
|
|
1601
1560
|
}
|
|
1602
|
-
// verify the required parameter '
|
|
1603
|
-
if (
|
|
1604
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1561
|
+
// verify the required parameter 'handleNotefileDeleteRequest' is set
|
|
1562
|
+
if (handleNotefileDeleteRequest === undefined || handleNotefileDeleteRequest === null) {
|
|
1563
|
+
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
1605
1564
|
}
|
|
1606
1565
|
var pathParams = {
|
|
1607
1566
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1613,47 +1572,47 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1613
1572
|
var authNames = ['personalAccessToken'];
|
|
1614
1573
|
var contentTypes = ['application/json'];
|
|
1615
1574
|
var accepts = ['application/json'];
|
|
1616
|
-
var returnType =
|
|
1617
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1575
|
+
var returnType = null;
|
|
1576
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1618
1577
|
}
|
|
1619
1578
|
|
|
1620
1579
|
/**
|
|
1621
|
-
*
|
|
1580
|
+
* Deletes Notefiles and the Notes they contain.
|
|
1622
1581
|
* @param {String} projectOrProductUID
|
|
1623
1582
|
* @param {String} deviceUID
|
|
1624
|
-
* @param {module:model/
|
|
1625
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1583
|
+
* @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
|
|
1584
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1626
1585
|
*/
|
|
1627
1586
|
}, {
|
|
1628
|
-
key: "
|
|
1629
|
-
value: function
|
|
1630
|
-
return this.
|
|
1587
|
+
key: "handleNotefileDelete",
|
|
1588
|
+
value: function handleNotefileDelete(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
|
|
1589
|
+
return this.handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
|
|
1631
1590
|
return response_and_data.data;
|
|
1632
1591
|
});
|
|
1633
1592
|
}
|
|
1634
1593
|
|
|
1635
1594
|
/**
|
|
1636
|
-
*
|
|
1595
|
+
* Provision Device for a Project
|
|
1637
1596
|
* @param {String} projectOrProductUID
|
|
1638
1597
|
* @param {String} deviceUID
|
|
1639
|
-
* @param {module:model/
|
|
1640
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link
|
|
1598
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1599
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1641
1600
|
*/
|
|
1642
1601
|
}, {
|
|
1643
|
-
key: "
|
|
1644
|
-
value: function
|
|
1645
|
-
var postBody =
|
|
1602
|
+
key: "postProvisionProjectDeviceWithHttpInfo",
|
|
1603
|
+
value: function postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
1604
|
+
var postBody = postProvisionProjectDeviceRequest;
|
|
1646
1605
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1647
1606
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1648
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1607
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling postProvisionProjectDevice");
|
|
1649
1608
|
}
|
|
1650
1609
|
// verify the required parameter 'deviceUID' is set
|
|
1651
1610
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1652
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1611
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
|
|
1653
1612
|
}
|
|
1654
|
-
// verify the required parameter '
|
|
1655
|
-
if (
|
|
1656
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1613
|
+
// verify the required parameter 'postProvisionProjectDeviceRequest' is set
|
|
1614
|
+
if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
|
|
1615
|
+
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
1657
1616
|
}
|
|
1658
1617
|
var pathParams = {
|
|
1659
1618
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1665,63 +1624,51 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1665
1624
|
var authNames = ['personalAccessToken'];
|
|
1666
1625
|
var contentTypes = ['application/json'];
|
|
1667
1626
|
var accepts = ['application/json'];
|
|
1668
|
-
var returnType =
|
|
1669
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1627
|
+
var returnType = Object;
|
|
1628
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1670
1629
|
}
|
|
1671
1630
|
|
|
1672
1631
|
/**
|
|
1673
|
-
*
|
|
1632
|
+
* Provision Device for a Project
|
|
1674
1633
|
* @param {String} projectOrProductUID
|
|
1675
1634
|
* @param {String} deviceUID
|
|
1676
|
-
* @param {module:model/
|
|
1677
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link
|
|
1635
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
1636
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1678
1637
|
*/
|
|
1679
1638
|
}, {
|
|
1680
|
-
key: "
|
|
1681
|
-
value: function
|
|
1682
|
-
return this.
|
|
1639
|
+
key: "postProvisionProjectDevice",
|
|
1640
|
+
value: function postProvisionProjectDevice(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
1641
|
+
return this.postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
|
|
1683
1642
|
return response_and_data.data;
|
|
1684
1643
|
});
|
|
1685
1644
|
}
|
|
1686
1645
|
|
|
1687
1646
|
/**
|
|
1688
|
-
*
|
|
1647
|
+
* Put environment variables of a device
|
|
1689
1648
|
* @param {String} projectOrProductUID
|
|
1690
1649
|
* @param {String} deviceUID
|
|
1691
|
-
* @param {
|
|
1692
|
-
* @
|
|
1693
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1694
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1650
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1651
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1695
1652
|
*/
|
|
1696
1653
|
}, {
|
|
1697
|
-
key: "
|
|
1698
|
-
value: function
|
|
1699
|
-
var postBody =
|
|
1654
|
+
key: "putDeviceEnvironmentVariablesWithHttpInfo",
|
|
1655
|
+
value: function putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
|
|
1656
|
+
var postBody = environmentVariables;
|
|
1700
1657
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1701
1658
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1702
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1659
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceEnvironmentVariables");
|
|
1703
1660
|
}
|
|
1704
1661
|
// verify the required parameter 'deviceUID' is set
|
|
1705
1662
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1706
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1707
|
-
}
|
|
1708
|
-
// verify the required parameter 'notefileID' is set
|
|
1709
|
-
if (notefileID === undefined || notefileID === null) {
|
|
1710
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling updateDbNote");
|
|
1711
|
-
}
|
|
1712
|
-
// verify the required parameter 'noteID' is set
|
|
1713
|
-
if (noteID === undefined || noteID === null) {
|
|
1714
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
|
|
1663
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariables");
|
|
1715
1664
|
}
|
|
1716
|
-
// verify the required parameter '
|
|
1717
|
-
if (
|
|
1718
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1665
|
+
// verify the required parameter 'environmentVariables' is set
|
|
1666
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1667
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
1719
1668
|
}
|
|
1720
1669
|
var pathParams = {
|
|
1721
1670
|
'projectOrProductUID': projectOrProductUID,
|
|
1722
|
-
'deviceUID': deviceUID
|
|
1723
|
-
'notefileID': notefileID,
|
|
1724
|
-
'noteID': noteID
|
|
1671
|
+
'deviceUID': deviceUID
|
|
1725
1672
|
};
|
|
1726
1673
|
var queryParams = {};
|
|
1727
1674
|
var headerParams = {};
|
|
@@ -1729,23 +1676,73 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1729
1676
|
var authNames = ['personalAccessToken'];
|
|
1730
1677
|
var contentTypes = ['application/json'];
|
|
1731
1678
|
var accepts = ['application/json'];
|
|
1732
|
-
var returnType =
|
|
1733
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1679
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1680
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1734
1681
|
}
|
|
1735
1682
|
|
|
1736
1683
|
/**
|
|
1737
|
-
*
|
|
1684
|
+
* Put environment variables of a device
|
|
1738
1685
|
* @param {String} projectOrProductUID
|
|
1739
1686
|
* @param {String} deviceUID
|
|
1740
|
-
* @param {
|
|
1741
|
-
* @
|
|
1742
|
-
|
|
1743
|
-
|
|
1687
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1688
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1689
|
+
*/
|
|
1690
|
+
}, {
|
|
1691
|
+
key: "putDeviceEnvironmentVariables",
|
|
1692
|
+
value: function putDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
|
|
1693
|
+
return this.putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1694
|
+
return response_and_data.data;
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Put environment variables of a device with device pin authorization
|
|
1700
|
+
* @param {String} productUID
|
|
1701
|
+
* @param {String} deviceUID
|
|
1702
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1703
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1704
|
+
*/
|
|
1705
|
+
}, {
|
|
1706
|
+
key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
1707
|
+
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
1708
|
+
var postBody = environmentVariables;
|
|
1709
|
+
// verify the required parameter 'productUID' is set
|
|
1710
|
+
if (productUID === undefined || productUID === null) {
|
|
1711
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
1712
|
+
}
|
|
1713
|
+
// verify the required parameter 'deviceUID' is set
|
|
1714
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1715
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
1716
|
+
}
|
|
1717
|
+
// verify the required parameter 'environmentVariables' is set
|
|
1718
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1719
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
1720
|
+
}
|
|
1721
|
+
var pathParams = {
|
|
1722
|
+
'productUID': productUID,
|
|
1723
|
+
'deviceUID': deviceUID
|
|
1724
|
+
};
|
|
1725
|
+
var queryParams = {};
|
|
1726
|
+
var headerParams = {};
|
|
1727
|
+
var formParams = {};
|
|
1728
|
+
var authNames = ['pin'];
|
|
1729
|
+
var contentTypes = ['application/json'];
|
|
1730
|
+
var accepts = ['application/json'];
|
|
1731
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1732
|
+
return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Put environment variables of a device with device pin authorization
|
|
1737
|
+
* @param {String} productUID
|
|
1738
|
+
* @param {String} deviceUID
|
|
1739
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1740
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1744
1741
|
*/
|
|
1745
1742
|
}, {
|
|
1746
|
-
key: "
|
|
1747
|
-
value: function
|
|
1748
|
-
return this.
|
|
1743
|
+
key: "putDeviceEnvironmentVariablesByPin",
|
|
1744
|
+
value: function putDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
1745
|
+
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1749
1746
|
return response_and_data.data;
|
|
1750
1747
|
});
|
|
1751
1748
|
}
|