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