@blues-inc/notehub-js 2.3.0-beta.2 → 2.3.0-beta.4
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 +48 -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 +817 -713
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +282 -282
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +10 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +80 -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 +15 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/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/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/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.3.0-beta.
|
|
50
|
+
* @version 2.3.0-beta.4
|
|
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
|
|
268
|
-
* @
|
|
298
|
+
* @param {String} notefileID
|
|
299
|
+
* @param {String} noteID
|
|
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 = {};
|
|
@@ -289,91 +331,107 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
331
|
var authNames = ['personalAccessToken'];
|
|
290
332
|
var contentTypes = [];
|
|
291
333
|
var accepts = ['application/json'];
|
|
292
|
-
var returnType =
|
|
293
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', '
|
|
334
|
+
var returnType = null;
|
|
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
|
|
300
|
-
* @
|
|
342
|
+
* @param {String} notefileID
|
|
343
|
+
* @param {String} noteID
|
|
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
|
|
314
|
-
* @
|
|
358
|
+
* @param {Boolean} purge
|
|
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
|
-
var returnType =
|
|
339
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}
|
|
389
|
+
var returnType = null;
|
|
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
|
|
346
|
-
* @
|
|
397
|
+
* @param {Boolean} purge
|
|
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,146 +439,140 @@ 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}/environment_variables', '
|
|
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
|
-
*
|
|
404
|
-
* @param {String}
|
|
462
|
+
* Deletes Notefiles and the Notes they contain.
|
|
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 =
|
|
412
|
-
// verify the required parameter '
|
|
413
|
-
if (
|
|
414
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
469
|
+
key: "deleteNotefilesWithHttpInfo",
|
|
470
|
+
value: function deleteNotefilesWithHttpInfo(projectOrProductUID, deviceUID, deleteNotefilesRequest) {
|
|
471
|
+
var postBody = deleteNotefilesRequest;
|
|
472
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
473
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
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,
|
|
422
486
|
'deviceUID': deviceUID
|
|
423
487
|
};
|
|
424
488
|
var queryParams = {};
|
|
425
489
|
var headerParams = {};
|
|
426
490
|
var formParams = {};
|
|
427
|
-
var authNames = ['
|
|
428
|
-
var contentTypes = [];
|
|
491
|
+
var authNames = ['personalAccessToken'];
|
|
492
|
+
var contentTypes = ['application/json'];
|
|
429
493
|
var accepts = ['application/json'];
|
|
430
|
-
var returnType =
|
|
431
|
-
return this.apiClient.callApi('/v1/
|
|
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
|
-
*
|
|
436
|
-
* @param {String}
|
|
499
|
+
* Deletes Notefiles and the Notes they contain.
|
|
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
|
-
* @
|
|
453
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
454
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
455
|
-
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
456
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
517
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
457
518
|
*/
|
|
458
519
|
}, {
|
|
459
|
-
key: "
|
|
460
|
-
value: function
|
|
461
|
-
opts = opts || {};
|
|
520
|
+
key: "disableDeviceWithHttpInfo",
|
|
521
|
+
value: function disableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
462
522
|
var postBody = null;
|
|
463
523
|
// verify the required parameter 'projectOrProductUID' is set
|
|
464
524
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
465
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
525
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDevice");
|
|
466
526
|
}
|
|
467
527
|
// verify the required parameter 'deviceUID' is set
|
|
468
528
|
if (deviceUID === undefined || deviceUID === null) {
|
|
469
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
529
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
470
530
|
}
|
|
471
531
|
var pathParams = {
|
|
472
532
|
'projectOrProductUID': projectOrProductUID,
|
|
473
533
|
'deviceUID': deviceUID
|
|
474
534
|
};
|
|
475
|
-
var queryParams = {
|
|
476
|
-
'startDate': opts['startDate'],
|
|
477
|
-
'endDate': opts['endDate'],
|
|
478
|
-
'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
|
|
479
|
-
};
|
|
535
|
+
var queryParams = {};
|
|
480
536
|
var headerParams = {};
|
|
481
537
|
var formParams = {};
|
|
482
538
|
var authNames = ['personalAccessToken'];
|
|
483
539
|
var contentTypes = [];
|
|
484
540
|
var accepts = ['application/json'];
|
|
485
|
-
var returnType =
|
|
486
|
-
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);
|
|
487
543
|
}
|
|
488
544
|
|
|
489
545
|
/**
|
|
490
|
-
*
|
|
546
|
+
* Disable Device
|
|
491
547
|
* @param {String} projectOrProductUID
|
|
492
548
|
* @param {String} deviceUID
|
|
493
|
-
* @
|
|
494
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
495
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
496
|
-
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
497
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
549
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
498
550
|
*/
|
|
499
551
|
}, {
|
|
500
|
-
key: "
|
|
501
|
-
value: function
|
|
502
|
-
return this.
|
|
552
|
+
key: "disableDevice",
|
|
553
|
+
value: function disableDevice(projectOrProductUID, deviceUID) {
|
|
554
|
+
return this.disableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
503
555
|
return response_and_data.data;
|
|
504
556
|
});
|
|
505
557
|
}
|
|
506
558
|
|
|
507
559
|
/**
|
|
508
|
-
*
|
|
560
|
+
* Disable Connectivity Assurance
|
|
509
561
|
* @param {String} projectOrProductUID
|
|
510
562
|
* @param {String} deviceUID
|
|
511
|
-
* @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
|
|
512
564
|
*/
|
|
513
565
|
}, {
|
|
514
|
-
key: "
|
|
515
|
-
value: function
|
|
566
|
+
key: "disableDeviceConnectivityAssuranceWithHttpInfo",
|
|
567
|
+
value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
516
568
|
var postBody = null;
|
|
517
569
|
// verify the required parameter 'projectOrProductUID' is set
|
|
518
570
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
519
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
571
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDeviceConnectivityAssurance");
|
|
520
572
|
}
|
|
521
573
|
// verify the required parameter 'deviceUID' is set
|
|
522
574
|
if (deviceUID === undefined || deviceUID === null) {
|
|
523
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
575
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
524
576
|
}
|
|
525
577
|
var pathParams = {
|
|
526
578
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -532,41 +584,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
532
584
|
var authNames = ['personalAccessToken'];
|
|
533
585
|
var contentTypes = [];
|
|
534
586
|
var accepts = ['application/json'];
|
|
535
|
-
var returnType =
|
|
536
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
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);
|
|
537
589
|
}
|
|
538
590
|
|
|
539
591
|
/**
|
|
540
|
-
*
|
|
592
|
+
* Disable Connectivity Assurance
|
|
541
593
|
* @param {String} projectOrProductUID
|
|
542
594
|
* @param {String} deviceUID
|
|
543
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
595
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
544
596
|
*/
|
|
545
597
|
}, {
|
|
546
|
-
key: "
|
|
547
|
-
value: function
|
|
548
|
-
return this.
|
|
598
|
+
key: "disableDeviceConnectivityAssurance",
|
|
599
|
+
value: function disableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
|
|
600
|
+
return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
549
601
|
return response_and_data.data;
|
|
550
602
|
});
|
|
551
603
|
}
|
|
552
604
|
|
|
553
605
|
/**
|
|
554
|
-
*
|
|
606
|
+
* Enable Device
|
|
555
607
|
* @param {String} projectOrProductUID
|
|
556
608
|
* @param {String} deviceUID
|
|
557
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing
|
|
609
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
558
610
|
*/
|
|
559
611
|
}, {
|
|
560
|
-
key: "
|
|
561
|
-
value: function
|
|
612
|
+
key: "enableDeviceWithHttpInfo",
|
|
613
|
+
value: function enableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
562
614
|
var postBody = null;
|
|
563
615
|
// verify the required parameter 'projectOrProductUID' is set
|
|
564
616
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
565
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
617
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDevice");
|
|
566
618
|
}
|
|
567
619
|
// verify the required parameter 'deviceUID' is set
|
|
568
620
|
if (deviceUID === undefined || deviceUID === null) {
|
|
569
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
621
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
570
622
|
}
|
|
571
623
|
var pathParams = {
|
|
572
624
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -578,41 +630,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
630
|
var authNames = ['personalAccessToken'];
|
|
579
631
|
var contentTypes = [];
|
|
580
632
|
var accepts = ['application/json'];
|
|
581
|
-
var returnType =
|
|
582
|
-
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);
|
|
583
635
|
}
|
|
584
636
|
|
|
585
637
|
/**
|
|
586
|
-
*
|
|
638
|
+
* Enable Device
|
|
587
639
|
* @param {String} projectOrProductUID
|
|
588
640
|
* @param {String} deviceUID
|
|
589
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
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,515 +676,450 @@ 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
|
|
701
|
+
* @param {String} notefileID
|
|
702
|
+
* @param {String} noteID
|
|
649
703
|
* @param {Object} opts Optional parameters
|
|
650
|
-
* @param {
|
|
651
|
-
* @param {
|
|
652
|
-
* @
|
|
653
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
654
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
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
|
|
655
707
|
*/
|
|
656
708
|
}, {
|
|
657
|
-
key: "
|
|
658
|
-
value: function
|
|
709
|
+
key: "getDbNoteWithHttpInfo",
|
|
710
|
+
value: function getDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
|
|
659
711
|
opts = opts || {};
|
|
660
712
|
var postBody = null;
|
|
661
713
|
// verify the required parameter 'projectOrProductUID' is set
|
|
662
714
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
663
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
715
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDbNote");
|
|
664
716
|
}
|
|
665
717
|
// verify the required parameter 'deviceUID' is set
|
|
666
718
|
if (deviceUID === undefined || deviceUID === null) {
|
|
667
|
-
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");
|
|
668
728
|
}
|
|
669
729
|
var pathParams = {
|
|
670
730
|
'projectOrProductUID': projectOrProductUID,
|
|
671
|
-
'deviceUID': deviceUID
|
|
731
|
+
'deviceUID': deviceUID,
|
|
732
|
+
'notefileID': notefileID,
|
|
733
|
+
'noteID': noteID
|
|
672
734
|
};
|
|
673
735
|
var queryParams = {
|
|
674
|
-
'
|
|
675
|
-
'
|
|
676
|
-
'startDate': opts['startDate'],
|
|
677
|
-
'endDate': opts['endDate']
|
|
736
|
+
'delete': opts['_delete'],
|
|
737
|
+
'deleted': opts['deleted']
|
|
678
738
|
};
|
|
679
739
|
var headerParams = {};
|
|
680
740
|
var formParams = {};
|
|
681
741
|
var authNames = ['personalAccessToken'];
|
|
682
742
|
var contentTypes = [];
|
|
683
743
|
var accepts = ['application/json'];
|
|
684
|
-
var returnType =
|
|
685
|
-
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);
|
|
686
746
|
}
|
|
687
747
|
|
|
688
748
|
/**
|
|
689
|
-
* Get
|
|
749
|
+
* Get a note from a .db notefile
|
|
690
750
|
* @param {String} projectOrProductUID
|
|
691
751
|
* @param {String} deviceUID
|
|
752
|
+
* @param {String} notefileID
|
|
753
|
+
* @param {String} noteID
|
|
692
754
|
* @param {Object} opts Optional parameters
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @
|
|
696
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
697
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
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}
|
|
698
758
|
*/
|
|
699
759
|
}, {
|
|
700
|
-
key: "
|
|
701
|
-
value: function
|
|
702
|
-
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) {
|
|
703
763
|
return response_and_data.data;
|
|
704
764
|
});
|
|
705
765
|
}
|
|
706
766
|
|
|
707
767
|
/**
|
|
708
|
-
* Get Device
|
|
768
|
+
* Get Device
|
|
709
769
|
* @param {String} projectOrProductUID
|
|
710
|
-
* @param {
|
|
711
|
-
* @
|
|
712
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
713
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
|
|
770
|
+
* @param {String} deviceUID
|
|
771
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
714
772
|
*/
|
|
715
773
|
}, {
|
|
716
|
-
key: "
|
|
717
|
-
value: function
|
|
718
|
-
opts = opts || {};
|
|
774
|
+
key: "getDeviceWithHttpInfo",
|
|
775
|
+
value: function getDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
719
776
|
var postBody = null;
|
|
720
777
|
// verify the required parameter 'projectOrProductUID' is set
|
|
721
778
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
722
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
779
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevice");
|
|
780
|
+
}
|
|
781
|
+
// verify the required parameter 'deviceUID' is set
|
|
782
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
783
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
723
784
|
}
|
|
724
785
|
var pathParams = {
|
|
725
|
-
'projectOrProductUID': projectOrProductUID
|
|
726
|
-
|
|
727
|
-
var queryParams = {
|
|
728
|
-
'pageSize': opts['pageSize'],
|
|
729
|
-
'pageNum': opts['pageNum']
|
|
786
|
+
'projectOrProductUID': projectOrProductUID,
|
|
787
|
+
'deviceUID': deviceUID
|
|
730
788
|
};
|
|
789
|
+
var queryParams = {};
|
|
731
790
|
var headerParams = {};
|
|
732
791
|
var formParams = {};
|
|
733
792
|
var authNames = ['personalAccessToken'];
|
|
734
793
|
var contentTypes = [];
|
|
735
794
|
var accepts = ['application/json'];
|
|
736
|
-
var returnType =
|
|
737
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/
|
|
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);
|
|
738
797
|
}
|
|
739
798
|
|
|
740
799
|
/**
|
|
741
|
-
* Get Device
|
|
800
|
+
* Get Device
|
|
742
801
|
* @param {String} projectOrProductUID
|
|
743
|
-
* @param {
|
|
744
|
-
* @
|
|
745
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
746
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
|
|
802
|
+
* @param {String} deviceUID
|
|
803
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
747
804
|
*/
|
|
748
805
|
}, {
|
|
749
|
-
key: "
|
|
750
|
-
value: function
|
|
751
|
-
return this.
|
|
806
|
+
key: "getDevice",
|
|
807
|
+
value: function getDevice(projectOrProductUID, deviceUID) {
|
|
808
|
+
return this.getDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
752
809
|
return response_and_data.data;
|
|
753
810
|
});
|
|
754
811
|
}
|
|
755
812
|
|
|
756
813
|
/**
|
|
757
|
-
* Get
|
|
814
|
+
* Get environment variable hierarchy for a device
|
|
758
815
|
* @param {String} projectOrProductUID
|
|
759
|
-
* @param {
|
|
760
|
-
* @
|
|
761
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
762
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
763
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
764
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
765
|
-
* @param {Array.<String>} opts.fleetUID
|
|
766
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
767
|
-
* @param {Array.<String>} opts.location Location filter
|
|
768
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
769
|
-
* @param {Array.<String>} opts.productUID
|
|
770
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
771
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
816
|
+
* @param {String} deviceUID
|
|
817
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
772
818
|
*/
|
|
773
819
|
}, {
|
|
774
|
-
key: "
|
|
775
|
-
value: function
|
|
776
|
-
opts = opts || {};
|
|
820
|
+
key: "getDeviceEnvironmentHierarchyWithHttpInfo",
|
|
821
|
+
value: function getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
777
822
|
var postBody = null;
|
|
778
823
|
// verify the required parameter 'projectOrProductUID' is set
|
|
779
824
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
780
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
825
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentHierarchy");
|
|
826
|
+
}
|
|
827
|
+
// verify the required parameter 'deviceUID' is set
|
|
828
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
829
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
781
830
|
}
|
|
782
831
|
var pathParams = {
|
|
783
|
-
'projectOrProductUID': projectOrProductUID
|
|
784
|
-
|
|
785
|
-
var queryParams = {
|
|
786
|
-
'pageSize': opts['pageSize'],
|
|
787
|
-
'pageNum': opts['pageNum'],
|
|
788
|
-
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
789
|
-
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
790
|
-
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
791
|
-
'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
|
|
792
|
-
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
793
|
-
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
794
|
-
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
795
|
-
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
796
|
-
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
832
|
+
'projectOrProductUID': projectOrProductUID,
|
|
833
|
+
'deviceUID': deviceUID
|
|
797
834
|
};
|
|
835
|
+
var queryParams = {};
|
|
798
836
|
var headerParams = {};
|
|
799
837
|
var formParams = {};
|
|
800
838
|
var authNames = ['personalAccessToken'];
|
|
801
839
|
var contentTypes = [];
|
|
802
840
|
var accepts = ['application/json'];
|
|
803
|
-
var returnType =
|
|
804
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
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);
|
|
805
843
|
}
|
|
806
844
|
|
|
807
845
|
/**
|
|
808
|
-
* Get
|
|
846
|
+
* Get environment variable hierarchy for a device
|
|
809
847
|
* @param {String} projectOrProductUID
|
|
810
|
-
* @param {
|
|
811
|
-
* @
|
|
812
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
813
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
814
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
815
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
816
|
-
* @param {Array.<String>} opts.fleetUID
|
|
817
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
818
|
-
* @param {Array.<String>} opts.location Location filter
|
|
819
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
820
|
-
* @param {Array.<String>} opts.productUID
|
|
821
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
822
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
848
|
+
* @param {String} deviceUID
|
|
849
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
823
850
|
*/
|
|
824
851
|
}, {
|
|
825
|
-
key: "
|
|
826
|
-
value: function
|
|
827
|
-
return this.
|
|
852
|
+
key: "getDeviceEnvironmentHierarchy",
|
|
853
|
+
value: function getDeviceEnvironmentHierarchy(projectOrProductUID, deviceUID) {
|
|
854
|
+
return this.getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
828
855
|
return response_and_data.data;
|
|
829
856
|
});
|
|
830
857
|
}
|
|
831
858
|
|
|
832
859
|
/**
|
|
833
|
-
* Get
|
|
860
|
+
* Get environment variables of a device
|
|
834
861
|
* @param {String} projectOrProductUID
|
|
835
|
-
* @param {String}
|
|
836
|
-
* @
|
|
837
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
838
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
839
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
840
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
841
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
842
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
843
|
-
* @param {Array.<String>} opts.location Location filter
|
|
844
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
845
|
-
* @param {Array.<String>} opts.productUID
|
|
846
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
847
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} 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
|
|
848
864
|
*/
|
|
849
865
|
}, {
|
|
850
|
-
key: "
|
|
851
|
-
value: function
|
|
852
|
-
opts = opts || {};
|
|
866
|
+
key: "getDeviceEnvironmentVariablesWithHttpInfo",
|
|
867
|
+
value: function getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
853
868
|
var postBody = null;
|
|
854
869
|
// verify the required parameter 'projectOrProductUID' is set
|
|
855
870
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
856
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
871
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentVariables");
|
|
857
872
|
}
|
|
858
|
-
// verify the required parameter '
|
|
859
|
-
if (
|
|
860
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
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");
|
|
861
876
|
}
|
|
862
877
|
var pathParams = {
|
|
863
878
|
'projectOrProductUID': projectOrProductUID,
|
|
864
|
-
'
|
|
865
|
-
};
|
|
866
|
-
var queryParams = {
|
|
867
|
-
'pageSize': opts['pageSize'],
|
|
868
|
-
'pageNum': opts['pageNum'],
|
|
869
|
-
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
870
|
-
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
871
|
-
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
872
|
-
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
873
|
-
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
874
|
-
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
875
|
-
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
876
|
-
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
879
|
+
'deviceUID': deviceUID
|
|
877
880
|
};
|
|
881
|
+
var queryParams = {};
|
|
878
882
|
var headerParams = {};
|
|
879
883
|
var formParams = {};
|
|
880
884
|
var authNames = ['personalAccessToken'];
|
|
881
885
|
var contentTypes = [];
|
|
882
886
|
var accepts = ['application/json'];
|
|
883
|
-
var returnType =
|
|
884
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
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);
|
|
885
889
|
}
|
|
886
890
|
|
|
887
891
|
/**
|
|
888
|
-
* Get
|
|
892
|
+
* Get environment variables of a device
|
|
889
893
|
* @param {String} projectOrProductUID
|
|
890
|
-
* @param {String}
|
|
891
|
-
* @
|
|
892
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
893
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
894
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
895
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
896
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
897
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
898
|
-
* @param {Array.<String>} opts.location Location filter
|
|
899
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
900
|
-
* @param {Array.<String>} opts.productUID
|
|
901
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
902
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
894
|
+
* @param {String} deviceUID
|
|
895
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
903
896
|
*/
|
|
904
897
|
}, {
|
|
905
|
-
key: "
|
|
906
|
-
value: function
|
|
907
|
-
return this.
|
|
898
|
+
key: "getDeviceEnvironmentVariables",
|
|
899
|
+
value: function getDeviceEnvironmentVariables(projectOrProductUID, deviceUID) {
|
|
900
|
+
return this.getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
908
901
|
return response_and_data.data;
|
|
909
902
|
});
|
|
910
903
|
}
|
|
911
904
|
|
|
912
905
|
/**
|
|
913
|
-
*
|
|
914
|
-
* @param {String}
|
|
906
|
+
* Get environment variables of a device with device pin authorization
|
|
907
|
+
* @param {String} productUID
|
|
915
908
|
* @param {String} deviceUID
|
|
916
|
-
* @
|
|
917
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
918
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
909
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
919
910
|
*/
|
|
920
911
|
}, {
|
|
921
|
-
key: "
|
|
922
|
-
value: function
|
|
923
|
-
var postBody =
|
|
924
|
-
// verify the required parameter '
|
|
925
|
-
if (
|
|
926
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
912
|
+
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
913
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
914
|
+
var postBody = null;
|
|
915
|
+
// verify the required parameter 'productUID' is set
|
|
916
|
+
if (productUID === undefined || productUID === null) {
|
|
917
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
927
918
|
}
|
|
928
919
|
// verify the required parameter 'deviceUID' is set
|
|
929
920
|
if (deviceUID === undefined || deviceUID === null) {
|
|
930
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
931
|
-
}
|
|
932
|
-
// verify the required parameter 'notefileID' is set
|
|
933
|
-
if (notefileID === undefined || notefileID === null) {
|
|
934
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteAdd");
|
|
935
|
-
}
|
|
936
|
-
// verify the required parameter 'note' is set
|
|
937
|
-
if (note === undefined || note === null) {
|
|
938
|
-
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
921
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
939
922
|
}
|
|
940
923
|
var pathParams = {
|
|
941
|
-
'
|
|
942
|
-
'deviceUID': deviceUID
|
|
943
|
-
'notefileID': notefileID
|
|
924
|
+
'productUID': productUID,
|
|
925
|
+
'deviceUID': deviceUID
|
|
944
926
|
};
|
|
945
927
|
var queryParams = {};
|
|
946
928
|
var headerParams = {};
|
|
947
929
|
var formParams = {};
|
|
948
|
-
var authNames = ['
|
|
949
|
-
var contentTypes = [
|
|
930
|
+
var authNames = ['pin'];
|
|
931
|
+
var contentTypes = [];
|
|
950
932
|
var accepts = ['application/json'];
|
|
951
|
-
var returnType =
|
|
952
|
-
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);
|
|
953
935
|
}
|
|
954
936
|
|
|
955
937
|
/**
|
|
956
|
-
*
|
|
957
|
-
* @param {String}
|
|
938
|
+
* Get environment variables of a device with device pin authorization
|
|
939
|
+
* @param {String} productUID
|
|
958
940
|
* @param {String} deviceUID
|
|
959
|
-
* @
|
|
960
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
961
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
941
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
962
942
|
*/
|
|
963
943
|
}, {
|
|
964
|
-
key: "
|
|
965
|
-
value: function
|
|
966
|
-
return this.
|
|
944
|
+
key: "getDeviceEnvironmentVariablesByPin",
|
|
945
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
946
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
967
947
|
return response_and_data.data;
|
|
968
948
|
});
|
|
969
949
|
}
|
|
970
950
|
|
|
971
951
|
/**
|
|
972
|
-
*
|
|
952
|
+
* Get Device Health Log
|
|
973
953
|
* @param {String} projectOrProductUID
|
|
974
954
|
* @param {String} deviceUID
|
|
975
|
-
* @param {String} notefileID
|
|
976
955
|
* @param {Object} opts Optional parameters
|
|
977
|
-
* @param {Number} opts.
|
|
978
|
-
* @param {
|
|
979
|
-
* @param {
|
|
980
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
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
|
|
981
960
|
*/
|
|
982
961
|
}, {
|
|
983
|
-
key: "
|
|
984
|
-
value: function
|
|
962
|
+
key: "getDeviceHealthLogWithHttpInfo",
|
|
963
|
+
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
985
964
|
opts = opts || {};
|
|
986
965
|
var postBody = null;
|
|
987
966
|
// verify the required parameter 'projectOrProductUID' is set
|
|
988
967
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
989
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
968
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceHealthLog");
|
|
990
969
|
}
|
|
991
970
|
// verify the required parameter 'deviceUID' is set
|
|
992
971
|
if (deviceUID === undefined || deviceUID === null) {
|
|
993
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
994
|
-
}
|
|
995
|
-
// verify the required parameter 'notefileID' is set
|
|
996
|
-
if (notefileID === undefined || notefileID === null) {
|
|
997
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
972
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
998
973
|
}
|
|
999
974
|
var pathParams = {
|
|
1000
975
|
'projectOrProductUID': projectOrProductUID,
|
|
1001
|
-
'deviceUID': deviceUID
|
|
1002
|
-
'notefileID': notefileID
|
|
976
|
+
'deviceUID': deviceUID
|
|
1003
977
|
};
|
|
1004
978
|
var queryParams = {
|
|
1005
|
-
'
|
|
1006
|
-
'
|
|
1007
|
-
'
|
|
979
|
+
'startDate': opts['startDate'],
|
|
980
|
+
'endDate': opts['endDate'],
|
|
981
|
+
'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
|
|
1008
982
|
};
|
|
1009
983
|
var headerParams = {};
|
|
1010
984
|
var formParams = {};
|
|
1011
985
|
var authNames = ['personalAccessToken'];
|
|
1012
986
|
var contentTypes = [];
|
|
1013
987
|
var accepts = ['application/json'];
|
|
1014
|
-
var returnType =
|
|
1015
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
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);
|
|
1016
990
|
}
|
|
1017
991
|
|
|
1018
992
|
/**
|
|
1019
|
-
*
|
|
993
|
+
* Get Device Health Log
|
|
1020
994
|
* @param {String} projectOrProductUID
|
|
1021
995
|
* @param {String} deviceUID
|
|
1022
|
-
* @param {String} notefileID
|
|
1023
996
|
* @param {Object} opts Optional parameters
|
|
1024
|
-
* @param {Number} opts.
|
|
1025
|
-
* @param {
|
|
1026
|
-
* @param {
|
|
1027
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
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}
|
|
1028
1001
|
*/
|
|
1029
1002
|
}, {
|
|
1030
|
-
key: "
|
|
1031
|
-
value: function
|
|
1032
|
-
return this.
|
|
1003
|
+
key: "getDeviceHealthLog",
|
|
1004
|
+
value: function getDeviceHealthLog(projectOrProductUID, deviceUID, opts) {
|
|
1005
|
+
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
1033
1006
|
return response_and_data.data;
|
|
1034
1007
|
});
|
|
1035
1008
|
}
|
|
1036
1009
|
|
|
1037
1010
|
/**
|
|
1038
|
-
*
|
|
1011
|
+
* Get Device Latest Events
|
|
1039
1012
|
* @param {String} projectOrProductUID
|
|
1040
1013
|
* @param {String} deviceUID
|
|
1041
|
-
* @
|
|
1042
|
-
* @param {String} noteID
|
|
1043
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1044
|
-
* @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
|
|
1045
1015
|
*/
|
|
1046
1016
|
}, {
|
|
1047
|
-
key: "
|
|
1048
|
-
value: function
|
|
1049
|
-
var postBody =
|
|
1017
|
+
key: "getDeviceLatestEventsWithHttpInfo",
|
|
1018
|
+
value: function getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1019
|
+
var postBody = null;
|
|
1050
1020
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1051
1021
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1052
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1022
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatestEvents");
|
|
1053
1023
|
}
|
|
1054
1024
|
// verify the required parameter 'deviceUID' is set
|
|
1055
1025
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1056
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1057
|
-
}
|
|
1058
|
-
// verify the required parameter 'notefileID' is set
|
|
1059
|
-
if (notefileID === undefined || notefileID === null) {
|
|
1060
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteCreateAdd");
|
|
1061
|
-
}
|
|
1062
|
-
// verify the required parameter 'noteID' is set
|
|
1063
|
-
if (noteID === undefined || noteID === null) {
|
|
1064
|
-
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteCreateAdd");
|
|
1065
|
-
}
|
|
1066
|
-
// verify the required parameter 'note' is set
|
|
1067
|
-
if (note === undefined || note === null) {
|
|
1068
|
-
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
1026
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
|
|
1069
1027
|
}
|
|
1070
1028
|
var pathParams = {
|
|
1071
1029
|
'projectOrProductUID': projectOrProductUID,
|
|
1072
|
-
'deviceUID': deviceUID
|
|
1073
|
-
'notefileID': notefileID,
|
|
1074
|
-
'noteID': noteID
|
|
1030
|
+
'deviceUID': deviceUID
|
|
1075
1031
|
};
|
|
1076
1032
|
var queryParams = {};
|
|
1077
1033
|
var headerParams = {};
|
|
1078
1034
|
var formParams = {};
|
|
1079
1035
|
var authNames = ['personalAccessToken'];
|
|
1080
|
-
var contentTypes = [
|
|
1036
|
+
var contentTypes = [];
|
|
1081
1037
|
var accepts = ['application/json'];
|
|
1082
|
-
var returnType =
|
|
1083
|
-
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);
|
|
1084
1040
|
}
|
|
1085
1041
|
|
|
1086
1042
|
/**
|
|
1087
|
-
*
|
|
1043
|
+
* Get Device Latest Events
|
|
1088
1044
|
* @param {String} projectOrProductUID
|
|
1089
1045
|
* @param {String} deviceUID
|
|
1090
|
-
* @
|
|
1091
|
-
* @param {String} noteID
|
|
1092
|
-
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1093
|
-
* @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}
|
|
1094
1047
|
*/
|
|
1095
1048
|
}, {
|
|
1096
|
-
key: "
|
|
1097
|
-
value: function
|
|
1098
|
-
return this.
|
|
1049
|
+
key: "getDeviceLatestEvents",
|
|
1050
|
+
value: function getDeviceLatestEvents(projectOrProductUID, deviceUID) {
|
|
1051
|
+
return this.getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1099
1052
|
return response_and_data.data;
|
|
1100
1053
|
});
|
|
1101
1054
|
}
|
|
1102
1055
|
|
|
1103
1056
|
/**
|
|
1104
|
-
*
|
|
1057
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
1105
1058
|
* @param {String} projectOrProductUID
|
|
1106
1059
|
* @param {String} deviceUID
|
|
1107
|
-
* @
|
|
1108
|
-
* @param {String} noteID
|
|
1109
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing 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
|
|
1110
1061
|
*/
|
|
1111
1062
|
}, {
|
|
1112
|
-
key: "
|
|
1113
|
-
value: function
|
|
1063
|
+
key: "getDevicePlansWithHttpInfo",
|
|
1064
|
+
value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1114
1065
|
var postBody = null;
|
|
1115
1066
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1116
1067
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1117
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1068
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
|
|
1118
1069
|
}
|
|
1119
1070
|
// verify the required parameter 'deviceUID' is set
|
|
1120
1071
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1121
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1072
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
1122
1073
|
}
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1074
|
+
var pathParams = {
|
|
1075
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1076
|
+
'deviceUID': deviceUID
|
|
1077
|
+
};
|
|
1078
|
+
var queryParams = {};
|
|
1079
|
+
var headerParams = {};
|
|
1080
|
+
var formParams = {};
|
|
1081
|
+
var authNames = ['personalAccessToken'];
|
|
1082
|
+
var contentTypes = [];
|
|
1083
|
+
var accepts = ['application/json'];
|
|
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);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
1090
|
+
* @param {String} projectOrProductUID
|
|
1091
|
+
* @param {String} deviceUID
|
|
1092
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
1093
|
+
*/
|
|
1094
|
+
}, {
|
|
1095
|
+
key: "getDevicePlans",
|
|
1096
|
+
value: function getDevicePlans(projectOrProductUID, deviceUID) {
|
|
1097
|
+
return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1098
|
+
return response_and_data.data;
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Get Device Public Key
|
|
1104
|
+
* @param {String} projectOrProductUID
|
|
1105
|
+
* @param {String} deviceUID
|
|
1106
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
1107
|
+
*/
|
|
1108
|
+
}, {
|
|
1109
|
+
key: "getDevicePublicKeyWithHttpInfo",
|
|
1110
|
+
value: function getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1111
|
+
var postBody = null;
|
|
1112
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1113
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1114
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKey");
|
|
1126
1115
|
}
|
|
1127
|
-
// verify the required parameter '
|
|
1128
|
-
if (
|
|
1129
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1116
|
+
// verify the required parameter 'deviceUID' is set
|
|
1117
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1118
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
1130
1119
|
}
|
|
1131
1120
|
var pathParams = {
|
|
1132
1121
|
'projectOrProductUID': projectOrProductUID,
|
|
1133
|
-
'deviceUID': deviceUID
|
|
1134
|
-
'notefileID': notefileID,
|
|
1135
|
-
'noteID': noteID
|
|
1122
|
+
'deviceUID': deviceUID
|
|
1136
1123
|
};
|
|
1137
1124
|
var queryParams = {};
|
|
1138
1125
|
var headerParams = {};
|
|
@@ -1140,335 +1127,439 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1140
1127
|
var authNames = ['personalAccessToken'];
|
|
1141
1128
|
var contentTypes = [];
|
|
1142
1129
|
var accepts = ['application/json'];
|
|
1143
|
-
var returnType =
|
|
1144
|
-
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);
|
|
1145
1132
|
}
|
|
1146
1133
|
|
|
1147
1134
|
/**
|
|
1148
|
-
*
|
|
1135
|
+
* Get Device Public Key
|
|
1149
1136
|
* @param {String} projectOrProductUID
|
|
1150
1137
|
* @param {String} deviceUID
|
|
1151
|
-
* @
|
|
1152
|
-
* @param {String} noteID
|
|
1153
|
-
* @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}
|
|
1154
1139
|
*/
|
|
1155
1140
|
}, {
|
|
1156
|
-
key: "
|
|
1157
|
-
value: function
|
|
1158
|
-
return this.
|
|
1141
|
+
key: "getDevicePublicKey",
|
|
1142
|
+
value: function getDevicePublicKey(projectOrProductUID, deviceUID) {
|
|
1143
|
+
return this.getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1159
1144
|
return response_and_data.data;
|
|
1160
1145
|
});
|
|
1161
1146
|
}
|
|
1162
1147
|
|
|
1163
1148
|
/**
|
|
1164
|
-
* Get
|
|
1149
|
+
* Get Device Public Keys of a Project
|
|
1150
|
+
* @param {String} projectOrProductUID
|
|
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
|
|
1155
|
+
*/
|
|
1156
|
+
}, {
|
|
1157
|
+
key: "getDevicePublicKeysWithHttpInfo",
|
|
1158
|
+
value: function getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
|
|
1159
|
+
opts = opts || {};
|
|
1160
|
+
var postBody = null;
|
|
1161
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1162
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1163
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
|
|
1164
|
+
}
|
|
1165
|
+
var pathParams = {
|
|
1166
|
+
'projectOrProductUID': projectOrProductUID
|
|
1167
|
+
};
|
|
1168
|
+
var queryParams = {
|
|
1169
|
+
'pageSize': opts['pageSize'],
|
|
1170
|
+
'pageNum': opts['pageNum']
|
|
1171
|
+
};
|
|
1172
|
+
var headerParams = {};
|
|
1173
|
+
var formParams = {};
|
|
1174
|
+
var authNames = ['personalAccessToken'];
|
|
1175
|
+
var contentTypes = [];
|
|
1176
|
+
var accepts = ['application/json'];
|
|
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);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Get Device Public Keys of a Project
|
|
1183
|
+
* @param {String} projectOrProductUID
|
|
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}
|
|
1188
|
+
*/
|
|
1189
|
+
}, {
|
|
1190
|
+
key: "getDevicePublicKeys",
|
|
1191
|
+
value: function getDevicePublicKeys(projectOrProductUID, opts) {
|
|
1192
|
+
return this.getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1193
|
+
return response_and_data.data;
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Get Device Sessions
|
|
1165
1199
|
* @param {String} projectOrProductUID
|
|
1166
1200
|
* @param {String} deviceUID
|
|
1167
|
-
* @param {String} notefileID
|
|
1168
|
-
* @param {String} noteID
|
|
1169
1201
|
* @param {Object} opts Optional parameters
|
|
1170
|
-
* @param {
|
|
1171
|
-
* @param {
|
|
1172
|
-
* @
|
|
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
|
|
1173
1207
|
*/
|
|
1174
1208
|
}, {
|
|
1175
|
-
key: "
|
|
1176
|
-
value: function
|
|
1209
|
+
key: "getDeviceSessionsWithHttpInfo",
|
|
1210
|
+
value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
1177
1211
|
opts = opts || {};
|
|
1178
1212
|
var postBody = null;
|
|
1179
1213
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1180
1214
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1181
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1215
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
|
|
1182
1216
|
}
|
|
1183
1217
|
// verify the required parameter 'deviceUID' is set
|
|
1184
1218
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1185
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1186
|
-
}
|
|
1187
|
-
// verify the required parameter 'notefileID' is set
|
|
1188
|
-
if (notefileID === undefined || notefileID === null) {
|
|
1189
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteGet");
|
|
1190
|
-
}
|
|
1191
|
-
// verify the required parameter 'noteID' is set
|
|
1192
|
-
if (noteID === undefined || noteID === null) {
|
|
1193
|
-
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");
|
|
1194
1220
|
}
|
|
1195
1221
|
var pathParams = {
|
|
1196
1222
|
'projectOrProductUID': projectOrProductUID,
|
|
1197
|
-
'deviceUID': deviceUID
|
|
1198
|
-
'notefileID': notefileID,
|
|
1199
|
-
'noteID': noteID
|
|
1223
|
+
'deviceUID': deviceUID
|
|
1200
1224
|
};
|
|
1201
1225
|
var queryParams = {
|
|
1202
|
-
'
|
|
1203
|
-
'
|
|
1226
|
+
'pageSize': opts['pageSize'],
|
|
1227
|
+
'pageNum': opts['pageNum'],
|
|
1228
|
+
'startDate': opts['startDate'],
|
|
1229
|
+
'endDate': opts['endDate']
|
|
1204
1230
|
};
|
|
1205
1231
|
var headerParams = {};
|
|
1206
1232
|
var formParams = {};
|
|
1207
1233
|
var authNames = ['personalAccessToken'];
|
|
1208
1234
|
var contentTypes = [];
|
|
1209
1235
|
var accepts = ['application/json'];
|
|
1210
|
-
var returnType =
|
|
1211
|
-
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);
|
|
1212
1238
|
}
|
|
1213
1239
|
|
|
1214
1240
|
/**
|
|
1215
|
-
* Get
|
|
1241
|
+
* Get Device Sessions
|
|
1216
1242
|
* @param {String} projectOrProductUID
|
|
1217
1243
|
* @param {String} deviceUID
|
|
1218
|
-
* @param {String} notefileID
|
|
1219
|
-
* @param {String} noteID
|
|
1220
1244
|
* @param {Object} opts Optional parameters
|
|
1221
|
-
* @param {
|
|
1222
|
-
* @param {
|
|
1223
|
-
* @
|
|
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}
|
|
1224
1250
|
*/
|
|
1225
1251
|
}, {
|
|
1226
|
-
key: "
|
|
1227
|
-
value: function
|
|
1228
|
-
return this.
|
|
1252
|
+
key: "getDeviceSessions",
|
|
1253
|
+
value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
|
|
1254
|
+
return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
1229
1255
|
return response_and_data.data;
|
|
1230
1256
|
});
|
|
1231
1257
|
}
|
|
1232
1258
|
|
|
1233
1259
|
/**
|
|
1234
|
-
*
|
|
1260
|
+
* Get Devices of a Project
|
|
1235
1261
|
* @param {String} projectOrProductUID
|
|
1236
|
-
* @param {
|
|
1237
|
-
* @param {
|
|
1238
|
-
* @
|
|
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
|
|
1239
1275
|
*/
|
|
1240
1276
|
}, {
|
|
1241
|
-
key: "
|
|
1242
|
-
value: function
|
|
1243
|
-
|
|
1277
|
+
key: "getDevicesWithHttpInfo",
|
|
1278
|
+
value: function getDevicesWithHttpInfo(projectOrProductUID, opts) {
|
|
1279
|
+
opts = opts || {};
|
|
1280
|
+
var postBody = null;
|
|
1244
1281
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1245
1282
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1246
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1247
|
-
}
|
|
1248
|
-
// verify the required parameter 'deviceUID' is set
|
|
1249
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
1250
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteSignal");
|
|
1251
|
-
}
|
|
1252
|
-
// verify the required parameter 'body' is set
|
|
1253
|
-
if (body === undefined || body === null) {
|
|
1254
|
-
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");
|
|
1255
1284
|
}
|
|
1256
1285
|
var pathParams = {
|
|
1257
|
-
'projectOrProductUID': projectOrProductUID
|
|
1258
|
-
|
|
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')
|
|
1259
1300
|
};
|
|
1260
|
-
var queryParams = {};
|
|
1261
1301
|
var headerParams = {};
|
|
1262
1302
|
var formParams = {};
|
|
1263
1303
|
var authNames = ['personalAccessToken'];
|
|
1264
|
-
var contentTypes = [
|
|
1304
|
+
var contentTypes = [];
|
|
1265
1305
|
var accepts = ['application/json'];
|
|
1266
|
-
var returnType =
|
|
1267
|
-
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);
|
|
1268
1308
|
}
|
|
1269
1309
|
|
|
1270
1310
|
/**
|
|
1271
|
-
*
|
|
1311
|
+
* Get Devices of a Project
|
|
1272
1312
|
* @param {String} projectOrProductUID
|
|
1273
|
-
* @param {
|
|
1274
|
-
* @param {
|
|
1275
|
-
* @
|
|
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}
|
|
1276
1326
|
*/
|
|
1277
1327
|
}, {
|
|
1278
|
-
key: "
|
|
1279
|
-
value: function
|
|
1280
|
-
return this.
|
|
1328
|
+
key: "getDevices",
|
|
1329
|
+
value: function getDevices(projectOrProductUID, opts) {
|
|
1330
|
+
return this.getDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1281
1331
|
return response_and_data.data;
|
|
1282
1332
|
});
|
|
1283
1333
|
}
|
|
1284
1334
|
|
|
1285
1335
|
/**
|
|
1286
|
-
*
|
|
1336
|
+
* Get Devices of a Fleet within a Project
|
|
1287
1337
|
* @param {String} projectOrProductUID
|
|
1288
|
-
* @param {String}
|
|
1289
|
-
* @param {
|
|
1290
|
-
* @param {
|
|
1291
|
-
* @param {
|
|
1292
|
-
* @
|
|
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
|
|
1293
1351
|
*/
|
|
1294
1352
|
}, {
|
|
1295
|
-
key: "
|
|
1296
|
-
value: function
|
|
1297
|
-
|
|
1353
|
+
key: "getFleetDevicesWithHttpInfo",
|
|
1354
|
+
value: function getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
1355
|
+
opts = opts || {};
|
|
1356
|
+
var postBody = null;
|
|
1298
1357
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1299
1358
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1300
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1301
|
-
}
|
|
1302
|
-
// verify the required parameter 'deviceUID' is set
|
|
1303
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
1304
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteUpdate");
|
|
1305
|
-
}
|
|
1306
|
-
// verify the required parameter 'notefileID' is set
|
|
1307
|
-
if (notefileID === undefined || notefileID === null) {
|
|
1308
|
-
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteUpdate");
|
|
1309
|
-
}
|
|
1310
|
-
// verify the required parameter 'noteID' is set
|
|
1311
|
-
if (noteID === undefined || noteID === null) {
|
|
1312
|
-
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");
|
|
1313
1360
|
}
|
|
1314
|
-
// verify the required parameter '
|
|
1315
|
-
if (
|
|
1316
|
-
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");
|
|
1317
1364
|
}
|
|
1318
1365
|
var pathParams = {
|
|
1319
1366
|
'projectOrProductUID': projectOrProductUID,
|
|
1320
|
-
'
|
|
1321
|
-
|
|
1322
|
-
|
|
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')
|
|
1323
1380
|
};
|
|
1324
|
-
var queryParams = {};
|
|
1325
1381
|
var headerParams = {};
|
|
1326
1382
|
var formParams = {};
|
|
1327
1383
|
var authNames = ['personalAccessToken'];
|
|
1328
|
-
var contentTypes = [
|
|
1384
|
+
var contentTypes = [];
|
|
1329
1385
|
var accepts = ['application/json'];
|
|
1330
|
-
var returnType =
|
|
1331
|
-
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);
|
|
1332
1388
|
}
|
|
1333
1389
|
|
|
1334
1390
|
/**
|
|
1335
|
-
*
|
|
1391
|
+
* Get Devices of a Fleet within a Project
|
|
1336
1392
|
* @param {String} projectOrProductUID
|
|
1337
|
-
* @param {String}
|
|
1338
|
-
* @param {
|
|
1339
|
-
* @param {
|
|
1340
|
-
* @param {
|
|
1341
|
-
* @
|
|
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}
|
|
1342
1406
|
*/
|
|
1343
1407
|
}, {
|
|
1344
|
-
key: "
|
|
1345
|
-
value: function
|
|
1346
|
-
return this.
|
|
1408
|
+
key: "getFleetDevices",
|
|
1409
|
+
value: function getFleetDevices(projectOrProductUID, fleetUID, opts) {
|
|
1410
|
+
return this.getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
1347
1411
|
return response_and_data.data;
|
|
1348
1412
|
});
|
|
1349
1413
|
}
|
|
1350
1414
|
|
|
1351
1415
|
/**
|
|
1352
|
-
*
|
|
1416
|
+
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1353
1417
|
* @param {String} projectOrProductUID
|
|
1354
1418
|
* @param {String} deviceUID
|
|
1419
|
+
* @param {String} notefileID
|
|
1355
1420
|
* @param {Object} opts Optional parameters
|
|
1356
|
-
* @param {
|
|
1357
|
-
* @
|
|
1421
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1422
|
+
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1423
|
+
* @param {Boolean} opts.start true to reset the tracker to the beginning.
|
|
1424
|
+
* @param {Boolean} opts.stop true to delete the tracker.
|
|
1425
|
+
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1426
|
+
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1427
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
1358
1428
|
*/
|
|
1359
1429
|
}, {
|
|
1360
|
-
key: "
|
|
1361
|
-
value: function
|
|
1430
|
+
key: "getNotefileWithHttpInfo",
|
|
1431
|
+
value: function getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
|
|
1362
1432
|
opts = opts || {};
|
|
1363
1433
|
var postBody = null;
|
|
1364
1434
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1365
1435
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1366
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1436
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefile");
|
|
1367
1437
|
}
|
|
1368
1438
|
// verify the required parameter 'deviceUID' is set
|
|
1369
1439
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1370
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1440
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getNotefile");
|
|
1441
|
+
}
|
|
1442
|
+
// verify the required parameter 'notefileID' is set
|
|
1443
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1444
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
|
|
1371
1445
|
}
|
|
1372
1446
|
var pathParams = {
|
|
1373
1447
|
'projectOrProductUID': projectOrProductUID,
|
|
1374
|
-
'deviceUID': deviceUID
|
|
1448
|
+
'deviceUID': deviceUID,
|
|
1449
|
+
'notefileID': notefileID
|
|
1375
1450
|
};
|
|
1376
1451
|
var queryParams = {
|
|
1377
|
-
'
|
|
1452
|
+
'tracker': opts['tracker'],
|
|
1453
|
+
'max': opts['max'],
|
|
1454
|
+
'start': opts['start'],
|
|
1455
|
+
'stop': opts['stop'],
|
|
1456
|
+
'deleted': opts['deleted'],
|
|
1457
|
+
'delete': opts['_delete']
|
|
1378
1458
|
};
|
|
1379
1459
|
var headerParams = {};
|
|
1380
1460
|
var formParams = {};
|
|
1381
1461
|
var authNames = ['personalAccessToken'];
|
|
1382
1462
|
var contentTypes = [];
|
|
1383
1463
|
var accepts = ['application/json'];
|
|
1384
|
-
var returnType =
|
|
1385
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1464
|
+
var returnType = _GetNotefile200Response["default"];
|
|
1465
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1386
1466
|
}
|
|
1387
1467
|
|
|
1388
1468
|
/**
|
|
1389
|
-
*
|
|
1469
|
+
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1390
1470
|
* @param {String} projectOrProductUID
|
|
1391
1471
|
* @param {String} deviceUID
|
|
1472
|
+
* @param {String} notefileID
|
|
1392
1473
|
* @param {Object} opts Optional parameters
|
|
1393
|
-
* @param {
|
|
1394
|
-
* @
|
|
1474
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1475
|
+
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1476
|
+
* @param {Boolean} opts.start true to reset the tracker to the beginning.
|
|
1477
|
+
* @param {Boolean} opts.stop true to delete the tracker.
|
|
1478
|
+
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
1479
|
+
* @param {Boolean} opts._delete true to delete the notes returned by the request.
|
|
1480
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
1395
1481
|
*/
|
|
1396
1482
|
}, {
|
|
1397
|
-
key: "
|
|
1398
|
-
value: function
|
|
1399
|
-
return this.
|
|
1483
|
+
key: "getNotefile",
|
|
1484
|
+
value: function getNotefile(projectOrProductUID, deviceUID, notefileID, opts) {
|
|
1485
|
+
return this.getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
|
|
1400
1486
|
return response_and_data.data;
|
|
1401
1487
|
});
|
|
1402
1488
|
}
|
|
1403
1489
|
|
|
1404
1490
|
/**
|
|
1405
|
-
*
|
|
1491
|
+
* Lists .qi and .db files for the device
|
|
1406
1492
|
* @param {String} projectOrProductUID
|
|
1407
1493
|
* @param {String} deviceUID
|
|
1408
|
-
* @
|
|
1494
|
+
* @param {Object} opts Optional parameters
|
|
1495
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1496
|
+
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1497
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
|
|
1409
1498
|
*/
|
|
1410
1499
|
}, {
|
|
1411
|
-
key: "
|
|
1412
|
-
value: function
|
|
1500
|
+
key: "listNotefilesWithHttpInfo",
|
|
1501
|
+
value: function listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
1502
|
+
opts = opts || {};
|
|
1413
1503
|
var postBody = null;
|
|
1414
1504
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1415
1505
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1416
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1506
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listNotefiles");
|
|
1417
1507
|
}
|
|
1418
1508
|
// verify the required parameter 'deviceUID' is set
|
|
1419
1509
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1420
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1510
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
|
|
1421
1511
|
}
|
|
1422
1512
|
var pathParams = {
|
|
1423
1513
|
'projectOrProductUID': projectOrProductUID,
|
|
1424
1514
|
'deviceUID': deviceUID
|
|
1425
1515
|
};
|
|
1426
|
-
var queryParams = {
|
|
1516
|
+
var queryParams = {
|
|
1517
|
+
'tracker': opts['tracker'],
|
|
1518
|
+
'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
|
|
1519
|
+
};
|
|
1427
1520
|
var headerParams = {};
|
|
1428
1521
|
var formParams = {};
|
|
1429
1522
|
var authNames = ['personalAccessToken'];
|
|
1430
1523
|
var contentTypes = [];
|
|
1431
1524
|
var accepts = ['application/json'];
|
|
1432
|
-
var returnType =
|
|
1433
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes
|
|
1525
|
+
var returnType = _ListNotefiles200Response["default"];
|
|
1526
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1434
1527
|
}
|
|
1435
1528
|
|
|
1436
1529
|
/**
|
|
1437
|
-
*
|
|
1530
|
+
* Lists .qi and .db files for the device
|
|
1438
1531
|
* @param {String} projectOrProductUID
|
|
1439
1532
|
* @param {String} deviceUID
|
|
1440
|
-
* @
|
|
1533
|
+
* @param {Object} opts Optional parameters
|
|
1534
|
+
* @param {String} opts.tracker The change tracker ID.
|
|
1535
|
+
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1536
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
|
|
1441
1537
|
*/
|
|
1442
1538
|
}, {
|
|
1443
|
-
key: "
|
|
1444
|
-
value: function
|
|
1445
|
-
return this.
|
|
1539
|
+
key: "listNotefiles",
|
|
1540
|
+
value: function listNotefiles(projectOrProductUID, deviceUID, opts) {
|
|
1541
|
+
return this.listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
1446
1542
|
return response_and_data.data;
|
|
1447
1543
|
});
|
|
1448
1544
|
}
|
|
1449
1545
|
|
|
1450
1546
|
/**
|
|
1451
|
-
*
|
|
1547
|
+
* Lists .qi and .db files that are pending sync to the Notecard
|
|
1452
1548
|
* @param {String} projectOrProductUID
|
|
1453
1549
|
* @param {String} deviceUID
|
|
1454
|
-
* @
|
|
1455
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1550
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
|
|
1456
1551
|
*/
|
|
1457
1552
|
}, {
|
|
1458
|
-
key: "
|
|
1459
|
-
value: function
|
|
1460
|
-
var postBody =
|
|
1553
|
+
key: "listPendingNotefilesWithHttpInfo",
|
|
1554
|
+
value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
1555
|
+
var postBody = null;
|
|
1461
1556
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1462
1557
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1463
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1558
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
|
|
1464
1559
|
}
|
|
1465
1560
|
// verify the required parameter 'deviceUID' is set
|
|
1466
1561
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1467
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1468
|
-
}
|
|
1469
|
-
// verify the required parameter 'handleNotefileDeleteRequest' is set
|
|
1470
|
-
if (handleNotefileDeleteRequest === undefined || handleNotefileDeleteRequest === null) {
|
|
1471
|
-
throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
|
|
1562
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
|
|
1472
1563
|
}
|
|
1473
1564
|
var pathParams = {
|
|
1474
1565
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1478,23 +1569,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1478
1569
|
var headerParams = {};
|
|
1479
1570
|
var formParams = {};
|
|
1480
1571
|
var authNames = ['personalAccessToken'];
|
|
1481
|
-
var contentTypes = [
|
|
1572
|
+
var contentTypes = [];
|
|
1482
1573
|
var accepts = ['application/json'];
|
|
1483
|
-
var returnType =
|
|
1484
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', '
|
|
1574
|
+
var returnType = _ListPendingNotefiles200Response["default"];
|
|
1575
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1485
1576
|
}
|
|
1486
1577
|
|
|
1487
1578
|
/**
|
|
1488
|
-
*
|
|
1579
|
+
* Lists .qi and .db files that are pending sync to the Notecard
|
|
1489
1580
|
* @param {String} projectOrProductUID
|
|
1490
1581
|
* @param {String} deviceUID
|
|
1491
|
-
* @
|
|
1492
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1582
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
|
|
1493
1583
|
*/
|
|
1494
1584
|
}, {
|
|
1495
|
-
key: "
|
|
1496
|
-
value: function
|
|
1497
|
-
return this.
|
|
1585
|
+
key: "listPendingNotefiles",
|
|
1586
|
+
value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
|
|
1587
|
+
return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
1498
1588
|
return response_and_data.data;
|
|
1499
1589
|
});
|
|
1500
1590
|
}
|
|
@@ -1503,24 +1593,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1503
1593
|
* Provision Device for a Project
|
|
1504
1594
|
* @param {String} projectOrProductUID
|
|
1505
1595
|
* @param {String} deviceUID
|
|
1506
|
-
* @param {module:model/
|
|
1596
|
+
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1507
1597
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1508
1598
|
*/
|
|
1509
1599
|
}, {
|
|
1510
|
-
key: "
|
|
1511
|
-
value: function
|
|
1512
|
-
var postBody =
|
|
1600
|
+
key: "provisionDeviceWithHttpInfo",
|
|
1601
|
+
value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
|
|
1602
|
+
var postBody = provisionDeviceRequest;
|
|
1513
1603
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1514
1604
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1515
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1605
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
|
|
1516
1606
|
}
|
|
1517
1607
|
// verify the required parameter 'deviceUID' is set
|
|
1518
1608
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1519
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1609
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
|
|
1520
1610
|
}
|
|
1521
|
-
// verify the required parameter '
|
|
1522
|
-
if (
|
|
1523
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1611
|
+
// verify the required parameter 'provisionDeviceRequest' is set
|
|
1612
|
+
if (provisionDeviceRequest === undefined || provisionDeviceRequest === null) {
|
|
1613
|
+
throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
|
|
1524
1614
|
}
|
|
1525
1615
|
var pathParams = {
|
|
1526
1616
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1540,39 +1630,39 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1540
1630
|
* Provision Device for a Project
|
|
1541
1631
|
* @param {String} projectOrProductUID
|
|
1542
1632
|
* @param {String} deviceUID
|
|
1543
|
-
* @param {module:model/
|
|
1633
|
+
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1544
1634
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1545
1635
|
*/
|
|
1546
1636
|
}, {
|
|
1547
|
-
key: "
|
|
1548
|
-
value: function
|
|
1549
|
-
return this.
|
|
1637
|
+
key: "provisionDevice",
|
|
1638
|
+
value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
|
|
1639
|
+
return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
|
|
1550
1640
|
return response_and_data.data;
|
|
1551
1641
|
});
|
|
1552
1642
|
}
|
|
1553
1643
|
|
|
1554
1644
|
/**
|
|
1555
|
-
*
|
|
1645
|
+
* Send a signal from Notehub to a Notecard.
|
|
1556
1646
|
* @param {String} projectOrProductUID
|
|
1557
1647
|
* @param {String} deviceUID
|
|
1558
|
-
* @param {module:model/
|
|
1559
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
1648
|
+
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1649
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1560
1650
|
*/
|
|
1561
1651
|
}, {
|
|
1562
|
-
key: "
|
|
1563
|
-
value: function
|
|
1564
|
-
var postBody =
|
|
1652
|
+
key: "signalDeviceWithHttpInfo",
|
|
1653
|
+
value: function signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body) {
|
|
1654
|
+
var postBody = body;
|
|
1565
1655
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1566
1656
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1567
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1657
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling signalDevice");
|
|
1568
1658
|
}
|
|
1569
1659
|
// verify the required parameter 'deviceUID' is set
|
|
1570
1660
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1571
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1661
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling signalDevice");
|
|
1572
1662
|
}
|
|
1573
|
-
// verify the required parameter '
|
|
1574
|
-
if (
|
|
1575
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1663
|
+
// verify the required parameter 'body' is set
|
|
1664
|
+
if (body === undefined || body === null) {
|
|
1665
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
|
|
1576
1666
|
}
|
|
1577
1667
|
var pathParams = {
|
|
1578
1668
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -1584,73 +1674,87 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1584
1674
|
var authNames = ['personalAccessToken'];
|
|
1585
1675
|
var contentTypes = ['application/json'];
|
|
1586
1676
|
var accepts = ['application/json'];
|
|
1587
|
-
var returnType =
|
|
1588
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/
|
|
1677
|
+
var returnType = _SignalDevice200Response["default"];
|
|
1678
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1589
1679
|
}
|
|
1590
1680
|
|
|
1591
1681
|
/**
|
|
1592
|
-
*
|
|
1682
|
+
* Send a signal from Notehub to a Notecard.
|
|
1593
1683
|
* @param {String} projectOrProductUID
|
|
1594
1684
|
* @param {String} deviceUID
|
|
1595
|
-
* @param {module:model/
|
|
1596
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
1685
|
+
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1686
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1597
1687
|
*/
|
|
1598
1688
|
}, {
|
|
1599
|
-
key: "
|
|
1600
|
-
value: function
|
|
1601
|
-
return this.
|
|
1689
|
+
key: "signalDevice",
|
|
1690
|
+
value: function signalDevice(projectOrProductUID, deviceUID, body) {
|
|
1691
|
+
return this.signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
|
|
1602
1692
|
return response_and_data.data;
|
|
1603
1693
|
});
|
|
1604
1694
|
}
|
|
1605
1695
|
|
|
1606
1696
|
/**
|
|
1607
|
-
*
|
|
1608
|
-
* @param {String}
|
|
1697
|
+
* Update a note in a .db notefile
|
|
1698
|
+
* @param {String} projectOrProductUID
|
|
1609
1699
|
* @param {String} deviceUID
|
|
1610
|
-
* @param {
|
|
1611
|
-
* @
|
|
1700
|
+
* @param {String} notefileID
|
|
1701
|
+
* @param {String} noteID
|
|
1702
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1703
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1612
1704
|
*/
|
|
1613
1705
|
}, {
|
|
1614
|
-
key: "
|
|
1615
|
-
value: function
|
|
1616
|
-
var postBody =
|
|
1617
|
-
// verify the required parameter '
|
|
1618
|
-
if (
|
|
1619
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1706
|
+
key: "updateDbNoteWithHttpInfo",
|
|
1707
|
+
value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1708
|
+
var postBody = note;
|
|
1709
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1710
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1711
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
|
|
1620
1712
|
}
|
|
1621
1713
|
// verify the required parameter 'deviceUID' is set
|
|
1622
1714
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1623
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
1715
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling updateDbNote");
|
|
1624
1716
|
}
|
|
1625
|
-
// verify the required parameter '
|
|
1626
|
-
if (
|
|
1627
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1717
|
+
// verify the required parameter 'notefileID' is set
|
|
1718
|
+
if (notefileID === undefined || notefileID === null) {
|
|
1719
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling updateDbNote");
|
|
1720
|
+
}
|
|
1721
|
+
// verify the required parameter 'noteID' is set
|
|
1722
|
+
if (noteID === undefined || noteID === null) {
|
|
1723
|
+
throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
|
|
1724
|
+
}
|
|
1725
|
+
// verify the required parameter 'note' is set
|
|
1726
|
+
if (note === undefined || note === null) {
|
|
1727
|
+
throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
|
|
1628
1728
|
}
|
|
1629
1729
|
var pathParams = {
|
|
1630
|
-
'
|
|
1631
|
-
'deviceUID': deviceUID
|
|
1730
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1731
|
+
'deviceUID': deviceUID,
|
|
1732
|
+
'notefileID': notefileID,
|
|
1733
|
+
'noteID': noteID
|
|
1632
1734
|
};
|
|
1633
1735
|
var queryParams = {};
|
|
1634
1736
|
var headerParams = {};
|
|
1635
1737
|
var formParams = {};
|
|
1636
|
-
var authNames = ['
|
|
1738
|
+
var authNames = ['personalAccessToken'];
|
|
1637
1739
|
var contentTypes = ['application/json'];
|
|
1638
1740
|
var accepts = ['application/json'];
|
|
1639
|
-
var returnType =
|
|
1640
|
-
return this.apiClient.callApi('/v1/
|
|
1741
|
+
var returnType = null;
|
|
1742
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1641
1743
|
}
|
|
1642
1744
|
|
|
1643
1745
|
/**
|
|
1644
|
-
*
|
|
1645
|
-
* @param {String}
|
|
1746
|
+
* Update a note in a .db notefile
|
|
1747
|
+
* @param {String} projectOrProductUID
|
|
1646
1748
|
* @param {String} deviceUID
|
|
1647
|
-
* @param {
|
|
1648
|
-
* @
|
|
1749
|
+
* @param {String} notefileID
|
|
1750
|
+
* @param {String} noteID
|
|
1751
|
+
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
1752
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1649
1753
|
*/
|
|
1650
1754
|
}, {
|
|
1651
|
-
key: "
|
|
1652
|
-
value: function
|
|
1653
|
-
return this.
|
|
1755
|
+
key: "updateDbNote",
|
|
1756
|
+
value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
|
|
1757
|
+
return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
|
|
1654
1758
|
return response_and_data.data;
|
|
1655
1759
|
});
|
|
1656
1760
|
}
|