@blues-inc/notehub-js 3.0.0 → 4.0.0-beta.2
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 +251 -242
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +447 -503
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +117 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +25 -17
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +115 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +43 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +50 -40
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +132 -0
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +38 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +48 -37
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +41 -31
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/ListPendingNotefiles200Response.js +0 -115
|
@@ -13,7 +13,7 @@ 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.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -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
|
|
29
|
+
* @version 4.0.0-beta.2
|
|
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('cell_id')) {
|
|
63
|
+
obj['cell_id'] = _ApiClient["default"].convertToType(data['cell_id'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('lac')) {
|
|
66
|
+
obj['lac'] = _ApiClient["default"].convertToType(data['lac'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('mcc')) {
|
|
69
|
+
obj['mcc'] = _ApiClient["default"].convertToType(data['mcc'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('mnc')) {
|
|
72
|
+
obj['mnc'] = _ApiClient["default"].convertToType(data['mnc'], '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} cell_id
|
|
94
94
|
*/
|
|
95
|
-
DeviceTowerInfo.prototype[
|
|
95
|
+
DeviceTowerInfo.prototype['cell_id'] = undefined;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* @member {Number} lac
|
|
99
99
|
*/
|
|
100
|
-
DeviceTowerInfo.prototype[
|
|
100
|
+
DeviceTowerInfo.prototype['lac'] = undefined;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* @member {Number} mcc
|
|
104
104
|
*/
|
|
105
|
-
DeviceTowerInfo.prototype[
|
|
105
|
+
DeviceTowerInfo.prototype['mcc'] = undefined;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* @member {Number} mnc
|
|
109
109
|
*/
|
|
110
|
-
DeviceTowerInfo.prototype[
|
|
110
|
+
DeviceTowerInfo.prototype['mnc'] = undefined;
|
|
111
111
|
var _default = exports["default"] = DeviceTowerInfo;
|
|
@@ -13,7 +13,7 @@ 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.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -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
|
|
29
|
+
* @version 4.0.0-beta.2
|
|
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('bytes_rcvd')) {
|
|
63
|
+
obj['bytes_rcvd'] = _ApiClient["default"].convertToType(data['bytes_rcvd'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('bytes_rcvd_secondary')) {
|
|
66
|
+
obj['bytes_rcvd_secondary'] = _ApiClient["default"].convertToType(data['bytes_rcvd_secondary'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('bytes_sent')) {
|
|
69
|
+
obj['bytes_sent'] = _ApiClient["default"].convertToType(data['bytes_sent'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('bytes_sent_secondary')) {
|
|
72
|
+
obj['bytes_sent_secondary'] = _ApiClient["default"].convertToType(data['bytes_sent_secondary'], 'Number');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty('duration')) {
|
|
75
|
+
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('notes_rcvd')) {
|
|
78
|
+
obj['notes_rcvd'] = _ApiClient["default"].convertToType(data['notes_rcvd'], 'Number');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('notes_sent')) {
|
|
81
|
+
obj['notes_sent'] = _ApiClient["default"].convertToType(data['notes_sent'], 'Number');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('sessions_tcp')) {
|
|
84
|
+
obj['sessions_tcp'] = _ApiClient["default"].convertToType(data['sessions_tcp'], 'Number');
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty('sessions_tls')) {
|
|
87
|
+
obj['sessions_tls'] = _ApiClient["default"].convertToType(data['sessions_tls'], 'Number');
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty('since')) {
|
|
90
|
+
obj['since'] = _ApiClient["default"].convertToType(data['since'], 'Number');
|
|
91
91
|
}
|
|
92
92
|
} else if (data === null) {
|
|
93
93
|
return null;
|
|
@@ -110,52 +110,52 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
110
110
|
/**
|
|
111
111
|
* @member {Number} bytes_rcvd
|
|
112
112
|
*/
|
|
113
|
-
DeviceUsage.prototype[
|
|
113
|
+
DeviceUsage.prototype['bytes_rcvd'] = undefined;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* @member {Number} bytes_rcvd_secondary
|
|
117
117
|
*/
|
|
118
|
-
DeviceUsage.prototype[
|
|
118
|
+
DeviceUsage.prototype['bytes_rcvd_secondary'] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {Number} bytes_sent
|
|
122
122
|
*/
|
|
123
|
-
DeviceUsage.prototype[
|
|
123
|
+
DeviceUsage.prototype['bytes_sent'] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {Number} bytes_sent_secondary
|
|
127
127
|
*/
|
|
128
|
-
DeviceUsage.prototype[
|
|
128
|
+
DeviceUsage.prototype['bytes_sent_secondary'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Duration in seconds
|
|
132
132
|
* @member {Number} duration
|
|
133
133
|
*/
|
|
134
|
-
DeviceUsage.prototype[
|
|
134
|
+
DeviceUsage.prototype['duration'] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* @member {Number} notes_rcvd
|
|
138
138
|
*/
|
|
139
|
-
DeviceUsage.prototype[
|
|
139
|
+
DeviceUsage.prototype['notes_rcvd'] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* @member {Number} notes_sent
|
|
143
143
|
*/
|
|
144
|
-
DeviceUsage.prototype[
|
|
144
|
+
DeviceUsage.prototype['notes_sent'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* @member {Number} sessions_tcp
|
|
148
148
|
*/
|
|
149
|
-
DeviceUsage.prototype[
|
|
149
|
+
DeviceUsage.prototype['sessions_tcp'] = undefined;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @member {Number} sessions_tls
|
|
153
153
|
*/
|
|
154
|
-
DeviceUsage.prototype[
|
|
154
|
+
DeviceUsage.prototype['sessions_tls'] = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Unix timestamp
|
|
158
158
|
* @member {Number} since
|
|
159
159
|
*/
|
|
160
|
-
DeviceUsage.prototype[
|
|
160
|
+
DeviceUsage.prototype['since'] = undefined;
|
|
161
161
|
var _default = exports["default"] = DeviceUsage;
|
|
@@ -13,7 +13,7 @@ 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.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DfuActionRequest model module.
|
|
28
28
|
* @module model/DfuActionRequest
|
|
29
|
-
* @version
|
|
29
|
+
* @version 4.0.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var DfuActionRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var DfuActionRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DfuActionRequest();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('filename')) {
|
|
63
|
+
obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var DfuActionRequest = /*#__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 `filename` to be a primitive type in the JSON string but got " + data[
|
|
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
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -88,5 +88,5 @@ var DfuActionRequest = /*#__PURE__*/function () {
|
|
|
88
88
|
* The name of the firmware file
|
|
89
89
|
* @member {String} filename
|
|
90
90
|
*/
|
|
91
|
-
DfuActionRequest.prototype[
|
|
91
|
+
DfuActionRequest.prototype['filename'] = undefined;
|
|
92
92
|
var _default = exports["default"] = DfuActionRequest;
|
|
@@ -13,7 +13,7 @@ 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.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -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
|
|
29
|
+
* @version 4.0.0-beta.2
|
|
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;
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,17 +30,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The EnvTreeJsonNode model module.
|
|
32
32
|
* @module model/EnvTreeJsonNode
|
|
33
|
-
* @version
|
|
33
|
+
* @version 4.0.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>EnvTreeJsonNode</code>.
|
|
38
38
|
* @alias module:model/EnvTreeJsonNode
|
|
39
|
-
* @param children {Array.<module:model/EnvTreeJsonNode>}
|
|
40
|
-
* @param inheritedVarCount {Number}
|
|
41
|
-
* @param type {String}
|
|
42
|
-
* @param varCount {Number}
|
|
43
|
-
* @param variables {Array.<module:model/EnvVar>}
|
|
39
|
+
* @param children {Array.<module:model/EnvTreeJsonNode>}
|
|
40
|
+
* @param inheritedVarCount {Number}
|
|
41
|
+
* @param type {String}
|
|
42
|
+
* @param varCount {Number}
|
|
43
|
+
* @param variables {Array.<module:model/EnvVar>}
|
|
44
44
|
*/
|
|
45
45
|
function EnvTreeJsonNode(children, inheritedVarCount, type, varCount, variables) {
|
|
46
46
|
_classCallCheck(this, EnvTreeJsonNode);
|
|
@@ -55,11 +55,11 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
55
55
|
return _createClass(EnvTreeJsonNode, null, [{
|
|
56
56
|
key: "initialize",
|
|
57
57
|
value: function initialize(obj, children, inheritedVarCount, type, varCount, variables) {
|
|
58
|
-
obj[
|
|
59
|
-
obj[
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
58
|
+
obj['children'] = children;
|
|
59
|
+
obj['inherited_var_count'] = inheritedVarCount;
|
|
60
|
+
obj['type'] = type;
|
|
61
|
+
obj['var_count'] = varCount;
|
|
62
|
+
obj['variables'] = variables;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -74,38 +74,38 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
74
74
|
value: function constructFromObject(data, obj) {
|
|
75
75
|
if (data) {
|
|
76
76
|
obj = obj || new EnvTreeJsonNode();
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('app_label')) {
|
|
78
|
+
obj['app_label'] = _ApiClient["default"].convertToType(data['app_label'], 'String');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('app_uid')) {
|
|
81
|
+
obj['app_uid'] = _ApiClient["default"].convertToType(data['app_uid'], 'String');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('children')) {
|
|
84
|
+
obj['children'] = _ApiClient["default"].convertToType(data['children'], [EnvTreeJsonNode]);
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty('device_uid')) {
|
|
87
|
+
obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty('fleet_label')) {
|
|
90
|
+
obj['fleet_label'] = _ApiClient["default"].convertToType(data['fleet_label'], 'String');
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty('fleet_uid')) {
|
|
93
|
+
obj['fleet_uid'] = _ApiClient["default"].convertToType(data['fleet_uid'], 'String');
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty('inherited_var_count')) {
|
|
96
|
+
obj['inherited_var_count'] = _ApiClient["default"].convertToType(data['inherited_var_count'], 'Number');
|
|
97
97
|
}
|
|
98
|
-
if (data.hasOwnProperty(
|
|
99
|
-
obj[
|
|
98
|
+
if (data.hasOwnProperty('type')) {
|
|
99
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
100
100
|
}
|
|
101
|
-
if (data.hasOwnProperty(
|
|
102
|
-
obj[
|
|
101
|
+
if (data.hasOwnProperty('url')) {
|
|
102
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
103
103
|
}
|
|
104
|
-
if (data.hasOwnProperty(
|
|
105
|
-
obj[
|
|
104
|
+
if (data.hasOwnProperty('var_count')) {
|
|
105
|
+
obj['var_count'] = _ApiClient["default"].convertToType(data['var_count'], 'Number');
|
|
106
106
|
}
|
|
107
|
-
if (data.hasOwnProperty(
|
|
108
|
-
obj[
|
|
107
|
+
if (data.hasOwnProperty('variables')) {
|
|
108
|
+
obj['variables'] = _ApiClient["default"].convertToType(data['variables'], [_EnvVar["default"]]);
|
|
109
109
|
}
|
|
110
110
|
} else if (data === null) {
|
|
111
111
|
return null;
|
|
@@ -137,21 +137,21 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
137
137
|
} finally {
|
|
138
138
|
_iterator.f();
|
|
139
139
|
}
|
|
140
|
-
if (data[
|
|
141
|
-
throw new Error("Expected the field `app_label` to be a primitive type in the JSON string but got " + data[
|
|
140
|
+
if (data['app_label'] && !(typeof data['app_label'] === 'string' || data['app_label'] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `app_label` to be a primitive type in the JSON string but got " + data['app_label']);
|
|
142
142
|
}
|
|
143
143
|
// ensure the json data is a string
|
|
144
|
-
if (data[
|
|
145
|
-
throw new Error("Expected the field `app_uid` to be a primitive type in the JSON string but got " + data[
|
|
144
|
+
if (data['app_uid'] && !(typeof data['app_uid'] === 'string' || data['app_uid'] instanceof String)) {
|
|
145
|
+
throw new Error("Expected the field `app_uid` to be a primitive type in the JSON string but got " + data['app_uid']);
|
|
146
146
|
}
|
|
147
|
-
if (data[
|
|
147
|
+
if (data['children']) {
|
|
148
148
|
// data not null
|
|
149
149
|
// ensure the json data is an array
|
|
150
|
-
if (!Array.isArray(data[
|
|
151
|
-
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data[
|
|
150
|
+
if (!Array.isArray(data['children'])) {
|
|
151
|
+
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data['children']);
|
|
152
152
|
}
|
|
153
153
|
// validate the optional field `children` (array)
|
|
154
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
154
|
+
var _iterator2 = _createForOfIteratorHelper(data['children']),
|
|
155
155
|
_step2;
|
|
156
156
|
try {
|
|
157
157
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -163,35 +163,36 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
163
163
|
} finally {
|
|
164
164
|
_iterator2.f();
|
|
165
165
|
}
|
|
166
|
+
;
|
|
166
167
|
}
|
|
167
168
|
// ensure the json data is a string
|
|
168
|
-
if (data[
|
|
169
|
-
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data[
|
|
169
|
+
if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
|
|
170
|
+
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
|
|
170
171
|
}
|
|
171
172
|
// ensure the json data is a string
|
|
172
|
-
if (data[
|
|
173
|
-
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data[
|
|
173
|
+
if (data['fleet_label'] && !(typeof data['fleet_label'] === 'string' || data['fleet_label'] instanceof String)) {
|
|
174
|
+
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data['fleet_label']);
|
|
174
175
|
}
|
|
175
176
|
// ensure the json data is a string
|
|
176
|
-
if (data[
|
|
177
|
-
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data[
|
|
177
|
+
if (data['fleet_uid'] && !(typeof data['fleet_uid'] === 'string' || data['fleet_uid'] instanceof String)) {
|
|
178
|
+
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data['fleet_uid']);
|
|
178
179
|
}
|
|
179
180
|
// ensure the json data is a string
|
|
180
|
-
if (data[
|
|
181
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
181
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
182
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
182
183
|
}
|
|
183
184
|
// ensure the json data is a string
|
|
184
|
-
if (data[
|
|
185
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
185
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
186
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
186
187
|
}
|
|
187
|
-
if (data[
|
|
188
|
+
if (data['variables']) {
|
|
188
189
|
// data not null
|
|
189
190
|
// ensure the json data is an array
|
|
190
|
-
if (!Array.isArray(data[
|
|
191
|
-
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data[
|
|
191
|
+
if (!Array.isArray(data['variables'])) {
|
|
192
|
+
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data['variables']);
|
|
192
193
|
}
|
|
193
194
|
// validate the optional field `variables` (array)
|
|
194
|
-
var _iterator3 = _createForOfIteratorHelper(data[
|
|
195
|
+
var _iterator3 = _createForOfIteratorHelper(data['variables']),
|
|
195
196
|
_step3;
|
|
196
197
|
try {
|
|
197
198
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -203,6 +204,7 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
203
204
|
} finally {
|
|
204
205
|
_iterator3.f();
|
|
205
206
|
}
|
|
207
|
+
;
|
|
206
208
|
}
|
|
207
209
|
return true;
|
|
208
210
|
}
|
|
@@ -213,55 +215,55 @@ EnvTreeJsonNode.RequiredProperties = ["children", "inherited_var_count", "type",
|
|
|
213
215
|
/**
|
|
214
216
|
* @member {String} app_label
|
|
215
217
|
*/
|
|
216
|
-
EnvTreeJsonNode.prototype[
|
|
218
|
+
EnvTreeJsonNode.prototype['app_label'] = undefined;
|
|
217
219
|
|
|
218
220
|
/**
|
|
219
221
|
* @member {String} app_uid
|
|
220
222
|
*/
|
|
221
|
-
EnvTreeJsonNode.prototype[
|
|
223
|
+
EnvTreeJsonNode.prototype['app_uid'] = undefined;
|
|
222
224
|
|
|
223
225
|
/**
|
|
224
226
|
* @member {Array.<module:model/EnvTreeJsonNode>} children
|
|
225
227
|
*/
|
|
226
|
-
EnvTreeJsonNode.prototype[
|
|
228
|
+
EnvTreeJsonNode.prototype['children'] = undefined;
|
|
227
229
|
|
|
228
230
|
/**
|
|
229
231
|
* @member {String} device_uid
|
|
230
232
|
*/
|
|
231
|
-
EnvTreeJsonNode.prototype[
|
|
233
|
+
EnvTreeJsonNode.prototype['device_uid'] = undefined;
|
|
232
234
|
|
|
233
235
|
/**
|
|
234
236
|
* @member {String} fleet_label
|
|
235
237
|
*/
|
|
236
|
-
EnvTreeJsonNode.prototype[
|
|
238
|
+
EnvTreeJsonNode.prototype['fleet_label'] = undefined;
|
|
237
239
|
|
|
238
240
|
/**
|
|
239
241
|
* @member {String} fleet_uid
|
|
240
242
|
*/
|
|
241
|
-
EnvTreeJsonNode.prototype[
|
|
243
|
+
EnvTreeJsonNode.prototype['fleet_uid'] = undefined;
|
|
242
244
|
|
|
243
245
|
/**
|
|
244
246
|
* @member {Number} inherited_var_count
|
|
245
247
|
*/
|
|
246
|
-
EnvTreeJsonNode.prototype[
|
|
248
|
+
EnvTreeJsonNode.prototype['inherited_var_count'] = undefined;
|
|
247
249
|
|
|
248
250
|
/**
|
|
249
251
|
* @member {String} type
|
|
250
252
|
*/
|
|
251
|
-
EnvTreeJsonNode.prototype[
|
|
253
|
+
EnvTreeJsonNode.prototype['type'] = undefined;
|
|
252
254
|
|
|
253
255
|
/**
|
|
254
256
|
* @member {String} url
|
|
255
257
|
*/
|
|
256
|
-
EnvTreeJsonNode.prototype[
|
|
258
|
+
EnvTreeJsonNode.prototype['url'] = undefined;
|
|
257
259
|
|
|
258
260
|
/**
|
|
259
261
|
* @member {Number} var_count
|
|
260
262
|
*/
|
|
261
|
-
EnvTreeJsonNode.prototype[
|
|
263
|
+
EnvTreeJsonNode.prototype['var_count'] = undefined;
|
|
262
264
|
|
|
263
265
|
/**
|
|
264
266
|
* @member {Array.<module:model/EnvVar>} variables
|
|
265
267
|
*/
|
|
266
|
-
EnvTreeJsonNode.prototype[
|
|
268
|
+
EnvTreeJsonNode.prototype['variables'] = undefined;
|
|
267
269
|
var _default = exports["default"] = EnvTreeJsonNode;
|