@blues-inc/notehub-js 1.0.37-beta.12 → 1.0.37-beta.14
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 +9 -11
- package/dist/ApiClient.js +4 -6
- package/dist/api/AlertApi.js +2 -2
- package/dist/api/AuthorizationApi.js +64 -1
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +29 -29
- package/dist/api/EventApi.js +6 -6
- package/dist/api/ExternalDevicesApi.js +4 -4
- package/dist/api/MonitorApi.js +6 -6
- package/dist/api/ProjectApi.js +36 -36
- package/dist/api/RouteApi.js +7 -7
- package/dist/api/WebhookApi.js +6 -6
- package/dist/index.js +14 -14
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AnalyticsEventsData.js +1 -1
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +1 -1
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +1 -1
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/AwsFilter.js +1 -1
- package/dist/model/AwsTransform.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/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/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 +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.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/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/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.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/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/{UsageData.js → OAuth2Error.js} +75 -45
- package/dist/model/OAuth2TokenResponse.js +154 -0
- 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/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/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.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/SlackTransform.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.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/UsageApi.js +0 -105
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UploadMetadata model module.
|
|
29
29
|
* @module model/UploadMetadata
|
|
30
|
-
* @version 1.0.37-beta.
|
|
30
|
+
* @version 1.0.37-beta.14
|
|
31
31
|
*/
|
|
32
32
|
var UploadMetadata = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDbRoute model module.
|
|
28
28
|
* @module model/UserDbRoute
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.14
|
|
30
30
|
*/
|
|
31
31
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserDfuStateMachine model module.
|
|
30
30
|
* @module model/UserDfuStateMachine
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.14
|
|
32
32
|
*/
|
|
33
33
|
var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDfuStateMachineStatus model module.
|
|
28
28
|
* @module model/UserDfuStateMachineStatus
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.14
|
|
30
30
|
*/
|
|
31
31
|
var UserDfuStateMachineStatus = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserFirmwareInfo model module.
|
|
30
30
|
* @module model/UserFirmwareInfo
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.14
|
|
32
32
|
*/
|
|
33
33
|
var UserFirmwareInfo = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The WebhookSettings model module.
|
|
28
28
|
* @module model/WebhookSettings
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.14
|
|
30
30
|
*/
|
|
31
31
|
var WebhookSettings = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/package.json
CHANGED
package/dist/api/UsageApi.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
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 _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var _UsageData = _interopRequireDefault(require("../model/UsageData"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
-
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); }
|
|
12
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
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); } }
|
|
14
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
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); } /**
|
|
17
|
-
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
-
*
|
|
20
|
-
* The version of the OpenAPI document: 1.2.0
|
|
21
|
-
* Contact: engineering@blues.io
|
|
22
|
-
*
|
|
23
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
-
* https://openapi-generator.tech
|
|
25
|
-
* Do not edit the class manually.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* Usage service.
|
|
30
|
-
* @module api/UsageApi
|
|
31
|
-
* @version 1.0.37-beta.12
|
|
32
|
-
*/
|
|
33
|
-
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
-
/**
|
|
35
|
-
* Constructs a new UsageApi.
|
|
36
|
-
* @alias module:api/UsageApi
|
|
37
|
-
* @class
|
|
38
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
-
*/
|
|
41
|
-
function UsageApi(apiClient) {
|
|
42
|
-
_classCallCheck(this, UsageApi);
|
|
43
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get data usage in bytes for a project with time range and period aggregation
|
|
48
|
-
* @param {String} projectOrProductUID
|
|
49
|
-
* @param {module:model/String} period Period type for aggregation
|
|
50
|
-
* @param {Object} opts Optional parameters
|
|
51
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
52
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
53
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
54
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<Object>} and HTTP response
|
|
55
|
-
*/
|
|
56
|
-
return _createClass(UsageApi, [{
|
|
57
|
-
key: "getProjectDataUsageWithHttpInfo",
|
|
58
|
-
value: function getProjectDataUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
59
|
-
opts = opts || {};
|
|
60
|
-
var postBody = null;
|
|
61
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
62
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
63
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDataUsage");
|
|
64
|
-
}
|
|
65
|
-
// verify the required parameter 'period' is set
|
|
66
|
-
if (period === undefined || period === null) {
|
|
67
|
-
throw new _Error["default"]("Missing the required parameter 'period' when calling getProjectDataUsage");
|
|
68
|
-
}
|
|
69
|
-
var pathParams = {
|
|
70
|
-
'projectOrProductUID': projectOrProductUID
|
|
71
|
-
};
|
|
72
|
-
var queryParams = {
|
|
73
|
-
'startDate': opts['startDate'],
|
|
74
|
-
'endDate': opts['endDate'],
|
|
75
|
-
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
76
|
-
'period': period
|
|
77
|
-
};
|
|
78
|
-
var headerParams = {};
|
|
79
|
-
var formParams = {};
|
|
80
|
-
var authNames = ['api_key'];
|
|
81
|
-
var contentTypes = [];
|
|
82
|
-
var accepts = ['application/json'];
|
|
83
|
-
var returnType = [Object];
|
|
84
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/data', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Get data usage in bytes for a project with time range and period aggregation
|
|
89
|
-
* @param {String} projectOrProductUID
|
|
90
|
-
* @param {module:model/String} period Period type for aggregation
|
|
91
|
-
* @param {Object} opts Optional parameters
|
|
92
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
93
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
94
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
95
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<Object>}
|
|
96
|
-
*/
|
|
97
|
-
}, {
|
|
98
|
-
key: "getProjectDataUsage",
|
|
99
|
-
value: function getProjectDataUsage(projectOrProductUID, period, opts) {
|
|
100
|
-
return this.getProjectDataUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
101
|
-
return response_and_data.data;
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}]);
|
|
105
|
-
}();
|