@blues-inc/notehub-js 1.0.33-beta.2 → 1.0.33-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -76
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +11 -11
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +271 -271
- package/dist/api/EventApi.js +51 -51
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +51 -51
- package/dist/api/ProjectApi.js +309 -309
- package/dist/api/RepositoryApi.js +1 -1
- package/dist/api/RouteApi.js +61 -61
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.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/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.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/DeviceDfuStatusCurrent.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/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.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/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSchema.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.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/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +1 -1
- package/dist/model/QuestionDataResponseMap.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UserDbRoute.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/EventApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 1.0.33-beta.
|
|
33
|
+
* @version 1.0.33-beta.4
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -47,7 +47,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
|
-
* @param {String}
|
|
50
|
+
* @param {String} projectOrProductUID
|
|
51
51
|
* @param {String} fleetUID
|
|
52
52
|
* @param {Object} opts Optional parameters
|
|
53
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
@@ -69,19 +69,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
69
69
|
*/
|
|
70
70
|
return _createClass(EventApi, [{
|
|
71
71
|
key: "getFleetEventsWithHttpInfo",
|
|
72
|
-
value: function getFleetEventsWithHttpInfo(
|
|
72
|
+
value: function getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
73
73
|
opts = opts || {};
|
|
74
74
|
var postBody = null;
|
|
75
|
-
// verify the required parameter '
|
|
76
|
-
if (
|
|
77
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
75
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
76
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
77
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEvents");
|
|
78
78
|
}
|
|
79
79
|
// verify the required parameter 'fleetUID' is set
|
|
80
80
|
if (fleetUID === undefined || fleetUID === null) {
|
|
81
81
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
82
82
|
}
|
|
83
83
|
var pathParams = {
|
|
84
|
-
'
|
|
84
|
+
'projectOrProductUID': projectOrProductUID,
|
|
85
85
|
'fleetUID': fleetUID
|
|
86
86
|
};
|
|
87
87
|
var queryParams = {
|
|
@@ -107,12 +107,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
107
107
|
var contentTypes = [];
|
|
108
108
|
var accepts = ['application/json', 'text/csv'];
|
|
109
109
|
var returnType = _GetProjectEvents200Response["default"];
|
|
110
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
110
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Get Events of a Fleet
|
|
115
|
-
* @param {String}
|
|
115
|
+
* @param {String} projectOrProductUID
|
|
116
116
|
* @param {String} fleetUID
|
|
117
117
|
* @param {Object} opts Optional parameters
|
|
118
118
|
* @param {Number} opts.pageSize (default to 50)
|
|
@@ -134,15 +134,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
134
|
*/
|
|
135
135
|
}, {
|
|
136
136
|
key: "getFleetEvents",
|
|
137
|
-
value: function getFleetEvents(
|
|
138
|
-
return this.getFleetEventsWithHttpInfo(
|
|
137
|
+
value: function getFleetEvents(projectOrProductUID, fleetUID, opts) {
|
|
138
|
+
return this.getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
139
139
|
return response_and_data.data;
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Get Events of a Fleet by cursor
|
|
145
|
-
* @param {String}
|
|
145
|
+
* @param {String} projectOrProductUID
|
|
146
146
|
* @param {String} fleetUID
|
|
147
147
|
* @param {Object} opts Optional parameters
|
|
148
148
|
* @param {Number} opts.limit (default to 50)
|
|
@@ -157,19 +157,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
157
|
*/
|
|
158
158
|
}, {
|
|
159
159
|
key: "getFleetEventsByCursorWithHttpInfo",
|
|
160
|
-
value: function getFleetEventsByCursorWithHttpInfo(
|
|
160
|
+
value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
161
161
|
opts = opts || {};
|
|
162
162
|
var postBody = null;
|
|
163
|
-
// verify the required parameter '
|
|
164
|
-
if (
|
|
165
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
163
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
164
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
165
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
|
|
166
166
|
}
|
|
167
167
|
// verify the required parameter 'fleetUID' is set
|
|
168
168
|
if (fleetUID === undefined || fleetUID === null) {
|
|
169
169
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
170
170
|
}
|
|
171
171
|
var pathParams = {
|
|
172
|
-
'
|
|
172
|
+
'projectOrProductUID': projectOrProductUID,
|
|
173
173
|
'fleetUID': fleetUID
|
|
174
174
|
};
|
|
175
175
|
var queryParams = {
|
|
@@ -188,12 +188,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
188
|
var contentTypes = [];
|
|
189
189
|
var accepts = ['application/json'];
|
|
190
190
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
191
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
191
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Get Events of a Fleet by cursor
|
|
196
|
-
* @param {String}
|
|
196
|
+
* @param {String} projectOrProductUID
|
|
197
197
|
* @param {String} fleetUID
|
|
198
198
|
* @param {Object} opts Optional parameters
|
|
199
199
|
* @param {Number} opts.limit (default to 50)
|
|
@@ -208,15 +208,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
208
208
|
*/
|
|
209
209
|
}, {
|
|
210
210
|
key: "getFleetEventsByCursor",
|
|
211
|
-
value: function getFleetEventsByCursor(
|
|
212
|
-
return this.getFleetEventsByCursorWithHttpInfo(
|
|
211
|
+
value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
|
|
212
|
+
return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
213
213
|
return response_and_data.data;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Get Events of a Project
|
|
219
|
-
* @param {String}
|
|
219
|
+
* @param {String} projectOrProductUID
|
|
220
220
|
* @param {Object} opts Optional parameters
|
|
221
221
|
* @param {Number} opts.pageSize (default to 50)
|
|
222
222
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -238,15 +238,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
238
238
|
*/
|
|
239
239
|
}, {
|
|
240
240
|
key: "getProjectEventsWithHttpInfo",
|
|
241
|
-
value: function getProjectEventsWithHttpInfo(
|
|
241
|
+
value: function getProjectEventsWithHttpInfo(projectOrProductUID, opts) {
|
|
242
242
|
opts = opts || {};
|
|
243
243
|
var postBody = null;
|
|
244
|
-
// verify the required parameter '
|
|
245
|
-
if (
|
|
246
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
244
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
245
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
246
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEvents");
|
|
247
247
|
}
|
|
248
248
|
var pathParams = {
|
|
249
|
-
'
|
|
249
|
+
'projectOrProductUID': projectOrProductUID
|
|
250
250
|
};
|
|
251
251
|
var queryParams = {
|
|
252
252
|
'pageSize': opts['pageSize'],
|
|
@@ -272,12 +272,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
272
|
var contentTypes = [];
|
|
273
273
|
var accepts = ['application/json', 'text/csv'];
|
|
274
274
|
var returnType = _GetProjectEvents200Response["default"];
|
|
275
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
275
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
* Get Events of a Project
|
|
280
|
-
* @param {String}
|
|
280
|
+
* @param {String} projectOrProductUID
|
|
281
281
|
* @param {Object} opts Optional parameters
|
|
282
282
|
* @param {Number} opts.pageSize (default to 50)
|
|
283
283
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -299,15 +299,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
299
299
|
*/
|
|
300
300
|
}, {
|
|
301
301
|
key: "getProjectEvents",
|
|
302
|
-
value: function getProjectEvents(
|
|
303
|
-
return this.getProjectEventsWithHttpInfo(
|
|
302
|
+
value: function getProjectEvents(projectOrProductUID, opts) {
|
|
303
|
+
return this.getProjectEventsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
304
304
|
return response_and_data.data;
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* Get Events of a Project by cursor
|
|
310
|
-
* @param {String}
|
|
310
|
+
* @param {String} projectOrProductUID
|
|
311
311
|
* @param {Object} opts Optional parameters
|
|
312
312
|
* @param {Number} opts.limit (default to 50)
|
|
313
313
|
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
@@ -320,15 +320,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
320
|
*/
|
|
321
321
|
}, {
|
|
322
322
|
key: "getProjectEventsByCursorWithHttpInfo",
|
|
323
|
-
value: function getProjectEventsByCursorWithHttpInfo(
|
|
323
|
+
value: function getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
|
|
324
324
|
opts = opts || {};
|
|
325
325
|
var postBody = null;
|
|
326
|
-
// verify the required parameter '
|
|
327
|
-
if (
|
|
328
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
326
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
327
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
328
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsByCursor");
|
|
329
329
|
}
|
|
330
330
|
var pathParams = {
|
|
331
|
-
'
|
|
331
|
+
'projectOrProductUID': projectOrProductUID
|
|
332
332
|
};
|
|
333
333
|
var queryParams = {
|
|
334
334
|
'limit': opts['limit'],
|
|
@@ -345,12 +345,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
345
345
|
var contentTypes = [];
|
|
346
346
|
var accepts = ['application/json'];
|
|
347
347
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
348
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
348
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
352
|
* Get Events of a Project by cursor
|
|
353
|
-
* @param {String}
|
|
353
|
+
* @param {String} projectOrProductUID
|
|
354
354
|
* @param {Object} opts Optional parameters
|
|
355
355
|
* @param {Number} opts.limit (default to 50)
|
|
356
356
|
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
@@ -363,32 +363,32 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
363
363
|
*/
|
|
364
364
|
}, {
|
|
365
365
|
key: "getProjectEventsByCursor",
|
|
366
|
-
value: function getProjectEventsByCursor(
|
|
367
|
-
return this.getProjectEventsByCursorWithHttpInfo(
|
|
366
|
+
value: function getProjectEventsByCursor(projectOrProductUID, opts) {
|
|
367
|
+
return this.getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
368
368
|
return response_and_data.data;
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
373
|
* Get Route Logs by Event UID
|
|
374
|
-
* @param {String}
|
|
374
|
+
* @param {String} projectOrProductUID
|
|
375
375
|
* @param {String} eventUID
|
|
376
376
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>} and HTTP response
|
|
377
377
|
*/
|
|
378
378
|
}, {
|
|
379
379
|
key: "getRouteLogsByEventWithHttpInfo",
|
|
380
|
-
value: function getRouteLogsByEventWithHttpInfo(
|
|
380
|
+
value: function getRouteLogsByEventWithHttpInfo(projectOrProductUID, eventUID) {
|
|
381
381
|
var postBody = null;
|
|
382
|
-
// verify the required parameter '
|
|
383
|
-
if (
|
|
384
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
382
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
383
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
384
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRouteLogsByEvent");
|
|
385
385
|
}
|
|
386
386
|
// verify the required parameter 'eventUID' is set
|
|
387
387
|
if (eventUID === undefined || eventUID === null) {
|
|
388
388
|
throw new _Error["default"]("Missing the required parameter 'eventUID' when calling getRouteLogsByEvent");
|
|
389
389
|
}
|
|
390
390
|
var pathParams = {
|
|
391
|
-
'
|
|
391
|
+
'projectOrProductUID': projectOrProductUID,
|
|
392
392
|
'eventUID': eventUID
|
|
393
393
|
};
|
|
394
394
|
var queryParams = {};
|
|
@@ -398,19 +398,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
398
|
var contentTypes = [];
|
|
399
399
|
var accepts = ['application/json'];
|
|
400
400
|
var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
|
|
401
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
401
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events/{eventUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Get Route Logs by Event UID
|
|
406
|
-
* @param {String}
|
|
406
|
+
* @param {String} projectOrProductUID
|
|
407
407
|
* @param {String} eventUID
|
|
408
408
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
|
|
409
409
|
*/
|
|
410
410
|
}, {
|
|
411
411
|
key: "getRouteLogsByEvent",
|
|
412
|
-
value: function getRouteLogsByEvent(
|
|
413
|
-
return this.getRouteLogsByEventWithHttpInfo(
|
|
412
|
+
value: function getRouteLogsByEvent(projectOrProductUID, eventUID) {
|
|
413
|
+
return this.getRouteLogsByEventWithHttpInfo(projectOrProductUID, eventUID).then(function (response_and_data) {
|
|
414
414
|
return response_and_data.data;
|
|
415
415
|
});
|
|
416
416
|
}
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -46,24 +46,24 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Create a new Monitor
|
|
49
|
-
* @param {String}
|
|
49
|
+
* @param {String} projectOrProductUID
|
|
50
50
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
51
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(MonitorApi, [{
|
|
54
54
|
key: "createMonitorWithHttpInfo",
|
|
55
|
-
value: function createMonitorWithHttpInfo(
|
|
55
|
+
value: function createMonitorWithHttpInfo(projectOrProductUID, createMonitor) {
|
|
56
56
|
var postBody = createMonitor;
|
|
57
|
-
// verify the required parameter '
|
|
58
|
-
if (
|
|
59
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
57
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
58
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
59
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createMonitor");
|
|
60
60
|
}
|
|
61
61
|
// verify the required parameter 'createMonitor' is set
|
|
62
62
|
if (createMonitor === undefined || createMonitor === null) {
|
|
63
63
|
throw new _Error["default"]("Missing the required parameter 'createMonitor' when calling createMonitor");
|
|
64
64
|
}
|
|
65
65
|
var pathParams = {
|
|
66
|
-
'
|
|
66
|
+
'projectOrProductUID': projectOrProductUID
|
|
67
67
|
};
|
|
68
68
|
var queryParams = {};
|
|
69
69
|
var headerParams = {};
|
|
@@ -72,43 +72,43 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
72
|
var contentTypes = ['application/json'];
|
|
73
73
|
var accepts = ['application/json'];
|
|
74
74
|
var returnType = _Monitor["default"];
|
|
75
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
75
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Create a new Monitor
|
|
80
|
-
* @param {String}
|
|
80
|
+
* @param {String} projectOrProductUID
|
|
81
81
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
82
82
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
83
83
|
*/
|
|
84
84
|
}, {
|
|
85
85
|
key: "createMonitor",
|
|
86
|
-
value: function createMonitor(
|
|
87
|
-
return this.createMonitorWithHttpInfo(
|
|
86
|
+
value: function createMonitor(projectOrProductUID, _createMonitor) {
|
|
87
|
+
return this.createMonitorWithHttpInfo(projectOrProductUID, _createMonitor).then(function (response_and_data) {
|
|
88
88
|
return response_and_data.data;
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Delete Monitor
|
|
94
|
-
* @param {String}
|
|
94
|
+
* @param {String} projectOrProductUID
|
|
95
95
|
* @param {String} monitorUID
|
|
96
96
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
97
97
|
*/
|
|
98
98
|
}, {
|
|
99
99
|
key: "deleteMonitorWithHttpInfo",
|
|
100
|
-
value: function deleteMonitorWithHttpInfo(
|
|
100
|
+
value: function deleteMonitorWithHttpInfo(projectOrProductUID, monitorUID) {
|
|
101
101
|
var postBody = null;
|
|
102
|
-
// verify the required parameter '
|
|
103
|
-
if (
|
|
104
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
102
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
103
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
104
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteMonitor");
|
|
105
105
|
}
|
|
106
106
|
// verify the required parameter 'monitorUID' is set
|
|
107
107
|
if (monitorUID === undefined || monitorUID === null) {
|
|
108
108
|
throw new _Error["default"]("Missing the required parameter 'monitorUID' when calling deleteMonitor");
|
|
109
109
|
}
|
|
110
110
|
var pathParams = {
|
|
111
|
-
'
|
|
111
|
+
'projectOrProductUID': projectOrProductUID,
|
|
112
112
|
'monitorUID': monitorUID
|
|
113
113
|
};
|
|
114
114
|
var queryParams = {};
|
|
@@ -118,43 +118,43 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
118
|
var contentTypes = [];
|
|
119
119
|
var accepts = ['application/json'];
|
|
120
120
|
var returnType = _Monitor["default"];
|
|
121
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
121
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Delete Monitor
|
|
126
|
-
* @param {String}
|
|
126
|
+
* @param {String} projectOrProductUID
|
|
127
127
|
* @param {String} monitorUID
|
|
128
128
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
129
129
|
*/
|
|
130
130
|
}, {
|
|
131
131
|
key: "deleteMonitor",
|
|
132
|
-
value: function deleteMonitor(
|
|
133
|
-
return this.deleteMonitorWithHttpInfo(
|
|
132
|
+
value: function deleteMonitor(projectOrProductUID, monitorUID) {
|
|
133
|
+
return this.deleteMonitorWithHttpInfo(projectOrProductUID, monitorUID).then(function (response_and_data) {
|
|
134
134
|
return response_and_data.data;
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* Get Monitor
|
|
140
|
-
* @param {String}
|
|
140
|
+
* @param {String} projectOrProductUID
|
|
141
141
|
* @param {String} monitorUID
|
|
142
142
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
143
143
|
*/
|
|
144
144
|
}, {
|
|
145
145
|
key: "getMonitorWithHttpInfo",
|
|
146
|
-
value: function getMonitorWithHttpInfo(
|
|
146
|
+
value: function getMonitorWithHttpInfo(projectOrProductUID, monitorUID) {
|
|
147
147
|
var postBody = null;
|
|
148
|
-
// verify the required parameter '
|
|
149
|
-
if (
|
|
150
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
148
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
149
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
150
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getMonitor");
|
|
151
151
|
}
|
|
152
152
|
// verify the required parameter 'monitorUID' is set
|
|
153
153
|
if (monitorUID === undefined || monitorUID === null) {
|
|
154
154
|
throw new _Error["default"]("Missing the required parameter 'monitorUID' when calling getMonitor");
|
|
155
155
|
}
|
|
156
156
|
var pathParams = {
|
|
157
|
-
'
|
|
157
|
+
'projectOrProductUID': projectOrProductUID,
|
|
158
158
|
'monitorUID': monitorUID
|
|
159
159
|
};
|
|
160
160
|
var queryParams = {};
|
|
@@ -164,38 +164,38 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
164
164
|
var contentTypes = [];
|
|
165
165
|
var accepts = ['application/json'];
|
|
166
166
|
var returnType = _Monitor["default"];
|
|
167
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
167
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Get Monitor
|
|
172
|
-
* @param {String}
|
|
172
|
+
* @param {String} projectOrProductUID
|
|
173
173
|
* @param {String} monitorUID
|
|
174
174
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
175
175
|
*/
|
|
176
176
|
}, {
|
|
177
177
|
key: "getMonitor",
|
|
178
|
-
value: function getMonitor(
|
|
179
|
-
return this.getMonitorWithHttpInfo(
|
|
178
|
+
value: function getMonitor(projectOrProductUID, monitorUID) {
|
|
179
|
+
return this.getMonitorWithHttpInfo(projectOrProductUID, monitorUID).then(function (response_and_data) {
|
|
180
180
|
return response_and_data.data;
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* Get list of defined Monitors
|
|
186
|
-
* @param {String}
|
|
186
|
+
* @param {String} projectOrProductUID
|
|
187
187
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Monitor>} and HTTP response
|
|
188
188
|
*/
|
|
189
189
|
}, {
|
|
190
190
|
key: "getMonitorsWithHttpInfo",
|
|
191
|
-
value: function getMonitorsWithHttpInfo(
|
|
191
|
+
value: function getMonitorsWithHttpInfo(projectOrProductUID) {
|
|
192
192
|
var postBody = null;
|
|
193
|
-
// verify the required parameter '
|
|
194
|
-
if (
|
|
195
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
193
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
194
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
195
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getMonitors");
|
|
196
196
|
}
|
|
197
197
|
var pathParams = {
|
|
198
|
-
'
|
|
198
|
+
'projectOrProductUID': projectOrProductUID
|
|
199
199
|
};
|
|
200
200
|
var queryParams = {};
|
|
201
201
|
var headerParams = {};
|
|
@@ -204,36 +204,36 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
204
204
|
var contentTypes = [];
|
|
205
205
|
var accepts = ['application/json'];
|
|
206
206
|
var returnType = [_Monitor["default"]];
|
|
207
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
207
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Get list of defined Monitors
|
|
212
|
-
* @param {String}
|
|
212
|
+
* @param {String} projectOrProductUID
|
|
213
213
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Monitor>}
|
|
214
214
|
*/
|
|
215
215
|
}, {
|
|
216
216
|
key: "getMonitors",
|
|
217
|
-
value: function getMonitors(
|
|
218
|
-
return this.getMonitorsWithHttpInfo(
|
|
217
|
+
value: function getMonitors(projectOrProductUID) {
|
|
218
|
+
return this.getMonitorsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
219
219
|
return response_and_data.data;
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* Update Monitor
|
|
225
|
-
* @param {String}
|
|
225
|
+
* @param {String} projectOrProductUID
|
|
226
226
|
* @param {String} monitorUID
|
|
227
227
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
228
228
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
229
229
|
*/
|
|
230
230
|
}, {
|
|
231
231
|
key: "updateMonitorWithHttpInfo",
|
|
232
|
-
value: function updateMonitorWithHttpInfo(
|
|
232
|
+
value: function updateMonitorWithHttpInfo(projectOrProductUID, monitorUID, monitor) {
|
|
233
233
|
var postBody = monitor;
|
|
234
|
-
// verify the required parameter '
|
|
235
|
-
if (
|
|
236
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
234
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
235
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
236
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateMonitor");
|
|
237
237
|
}
|
|
238
238
|
// verify the required parameter 'monitorUID' is set
|
|
239
239
|
if (monitorUID === undefined || monitorUID === null) {
|
|
@@ -244,7 +244,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
244
244
|
throw new _Error["default"]("Missing the required parameter 'monitor' when calling updateMonitor");
|
|
245
245
|
}
|
|
246
246
|
var pathParams = {
|
|
247
|
-
'
|
|
247
|
+
'projectOrProductUID': projectOrProductUID,
|
|
248
248
|
'monitorUID': monitorUID
|
|
249
249
|
};
|
|
250
250
|
var queryParams = {};
|
|
@@ -254,20 +254,20 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
254
254
|
var contentTypes = ['application/json'];
|
|
255
255
|
var accepts = ['application/json'];
|
|
256
256
|
var returnType = _Monitor["default"];
|
|
257
|
-
return this.apiClient.callApi('/v1/projects/{
|
|
257
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* Update Monitor
|
|
262
|
-
* @param {String}
|
|
262
|
+
* @param {String} projectOrProductUID
|
|
263
263
|
* @param {String} monitorUID
|
|
264
264
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
265
265
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
266
266
|
*/
|
|
267
267
|
}, {
|
|
268
268
|
key: "updateMonitor",
|
|
269
|
-
value: function updateMonitor(
|
|
270
|
-
return this.updateMonitorWithHttpInfo(
|
|
269
|
+
value: function updateMonitor(projectOrProductUID, monitorUID, monitor) {
|
|
270
|
+
return this.updateMonitorWithHttpInfo(projectOrProductUID, monitorUID, monitor).then(function (response_and_data) {
|
|
271
271
|
return response_and_data.data;
|
|
272
272
|
});
|
|
273
273
|
}
|