@blues-inc/notehub-js 1.0.20 → 1.0.22
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 +34 -18
- package/dist/ApiClient.js +7 -7
- package/dist/api/AlertApi.js +10 -7
- package/dist/api/AuthorizationApi.js +6 -6
- package/dist/api/BillingAccountApi.js +6 -6
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +74 -33
- package/dist/api/MonitorApi.js +6 -6
- package/dist/api/ProjectApi.js +177 -6
- package/dist/api/RouteApi.js +9 -9
- package/dist/index.js +55 -13
- package/dist/model/Alert.js +22 -9
- package/dist/model/AlertDataInner.js +6 -6
- package/dist/model/AlertNotificationsInner.js +6 -6
- package/dist/model/Aws.js +6 -6
- package/dist/model/Azure.js +6 -6
- package/dist/model/BillingAccount.js +9 -9
- package/dist/model/BillingAccountRole.js +15 -15
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +9 -9
- package/dist/model/Contact.js +6 -6
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateMonitor.js +102 -23
- package/dist/model/CreateProductRequest.js +9 -9
- package/dist/model/CreateProjectRequest.js +9 -9
- package/dist/model/DFUEnv.js +6 -6
- package/dist/model/DFUState.js +6 -6
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +9 -9
- package/dist/model/DeviceSession.js +6 -6
- package/dist/model/DeviceTowerInfo.js +6 -6
- package/dist/model/DeviceUsage.js +6 -6
- package/dist/model/{MonitorThresholds.js → EmailNotification.js} +31 -27
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +9 -9
- package/dist/model/Event.js +6 -6
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/FirmwareStatus.js +144 -0
- package/dist/model/Fleet.js +9 -9
- package/dist/model/GetAlerts200Response.js +9 -9
- package/dist/model/GetBillingAccounts200Response.js +9 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +9 -9
- package/dist/model/GetDeviceHealthLog200Response.js +9 -9
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +9 -9
- package/dist/model/GetDeviceLatest200Response.js +9 -9
- package/dist/model/GetDevicePublicKey200Response.js +9 -9
- package/dist/model/GetDeviceSessions200Response.js +9 -9
- package/dist/model/GetProjectDevicePublicKeys200Response.js +9 -9
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +6 -6
- package/dist/model/GetProjectDevices200Response.js +9 -9
- package/dist/model/GetProjectEvents200Response.js +22 -9
- package/dist/model/GetProjectEventsByCursor200Response.js +9 -9
- package/dist/model/GetProjectFleets200Response.js +9 -9
- package/dist/model/GetProjectMembers200Response.js +9 -9
- package/dist/model/GetProjectProducts200Response.js +9 -9
- package/dist/model/GetProjects200Response.js +9 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +6 -6
- package/dist/model/Google.js +6 -6
- package/dist/model/HandleNoteChanges200Response.js +6 -6
- package/dist/model/HandleNoteGet200Response.js +6 -6
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +6 -6
- package/dist/model/HandleNotefileChangesPending200Response.js +6 -6
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +6 -6
- package/dist/model/HttpFilter.js +6 -6
- package/dist/model/HttpTransform.js +6 -6
- package/dist/model/Location.js +9 -9
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +6 -6
- package/dist/model/Monitor.js +83 -20
- package/dist/model/MonitorAlertRoutesInner.js +145 -44
- package/dist/model/Mqtt.js +6 -6
- package/dist/model/Note.js +6 -6
- package/dist/model/OTAStatus.js +306 -0
- package/dist/model/OTAStatusList.js +120 -0
- package/dist/model/OTAUpdateRequest.js +214 -0
- package/dist/model/OTAUpdateStatus.js +118 -0
- package/dist/model/PostProvisionProjectDeviceRequest.js +9 -9
- package/dist/model/Product.js +9 -9
- package/dist/model/Project.js +9 -9
- package/dist/model/ProjectMember.js +9 -9
- package/dist/model/Proxy.js +6 -6
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +6 -6
- package/dist/model/Role.js +6 -6
- package/dist/model/Route.js +6 -6
- package/dist/model/RouteSchema.js +7 -7
- package/dist/model/Slack.js +6 -6
- package/dist/model/SlackBearerNotification.js +149 -0
- package/dist/model/SlackWebHookNotification.js +136 -0
- package/dist/model/Snowflake.js +6 -6
- package/dist/model/SnowflakeTransform.js +6 -6
- package/dist/model/Thingworx.js +6 -6
- package/dist/model/TowerLocation.js +6 -6
- package/dist/model/Twilio.js +6 -6
- package/dist/model/UpdateFleetRequest.js +6 -6
- package/dist/model/UserDbRoute.js +6 -6
- package/package.json +1 -1
- package/dist/api/FirmwareApi.js +0 -109
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HandleNotefileChangesPending200Response model module.
|
|
28
28
|
* @module model/HandleNotefileChangesPending200Response
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HandleNotefileDeleteRequest model module.
|
|
28
28
|
* @module model/HandleNotefileDeleteRequest
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Http.js
CHANGED
|
@@ -7,17 +7,17 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
9
|
var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
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(
|
|
13
|
-
function _defineProperties(
|
|
14
|
-
function _createClass(
|
|
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
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
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
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.
|
|
20
|
+
* The version of the OpenAPI document: 1.1.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Http model module.
|
|
30
30
|
* @module model/Http
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.22
|
|
32
32
|
*/
|
|
33
33
|
var Http = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/HttpFilter.js
CHANGED
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HttpFilter model module.
|
|
28
28
|
* @module model/HttpFilter
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var HttpFilter = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HttpTransform model module.
|
|
28
28
|
* @module model/HttpTransform
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var HttpTransform = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Location.js
CHANGED
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _createForOfIteratorHelper(
|
|
11
|
-
function _unsupportedIterableToArray(
|
|
12
|
-
function _arrayLikeToArray(
|
|
13
|
-
function _classCallCheck(
|
|
14
|
-
function _defineProperties(
|
|
15
|
-
function _createClass(
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
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
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
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
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.
|
|
21
|
+
* The version of the OpenAPI document: 1.1.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Location model module.
|
|
31
31
|
* @module model/Location
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.22
|
|
33
33
|
*/
|
|
34
34
|
var Location = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Login200Response model module.
|
|
28
28
|
* @module model/Login200Response
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var Login200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
function _classCallCheck(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.1.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The LoginRequest model module.
|
|
28
28
|
* @module model/LoginRequest
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.22
|
|
30
30
|
*/
|
|
31
31
|
var LoginRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Monitor.js
CHANGED
|
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _MonitorAlertRoutesInner = _interopRequireDefault(require("./MonitorAlertRoutesInner"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
10
|
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 _createForOfIteratorHelper(
|
|
13
|
-
function _unsupportedIterableToArray(
|
|
14
|
-
function _arrayLikeToArray(
|
|
15
|
-
function _classCallCheck(
|
|
16
|
-
function _defineProperties(
|
|
17
|
-
function _createClass(
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
18
|
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); } /**
|
|
20
19
|
* Notehub API
|
|
21
20
|
* The OpenAPI definition for the Notehub.io API.
|
|
22
21
|
*
|
|
23
|
-
* The version of the OpenAPI document: 1.
|
|
22
|
+
* The version of the OpenAPI document: 1.1.0
|
|
24
23
|
* Contact: engineering@blues.io
|
|
25
24
|
*
|
|
26
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
30
|
/**
|
|
32
31
|
* The Monitor model module.
|
|
33
32
|
* @module model/Monitor
|
|
34
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.22
|
|
35
34
|
*/
|
|
36
35
|
var Monitor = /*#__PURE__*/function () {
|
|
37
36
|
/**
|
|
@@ -94,8 +93,8 @@ var Monitor = /*#__PURE__*/function () {
|
|
|
94
93
|
if (data.hasOwnProperty("condition_type")) {
|
|
95
94
|
obj["condition_type"] = _ApiClient["default"].convertToType(data["condition_type"], "String");
|
|
96
95
|
}
|
|
97
|
-
if (data.hasOwnProperty("
|
|
98
|
-
obj["
|
|
96
|
+
if (data.hasOwnProperty("threshold")) {
|
|
97
|
+
obj["threshold"] = _ApiClient["default"].convertToType(data["threshold"], "Number");
|
|
99
98
|
}
|
|
100
99
|
if (data.hasOwnProperty("alert_routes")) {
|
|
101
100
|
obj["alert_routes"] = _ApiClient["default"].convertToType(data["alert_routes"], [_MonitorAlertRoutesInner["default"]]);
|
|
@@ -109,6 +108,15 @@ var Monitor = /*#__PURE__*/function () {
|
|
|
109
108
|
if (data.hasOwnProperty("routing_cooldown_period")) {
|
|
110
109
|
obj["routing_cooldown_period"] = _ApiClient["default"].convertToType(data["routing_cooldown_period"], "String");
|
|
111
110
|
}
|
|
111
|
+
if (data.hasOwnProperty("aggregate_function")) {
|
|
112
|
+
obj["aggregate_function"] = _ApiClient["default"].convertToType(data["aggregate_function"], "String");
|
|
113
|
+
}
|
|
114
|
+
if (data.hasOwnProperty("aggregate_window")) {
|
|
115
|
+
obj["aggregate_window"] = _ApiClient["default"].convertToType(data["aggregate_window"], "String");
|
|
116
|
+
}
|
|
117
|
+
if (data.hasOwnProperty("per_device")) {
|
|
118
|
+
obj["per_device"] = _ApiClient["default"].convertToType(data["per_device"], "Boolean");
|
|
119
|
+
}
|
|
112
120
|
} else if (data === null) {
|
|
113
121
|
return null;
|
|
114
122
|
}
|
|
@@ -155,11 +163,6 @@ var Monitor = /*#__PURE__*/function () {
|
|
|
155
163
|
if (data["condition_type"] && !(typeof data["condition_type"] === "string" || data["condition_type"] instanceof String)) {
|
|
156
164
|
throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data["condition_type"]);
|
|
157
165
|
}
|
|
158
|
-
// validate the optional field `thresholds`
|
|
159
|
-
if (data["thresholds"]) {
|
|
160
|
-
// data not null
|
|
161
|
-
_MonitorThresholds["default"].validateJSON(data["thresholds"]);
|
|
162
|
-
}
|
|
163
166
|
if (data["alert_routes"]) {
|
|
164
167
|
// data not null
|
|
165
168
|
// ensure the json data is an array
|
|
@@ -188,6 +191,14 @@ var Monitor = /*#__PURE__*/function () {
|
|
|
188
191
|
if (data["routing_cooldown_period"] && !(typeof data["routing_cooldown_period"] === "string" || data["routing_cooldown_period"] instanceof String)) {
|
|
189
192
|
throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data["routing_cooldown_period"]);
|
|
190
193
|
}
|
|
194
|
+
// ensure the json data is a string
|
|
195
|
+
if (data["aggregate_function"] && !(typeof data["aggregate_function"] === "string" || data["aggregate_function"] instanceof String)) {
|
|
196
|
+
throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data["aggregate_function"]);
|
|
197
|
+
}
|
|
198
|
+
// ensure the json data is a string
|
|
199
|
+
if (data["aggregate_window"] && !(typeof data["aggregate_window"] === "string" || data["aggregate_window"] instanceof String)) {
|
|
200
|
+
throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data["aggregate_window"]);
|
|
201
|
+
}
|
|
191
202
|
return true;
|
|
192
203
|
}
|
|
193
204
|
}]);
|
|
@@ -242,15 +253,16 @@ Monitor.prototype["fleet_filter"] = undefined;
|
|
|
242
253
|
Monitor.prototype["source_selector"] = undefined;
|
|
243
254
|
|
|
244
255
|
/**
|
|
245
|
-
*
|
|
256
|
+
* A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
|
|
246
257
|
* @member {module:model/Monitor.ConditionTypeEnum} condition_type
|
|
247
258
|
*/
|
|
248
259
|
Monitor.prototype["condition_type"] = undefined;
|
|
249
260
|
|
|
250
261
|
/**
|
|
251
|
-
*
|
|
262
|
+
* The type of condition to apply to the value selected by the source_selector
|
|
263
|
+
* @member {Number} threshold
|
|
252
264
|
*/
|
|
253
|
-
Monitor.prototype["
|
|
265
|
+
Monitor.prototype["threshold"] = undefined;
|
|
254
266
|
|
|
255
267
|
/**
|
|
256
268
|
* @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
|
|
@@ -275,6 +287,24 @@ Monitor.prototype["silenced"] = undefined;
|
|
|
275
287
|
*/
|
|
276
288
|
Monitor.prototype["routing_cooldown_period"] = undefined;
|
|
277
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
292
|
+
* @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
|
|
293
|
+
*/
|
|
294
|
+
Monitor.prototype["aggregate_function"] = undefined;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The time window to aggregate the selected values. It follows the format of a number followed by a time unit
|
|
298
|
+
* @member {String} aggregate_window
|
|
299
|
+
*/
|
|
300
|
+
Monitor.prototype["aggregate_window"] = undefined;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
|
|
304
|
+
* @member {Boolean} per_device
|
|
305
|
+
*/
|
|
306
|
+
Monitor.prototype["per_device"] = undefined;
|
|
307
|
+
|
|
278
308
|
/**
|
|
279
309
|
* Allowed values for the <code>source_type</code> property.
|
|
280
310
|
* @enum {String}
|
|
@@ -325,4 +355,37 @@ Monitor["ConditionTypeEnum"] = {
|
|
|
325
355
|
*/
|
|
326
356
|
not_equal_to: "not_equal_to"
|
|
327
357
|
};
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Allowed values for the <code>aggregate_function</code> property.
|
|
361
|
+
* @enum {String}
|
|
362
|
+
* @readonly
|
|
363
|
+
*/
|
|
364
|
+
Monitor["AggregateFunctionEnum"] = {
|
|
365
|
+
/**
|
|
366
|
+
* value: "none"
|
|
367
|
+
* @const
|
|
368
|
+
*/
|
|
369
|
+
none: "none",
|
|
370
|
+
/**
|
|
371
|
+
* value: "sum"
|
|
372
|
+
* @const
|
|
373
|
+
*/
|
|
374
|
+
sum: "sum",
|
|
375
|
+
/**
|
|
376
|
+
* value: "average"
|
|
377
|
+
* @const
|
|
378
|
+
*/
|
|
379
|
+
average: "average",
|
|
380
|
+
/**
|
|
381
|
+
* value: "max"
|
|
382
|
+
* @const
|
|
383
|
+
*/
|
|
384
|
+
max: "max",
|
|
385
|
+
/**
|
|
386
|
+
* value: "min"
|
|
387
|
+
* @const
|
|
388
|
+
*/
|
|
389
|
+
min: "min"
|
|
390
|
+
};
|
|
328
391
|
var _default = exports["default"] = Monitor;
|