@blues-inc/notehub-js 6.2.0-beta.1 → 6.2.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 +293 -288
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +28 -28
- package/dist/api/DeviceApi.js +354 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +74 -127
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +618 -432
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +28 -0
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- 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/CancelJobRun200Response.js +6 -6
- 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/CreateJob201Response.js +8 -8
- package/dist/model/CreateMonitor.js +127 -128
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateProjectSecretRequest.js +130 -0
- 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/DeleteJob200Response.js +6 -6
- 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 +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +9 -10
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +12 -13
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
- 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/GetJobRuns200Response.js +11 -12
- package/dist/model/GetJobs200Response.js +11 -12
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectSecretsResponse.js +131 -0
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +14 -15
- package/dist/model/GetSessionsUsage200Response.js +15 -16
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +28 -59
- package/dist/model/JobRun.js +57 -57
- 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 +101 -102
- 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/ProjectSecret.js +164 -0
- 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/RunJob200Response.js +8 -8
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- 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/UpdateHostFirmwareRequest.js +17 -17
- package/dist/model/UpdateProjectSecretRequest.js +115 -0
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +14 -15
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- 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
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The TwilioRoute model module.
|
|
29
29
|
* @module model/TwilioRoute
|
|
30
|
-
* @version 6.2.0-beta.
|
|
30
|
+
* @version 6.2.0-beta.2
|
|
31
31
|
*/
|
|
32
32
|
var TwilioRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,32 +60,32 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new TwilioRoute();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("account_sid")) {
|
|
64
|
+
obj["account_sid"] = _ApiClient["default"].convertToType(data["account_sid"], "String");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("auth_token")) {
|
|
67
|
+
obj["auth_token"] = _ApiClient["default"].convertToType(data["auth_token"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("filter")) {
|
|
70
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("fleets")) {
|
|
73
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("from")) {
|
|
76
|
+
obj["from"] = _ApiClient["default"].convertToType(data["from"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("message")) {
|
|
79
|
+
obj["message"] = _ApiClient["default"].convertToType(data["message"], "String");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
82
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("timeout")) {
|
|
85
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("to")) {
|
|
88
|
+
obj["to"] = _ApiClient["default"].convertToType(data["to"], "String");
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -102,33 +102,33 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
102
102
|
key: "validateJSON",
|
|
103
103
|
value: function validateJSON(data) {
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data["account_sid"] && !(typeof data["account_sid"] === "string" || data["account_sid"] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data["account_sid"]);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is a string
|
|
109
|
-
if (data[
|
|
110
|
-
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data[
|
|
109
|
+
if (data["auth_token"] && !(typeof data["auth_token"] === "string" || data["auth_token"] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data["auth_token"]);
|
|
111
111
|
}
|
|
112
112
|
// validate the optional field `filter`
|
|
113
|
-
if (data[
|
|
113
|
+
if (data["filter"]) {
|
|
114
114
|
// data not null
|
|
115
|
-
_Filter["default"].validateJSON(data[
|
|
115
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is an array
|
|
118
|
-
if (!Array.isArray(data[
|
|
119
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
118
|
+
if (!Array.isArray(data["fleets"])) {
|
|
119
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
120
120
|
}
|
|
121
121
|
// ensure the json data is a string
|
|
122
|
-
if (data[
|
|
123
|
-
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data[
|
|
122
|
+
if (data["from"] && !(typeof data["from"] === "string" || data["from"] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data["from"]);
|
|
124
124
|
}
|
|
125
125
|
// ensure the json data is a string
|
|
126
|
-
if (data[
|
|
127
|
-
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data["message"] && !(typeof data["message"] === "string" || data["message"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data["message"]);
|
|
128
128
|
}
|
|
129
129
|
// ensure the json data is a string
|
|
130
|
-
if (data[
|
|
131
|
-
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data[
|
|
130
|
+
if (data["to"] && !(typeof data["to"] === "string" || data["to"] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data["to"]);
|
|
132
132
|
}
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
@@ -137,45 +137,45 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
137
137
|
/**
|
|
138
138
|
* @member {String} account_sid
|
|
139
139
|
*/
|
|
140
|
-
TwilioRoute.prototype[
|
|
140
|
+
TwilioRoute.prototype["account_sid"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {String} auth_token
|
|
144
144
|
*/
|
|
145
|
-
TwilioRoute.prototype[
|
|
145
|
+
TwilioRoute.prototype["auth_token"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {module:model/Filter} filter
|
|
149
149
|
*/
|
|
150
|
-
TwilioRoute.prototype[
|
|
150
|
+
TwilioRoute.prototype["filter"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Array.<String>} fleets
|
|
154
154
|
*/
|
|
155
|
-
TwilioRoute.prototype[
|
|
155
|
+
TwilioRoute.prototype["fleets"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {String} from
|
|
159
159
|
*/
|
|
160
|
-
TwilioRoute.prototype[
|
|
160
|
+
TwilioRoute.prototype["from"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} message
|
|
164
164
|
*/
|
|
165
|
-
TwilioRoute.prototype[
|
|
165
|
+
TwilioRoute.prototype["message"] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {Number} throttle_ms
|
|
169
169
|
*/
|
|
170
|
-
TwilioRoute.prototype[
|
|
170
|
+
TwilioRoute.prototype["throttle_ms"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* @member {Number} timeout
|
|
174
174
|
*/
|
|
175
|
-
TwilioRoute.prototype[
|
|
175
|
+
TwilioRoute.prototype["timeout"] = undefined;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* @member {String} to
|
|
179
179
|
*/
|
|
180
|
-
TwilioRoute.prototype[
|
|
180
|
+
TwilioRoute.prototype["to"] = undefined;
|
|
181
181
|
var _default = exports["default"] = TwilioRoute;
|
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UpdateFleetRequest model module.
|
|
29
29
|
* @module model/UpdateFleetRequest
|
|
30
|
-
* @version 6.2.0-beta.
|
|
30
|
+
* @version 6.2.0-beta.2
|
|
31
31
|
*/
|
|
32
32
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,26 +60,26 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new UpdateFleetRequest();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("addDevices")) {
|
|
64
|
+
obj["addDevices"] = _ApiClient["default"].convertToType(data["addDevices"], ["String"]);
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("connectivity_assurance")) {
|
|
67
|
+
obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("label")) {
|
|
70
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("removeDevices")) {
|
|
73
|
+
obj["removeDevices"] = _ApiClient["default"].convertToType(data["removeDevices"], ["String"]);
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("smart_rule")) {
|
|
76
|
+
obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("smart_rule_enabled")) {
|
|
79
|
+
obj["smart_rule_enabled"] = _ApiClient["default"].convertToType(data["smart_rule_enabled"], "Boolean");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("watchdog_mins")) {
|
|
82
|
+
obj["watchdog_mins"] = _ApiClient["default"].convertToType(data["watchdog_mins"], "Number");
|
|
83
83
|
}
|
|
84
84
|
} else if (data === null) {
|
|
85
85
|
return null;
|
|
@@ -96,25 +96,25 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
96
96
|
key: "validateJSON",
|
|
97
97
|
value: function validateJSON(data) {
|
|
98
98
|
// ensure the json data is an array
|
|
99
|
-
if (!Array.isArray(data[
|
|
100
|
-
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data[
|
|
99
|
+
if (!Array.isArray(data["addDevices"])) {
|
|
100
|
+
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data["addDevices"]);
|
|
101
101
|
}
|
|
102
102
|
// validate the optional field `connectivity_assurance`
|
|
103
|
-
if (data[
|
|
103
|
+
if (data["connectivity_assurance"]) {
|
|
104
104
|
// data not null
|
|
105
|
-
_FleetConnectivityAssurance["default"].validateJSON(data[
|
|
105
|
+
_FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
|
|
106
106
|
}
|
|
107
107
|
// ensure the json data is a string
|
|
108
|
-
if (data[
|
|
109
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
108
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
110
110
|
}
|
|
111
111
|
// ensure the json data is an array
|
|
112
|
-
if (!Array.isArray(data[
|
|
113
|
-
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data[
|
|
112
|
+
if (!Array.isArray(data["removeDevices"])) {
|
|
113
|
+
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data["removeDevices"]);
|
|
114
114
|
}
|
|
115
115
|
// ensure the json data is a string
|
|
116
|
-
if (data[
|
|
117
|
-
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data[
|
|
116
|
+
if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
|
|
118
118
|
}
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
@@ -124,39 +124,39 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
124
124
|
* List of DeviceUIDs to add to fleet
|
|
125
125
|
* @member {Array.<String>} addDevices
|
|
126
126
|
*/
|
|
127
|
-
UpdateFleetRequest.prototype[
|
|
127
|
+
UpdateFleetRequest.prototype["addDevices"] = undefined;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* @member {module:model/FleetConnectivityAssurance} connectivity_assurance
|
|
131
131
|
*/
|
|
132
|
-
UpdateFleetRequest.prototype[
|
|
132
|
+
UpdateFleetRequest.prototype["connectivity_assurance"] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* The label for the Fleet.
|
|
136
136
|
* @member {String} label
|
|
137
137
|
*/
|
|
138
|
-
UpdateFleetRequest.prototype[
|
|
138
|
+
UpdateFleetRequest.prototype["label"] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* List of DeviceUIDs to remove from fleet
|
|
142
142
|
* @member {Array.<String>} removeDevices
|
|
143
143
|
*/
|
|
144
|
-
UpdateFleetRequest.prototype[
|
|
144
|
+
UpdateFleetRequest.prototype["removeDevices"] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
|
|
148
148
|
* @member {String} smart_rule
|
|
149
149
|
*/
|
|
150
|
-
UpdateFleetRequest.prototype[
|
|
150
|
+
UpdateFleetRequest.prototype["smart_rule"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Boolean} smart_rule_enabled
|
|
154
154
|
*/
|
|
155
|
-
UpdateFleetRequest.prototype[
|
|
155
|
+
UpdateFleetRequest.prototype["smart_rule_enabled"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog
|
|
159
159
|
* @member {Number} watchdog_mins
|
|
160
160
|
*/
|
|
161
|
-
UpdateFleetRequest.prototype[
|
|
161
|
+
UpdateFleetRequest.prototype["watchdog_mins"] = undefined;
|
|
162
162
|
var _default = exports["default"] = UpdateFleetRequest;
|
|
@@ -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,12 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateHostFirmwareRequest model module.
|
|
28
28
|
* @module model/UpdateHostFirmwareRequest
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>UpdateHostFirmwareRequest</code>.
|
|
34
|
-
* Request body for updating host firmware metadata. All fields are optional; only provided fields will be updated.
|
|
34
|
+
* Request body for updating host firmware metadata. All fields are optional; only provided fields will be updated.
|
|
35
35
|
* @alias module:model/UpdateHostFirmwareRequest
|
|
36
36
|
*/
|
|
37
37
|
function UpdateHostFirmwareRequest() {
|
|
@@ -60,16 +60,16 @@ var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new UpdateHostFirmwareRequest();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
65
|
-
|
|
63
|
+
if (data.hasOwnProperty("info")) {
|
|
64
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], {
|
|
65
|
+
String: Object
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("notes")) {
|
|
69
|
+
obj["notes"] = _ApiClient["default"].convertToType(data["notes"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("version")) {
|
|
72
|
+
obj["version"] = _ApiClient["default"].convertToType(data["version"], "String");
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -86,12 +86,12 @@ var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
|
86
86
|
key: "validateJSON",
|
|
87
87
|
value: function validateJSON(data) {
|
|
88
88
|
// ensure the json data is a string
|
|
89
|
-
if (data[
|
|
90
|
-
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data[
|
|
89
|
+
if (data["notes"] && !(typeof data["notes"] === "string" || data["notes"] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data["notes"]);
|
|
91
91
|
}
|
|
92
92
|
// ensure the json data is a string
|
|
93
|
-
if (data[
|
|
94
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data[
|
|
93
|
+
if (data["version"] && !(typeof data["version"] === "string" || data["version"] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data["version"]);
|
|
95
95
|
}
|
|
96
96
|
return true;
|
|
97
97
|
}
|
|
@@ -101,17 +101,17 @@ var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
|
101
101
|
* Arbitrary JSON metadata associated with this firmware entry.
|
|
102
102
|
* @member {Object.<String, Object>} info
|
|
103
103
|
*/
|
|
104
|
-
UpdateHostFirmwareRequest.prototype[
|
|
104
|
+
UpdateHostFirmwareRequest.prototype["info"] = undefined;
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* Notes describing this firmware version.
|
|
108
108
|
* @member {String} notes
|
|
109
109
|
*/
|
|
110
|
-
UpdateHostFirmwareRequest.prototype[
|
|
110
|
+
UpdateHostFirmwareRequest.prototype["notes"] = undefined;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* The firmware version string.
|
|
114
114
|
* @member {String} version
|
|
115
115
|
*/
|
|
116
|
-
UpdateHostFirmwareRequest.prototype[
|
|
116
|
+
UpdateHostFirmwareRequest.prototype["version"] = undefined;
|
|
117
117
|
var _default = exports["default"] = UpdateHostFirmwareRequest;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Notehub API
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
22
|
+
* Contact: engineering@blues.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The UpdateProjectSecretRequest model module.
|
|
31
|
+
* @module model/UpdateProjectSecretRequest
|
|
32
|
+
* @version 6.2.0-beta.2
|
|
33
|
+
*/
|
|
34
|
+
var UpdateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>UpdateProjectSecretRequest</code>.
|
|
37
|
+
* @alias module:model/UpdateProjectSecretRequest
|
|
38
|
+
* @param value {String} The new secret value (encrypted at rest, never returned).
|
|
39
|
+
*/
|
|
40
|
+
function UpdateProjectSecretRequest(value) {
|
|
41
|
+
_classCallCheck(this, UpdateProjectSecretRequest);
|
|
42
|
+
UpdateProjectSecretRequest.initialize(this, value);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(UpdateProjectSecretRequest, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, value) {
|
|
53
|
+
obj["value"] = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>UpdateProjectSecretRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/UpdateProjectSecretRequest} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/UpdateProjectSecretRequest} The populated <code>UpdateProjectSecretRequest</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new UpdateProjectSecretRequest();
|
|
68
|
+
if (data.hasOwnProperty("value")) {
|
|
69
|
+
obj["value"] = _ApiClient["default"].convertToType(data["value"], "String");
|
|
70
|
+
}
|
|
71
|
+
} else if (data === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>UpdateProjectSecretRequest</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateProjectSecretRequest</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(UpdateProjectSecretRequest.RequiredProperties),
|
|
87
|
+
_step;
|
|
88
|
+
try {
|
|
89
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
90
|
+
var property = _step.value;
|
|
91
|
+
if (!data[property]) {
|
|
92
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
if (data["value"] && !(typeof data["value"] === "string" || data["value"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data["value"]);
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
}();
|
|
108
|
+
UpdateProjectSecretRequest.RequiredProperties = ["value"];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The new secret value (encrypted at rest, never returned).
|
|
112
|
+
* @member {String} value
|
|
113
|
+
*/
|
|
114
|
+
UpdateProjectSecretRequest.prototype["value"] = undefined;
|
|
115
|
+
var _default = exports["default"] = UpdateProjectSecretRequest;
|