@blues-inc/notehub-js 1.0.23 → 1.0.24-beta.10
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 +200 -179
- package/dist/ApiClient.js +162 -160
- package/dist/api/AlertApi.js +23 -23
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +352 -352
- package/dist/api/EventApi.js +134 -124
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +599 -330
- package/dist/api/RouteApi.js +103 -103
- package/dist/index.js +102 -39
- package/dist/model/Alert.js +108 -62
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +127 -126
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/{OTAUpdateStatus.js → CurrentFirmware.js} +34 -47
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceDfuHistory.js +139 -0
- package/dist/model/DeviceDfuHistoryPage.js +121 -0
- package/dist/model/DeviceDfuStateMachine.js +152 -0
- package/dist/model/DeviceDfuStateMachineNode.js +132 -0
- package/dist/model/DeviceDfuStatus.js +129 -0
- package/dist/model/DeviceDfuStatusCurrent.js +158 -0
- package/dist/model/{OTAStatusList.js → DeviceDfuStatusPage.js} +34 -33
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/DfuActionRequest.js +92 -0
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +16 -15
- package/dist/model/GetBillingAccounts200Response.js +11 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +13 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +11 -10
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +18 -17
- package/dist/model/GetProjectEvents200Response.js +22 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
- package/dist/model/GetProjectFleets200Response.js +13 -12
- package/dist/model/GetProjectMembers200Response.js +13 -12
- package/dist/model/GetProjectProducts200Response.js +11 -10
- package/dist/model/GetProjects200Response.js +11 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +101 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -11
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/{Route.js → NotehubRoute.js} +56 -56
- package/dist/model/{RouteSchema.js → NotehubRouteSchema.js} +70 -71
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/UserDfuStateMachineStatus.js +123 -0
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +4 -4
- package/dist/model/FirmwareStatus.js +0 -144
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
|
@@ -13,9 +13,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
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
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.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 DeviceTowerInfo model module.
|
|
28
28
|
* @module model/DeviceTowerInfo
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.24-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,17 +59,17 @@ var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DeviceTowerInfo();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('mcc')) {
|
|
63
|
+
obj['mcc'] = _ApiClient["default"].convertToType(data['mcc'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('mnc')) {
|
|
66
|
+
obj['mnc'] = _ApiClient["default"].convertToType(data['mnc'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('lac')) {
|
|
69
|
+
obj['lac'] = _ApiClient["default"].convertToType(data['lac'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('cell_id')) {
|
|
72
|
+
obj['cell_id'] = _ApiClient["default"].convertToType(data['cell_id'], 'Number');
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -92,20 +92,20 @@ var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
|
92
92
|
/**
|
|
93
93
|
* @member {Number} mcc
|
|
94
94
|
*/
|
|
95
|
-
DeviceTowerInfo.prototype[
|
|
95
|
+
DeviceTowerInfo.prototype['mcc'] = undefined;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* @member {Number} mnc
|
|
99
99
|
*/
|
|
100
|
-
DeviceTowerInfo.prototype[
|
|
100
|
+
DeviceTowerInfo.prototype['mnc'] = undefined;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* @member {Number} lac
|
|
104
104
|
*/
|
|
105
|
-
DeviceTowerInfo.prototype[
|
|
105
|
+
DeviceTowerInfo.prototype['lac'] = undefined;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* @member {Number} cell_id
|
|
109
109
|
*/
|
|
110
|
-
DeviceTowerInfo.prototype[
|
|
110
|
+
DeviceTowerInfo.prototype['cell_id'] = undefined;
|
|
111
111
|
var _default = exports["default"] = DeviceTowerInfo;
|
|
@@ -13,9 +13,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
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
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.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 DeviceUsage model module.
|
|
28
28
|
* @module model/DeviceUsage
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.24-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var DeviceUsage = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,35 +59,35 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DeviceUsage();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('since')) {
|
|
63
|
+
obj['since'] = _ApiClient["default"].convertToType(data['since'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('duration')) {
|
|
66
|
+
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('bytes_rcvd')) {
|
|
69
|
+
obj['bytes_rcvd'] = _ApiClient["default"].convertToType(data['bytes_rcvd'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('bytes_sent')) {
|
|
72
|
+
obj['bytes_sent'] = _ApiClient["default"].convertToType(data['bytes_sent'], 'Number');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty('bytes_rcvd_secondary')) {
|
|
75
|
+
obj['bytes_rcvd_secondary'] = _ApiClient["default"].convertToType(data['bytes_rcvd_secondary'], 'Number');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('bytes_sent_secondary')) {
|
|
78
|
+
obj['bytes_sent_secondary'] = _ApiClient["default"].convertToType(data['bytes_sent_secondary'], 'Number');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('sessions_tcp')) {
|
|
81
|
+
obj['sessions_tcp'] = _ApiClient["default"].convertToType(data['sessions_tcp'], 'Number');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('sessions_tls')) {
|
|
84
|
+
obj['sessions_tls'] = _ApiClient["default"].convertToType(data['sessions_tls'], 'Number');
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty('notes_rcvd')) {
|
|
87
|
+
obj['notes_rcvd'] = _ApiClient["default"].convertToType(data['notes_rcvd'], 'Number');
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty('note_sent')) {
|
|
90
|
+
obj['note_sent'] = _ApiClient["default"].convertToType(data['note_sent'], 'Number');
|
|
91
91
|
}
|
|
92
92
|
} else if (data === null) {
|
|
93
93
|
return null;
|
|
@@ -110,50 +110,50 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
110
110
|
/**
|
|
111
111
|
* @member {Number} since
|
|
112
112
|
*/
|
|
113
|
-
DeviceUsage.prototype[
|
|
113
|
+
DeviceUsage.prototype['since'] = undefined;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* @member {Number} duration
|
|
117
117
|
*/
|
|
118
|
-
DeviceUsage.prototype[
|
|
118
|
+
DeviceUsage.prototype['duration'] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {Number} bytes_rcvd
|
|
122
122
|
*/
|
|
123
|
-
DeviceUsage.prototype[
|
|
123
|
+
DeviceUsage.prototype['bytes_rcvd'] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {Number} bytes_sent
|
|
127
127
|
*/
|
|
128
|
-
DeviceUsage.prototype[
|
|
128
|
+
DeviceUsage.prototype['bytes_sent'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* @member {Number} bytes_rcvd_secondary
|
|
132
132
|
*/
|
|
133
|
-
DeviceUsage.prototype[
|
|
133
|
+
DeviceUsage.prototype['bytes_rcvd_secondary'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* @member {Number} bytes_sent_secondary
|
|
137
137
|
*/
|
|
138
|
-
DeviceUsage.prototype[
|
|
138
|
+
DeviceUsage.prototype['bytes_sent_secondary'] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @member {Number} sessions_tcp
|
|
142
142
|
*/
|
|
143
|
-
DeviceUsage.prototype[
|
|
143
|
+
DeviceUsage.prototype['sessions_tcp'] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* @member {Number} sessions_tls
|
|
147
147
|
*/
|
|
148
|
-
DeviceUsage.prototype[
|
|
148
|
+
DeviceUsage.prototype['sessions_tls'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* @member {Number} notes_rcvd
|
|
152
152
|
*/
|
|
153
|
-
DeviceUsage.prototype[
|
|
153
|
+
DeviceUsage.prototype['notes_rcvd'] = undefined;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {Number} note_sent
|
|
157
157
|
*/
|
|
158
|
-
DeviceUsage.prototype[
|
|
158
|
+
DeviceUsage.prototype['note_sent'] = undefined;
|
|
159
159
|
var _default = exports["default"] = DeviceUsage;
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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(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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Notehub API
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.2.0
|
|
19
|
+
* Contact: engineering@blues.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The DfuActionRequest model module.
|
|
28
|
+
* @module model/DfuActionRequest
|
|
29
|
+
* @version 1.0.24-beta.10
|
|
30
|
+
*/
|
|
31
|
+
var DfuActionRequest = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>DfuActionRequest</code>.
|
|
34
|
+
* @alias module:model/DfuActionRequest
|
|
35
|
+
*/
|
|
36
|
+
function DfuActionRequest() {
|
|
37
|
+
_classCallCheck(this, DfuActionRequest);
|
|
38
|
+
DfuActionRequest.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(DfuActionRequest, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>DfuActionRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/DfuActionRequest} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/DfuActionRequest} The populated <code>DfuActionRequest</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new DfuActionRequest();
|
|
62
|
+
if (data.hasOwnProperty('filename')) {
|
|
63
|
+
obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
|
|
64
|
+
}
|
|
65
|
+
} else if (data === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Validates the JSON data with respect to <code>DfuActionRequest</code>.
|
|
73
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
74
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DfuActionRequest</code>.
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "validateJSON",
|
|
78
|
+
value: function validateJSON(data) {
|
|
79
|
+
// ensure the json data is a string
|
|
80
|
+
if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}]);
|
|
86
|
+
}();
|
|
87
|
+
/**
|
|
88
|
+
* The name of the firmware file
|
|
89
|
+
* @member {String} filename
|
|
90
|
+
*/
|
|
91
|
+
DfuActionRequest.prototype['filename'] = undefined;
|
|
92
|
+
var _default = exports["default"] = DfuActionRequest;
|
|
@@ -13,9 +13,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
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
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.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 EmailNotification model module.
|
|
28
28
|
* @module model/EmailNotification
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.24-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var EmailNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var EmailNotification = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new EmailNotification();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('email')) {
|
|
63
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var EmailNotification = /*#__PURE__*/function () {
|
|
|
77
77
|
key: "validateJSON",
|
|
78
78
|
value: function validateJSON(data) {
|
|
79
79
|
// ensure the json data is a string
|
|
80
|
-
if (data[
|
|
81
|
-
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data[
|
|
80
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
82
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -88,5 +88,5 @@ var EmailNotification = /*#__PURE__*/function () {
|
|
|
88
88
|
* Email Address
|
|
89
89
|
* @member {String} email
|
|
90
90
|
*/
|
|
91
|
-
EmailNotification.prototype[
|
|
91
|
+
EmailNotification.prototype['email'] = undefined;
|
|
92
92
|
var _default = exports["default"] = EmailNotification;
|
|
@@ -16,9 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
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
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
20
20
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.
|
|
21
|
+
* The version of the OpenAPI document: 1.2.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,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The EnvironmentVariables model module.
|
|
31
31
|
* @module model/EnvironmentVariables
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.24-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>EnvironmentVariables</code>.
|
|
37
37
|
* @alias module:model/EnvironmentVariables
|
|
38
|
-
* @param environmentVariables {Object.<String, String>}
|
|
38
|
+
* @param environmentVariables {Object.<String, String>}
|
|
39
39
|
*/
|
|
40
40
|
function EnvironmentVariables(environmentVariables) {
|
|
41
41
|
_classCallCheck(this, EnvironmentVariables);
|
|
@@ -50,7 +50,7 @@ var EnvironmentVariables = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(EnvironmentVariables, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, environmentVariables) {
|
|
53
|
-
obj[
|
|
53
|
+
obj['environment_variables'] = environmentVariables;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,9 +65,9 @@ var EnvironmentVariables = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new EnvironmentVariables();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
70
|
-
String:
|
|
68
|
+
if (data.hasOwnProperty('environment_variables')) {
|
|
69
|
+
obj['environment_variables'] = _ApiClient["default"].convertToType(data['environment_variables'], {
|
|
70
|
+
'String': 'String'
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
} else if (data === null) {
|
|
@@ -108,5 +108,5 @@ EnvironmentVariables.RequiredProperties = ["environment_variables"];
|
|
|
108
108
|
/**
|
|
109
109
|
* @member {Object.<String, String>} environment_variables
|
|
110
110
|
*/
|
|
111
|
-
EnvironmentVariables.prototype[
|
|
111
|
+
EnvironmentVariables.prototype['environment_variables'] = undefined;
|
|
112
112
|
var _default = exports["default"] = EnvironmentVariables;
|
package/dist/model/Error.js
CHANGED
|
@@ -16,9 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
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
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
|
|
20
20
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.
|
|
21
|
+
* The version of the OpenAPI document: 1.2.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 Error model module.
|
|
31
31
|
* @module model/Error
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.24-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var Error = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -52,9 +52,9 @@ var Error = /*#__PURE__*/function () {
|
|
|
52
52
|
return _createClass(Error, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
54
|
value: function initialize(obj, err, code, status) {
|
|
55
|
-
obj[
|
|
56
|
-
obj[
|
|
57
|
-
obj[
|
|
55
|
+
obj['err'] = err;
|
|
56
|
+
obj['code'] = code;
|
|
57
|
+
obj['status'] = status;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -69,23 +69,23 @@ var Error = /*#__PURE__*/function () {
|
|
|
69
69
|
value: function constructFromObject(data, obj) {
|
|
70
70
|
if (data) {
|
|
71
71
|
obj = obj || new Error();
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty('err')) {
|
|
73
|
+
obj['err'] = _ApiClient["default"].convertToType(data['err'], 'String');
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty('code')) {
|
|
76
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'Number');
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty('status')) {
|
|
79
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty('request')) {
|
|
82
|
+
obj['request'] = _ApiClient["default"].convertToType(data['request'], 'String');
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty('details')) {
|
|
85
|
+
obj['details'] = _ApiClient["default"].convertToType(data['details'], Object);
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty('debug')) {
|
|
88
|
+
obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'String');
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -117,20 +117,20 @@ var Error = /*#__PURE__*/function () {
|
|
|
117
117
|
} finally {
|
|
118
118
|
_iterator.f();
|
|
119
119
|
}
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data['err'] && !(typeof data['err'] === 'string' || data['err'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data['err']);
|
|
122
122
|
}
|
|
123
123
|
// ensure the json data is a string
|
|
124
|
-
if (data[
|
|
125
|
-
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data[
|
|
124
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
126
126
|
}
|
|
127
127
|
// ensure the json data is a string
|
|
128
|
-
if (data[
|
|
129
|
-
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data[
|
|
128
|
+
if (data['request'] && !(typeof data['request'] === 'string' || data['request'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data['request']);
|
|
130
130
|
}
|
|
131
131
|
// ensure the json data is a string
|
|
132
|
-
if (data[
|
|
133
|
-
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data[
|
|
132
|
+
if (data['debug'] && !(typeof data['debug'] === 'string' || data['debug'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data['debug']);
|
|
134
134
|
}
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
@@ -142,32 +142,32 @@ Error.RequiredProperties = ["err", "code", "status"];
|
|
|
142
142
|
* Human readable error message.
|
|
143
143
|
* @member {String} err
|
|
144
144
|
*/
|
|
145
|
-
Error.prototype[
|
|
145
|
+
Error.prototype['err'] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* The HTTP error code associated with the error.
|
|
149
149
|
* @member {Number} code
|
|
150
150
|
*/
|
|
151
|
-
Error.prototype[
|
|
151
|
+
Error.prototype['code'] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Machine readable representation of the HTTP error code.
|
|
155
155
|
* @member {String} status
|
|
156
156
|
*/
|
|
157
|
-
Error.prototype[
|
|
157
|
+
Error.prototype['status'] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* @member {String} request
|
|
161
161
|
*/
|
|
162
|
-
Error.prototype[
|
|
162
|
+
Error.prototype['request'] = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* @member {Object} details
|
|
166
166
|
*/
|
|
167
|
-
Error.prototype[
|
|
167
|
+
Error.prototype['details'] = undefined;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* @member {String} debug
|
|
171
171
|
*/
|
|
172
|
-
Error.prototype[
|
|
172
|
+
Error.prototype['debug'] = undefined;
|
|
173
173
|
var _default = exports["default"] = Error;
|