@blues-inc/notehub-js 2.2.0-beta.29 → 2.2.0-beta.30
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 +62 -65
- 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 +773 -773
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +282 -282
- package/dist/api/RouteApi.js +10 -10
- package/dist/api/UsageApi.js +8 -8
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +135 -156
- 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 → Aws.js} +45 -39
- package/dist/model/{Filter.js → AwsFilter.js} +47 -25
- package/dist/model/AwsTransform.js +148 -0
- package/dist/model/{AzureRoute.js → Azure.js} +40 -34
- package/dist/model/BillingAccount.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 -15
- 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/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
- 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/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +2 -16
- 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/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/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
- package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
- package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
- 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 → Google.js} +37 -32
- package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
- package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
- package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
- package/dist/model/HandleNotefileChanges200Response.js +106 -0
- package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
- package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
- package/dist/model/{HttpRoute.js → Http.js} +40 -34
- 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 → Mqtt.js} +50 -45
- package/dist/model/Note.js +10 -90
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +134 -214
- package/dist/model/NotehubRouteSchema.js +505 -0
- 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/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/{ProxyRoute.js → Proxy.js} +26 -22
- package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
- package/dist/model/{RadRoute.js → Radresponder.js} +26 -38
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/{SlackRoute.js → Slack.js} +58 -35
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/{RouteTransformSettings.js → SlackTransform.js} +22 -22
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/{SnowflakeRoute.js → Snowflake.js} +41 -34
- package/dist/model/{ThingworxRoute.js → Thingworx.js} +37 -32
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/{TwilioRoute.js → Twilio.js} +39 -30
- package/dist/model/UpdateFleetRequest.js +1 -15
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +7 -20
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/{NotehubRouteSummary.js → UserDbRoute.js} +29 -24
- 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/model/BlynkRoute.js +0 -147
- package/dist/model/DatacakeRoute.js +0 -165
- package/dist/model/FleetConnectivityAssurance.js +0 -111
- package/dist/model/Notefile.js +0 -147
- package/dist/model/QubitroRoute.js +0 -159
- package/dist/model/S3ArchiveRoute.js +0 -271
package/dist/api/RouteApi.js
CHANGED
|
@@ -7,8 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _NotehubRoute = _interopRequireDefault(require("../model/NotehubRoute"));
|
|
10
|
-
var _NotehubRouteSummary = _interopRequireDefault(require("../model/NotehubRouteSummary"));
|
|
11
10
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
11
|
+
var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
14
14
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -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 2.2.0-beta.
|
|
33
|
+
* @version 2.2.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,7 +48,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Create Route within a Project
|
|
50
50
|
* @param {String} projectOrProductUID
|
|
51
|
-
* @param {module:model/NotehubRoute} notehubRoute Route to be
|
|
51
|
+
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
53
53
|
*/
|
|
54
54
|
return _createClass(RouteApi, [{
|
|
@@ -79,7 +79,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
79
|
/**
|
|
80
80
|
* Create Route within a Project
|
|
81
81
|
* @param {String} projectOrProductUID
|
|
82
|
-
* @param {module:model/NotehubRoute} notehubRoute Route to be
|
|
82
|
+
* @param {module:model/NotehubRoute} notehubRoute Route to be Created
|
|
83
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
84
84
|
*/
|
|
85
85
|
}, {
|
|
@@ -94,7 +94,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
94
94
|
* Delete single route within a project
|
|
95
95
|
* @param {String} projectOrProductUID
|
|
96
96
|
* @param {String} routeUID
|
|
97
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
97
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
98
98
|
*/
|
|
99
99
|
}, {
|
|
100
100
|
key: "deleteRouteWithHttpInfo",
|
|
@@ -118,7 +118,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
118
|
var authNames = ['personalAccessToken'];
|
|
119
119
|
var contentTypes = [];
|
|
120
120
|
var accepts = ['application/json'];
|
|
121
|
-
var returnType =
|
|
121
|
+
var returnType = Object;
|
|
122
122
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
126
|
* Delete single route within a project
|
|
127
127
|
* @param {String} projectOrProductUID
|
|
128
128
|
* @param {String} routeUID
|
|
129
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
129
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
130
130
|
*/
|
|
131
131
|
}, {
|
|
132
132
|
key: "deleteRoute",
|
|
@@ -265,7 +265,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
265
265
|
/**
|
|
266
266
|
* Get all Routes within a Project
|
|
267
267
|
* @param {String} projectOrProductUID
|
|
268
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/
|
|
268
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
|
|
269
269
|
*/
|
|
270
270
|
}, {
|
|
271
271
|
key: "getRoutesWithHttpInfo",
|
|
@@ -284,14 +284,14 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
284
284
|
var authNames = ['personalAccessToken'];
|
|
285
285
|
var contentTypes = [];
|
|
286
286
|
var accepts = ['application/json'];
|
|
287
|
-
var returnType = [
|
|
287
|
+
var returnType = [_UserDbRoute["default"]];
|
|
288
288
|
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* Get all Routes within a Project
|
|
293
293
|
* @param {String} projectOrProductUID
|
|
294
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/
|
|
294
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
|
|
295
295
|
*/
|
|
296
296
|
}, {
|
|
297
297
|
key: "getRoutes",
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Usage service.
|
|
32
32
|
* @module api/UsageApi
|
|
33
|
-
* @version 2.2.0-beta.
|
|
33
|
+
* @version 2.2.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -119,17 +119,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
119
119
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
|
|
120
120
|
*/
|
|
121
121
|
}, {
|
|
122
|
-
key: "
|
|
123
|
-
value: function
|
|
122
|
+
key: "getProjectEventsUsageWithHttpInfo",
|
|
123
|
+
value: function getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
124
124
|
opts = opts || {};
|
|
125
125
|
var postBody = null;
|
|
126
126
|
// verify the required parameter 'projectOrProductUID' is set
|
|
127
127
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
128
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
128
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsUsage");
|
|
129
129
|
}
|
|
130
130
|
// verify the required parameter 'period' is set
|
|
131
131
|
if (period === undefined || period === null) {
|
|
132
|
-
throw new _Error["default"]("Missing the required parameter 'period' when calling
|
|
132
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getProjectEventsUsage");
|
|
133
133
|
}
|
|
134
134
|
var pathParams = {
|
|
135
135
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -162,9 +162,9 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
|
|
163
163
|
*/
|
|
164
164
|
}, {
|
|
165
|
-
key: "
|
|
166
|
-
value: function
|
|
167
|
-
return this.
|
|
165
|
+
key: "getProjectEventsUsage",
|
|
166
|
+
value: function getProjectEventsUsage(projectOrProductUID, period, opts) {
|
|
167
|
+
return this.getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
168
168
|
return response_and_data.data;
|
|
169
169
|
});
|
|
170
170
|
}
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 2.2.0-beta.
|
|
32
|
+
* @version 2.2.0-beta.30
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|