@blues-inc/notehub-js 4.0.0-beta.4 → 4.0.0
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 +248 -247
- package/dist/ApiClient.js +155 -150
- 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 +379 -387
- 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 +62 -65
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -40
- 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 +20 -20
- package/dist/model/CreateMonitor.js +131 -139
- 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 +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- 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 +67 -69
- 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 +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +40 -50
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +11 -12
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- 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 -106
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- 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 +36 -38
- 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 +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +37 -37
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +32 -32
- 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
|
@@ -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 4.0.0
|
|
29
|
+
* @version 4.0.0
|
|
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 4.0.0
|
|
29
|
+
* @version 4.0.0
|
|
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 4.0.0
|
|
29
|
+
* @version 4.0.0
|
|
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 4.0.0
|
|
29
|
+
* @version 4.0.0
|
|
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 4.0.0
|
|
33
|
+
* @version 4.0.0
|
|
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,36 +163,35 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
163
163
|
} finally {
|
|
164
164
|
_iterator2.f();
|
|
165
165
|
}
|
|
166
|
-
;
|
|
167
166
|
}
|
|
168
167
|
// ensure the json data is a string
|
|
169
|
-
if (data[
|
|
170
|
-
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data[
|
|
168
|
+
if (data["device_uid"] && !(typeof data["device_uid"] === "string" || data["device_uid"] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data["device_uid"]);
|
|
171
170
|
}
|
|
172
171
|
// ensure the json data is a string
|
|
173
|
-
if (data[
|
|
174
|
-
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data[
|
|
172
|
+
if (data["fleet_label"] && !(typeof data["fleet_label"] === "string" || data["fleet_label"] instanceof String)) {
|
|
173
|
+
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data["fleet_label"]);
|
|
175
174
|
}
|
|
176
175
|
// ensure the json data is a string
|
|
177
|
-
if (data[
|
|
178
|
-
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data[
|
|
176
|
+
if (data["fleet_uid"] && !(typeof data["fleet_uid"] === "string" || data["fleet_uid"] instanceof String)) {
|
|
177
|
+
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data["fleet_uid"]);
|
|
179
178
|
}
|
|
180
179
|
// ensure the json data is a string
|
|
181
|
-
if (data[
|
|
182
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
180
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
181
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
183
182
|
}
|
|
184
183
|
// ensure the json data is a string
|
|
185
|
-
if (data[
|
|
186
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
184
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
185
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
187
186
|
}
|
|
188
|
-
if (data[
|
|
187
|
+
if (data["variables"]) {
|
|
189
188
|
// data not null
|
|
190
189
|
// ensure the json data is an array
|
|
191
|
-
if (!Array.isArray(data[
|
|
192
|
-
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data[
|
|
190
|
+
if (!Array.isArray(data["variables"])) {
|
|
191
|
+
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data["variables"]);
|
|
193
192
|
}
|
|
194
193
|
// validate the optional field `variables` (array)
|
|
195
|
-
var _iterator3 = _createForOfIteratorHelper(data[
|
|
194
|
+
var _iterator3 = _createForOfIteratorHelper(data["variables"]),
|
|
196
195
|
_step3;
|
|
197
196
|
try {
|
|
198
197
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -204,7 +203,6 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
204
203
|
} finally {
|
|
205
204
|
_iterator3.f();
|
|
206
205
|
}
|
|
207
|
-
;
|
|
208
206
|
}
|
|
209
207
|
return true;
|
|
210
208
|
}
|
|
@@ -215,55 +213,55 @@ EnvTreeJsonNode.RequiredProperties = ["children", "inherited_var_count", "type",
|
|
|
215
213
|
/**
|
|
216
214
|
* @member {String} app_label
|
|
217
215
|
*/
|
|
218
|
-
EnvTreeJsonNode.prototype[
|
|
216
|
+
EnvTreeJsonNode.prototype["app_label"] = undefined;
|
|
219
217
|
|
|
220
218
|
/**
|
|
221
219
|
* @member {String} app_uid
|
|
222
220
|
*/
|
|
223
|
-
EnvTreeJsonNode.prototype[
|
|
221
|
+
EnvTreeJsonNode.prototype["app_uid"] = undefined;
|
|
224
222
|
|
|
225
223
|
/**
|
|
226
224
|
* @member {Array.<module:model/EnvTreeJsonNode>} children
|
|
227
225
|
*/
|
|
228
|
-
EnvTreeJsonNode.prototype[
|
|
226
|
+
EnvTreeJsonNode.prototype["children"] = undefined;
|
|
229
227
|
|
|
230
228
|
/**
|
|
231
229
|
* @member {String} device_uid
|
|
232
230
|
*/
|
|
233
|
-
EnvTreeJsonNode.prototype[
|
|
231
|
+
EnvTreeJsonNode.prototype["device_uid"] = undefined;
|
|
234
232
|
|
|
235
233
|
/**
|
|
236
234
|
* @member {String} fleet_label
|
|
237
235
|
*/
|
|
238
|
-
EnvTreeJsonNode.prototype[
|
|
236
|
+
EnvTreeJsonNode.prototype["fleet_label"] = undefined;
|
|
239
237
|
|
|
240
238
|
/**
|
|
241
239
|
* @member {String} fleet_uid
|
|
242
240
|
*/
|
|
243
|
-
EnvTreeJsonNode.prototype[
|
|
241
|
+
EnvTreeJsonNode.prototype["fleet_uid"] = undefined;
|
|
244
242
|
|
|
245
243
|
/**
|
|
246
244
|
* @member {Number} inherited_var_count
|
|
247
245
|
*/
|
|
248
|
-
EnvTreeJsonNode.prototype[
|
|
246
|
+
EnvTreeJsonNode.prototype["inherited_var_count"] = undefined;
|
|
249
247
|
|
|
250
248
|
/**
|
|
251
249
|
* @member {String} type
|
|
252
250
|
*/
|
|
253
|
-
EnvTreeJsonNode.prototype[
|
|
251
|
+
EnvTreeJsonNode.prototype["type"] = undefined;
|
|
254
252
|
|
|
255
253
|
/**
|
|
256
254
|
* @member {String} url
|
|
257
255
|
*/
|
|
258
|
-
EnvTreeJsonNode.prototype[
|
|
256
|
+
EnvTreeJsonNode.prototype["url"] = undefined;
|
|
259
257
|
|
|
260
258
|
/**
|
|
261
259
|
* @member {Number} var_count
|
|
262
260
|
*/
|
|
263
|
-
EnvTreeJsonNode.prototype[
|
|
261
|
+
EnvTreeJsonNode.prototype["var_count"] = undefined;
|
|
264
262
|
|
|
265
263
|
/**
|
|
266
264
|
* @member {Array.<module:model/EnvVar>} variables
|
|
267
265
|
*/
|
|
268
|
-
EnvTreeJsonNode.prototype[
|
|
266
|
+
EnvTreeJsonNode.prototype["variables"] = undefined;
|
|
269
267
|
var _default = exports["default"] = EnvTreeJsonNode;
|