@blues-inc/notehub-js 1.0.36-beta.9 → 1.0.37
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 +227 -241
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +362 -362
- 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 +370 -370
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -7
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AnalyticsEventsData.js +17 -17
- package/dist/model/AnalyticsEventsResponse.js +11 -12
- package/dist/model/AnalyticsRouteLogsData.js +22 -22
- package/dist/model/AnalyticsRouteLogsResponse.js +11 -12
- package/dist/model/AnalyticsSessionsData.js +22 -22
- package/dist/model/AnalyticsSessionsResponse.js +11 -12
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +125 -126
- 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/DataSet.js +29 -30
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +101 -102
- package/dist/model/DeviceDfuHistory.js +19 -20
- 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/DeviceDfuStatusCurrent.js +32 -32
- 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/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectFleets200Response.js +11 -12
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- 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 +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PersonalAccessToken.js +40 -31
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +24 -15
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/SchemaProperty.js +38 -40
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- 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/api/ApiAccessApi.js +0 -238
|
@@ -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 1.0.
|
|
29
|
+
* @version 1.0.37
|
|
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,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 1.0.
|
|
29
|
+
* @version 1.0.37
|
|
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("notes_sent")) {
|
|
90
|
+
obj["notes_sent"] = _ApiClient["default"].convertToType(data["notes_sent"], "Number");
|
|
91
91
|
}
|
|
92
92
|
} else if (data === null) {
|
|
93
93
|
return null;
|
|
@@ -111,51 +111,51 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
111
111
|
* Unix timestamp
|
|
112
112
|
* @member {Number} since
|
|
113
113
|
*/
|
|
114
|
-
DeviceUsage.prototype[
|
|
114
|
+
DeviceUsage.prototype["since"] = undefined;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Duration in seconds
|
|
118
118
|
* @member {Number} duration
|
|
119
119
|
*/
|
|
120
|
-
DeviceUsage.prototype[
|
|
120
|
+
DeviceUsage.prototype["duration"] = undefined;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* @member {Number} bytes_rcvd
|
|
124
124
|
*/
|
|
125
|
-
DeviceUsage.prototype[
|
|
125
|
+
DeviceUsage.prototype["bytes_rcvd"] = undefined;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* @member {Number} bytes_sent
|
|
129
129
|
*/
|
|
130
|
-
DeviceUsage.prototype[
|
|
130
|
+
DeviceUsage.prototype["bytes_sent"] = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* @member {Number} bytes_rcvd_secondary
|
|
134
134
|
*/
|
|
135
|
-
DeviceUsage.prototype[
|
|
135
|
+
DeviceUsage.prototype["bytes_rcvd_secondary"] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* @member {Number} bytes_sent_secondary
|
|
139
139
|
*/
|
|
140
|
-
DeviceUsage.prototype[
|
|
140
|
+
DeviceUsage.prototype["bytes_sent_secondary"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {Number} sessions_tcp
|
|
144
144
|
*/
|
|
145
|
-
DeviceUsage.prototype[
|
|
145
|
+
DeviceUsage.prototype["sessions_tcp"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {Number} sessions_tls
|
|
149
149
|
*/
|
|
150
|
-
DeviceUsage.prototype[
|
|
150
|
+
DeviceUsage.prototype["sessions_tls"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Number} notes_rcvd
|
|
154
154
|
*/
|
|
155
|
-
DeviceUsage.prototype[
|
|
155
|
+
DeviceUsage.prototype["notes_rcvd"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {Number} notes_sent
|
|
159
159
|
*/
|
|
160
|
-
DeviceUsage.prototype[
|
|
160
|
+
DeviceUsage.prototype["notes_sent"] = 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 1.0.
|
|
29
|
+
* @version 1.0.37
|
|
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 1.0.
|
|
29
|
+
* @version 1.0.37
|
|
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 1.0.
|
|
33
|
+
* @version 1.0.37
|
|
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 varCount {Number}
|
|
40
|
-
* @param inheritedVarCount {Number}
|
|
41
|
-
* @param type {String}
|
|
42
|
-
* @param variables {Array.<module:model/EnvVar>}
|
|
43
|
-
* @param children {Array.<module:model/EnvTreeJsonNode>}
|
|
39
|
+
* @param varCount {Number}
|
|
40
|
+
* @param inheritedVarCount {Number}
|
|
41
|
+
* @param type {String}
|
|
42
|
+
* @param variables {Array.<module:model/EnvVar>}
|
|
43
|
+
* @param children {Array.<module:model/EnvTreeJsonNode>}
|
|
44
44
|
*/
|
|
45
45
|
function EnvTreeJsonNode(varCount, inheritedVarCount, type, variables, children) {
|
|
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, varCount, inheritedVarCount, type, variables, children) {
|
|
58
|
-
obj[
|
|
59
|
-
obj[
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
58
|
+
obj["var_count"] = varCount;
|
|
59
|
+
obj["inherited_var_count"] = inheritedVarCount;
|
|
60
|
+
obj["type"] = type;
|
|
61
|
+
obj["variables"] = variables;
|
|
62
|
+
obj["children"] = children;
|
|
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("var_count")) {
|
|
78
|
+
obj["var_count"] = _ApiClient["default"].convertToType(data["var_count"], "Number");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("inherited_var_count")) {
|
|
81
|
+
obj["inherited_var_count"] = _ApiClient["default"].convertToType(data["inherited_var_count"], "Number");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("type")) {
|
|
84
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("variables")) {
|
|
87
|
+
obj["variables"] = _ApiClient["default"].convertToType(data["variables"], [_EnvVar["default"]]);
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("children")) {
|
|
90
|
+
obj["children"] = _ApiClient["default"].convertToType(data["children"], [EnvTreeJsonNode]);
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty("device_uid")) {
|
|
93
|
+
obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty("fleet_label")) {
|
|
96
|
+
obj["fleet_label"] = _ApiClient["default"].convertToType(data["fleet_label"], "String");
|
|
97
97
|
}
|
|
98
|
-
if (data.hasOwnProperty(
|
|
99
|
-
obj[
|
|
98
|
+
if (data.hasOwnProperty("fleet_uid")) {
|
|
99
|
+
obj["fleet_uid"] = _ApiClient["default"].convertToType(data["fleet_uid"], "String");
|
|
100
100
|
}
|
|
101
|
-
if (data.hasOwnProperty(
|
|
102
|
-
obj[
|
|
101
|
+
if (data.hasOwnProperty("app_uid")) {
|
|
102
|
+
obj["app_uid"] = _ApiClient["default"].convertToType(data["app_uid"], "String");
|
|
103
103
|
}
|
|
104
|
-
if (data.hasOwnProperty(
|
|
105
|
-
obj[
|
|
104
|
+
if (data.hasOwnProperty("app_label")) {
|
|
105
|
+
obj["app_label"] = _ApiClient["default"].convertToType(data["app_label"], "String");
|
|
106
106
|
}
|
|
107
|
-
if (data.hasOwnProperty(
|
|
108
|
-
obj[
|
|
107
|
+
if (data.hasOwnProperty("url")) {
|
|
108
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
109
109
|
}
|
|
110
110
|
} else if (data === null) {
|
|
111
111
|
return null;
|
|
@@ -137,17 +137,17 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
137
137
|
} finally {
|
|
138
138
|
_iterator.f();
|
|
139
139
|
}
|
|
140
|
-
if (data[
|
|
141
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
140
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
142
142
|
}
|
|
143
|
-
if (data[
|
|
143
|
+
if (data["variables"]) {
|
|
144
144
|
// data not null
|
|
145
145
|
// ensure the json data is an array
|
|
146
|
-
if (!Array.isArray(data[
|
|
147
|
-
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data[
|
|
146
|
+
if (!Array.isArray(data["variables"])) {
|
|
147
|
+
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data["variables"]);
|
|
148
148
|
}
|
|
149
149
|
// validate the optional field `variables` (array)
|
|
150
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
150
|
+
var _iterator2 = _createForOfIteratorHelper(data["variables"]),
|
|
151
151
|
_step2;
|
|
152
152
|
try {
|
|
153
153
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -159,16 +159,15 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
159
159
|
} finally {
|
|
160
160
|
_iterator2.f();
|
|
161
161
|
}
|
|
162
|
-
;
|
|
163
162
|
}
|
|
164
|
-
if (data[
|
|
163
|
+
if (data["children"]) {
|
|
165
164
|
// data not null
|
|
166
165
|
// ensure the json data is an array
|
|
167
|
-
if (!Array.isArray(data[
|
|
168
|
-
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data[
|
|
166
|
+
if (!Array.isArray(data["children"])) {
|
|
167
|
+
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data["children"]);
|
|
169
168
|
}
|
|
170
169
|
// validate the optional field `children` (array)
|
|
171
|
-
var _iterator3 = _createForOfIteratorHelper(data[
|
|
170
|
+
var _iterator3 = _createForOfIteratorHelper(data["children"]),
|
|
172
171
|
_step3;
|
|
173
172
|
try {
|
|
174
173
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -180,31 +179,30 @@ var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
|
180
179
|
} finally {
|
|
181
180
|
_iterator3.f();
|
|
182
181
|
}
|
|
183
|
-
;
|
|
184
182
|
}
|
|
185
183
|
// ensure the json data is a string
|
|
186
|
-
if (data[
|
|
187
|
-
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data[
|
|
184
|
+
if (data["device_uid"] && !(typeof data["device_uid"] === "string" || data["device_uid"] instanceof String)) {
|
|
185
|
+
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data["device_uid"]);
|
|
188
186
|
}
|
|
189
187
|
// ensure the json data is a string
|
|
190
|
-
if (data[
|
|
191
|
-
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data[
|
|
188
|
+
if (data["fleet_label"] && !(typeof data["fleet_label"] === "string" || data["fleet_label"] instanceof String)) {
|
|
189
|
+
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data["fleet_label"]);
|
|
192
190
|
}
|
|
193
191
|
// ensure the json data is a string
|
|
194
|
-
if (data[
|
|
195
|
-
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data[
|
|
192
|
+
if (data["fleet_uid"] && !(typeof data["fleet_uid"] === "string" || data["fleet_uid"] instanceof String)) {
|
|
193
|
+
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data["fleet_uid"]);
|
|
196
194
|
}
|
|
197
195
|
// ensure the json data is a string
|
|
198
|
-
if (data[
|
|
199
|
-
throw new Error("Expected the field `app_uid` to be a primitive type in the JSON string but got " + data[
|
|
196
|
+
if (data["app_uid"] && !(typeof data["app_uid"] === "string" || data["app_uid"] instanceof String)) {
|
|
197
|
+
throw new Error("Expected the field `app_uid` to be a primitive type in the JSON string but got " + data["app_uid"]);
|
|
200
198
|
}
|
|
201
199
|
// ensure the json data is a string
|
|
202
|
-
if (data[
|
|
203
|
-
throw new Error("Expected the field `app_label` to be a primitive type in the JSON string but got " + data[
|
|
200
|
+
if (data["app_label"] && !(typeof data["app_label"] === "string" || data["app_label"] instanceof String)) {
|
|
201
|
+
throw new Error("Expected the field `app_label` to be a primitive type in the JSON string but got " + data["app_label"]);
|
|
204
202
|
}
|
|
205
203
|
// ensure the json data is a string
|
|
206
|
-
if (data[
|
|
207
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
204
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
205
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
208
206
|
}
|
|
209
207
|
return true;
|
|
210
208
|
}
|
|
@@ -215,55 +213,55 @@ EnvTreeJsonNode.RequiredProperties = ["var_count", "inherited_var_count", "type"
|
|
|
215
213
|
/**
|
|
216
214
|
* @member {Number} var_count
|
|
217
215
|
*/
|
|
218
|
-
EnvTreeJsonNode.prototype[
|
|
216
|
+
EnvTreeJsonNode.prototype["var_count"] = undefined;
|
|
219
217
|
|
|
220
218
|
/**
|
|
221
219
|
* @member {Number} inherited_var_count
|
|
222
220
|
*/
|
|
223
|
-
EnvTreeJsonNode.prototype[
|
|
221
|
+
EnvTreeJsonNode.prototype["inherited_var_count"] = undefined;
|
|
224
222
|
|
|
225
223
|
/**
|
|
226
224
|
* @member {String} type
|
|
227
225
|
*/
|
|
228
|
-
EnvTreeJsonNode.prototype[
|
|
226
|
+
EnvTreeJsonNode.prototype["type"] = undefined;
|
|
229
227
|
|
|
230
228
|
/**
|
|
231
229
|
* @member {Array.<module:model/EnvVar>} variables
|
|
232
230
|
*/
|
|
233
|
-
EnvTreeJsonNode.prototype[
|
|
231
|
+
EnvTreeJsonNode.prototype["variables"] = undefined;
|
|
234
232
|
|
|
235
233
|
/**
|
|
236
234
|
* @member {Array.<module:model/EnvTreeJsonNode>} children
|
|
237
235
|
*/
|
|
238
|
-
EnvTreeJsonNode.prototype[
|
|
236
|
+
EnvTreeJsonNode.prototype["children"] = undefined;
|
|
239
237
|
|
|
240
238
|
/**
|
|
241
239
|
* @member {String} device_uid
|
|
242
240
|
*/
|
|
243
|
-
EnvTreeJsonNode.prototype[
|
|
241
|
+
EnvTreeJsonNode.prototype["device_uid"] = undefined;
|
|
244
242
|
|
|
245
243
|
/**
|
|
246
244
|
* @member {String} fleet_label
|
|
247
245
|
*/
|
|
248
|
-
EnvTreeJsonNode.prototype[
|
|
246
|
+
EnvTreeJsonNode.prototype["fleet_label"] = undefined;
|
|
249
247
|
|
|
250
248
|
/**
|
|
251
249
|
* @member {String} fleet_uid
|
|
252
250
|
*/
|
|
253
|
-
EnvTreeJsonNode.prototype[
|
|
251
|
+
EnvTreeJsonNode.prototype["fleet_uid"] = undefined;
|
|
254
252
|
|
|
255
253
|
/**
|
|
256
254
|
* @member {String} app_uid
|
|
257
255
|
*/
|
|
258
|
-
EnvTreeJsonNode.prototype[
|
|
256
|
+
EnvTreeJsonNode.prototype["app_uid"] = undefined;
|
|
259
257
|
|
|
260
258
|
/**
|
|
261
259
|
* @member {String} app_label
|
|
262
260
|
*/
|
|
263
|
-
EnvTreeJsonNode.prototype[
|
|
261
|
+
EnvTreeJsonNode.prototype["app_label"] = undefined;
|
|
264
262
|
|
|
265
263
|
/**
|
|
266
264
|
* @member {String} url
|
|
267
265
|
*/
|
|
268
|
-
EnvTreeJsonNode.prototype[
|
|
266
|
+
EnvTreeJsonNode.prototype["url"] = undefined;
|
|
269
267
|
var _default = exports["default"] = EnvTreeJsonNode;
|