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