@blues-inc/notehub-js 1.0.29-beta.2 → 1.0.29-beta.20
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 +14 -2
- 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 +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +203 -0
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +45 -50
- package/dist/api/RepositoryApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +282 -0
- package/dist/index.js +42 -0
- 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 +115 -4
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +7 -5
- 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 +112 -0
- 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 +146 -0
- 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 +230 -0
- 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 +23 -11
- 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 +114 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 1.0.29-beta.
|
|
9
|
+
- Package version: 1.0.29-beta.20
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -166,12 +166,14 @@ Class | Method | HTTP request | Description
|
|
|
166
166
|
*NotehubJs.EventApi* | [**getProjectEvents**](docs/EventApi.md#getProjectEvents) | **GET** /v1/projects/{projectUID}/events |
|
|
167
167
|
*NotehubJs.EventApi* | [**getProjectEventsByCursor**](docs/EventApi.md#getProjectEventsByCursor) | **GET** /v1/projects/{projectUID}/events-cursor |
|
|
168
168
|
*NotehubJs.EventApi* | [**getRouteLogsByEvent**](docs/EventApi.md#getRouteLogsByEvent) | **GET** /v1/projects/{projectUID}/events/{eventUID}/route-logs |
|
|
169
|
+
*NotehubJs.ExternalDevicesApi* | [**createEventExtDevice**](docs/ExternalDevicesApi.md#createEventExtDevice) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/event |
|
|
170
|
+
*NotehubJs.ExternalDevicesApi* | [**extDeviceSessionClose**](docs/ExternalDevicesApi.md#extDeviceSessionClose) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/session/close |
|
|
171
|
+
*NotehubJs.ExternalDevicesApi* | [**extDeviceSessionOpen**](docs/ExternalDevicesApi.md#extDeviceSessionOpen) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/session/open |
|
|
169
172
|
*NotehubJs.MonitorApi* | [**createMonitor**](docs/MonitorApi.md#createMonitor) | **POST** /v1/projects/{projectUID}/monitors |
|
|
170
173
|
*NotehubJs.MonitorApi* | [**deleteMonitor**](docs/MonitorApi.md#deleteMonitor) | **DELETE** /v1/projects/{projectUID}/monitors/{monitorUID} |
|
|
171
174
|
*NotehubJs.MonitorApi* | [**getMonitor**](docs/MonitorApi.md#getMonitor) | **GET** /v1/projects/{projectUID}/monitors/{monitorUID} |
|
|
172
175
|
*NotehubJs.MonitorApi* | [**getMonitors**](docs/MonitorApi.md#getMonitors) | **GET** /v1/projects/{projectUID}/monitors |
|
|
173
176
|
*NotehubJs.MonitorApi* | [**updateMonitor**](docs/MonitorApi.md#updateMonitor) | **PUT** /v1/projects/{projectUID}/monitors/{monitorUID} |
|
|
174
|
-
*NotehubJs.ProjectApi* | [**bulkProvision**](docs/ProjectApi.md#bulkProvision) | **POST** /v1/projects/{projectUID}/bulk-provision | Bulk provision devices via CSV upload
|
|
175
177
|
*NotehubJs.ProjectApi* | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectUID}/clone |
|
|
176
178
|
*NotehubJs.ProjectApi* | [**createFleet**](docs/ProjectApi.md#createFleet) | **POST** /v1/projects/{projectUID}/fleets |
|
|
177
179
|
*NotehubJs.ProjectApi* | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
|
|
@@ -192,6 +194,7 @@ Class | Method | HTTP request | Description
|
|
|
192
194
|
*NotehubJs.ProjectApi* | [**getFirmwareInfo**](docs/ProjectApi.md#getFirmwareInfo) | **GET** /v1/projects/{projectUID}/firmware |
|
|
193
195
|
*NotehubJs.ProjectApi* | [**getFleet**](docs/ProjectApi.md#getFleet) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID} |
|
|
194
196
|
*NotehubJs.ProjectApi* | [**getFleetEnvironmentVariables**](docs/ProjectApi.md#getFleetEnvironmentVariables) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
|
|
197
|
+
*NotehubJs.ProjectApi* | [**getNotefileSchemas**](docs/ProjectApi.md#getNotefileSchemas) | **GET** /v1/projects/{projectUID}/schemas | Get variable format for a notefile
|
|
195
198
|
*NotehubJs.ProjectApi* | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /v1/projects/{projectUID} |
|
|
196
199
|
*NotehubJs.ProjectApi* | [**getProjectByProduct**](docs/ProjectApi.md#getProjectByProduct) | **GET** /v1/products/{productUID}/project |
|
|
197
200
|
*NotehubJs.ProjectApi* | [**getProjectEnvironmentVariables**](docs/ProjectApi.md#getProjectEnvironmentVariables) | **GET** /v1/projects/{projectUID}/environment_variables |
|
|
@@ -220,6 +223,11 @@ Class | Method | HTTP request | Description
|
|
|
220
223
|
*NotehubJs.RouteApi* | [**getRouteLogsByRoute**](docs/RouteApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID}/route-logs |
|
|
221
224
|
*NotehubJs.RouteApi* | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectUID}/routes |
|
|
222
225
|
*NotehubJs.RouteApi* | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectUID}/routes/{routeUID} |
|
|
226
|
+
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/products/{productUID}/webhooks/{webhookUID} |
|
|
227
|
+
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/products/{productUID}/webhooks/{webhookUID} |
|
|
228
|
+
*NotehubJs.WebhookApi* | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/products/{productUID}/webhooks/{webhookUID} |
|
|
229
|
+
*NotehubJs.WebhookApi* | [**getWebhooks**](docs/WebhookApi.md#getWebhooks) | **GET** /v1/products/{productUID}/webhooks |
|
|
230
|
+
*NotehubJs.WebhookApi* | [**updateWebhook**](docs/WebhookApi.md#updateWebhook) | **PUT** /v1/products/{productUID}/webhooks/{webhookUID} |
|
|
223
231
|
|
|
224
232
|
|
|
225
233
|
## Documentation for Models
|
|
@@ -283,6 +291,7 @@ Class | Method | HTTP request | Description
|
|
|
283
291
|
- [NotehubJs.GetProjectProducts200Response](docs/GetProjectProducts200Response.md)
|
|
284
292
|
- [NotehubJs.GetProjects200Response](docs/GetProjects200Response.md)
|
|
285
293
|
- [NotehubJs.GetRouteLogsByRoute200ResponseInner](docs/GetRouteLogsByRoute200ResponseInner.md)
|
|
294
|
+
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
286
295
|
- [NotehubJs.Google](docs/Google.md)
|
|
287
296
|
- [NotehubJs.HandleNoteChanges200Response](docs/HandleNoteChanges200Response.md)
|
|
288
297
|
- [NotehubJs.HandleNoteGet200Response](docs/HandleNoteGet200Response.md)
|
|
@@ -300,6 +309,7 @@ Class | Method | HTTP request | Description
|
|
|
300
309
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
301
310
|
- [NotehubJs.Mqtt](docs/Mqtt.md)
|
|
302
311
|
- [NotehubJs.Note](docs/Note.md)
|
|
312
|
+
- [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
|
|
303
313
|
- [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
|
|
304
314
|
- [NotehubJs.NotehubRouteSchema](docs/NotehubRouteSchema.md)
|
|
305
315
|
- [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
|
|
@@ -313,6 +323,7 @@ Class | Method | HTTP request | Description
|
|
|
313
323
|
- [NotehubJs.Radresponder](docs/Radresponder.md)
|
|
314
324
|
- [NotehubJs.Repository](docs/Repository.md)
|
|
315
325
|
- [NotehubJs.Role](docs/Role.md)
|
|
326
|
+
- [NotehubJs.SchemaProperty](docs/SchemaProperty.md)
|
|
316
327
|
- [NotehubJs.Slack](docs/Slack.md)
|
|
317
328
|
- [NotehubJs.SlackBearerNotification](docs/SlackBearerNotification.md)
|
|
318
329
|
- [NotehubJs.SlackWebHookNotification](docs/SlackWebHookNotification.md)
|
|
@@ -327,6 +338,7 @@ Class | Method | HTTP request | Description
|
|
|
327
338
|
- [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
|
|
328
339
|
- [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.md)
|
|
329
340
|
- [NotehubJs.UserFirmwareInfo](docs/UserFirmwareInfo.md)
|
|
341
|
+
- [NotehubJs.WebhookSettings](docs/WebhookSettings.md)
|
|
330
342
|
|
|
331
343
|
|
|
332
344
|
## Documentation for Authorization
|
package/dist/ApiClient.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.20
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -75,7 +75,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {};
|
|
77
77
|
if (typeof window === 'undefined') {
|
|
78
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.29-beta.
|
|
78
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.29-beta.20/Javascript';
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.20
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Authorization service.
|
|
30
30
|
* @module api/AuthorizationApi
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.20
|
|
32
32
|
*/
|
|
33
33
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.20
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -45,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
/**
|
|
46
46
|
* Device service.
|
|
47
47
|
* @module api/DeviceApi
|
|
48
|
-
* @version 1.0.29-beta.
|
|
48
|
+
* @version 1.0.29-beta.20
|
|
49
49
|
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
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.29-beta.
|
|
33
|
+
* @version 1.0.29-beta.20
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DeviceSession = _interopRequireDefault(require("../model/DeviceSession"));
|
|
9
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
|
+
var _Event = _interopRequireDefault(require("../model/Event"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Notehub API
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
22
|
+
* Contact: engineering@blues.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* ExternalDevices service.
|
|
31
|
+
* @module api/ExternalDevicesApi
|
|
32
|
+
* @version 1.0.29-beta.20
|
|
33
|
+
*/
|
|
34
|
+
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new ExternalDevicesApi.
|
|
37
|
+
* @alias module:api/ExternalDevicesApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
|
+
function ExternalDevicesApi(apiClient) {
|
|
43
|
+
_classCallCheck(this, ExternalDevicesApi);
|
|
44
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Creates an event using specified webhook
|
|
49
|
+
* @param {String} productUID
|
|
50
|
+
* @param {String} deviceUID
|
|
51
|
+
* @param {module:model/Event} event Event Object
|
|
52
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
|
+
*/
|
|
54
|
+
return _createClass(ExternalDevicesApi, [{
|
|
55
|
+
key: "createEventExtDeviceWithHttpInfo",
|
|
56
|
+
value: function createEventExtDeviceWithHttpInfo(productUID, deviceUID, event) {
|
|
57
|
+
var postBody = event;
|
|
58
|
+
// verify the required parameter 'productUID' is set
|
|
59
|
+
if (productUID === undefined || productUID === null) {
|
|
60
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createEventExtDevice");
|
|
61
|
+
}
|
|
62
|
+
// verify the required parameter 'deviceUID' is set
|
|
63
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
64
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createEventExtDevice");
|
|
65
|
+
}
|
|
66
|
+
// verify the required parameter 'event' is set
|
|
67
|
+
if (event === undefined || event === null) {
|
|
68
|
+
throw new _Error["default"]("Missing the required parameter 'event' when calling createEventExtDevice");
|
|
69
|
+
}
|
|
70
|
+
var pathParams = {
|
|
71
|
+
'productUID': productUID,
|
|
72
|
+
'deviceUID': deviceUID
|
|
73
|
+
};
|
|
74
|
+
var queryParams = {};
|
|
75
|
+
var headerParams = {};
|
|
76
|
+
var formParams = {};
|
|
77
|
+
var authNames = ['api_key'];
|
|
78
|
+
var contentTypes = ['application/json'];
|
|
79
|
+
var accepts = ['application/json'];
|
|
80
|
+
var returnType = null;
|
|
81
|
+
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates an event using specified webhook
|
|
86
|
+
* @param {String} productUID
|
|
87
|
+
* @param {String} deviceUID
|
|
88
|
+
* @param {module:model/Event} event Event Object
|
|
89
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "createEventExtDevice",
|
|
93
|
+
value: function createEventExtDevice(productUID, deviceUID, event) {
|
|
94
|
+
return this.createEventExtDeviceWithHttpInfo(productUID, deviceUID, event).then(function (response_and_data) {
|
|
95
|
+
return response_and_data.data;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Closes the session for the specified device if open
|
|
101
|
+
* @param {String} productUID
|
|
102
|
+
* @param {String} deviceUID
|
|
103
|
+
* @param {module:model/DeviceSession} deviceSession Session Object
|
|
104
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
105
|
+
*/
|
|
106
|
+
}, {
|
|
107
|
+
key: "extDeviceSessionCloseWithHttpInfo",
|
|
108
|
+
value: function extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, deviceSession) {
|
|
109
|
+
var postBody = deviceSession;
|
|
110
|
+
// verify the required parameter 'productUID' is set
|
|
111
|
+
if (productUID === undefined || productUID === null) {
|
|
112
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionClose");
|
|
113
|
+
}
|
|
114
|
+
// verify the required parameter 'deviceUID' is set
|
|
115
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
116
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionClose");
|
|
117
|
+
}
|
|
118
|
+
// verify the required parameter 'deviceSession' is set
|
|
119
|
+
if (deviceSession === undefined || deviceSession === null) {
|
|
120
|
+
throw new _Error["default"]("Missing the required parameter 'deviceSession' when calling extDeviceSessionClose");
|
|
121
|
+
}
|
|
122
|
+
var pathParams = {
|
|
123
|
+
'productUID': productUID,
|
|
124
|
+
'deviceUID': deviceUID
|
|
125
|
+
};
|
|
126
|
+
var queryParams = {};
|
|
127
|
+
var headerParams = {};
|
|
128
|
+
var formParams = {};
|
|
129
|
+
var authNames = ['api_key'];
|
|
130
|
+
var contentTypes = ['application/json'];
|
|
131
|
+
var accepts = ['application/json'];
|
|
132
|
+
var returnType = null;
|
|
133
|
+
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/close', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Closes the session for the specified device if open
|
|
138
|
+
* @param {String} productUID
|
|
139
|
+
* @param {String} deviceUID
|
|
140
|
+
* @param {module:model/DeviceSession} deviceSession Session Object
|
|
141
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
142
|
+
*/
|
|
143
|
+
}, {
|
|
144
|
+
key: "extDeviceSessionClose",
|
|
145
|
+
value: function extDeviceSessionClose(productUID, deviceUID, deviceSession) {
|
|
146
|
+
return this.extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, deviceSession).then(function (response_and_data) {
|
|
147
|
+
return response_and_data.data;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
153
|
+
* @param {String} productUID
|
|
154
|
+
* @param {String} deviceUID
|
|
155
|
+
* @param {module:model/DeviceSession} deviceSession Session Object
|
|
156
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "extDeviceSessionOpenWithHttpInfo",
|
|
160
|
+
value: function extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, deviceSession) {
|
|
161
|
+
var postBody = deviceSession;
|
|
162
|
+
// verify the required parameter 'productUID' is set
|
|
163
|
+
if (productUID === undefined || productUID === null) {
|
|
164
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionOpen");
|
|
165
|
+
}
|
|
166
|
+
// verify the required parameter 'deviceUID' is set
|
|
167
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
168
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionOpen");
|
|
169
|
+
}
|
|
170
|
+
// verify the required parameter 'deviceSession' is set
|
|
171
|
+
if (deviceSession === undefined || deviceSession === null) {
|
|
172
|
+
throw new _Error["default"]("Missing the required parameter 'deviceSession' when calling extDeviceSessionOpen");
|
|
173
|
+
}
|
|
174
|
+
var pathParams = {
|
|
175
|
+
'productUID': productUID,
|
|
176
|
+
'deviceUID': deviceUID
|
|
177
|
+
};
|
|
178
|
+
var queryParams = {};
|
|
179
|
+
var headerParams = {};
|
|
180
|
+
var formParams = {};
|
|
181
|
+
var authNames = ['api_key'];
|
|
182
|
+
var contentTypes = ['application/json'];
|
|
183
|
+
var accepts = ['application/json'];
|
|
184
|
+
var returnType = null;
|
|
185
|
+
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/open', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
190
|
+
* @param {String} productUID
|
|
191
|
+
* @param {String} deviceUID
|
|
192
|
+
* @param {module:model/DeviceSession} deviceSession Session Object
|
|
193
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
194
|
+
*/
|
|
195
|
+
}, {
|
|
196
|
+
key: "extDeviceSessionOpen",
|
|
197
|
+
value: function extDeviceSessionOpen(productUID, deviceUID, deviceSession) {
|
|
198
|
+
return this.extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, deviceSession).then(function (response_and_data) {
|
|
199
|
+
return response_and_data.data;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}]);
|
|
203
|
+
}();
|
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.29-beta.
|
|
32
|
+
* @version 1.0.29-beta.20
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -23,6 +23,7 @@ var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetP
|
|
|
23
23
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
24
24
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
25
25
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
26
|
+
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
26
27
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
27
28
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
28
29
|
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
@@ -48,7 +49,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
49
|
/**
|
|
49
50
|
* Project service.
|
|
50
51
|
* @module api/ProjectApi
|
|
51
|
-
* @version 1.0.29-beta.
|
|
52
|
+
* @version 1.0.29-beta.20
|
|
52
53
|
*/
|
|
53
54
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
55
|
/**
|
|
@@ -64,57 +65,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param {String} projectUID
|
|
69
|
-
* @param {
|
|
70
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
68
|
+
* Clone a Project
|
|
69
|
+
* @param {String} projectUID The project UID to be cloned.
|
|
70
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
71
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
71
72
|
*/
|
|
72
73
|
return _createClass(ProjectApi, [{
|
|
73
|
-
key: "bulkProvisionWithHttpInfo",
|
|
74
|
-
value: function bulkProvisionWithHttpInfo(projectUID, body) {
|
|
75
|
-
var postBody = body;
|
|
76
|
-
// verify the required parameter 'projectUID' is set
|
|
77
|
-
if (projectUID === undefined || projectUID === null) {
|
|
78
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling bulkProvision");
|
|
79
|
-
}
|
|
80
|
-
// verify the required parameter 'body' is set
|
|
81
|
-
if (body === undefined || body === null) {
|
|
82
|
-
throw new _Error["default"]("Missing the required parameter 'body' when calling bulkProvision");
|
|
83
|
-
}
|
|
84
|
-
var pathParams = {
|
|
85
|
-
'projectUID': projectUID
|
|
86
|
-
};
|
|
87
|
-
var queryParams = {};
|
|
88
|
-
var headerParams = {};
|
|
89
|
-
var formParams = {};
|
|
90
|
-
var authNames = [];
|
|
91
|
-
var contentTypes = ['text/csv'];
|
|
92
|
-
var accepts = [];
|
|
93
|
-
var returnType = null;
|
|
94
|
-
return this.apiClient.callApi('/v1/projects/{projectUID}/bulk-provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Bulk provision devices via CSV upload
|
|
99
|
-
* @param {String} projectUID
|
|
100
|
-
* @param {String} body
|
|
101
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
102
|
-
*/
|
|
103
|
-
}, {
|
|
104
|
-
key: "bulkProvision",
|
|
105
|
-
value: function bulkProvision(projectUID, body) {
|
|
106
|
-
return this.bulkProvisionWithHttpInfo(projectUID, body).then(function (response_and_data) {
|
|
107
|
-
return response_and_data.data;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Clone a Project
|
|
113
|
-
* @param {String} projectUID The project UID to be cloned.
|
|
114
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
115
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
116
|
-
*/
|
|
117
|
-
}, {
|
|
118
74
|
key: "cloneProjectWithHttpInfo",
|
|
119
75
|
value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
|
|
120
76
|
var postBody = cloneProjectRequest;
|
|
@@ -1166,6 +1122,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1166
1122
|
});
|
|
1167
1123
|
}
|
|
1168
1124
|
|
|
1125
|
+
/**
|
|
1126
|
+
* Get variable format for a notefile
|
|
1127
|
+
* @param {String} projectUID
|
|
1128
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1129
|
+
*/
|
|
1130
|
+
}, {
|
|
1131
|
+
key: "getNotefileSchemasWithHttpInfo",
|
|
1132
|
+
value: function getNotefileSchemasWithHttpInfo(projectUID) {
|
|
1133
|
+
var postBody = null;
|
|
1134
|
+
// verify the required parameter 'projectUID' is set
|
|
1135
|
+
if (projectUID === undefined || projectUID === null) {
|
|
1136
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getNotefileSchemas");
|
|
1137
|
+
}
|
|
1138
|
+
var pathParams = {
|
|
1139
|
+
'projectUID': projectUID
|
|
1140
|
+
};
|
|
1141
|
+
var queryParams = {};
|
|
1142
|
+
var headerParams = {};
|
|
1143
|
+
var formParams = {};
|
|
1144
|
+
var authNames = [];
|
|
1145
|
+
var contentTypes = [];
|
|
1146
|
+
var accepts = ['application/json'];
|
|
1147
|
+
var returnType = [_NotefileSchema["default"]];
|
|
1148
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Get variable format for a notefile
|
|
1153
|
+
* @param {String} projectUID
|
|
1154
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1155
|
+
*/
|
|
1156
|
+
}, {
|
|
1157
|
+
key: "getNotefileSchemas",
|
|
1158
|
+
value: function getNotefileSchemas(projectUID) {
|
|
1159
|
+
return this.getNotefileSchemasWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
1160
|
+
return response_and_data.data;
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1169
1164
|
/**
|
|
1170
1165
|
* Get a Project by ProjectUID
|
|
1171
1166
|
* @param {String} projectUID
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Repository service.
|
|
32
32
|
* @module api/RepositoryApi
|
|
33
|
-
* @version 1.0.29-beta.
|
|
33
|
+
* @version 1.0.29-beta.20
|
|
34
34
|
*/
|
|
35
35
|
var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 1.0.29-beta.
|
|
33
|
+
* @version 1.0.29-beta.20
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|