@blues-inc/notehub-js 6.1.0-beta.20 → 6.1.0-beta.21
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 +290 -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 +584 -511
- 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 +24 -3
- 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/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
- package/dist/model/UpdateHostFirmwareRequest.js +0 -117
|
@@ -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 CreateFleetRequest model module.
|
|
29
29
|
* @module model/CreateFleetRequest
|
|
30
|
-
* @version 6.1.0-beta.
|
|
30
|
+
* @version 6.1.0-beta.21
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,17 +60,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new CreateFleetRequest();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("connectivity_assurance")) {
|
|
64
|
+
obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("label")) {
|
|
67
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("smart_rule")) {
|
|
70
|
+
obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("smart_rule_enabled")) {
|
|
73
|
+
obj["smart_rule_enabled"] = _ApiClient["default"].convertToType(data["smart_rule_enabled"], "Boolean");
|
|
74
74
|
}
|
|
75
75
|
} else if (data === null) {
|
|
76
76
|
return null;
|
|
@@ -87,17 +87,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
87
87
|
key: "validateJSON",
|
|
88
88
|
value: function validateJSON(data) {
|
|
89
89
|
// validate the optional field `connectivity_assurance`
|
|
90
|
-
if (data[
|
|
90
|
+
if (data["connectivity_assurance"]) {
|
|
91
91
|
// data not null
|
|
92
|
-
_FleetConnectivityAssurance["default"].validateJSON(data[
|
|
92
|
+
_FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
|
|
93
93
|
}
|
|
94
94
|
// ensure the json data is a string
|
|
95
|
-
if (data[
|
|
96
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
95
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
97
97
|
}
|
|
98
98
|
// ensure the json data is a string
|
|
99
|
-
if (data[
|
|
100
|
-
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data[
|
|
99
|
+
if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
|
|
100
|
+
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
|
|
101
101
|
}
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
@@ -106,22 +106,22 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
106
106
|
/**
|
|
107
107
|
* @member {module:model/FleetConnectivityAssurance} connectivity_assurance
|
|
108
108
|
*/
|
|
109
|
-
CreateFleetRequest.prototype[
|
|
109
|
+
CreateFleetRequest.prototype["connectivity_assurance"] = undefined;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* The label, or name, for the Fleet.
|
|
113
113
|
* @member {String} label
|
|
114
114
|
*/
|
|
115
|
-
CreateFleetRequest.prototype[
|
|
115
|
+
CreateFleetRequest.prototype["label"] = undefined;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* 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.
|
|
119
119
|
* @member {String} smart_rule
|
|
120
120
|
*/
|
|
121
|
-
CreateFleetRequest.prototype[
|
|
121
|
+
CreateFleetRequest.prototype["smart_rule"] = undefined;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* @member {Boolean} smart_rule_enabled
|
|
125
125
|
*/
|
|
126
|
-
CreateFleetRequest.prototype[
|
|
126
|
+
CreateFleetRequest.prototype["smart_rule_enabled"] = undefined;
|
|
127
127
|
var _default = exports["default"] = CreateFleetRequest;
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateJob201Response model module.
|
|
31
31
|
* @module model/CreateJob201Response
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var CreateJob201Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -50,7 +50,7 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(CreateJob201Response, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, jobUid) {
|
|
53
|
-
obj[
|
|
53
|
+
obj["job_uid"] = jobUid;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,8 +65,8 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new CreateJob201Response();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("job_uid")) {
|
|
69
|
+
obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,8 +98,8 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -111,5 +111,5 @@ CreateJob201Response.RequiredProperties = ["job_uid"];
|
|
|
111
111
|
* The unique identifier for the created job
|
|
112
112
|
* @member {String} job_uid
|
|
113
113
|
*/
|
|
114
|
-
CreateJob201Response.prototype[
|
|
114
|
+
CreateJob201Response.prototype["job_uid"] = undefined;
|
|
115
115
|
var _default = exports["default"] = CreateJob201Response;
|