@blues-inc/notehub-js 6.2.0-beta.3 → 6.2.0-beta.31
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 +301 -285
- 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 +30 -30
- package/dist/api/DeviceApi.js +477 -356
- 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 +519 -406
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +366 -53
- package/dist/index.js +63 -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/CreateLegacyWebhookEventRequest.js +118 -0
- package/dist/model/CreateMonitor.js +177 -128
- 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/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/GetDeviceJourney200Response.js +149 -0
- package/dist/model/GetDeviceJourney200ResponseJourney.js +142 -0
- package/dist/model/GetDeviceJourneys200Response.js +141 -0
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +133 -0
- 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/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 -50
- 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 +136 -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/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/RepositoryListResponse.js +131 -0
- package/dist/model/RepositoryTokenRequest.js +116 -0
- package/dist/model/RepositoryTokenResponse.js +182 -0
- 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 +117 -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/index.js
CHANGED
|
@@ -129,6 +129,12 @@ Object.defineProperty(exports, "CreateJob201Response", {
|
|
|
129
129
|
return _CreateJob201Response["default"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "CreateLegacyWebhookEventRequest", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _CreateLegacyWebhookEventRequest["default"];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
132
138
|
Object.defineProperty(exports, "CreateMonitor", {
|
|
133
139
|
enumerable: true,
|
|
134
140
|
get: function get() {
|
|
@@ -447,6 +453,30 @@ Object.defineProperty(exports, "GetDeviceHealthLog200ResponseHealthLogInner", {
|
|
|
447
453
|
return _GetDeviceHealthLog200ResponseHealthLogInner["default"];
|
|
448
454
|
}
|
|
449
455
|
});
|
|
456
|
+
Object.defineProperty(exports, "GetDeviceJourney200Response", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function get() {
|
|
459
|
+
return _GetDeviceJourney200Response["default"];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(exports, "GetDeviceJourney200ResponseJourney", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function get() {
|
|
465
|
+
return _GetDeviceJourney200ResponseJourney["default"];
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
Object.defineProperty(exports, "GetDeviceJourneys200Response", {
|
|
469
|
+
enumerable: true,
|
|
470
|
+
get: function get() {
|
|
471
|
+
return _GetDeviceJourneys200Response["default"];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(exports, "GetDeviceJourneys200ResponseJourneysInner", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
get: function get() {
|
|
477
|
+
return _GetDeviceJourneys200ResponseJourneysInner["default"];
|
|
478
|
+
}
|
|
479
|
+
});
|
|
450
480
|
Object.defineProperty(exports, "GetDeviceLatestEvents200Response", {
|
|
451
481
|
enumerable: true,
|
|
452
482
|
get: function get() {
|
|
@@ -753,6 +783,24 @@ Object.defineProperty(exports, "Repository", {
|
|
|
753
783
|
return _Repository["default"];
|
|
754
784
|
}
|
|
755
785
|
});
|
|
786
|
+
Object.defineProperty(exports, "RepositoryListResponse", {
|
|
787
|
+
enumerable: true,
|
|
788
|
+
get: function get() {
|
|
789
|
+
return _RepositoryListResponse["default"];
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
Object.defineProperty(exports, "RepositoryTokenRequest", {
|
|
793
|
+
enumerable: true,
|
|
794
|
+
get: function get() {
|
|
795
|
+
return _RepositoryTokenRequest["default"];
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
Object.defineProperty(exports, "RepositoryTokenResponse", {
|
|
799
|
+
enumerable: true,
|
|
800
|
+
get: function get() {
|
|
801
|
+
return _RepositoryTokenResponse["default"];
|
|
802
|
+
}
|
|
803
|
+
});
|
|
756
804
|
Object.defineProperty(exports, "Role", {
|
|
757
805
|
enumerable: true,
|
|
758
806
|
get: function get() {
|
|
@@ -873,6 +921,12 @@ Object.defineProperty(exports, "UpdateFleetRequest", {
|
|
|
873
921
|
return _UpdateFleetRequest["default"];
|
|
874
922
|
}
|
|
875
923
|
});
|
|
924
|
+
Object.defineProperty(exports, "UpdateHostFirmwareRequest", {
|
|
925
|
+
enumerable: true,
|
|
926
|
+
get: function get() {
|
|
927
|
+
return _UpdateHostFirmwareRequest["default"];
|
|
928
|
+
}
|
|
929
|
+
});
|
|
876
930
|
Object.defineProperty(exports, "UploadMetadata", {
|
|
877
931
|
enumerable: true,
|
|
878
932
|
get: function get() {
|
|
@@ -963,6 +1017,7 @@ var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectR
|
|
|
963
1017
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
964
1018
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
965
1019
|
var _CreateJob201Response = _interopRequireDefault(require("./model/CreateJob201Response"));
|
|
1020
|
+
var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("./model/CreateLegacyWebhookEventRequest"));
|
|
966
1021
|
var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
|
|
967
1022
|
var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
|
|
968
1023
|
var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
|
|
@@ -1013,6 +1068,10 @@ var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(requ
|
|
|
1013
1068
|
var _GetDeviceFleets200Response = _interopRequireDefault(require("./model/GetDeviceFleets200Response"));
|
|
1014
1069
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
|
|
1015
1070
|
var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./model/GetDeviceHealthLog200ResponseHealthLogInner"));
|
|
1071
|
+
var _GetDeviceJourney200Response = _interopRequireDefault(require("./model/GetDeviceJourney200Response"));
|
|
1072
|
+
var _GetDeviceJourney200ResponseJourney = _interopRequireDefault(require("./model/GetDeviceJourney200ResponseJourney"));
|
|
1073
|
+
var _GetDeviceJourneys200Response = _interopRequireDefault(require("./model/GetDeviceJourneys200Response"));
|
|
1074
|
+
var _GetDeviceJourneys200ResponseJourneysInner = _interopRequireDefault(require("./model/GetDeviceJourneys200ResponseJourneysInner"));
|
|
1016
1075
|
var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("./model/GetDeviceLatestEvents200Response"));
|
|
1017
1076
|
var _GetDevicePlans200Response = _interopRequireDefault(require("./model/GetDevicePlans200Response"));
|
|
1018
1077
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("./model/GetDevicePublicKey200Response"));
|
|
@@ -1061,6 +1120,9 @@ var _ProxyRoute = _interopRequireDefault(require("./model/ProxyRoute"));
|
|
|
1061
1120
|
var _QubitroRoute = _interopRequireDefault(require("./model/QubitroRoute"));
|
|
1062
1121
|
var _RadRoute = _interopRequireDefault(require("./model/RadRoute"));
|
|
1063
1122
|
var _Repository = _interopRequireDefault(require("./model/Repository"));
|
|
1123
|
+
var _RepositoryListResponse = _interopRequireDefault(require("./model/RepositoryListResponse"));
|
|
1124
|
+
var _RepositoryTokenRequest = _interopRequireDefault(require("./model/RepositoryTokenRequest"));
|
|
1125
|
+
var _RepositoryTokenResponse = _interopRequireDefault(require("./model/RepositoryTokenResponse"));
|
|
1064
1126
|
var _Role = _interopRequireDefault(require("./model/Role"));
|
|
1065
1127
|
var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
|
|
1066
1128
|
var _RouteTransformSettings = _interopRequireDefault(require("./model/RouteTransformSettings"));
|
|
@@ -1080,6 +1142,7 @@ var _ThingworxRoute = _interopRequireDefault(require("./model/ThingworxRoute"));
|
|
|
1080
1142
|
var _TowerLocation = _interopRequireDefault(require("./model/TowerLocation"));
|
|
1081
1143
|
var _TwilioRoute = _interopRequireDefault(require("./model/TwilioRoute"));
|
|
1082
1144
|
var _UpdateFleetRequest = _interopRequireDefault(require("./model/UpdateFleetRequest"));
|
|
1145
|
+
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("./model/UpdateHostFirmwareRequest"));
|
|
1083
1146
|
var _UploadMetadata = _interopRequireDefault(require("./model/UploadMetadata"));
|
|
1084
1147
|
var _UsageData = _interopRequireDefault(require("./model/UsageData"));
|
|
1085
1148
|
var _UsageEventsData = _interopRequireDefault(require("./model/UsageEventsData"));
|
|
@@ -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 AWSRoleConfig model module.
|
|
31
31
|
* @module model/AWSRoleConfig
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.31
|
|
33
33
|
*/
|
|
34
34
|
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -52,8 +52,8 @@ var AWSRoleConfig = /*#__PURE__*/function () {
|
|
|
52
52
|
return _createClass(AWSRoleConfig, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
54
|
value: function initialize(obj, awsAccountId, externalId) {
|
|
55
|
-
obj[
|
|
56
|
-
obj[
|
|
55
|
+
obj["aws_account_id"] = awsAccountId;
|
|
56
|
+
obj["external_id"] = externalId;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -68,11 +68,11 @@ var AWSRoleConfig = /*#__PURE__*/function () {
|
|
|
68
68
|
value: function constructFromObject(data, obj) {
|
|
69
69
|
if (data) {
|
|
70
70
|
obj = obj || new AWSRoleConfig();
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("aws_account_id")) {
|
|
72
|
+
obj["aws_account_id"] = _ApiClient["default"].convertToType(data["aws_account_id"], "String");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("external_id")) {
|
|
75
|
+
obj["external_id"] = _ApiClient["default"].convertToType(data["external_id"], "String");
|
|
76
76
|
}
|
|
77
77
|
} else if (data === null) {
|
|
78
78
|
return null;
|
|
@@ -104,12 +104,12 @@ var AWSRoleConfig = /*#__PURE__*/function () {
|
|
|
104
104
|
} finally {
|
|
105
105
|
_iterator.f();
|
|
106
106
|
}
|
|
107
|
-
if (data[
|
|
108
|
-
throw new Error("Expected the field `aws_account_id` to be a primitive type in the JSON string but got " + data[
|
|
107
|
+
if (data["aws_account_id"] && !(typeof data["aws_account_id"] === "string" || data["aws_account_id"] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `aws_account_id` to be a primitive type in the JSON string but got " + data["aws_account_id"]);
|
|
109
109
|
}
|
|
110
110
|
// ensure the json data is a string
|
|
111
|
-
if (data[
|
|
112
|
-
throw new Error("Expected the field `external_id` to be a primitive type in the JSON string but got " + data[
|
|
111
|
+
if (data["external_id"] && !(typeof data["external_id"] === "string" || data["external_id"] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `external_id` to be a primitive type in the JSON string but got " + data["external_id"]);
|
|
113
113
|
}
|
|
114
114
|
return true;
|
|
115
115
|
}
|
|
@@ -121,11 +121,11 @@ AWSRoleConfig.RequiredProperties = ["aws_account_id", "external_id"];
|
|
|
121
121
|
* The Blues AWS Account ID to trust in your IAM role's trust policy
|
|
122
122
|
* @member {String} aws_account_id
|
|
123
123
|
*/
|
|
124
|
-
AWSRoleConfig.prototype[
|
|
124
|
+
AWSRoleConfig.prototype["aws_account_id"] = undefined;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* The External ID to use in your IAM role's trust policy condition
|
|
128
128
|
* @member {String} external_id
|
|
129
129
|
*/
|
|
130
|
-
AWSRoleConfig.prototype[
|
|
130
|
+
AWSRoleConfig.prototype["external_id"] = undefined;
|
|
131
131
|
var _default = exports["default"] = AWSRoleConfig;
|
|
@@ -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 AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.31
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -50,7 +50,7 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(AddDeviceToFleetsRequest, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, fleetUids) {
|
|
53
|
-
obj[
|
|
53
|
+
obj["fleet_uids"] = fleetUids;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,8 +65,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new AddDeviceToFleetsRequest();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("fleet_uids")) {
|
|
69
|
+
obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,8 +98,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (!Array.isArray(data[
|
|
102
|
-
throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data[
|
|
101
|
+
if (!Array.isArray(data["fleet_uids"])) {
|
|
102
|
+
throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -111,5 +111,5 @@ AddDeviceToFleetsRequest.RequiredProperties = ["fleet_uids"];
|
|
|
111
111
|
* The fleetUIDs to add to the device.
|
|
112
112
|
* @member {Array.<String>} fleet_uids
|
|
113
113
|
*/
|
|
114
|
-
AddDeviceToFleetsRequest.prototype[
|
|
114
|
+
AddDeviceToFleetsRequest.prototype["fleet_uids"] = undefined;
|
|
115
115
|
var _default = exports["default"] = AddDeviceToFleetsRequest;
|
package/dist/model/Alert.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
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); } /**
|
|
20
20
|
* Notehub API
|
|
21
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
22
22
|
*
|
|
23
23
|
* The version of the OpenAPI document: 1.2.0
|
|
24
24
|
* Contact: engineering@blues.io
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The Alert model module.
|
|
33
33
|
* @module model/Alert
|
|
34
|
-
* @version 6.2.0-beta.
|
|
34
|
+
* @version 6.2.0-beta.31
|
|
35
35
|
*/
|
|
36
36
|
var Alert = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -64,47 +64,47 @@ var Alert = /*#__PURE__*/function () {
|
|
|
64
64
|
value: function constructFromObject(data, obj) {
|
|
65
65
|
if (data) {
|
|
66
66
|
obj = obj || new Alert();
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("alert_source")) {
|
|
68
|
+
obj["alert_source"] = _ApiClient["default"].convertToType(data["alert_source"], "String");
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("created_at")) {
|
|
71
|
+
obj["created_at"] = _ApiClient["default"].convertToType(data["created_at"], "Number");
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("data")) {
|
|
74
|
+
obj["data"] = _ApiClient["default"].convertToType(data["data"], [_AlertDataInner["default"]]);
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("device_uid")) {
|
|
77
|
+
obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty("field_name")) {
|
|
80
|
+
obj["field_name"] = _ApiClient["default"].convertToType(data["field_name"], "String");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty("monitor_name")) {
|
|
83
|
+
obj["monitor_name"] = _ApiClient["default"].convertToType(data["monitor_name"], "String");
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("monitor_type")) {
|
|
86
|
+
obj["monitor_type"] = _ApiClient["default"].convertToType(data["monitor_type"], "String");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty("monitor_uid")) {
|
|
89
|
+
obj["monitor_uid"] = _ApiClient["default"].convertToType(data["monitor_uid"], "String");
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty("notifications")) {
|
|
92
|
+
obj["notifications"] = _ApiClient["default"].convertToType(data["notifications"], [_AlertNotificationsInner["default"]]);
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty("resolved")) {
|
|
95
|
+
obj["resolved"] = _ApiClient["default"].convertToType(data["resolved"], "Boolean");
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty("source")) {
|
|
98
|
+
obj["source"] = _ApiClient["default"].convertToType(data["source"], "String");
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty("uid")) {
|
|
101
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty("value")) {
|
|
104
|
+
obj["value"] = _ApiClient["default"].convertToType(data["value"], "Number");
|
|
105
105
|
}
|
|
106
|
-
if (data.hasOwnProperty(
|
|
107
|
-
obj[
|
|
106
|
+
if (data.hasOwnProperty("version")) {
|
|
107
|
+
obj["version"] = _ApiClient["default"].convertToType(data["version"], "Number");
|
|
108
108
|
}
|
|
109
109
|
} else if (data === null) {
|
|
110
110
|
return null;
|
|
@@ -121,17 +121,17 @@ var Alert = /*#__PURE__*/function () {
|
|
|
121
121
|
key: "validateJSON",
|
|
122
122
|
value: function validateJSON(data) {
|
|
123
123
|
// ensure the json data is a string
|
|
124
|
-
if (data[
|
|
125
|
-
throw new Error("Expected the field `alert_source` to be a primitive type in the JSON string but got " + data[
|
|
124
|
+
if (data["alert_source"] && !(typeof data["alert_source"] === "string" || data["alert_source"] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `alert_source` to be a primitive type in the JSON string but got " + data["alert_source"]);
|
|
126
126
|
}
|
|
127
|
-
if (data[
|
|
127
|
+
if (data["data"]) {
|
|
128
128
|
// data not null
|
|
129
129
|
// ensure the json data is an array
|
|
130
|
-
if (!Array.isArray(data[
|
|
131
|
-
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data[
|
|
130
|
+
if (!Array.isArray(data["data"])) {
|
|
131
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data["data"]);
|
|
132
132
|
}
|
|
133
133
|
// validate the optional field `data` (array)
|
|
134
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
134
|
+
var _iterator = _createForOfIteratorHelper(data["data"]),
|
|
135
135
|
_step;
|
|
136
136
|
try {
|
|
137
137
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -143,36 +143,35 @@ var Alert = /*#__PURE__*/function () {
|
|
|
143
143
|
} finally {
|
|
144
144
|
_iterator.f();
|
|
145
145
|
}
|
|
146
|
-
;
|
|
147
146
|
}
|
|
148
147
|
// ensure the json data is a string
|
|
149
|
-
if (data[
|
|
150
|
-
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data[
|
|
148
|
+
if (data["device_uid"] && !(typeof data["device_uid"] === "string" || data["device_uid"] instanceof String)) {
|
|
149
|
+
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data["device_uid"]);
|
|
151
150
|
}
|
|
152
151
|
// ensure the json data is a string
|
|
153
|
-
if (data[
|
|
154
|
-
throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data[
|
|
152
|
+
if (data["field_name"] && !(typeof data["field_name"] === "string" || data["field_name"] instanceof String)) {
|
|
153
|
+
throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data["field_name"]);
|
|
155
154
|
}
|
|
156
155
|
// ensure the json data is a string
|
|
157
|
-
if (data[
|
|
158
|
-
throw new Error("Expected the field `monitor_name` to be a primitive type in the JSON string but got " + data[
|
|
156
|
+
if (data["monitor_name"] && !(typeof data["monitor_name"] === "string" || data["monitor_name"] instanceof String)) {
|
|
157
|
+
throw new Error("Expected the field `monitor_name` to be a primitive type in the JSON string but got " + data["monitor_name"]);
|
|
159
158
|
}
|
|
160
159
|
// ensure the json data is a string
|
|
161
|
-
if (data[
|
|
162
|
-
throw new Error("Expected the field `monitor_type` to be a primitive type in the JSON string but got " + data[
|
|
160
|
+
if (data["monitor_type"] && !(typeof data["monitor_type"] === "string" || data["monitor_type"] instanceof String)) {
|
|
161
|
+
throw new Error("Expected the field `monitor_type` to be a primitive type in the JSON string but got " + data["monitor_type"]);
|
|
163
162
|
}
|
|
164
163
|
// ensure the json data is a string
|
|
165
|
-
if (data[
|
|
166
|
-
throw new Error("Expected the field `monitor_uid` to be a primitive type in the JSON string but got " + data[
|
|
164
|
+
if (data["monitor_uid"] && !(typeof data["monitor_uid"] === "string" || data["monitor_uid"] instanceof String)) {
|
|
165
|
+
throw new Error("Expected the field `monitor_uid` to be a primitive type in the JSON string but got " + data["monitor_uid"]);
|
|
167
166
|
}
|
|
168
|
-
if (data[
|
|
167
|
+
if (data["notifications"]) {
|
|
169
168
|
// data not null
|
|
170
169
|
// ensure the json data is an array
|
|
171
|
-
if (!Array.isArray(data[
|
|
172
|
-
throw new Error("Expected the field `notifications` to be an array in the JSON data but got " + data[
|
|
170
|
+
if (!Array.isArray(data["notifications"])) {
|
|
171
|
+
throw new Error("Expected the field `notifications` to be an array in the JSON data but got " + data["notifications"]);
|
|
173
172
|
}
|
|
174
173
|
// validate the optional field `notifications` (array)
|
|
175
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
174
|
+
var _iterator2 = _createForOfIteratorHelper(data["notifications"]),
|
|
176
175
|
_step2;
|
|
177
176
|
try {
|
|
178
177
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -184,15 +183,14 @@ var Alert = /*#__PURE__*/function () {
|
|
|
184
183
|
} finally {
|
|
185
184
|
_iterator2.f();
|
|
186
185
|
}
|
|
187
|
-
;
|
|
188
186
|
}
|
|
189
187
|
// ensure the json data is a string
|
|
190
|
-
if (data[
|
|
191
|
-
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data[
|
|
188
|
+
if (data["source"] && !(typeof data["source"] === "string" || data["source"] instanceof String)) {
|
|
189
|
+
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data["source"]);
|
|
192
190
|
}
|
|
193
191
|
// ensure the json data is a string
|
|
194
|
-
if (data[
|
|
195
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
192
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
193
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
196
194
|
}
|
|
197
195
|
return true;
|
|
198
196
|
}
|
|
@@ -202,100 +200,100 @@ var Alert = /*#__PURE__*/function () {
|
|
|
202
200
|
* The source of the alert
|
|
203
201
|
* @member {module:model/Alert.AlertSourceEnum} alert_source
|
|
204
202
|
*/
|
|
205
|
-
Alert.prototype[
|
|
203
|
+
Alert.prototype["alert_source"] = undefined;
|
|
206
204
|
|
|
207
205
|
/**
|
|
208
206
|
* The time the alert was created
|
|
209
207
|
* @member {Number} created_at
|
|
210
208
|
*/
|
|
211
|
-
Alert.prototype[
|
|
209
|
+
Alert.prototype["created_at"] = undefined;
|
|
212
210
|
|
|
213
211
|
/**
|
|
214
212
|
* @member {Array.<module:model/AlertDataInner>} data
|
|
215
213
|
*/
|
|
216
|
-
Alert.prototype[
|
|
214
|
+
Alert.prototype["data"] = undefined;
|
|
217
215
|
|
|
218
216
|
/**
|
|
219
217
|
* Device UID
|
|
220
218
|
* @member {String} device_uid
|
|
221
219
|
*/
|
|
222
|
-
Alert.prototype[
|
|
220
|
+
Alert.prototype["device_uid"] = undefined;
|
|
223
221
|
|
|
224
222
|
/**
|
|
225
223
|
* The field name that triggered the alert
|
|
226
224
|
* @member {String} field_name
|
|
227
225
|
*/
|
|
228
|
-
Alert.prototype[
|
|
226
|
+
Alert.prototype["field_name"] = undefined;
|
|
229
227
|
|
|
230
228
|
/**
|
|
231
229
|
* Monitor Name
|
|
232
230
|
* @member {String} monitor_name
|
|
233
231
|
*/
|
|
234
|
-
Alert.prototype[
|
|
232
|
+
Alert.prototype["monitor_name"] = undefined;
|
|
235
233
|
|
|
236
234
|
/**
|
|
237
235
|
* The type of monitor that triggered the alert
|
|
238
236
|
* @member {module:model/Alert.MonitorTypeEnum} monitor_type
|
|
239
237
|
*/
|
|
240
|
-
Alert.prototype[
|
|
238
|
+
Alert.prototype["monitor_type"] = undefined;
|
|
241
239
|
|
|
242
240
|
/**
|
|
243
241
|
* Monitor UID
|
|
244
242
|
* @member {String} monitor_uid
|
|
245
243
|
*/
|
|
246
|
-
Alert.prototype[
|
|
244
|
+
Alert.prototype["monitor_uid"] = undefined;
|
|
247
245
|
|
|
248
246
|
/**
|
|
249
247
|
* @member {Array.<module:model/AlertNotificationsInner>} notifications
|
|
250
248
|
*/
|
|
251
|
-
Alert.prototype[
|
|
249
|
+
Alert.prototype["notifications"] = undefined;
|
|
252
250
|
|
|
253
251
|
/**
|
|
254
252
|
* If true, the alert has been resolved
|
|
255
253
|
* @member {Boolean} resolved
|
|
256
254
|
*/
|
|
257
|
-
Alert.prototype[
|
|
255
|
+
Alert.prototype["resolved"] = undefined;
|
|
258
256
|
|
|
259
257
|
/**
|
|
260
258
|
* The UID of the source of the alert
|
|
261
259
|
* @member {String} source
|
|
262
260
|
*/
|
|
263
|
-
Alert.prototype[
|
|
261
|
+
Alert.prototype["source"] = undefined;
|
|
264
262
|
|
|
265
263
|
/**
|
|
266
264
|
* Alert UID
|
|
267
265
|
* @member {String} uid
|
|
268
266
|
*/
|
|
269
|
-
Alert.prototype[
|
|
267
|
+
Alert.prototype["uid"] = undefined;
|
|
270
268
|
|
|
271
269
|
/**
|
|
272
270
|
* The value that triggered the alert
|
|
273
271
|
* @member {Number} value
|
|
274
272
|
*/
|
|
275
|
-
Alert.prototype[
|
|
273
|
+
Alert.prototype["value"] = undefined;
|
|
276
274
|
|
|
277
275
|
/**
|
|
278
276
|
* The version of the alert
|
|
279
277
|
* @member {Number} version
|
|
280
278
|
*/
|
|
281
|
-
Alert.prototype[
|
|
279
|
+
Alert.prototype["version"] = undefined;
|
|
282
280
|
|
|
283
281
|
/**
|
|
284
282
|
* Allowed values for the <code>alert_source</code> property.
|
|
285
283
|
* @enum {String}
|
|
286
284
|
* @readonly
|
|
287
285
|
*/
|
|
288
|
-
Alert[
|
|
286
|
+
Alert["AlertSourceEnum"] = {
|
|
289
287
|
/**
|
|
290
288
|
* value: "app"
|
|
291
289
|
* @const
|
|
292
290
|
*/
|
|
293
|
-
|
|
291
|
+
app: "app",
|
|
294
292
|
/**
|
|
295
293
|
* value: "device"
|
|
296
294
|
* @const
|
|
297
295
|
*/
|
|
298
|
-
|
|
296
|
+
device: "device"
|
|
299
297
|
};
|
|
300
298
|
|
|
301
299
|
/**
|
|
@@ -303,16 +301,16 @@ Alert['AlertSourceEnum'] = {
|
|
|
303
301
|
* @enum {String}
|
|
304
302
|
* @readonly
|
|
305
303
|
*/
|
|
306
|
-
Alert[
|
|
304
|
+
Alert["MonitorTypeEnum"] = {
|
|
307
305
|
/**
|
|
308
306
|
* value: "event"
|
|
309
307
|
* @const
|
|
310
308
|
*/
|
|
311
|
-
|
|
309
|
+
event: "event",
|
|
312
310
|
/**
|
|
313
311
|
* value: "device"
|
|
314
312
|
* @const
|
|
315
313
|
*/
|
|
316
|
-
|
|
314
|
+
device: "device"
|
|
317
315
|
};
|
|
318
316
|
var _default = exports["default"] = Alert;
|