@blues-inc/notehub-js 6.2.0 → 6.3.0-beta.10
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 +38 -1
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +124 -3
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +72 -18
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +167 -0
- package/dist/api/ProjectApi.js +191 -5
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +317 -5
- package/dist/index.js +154 -0
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobRequests.js +228 -0
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BillingAccountRole.js +5 -0
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +51 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +130 -0
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +155 -0
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccount200Response.js +25 -1
- package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- 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 +144 -0
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetOrganizations200Response.js +111 -0
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +131 -0
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +32 -12
- package/dist/model/JobDefinition.js +146 -0
- package/dist/model/JobDefinitionReportOptions.js +155 -0
- package/dist/model/JobDefinitionSelect.js +140 -0
- package/dist/model/JobDetail.js +252 -0
- package/dist/model/JobDetailAllOf.js +93 -0
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +36 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +139 -0
- package/dist/model/OrganizationRole.js +68 -0
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +164 -0
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +131 -0
- package/dist/model/RepositoryTokenRequest.js +116 -0
- package/dist/model/RepositoryTokenResponse.js +182 -0
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +115 -0
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.3.0-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.3.0-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/AwsRoute.js
CHANGED
package/dist/model/AzureRoute.js
CHANGED
|
@@ -0,0 +1,228 @@
|
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Notehub API
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.2.0
|
|
19
|
+
* Contact: engineering@blues.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The BatchJobRequests model module.
|
|
28
|
+
* @module model/BatchJobRequests
|
|
29
|
+
* @version 6.3.0-beta.10
|
|
30
|
+
*/
|
|
31
|
+
var BatchJobRequests = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>BatchJobRequests</code>.
|
|
34
|
+
* Operations to apply to a device
|
|
35
|
+
* @alias module:model/BatchJobRequests
|
|
36
|
+
*/
|
|
37
|
+
function BatchJobRequests() {
|
|
38
|
+
_classCallCheck(this, BatchJobRequests);
|
|
39
|
+
BatchJobRequests.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(BatchJobRequests, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>BatchJobRequests</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/BatchJobRequests} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/BatchJobRequests} The populated <code>BatchJobRequests</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new BatchJobRequests();
|
|
63
|
+
if (data.hasOwnProperty("comment")) {
|
|
64
|
+
obj["comment"] = _ApiClient["default"].convertToType(data["comment"], "String");
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty("connectivity_assurance_disable")) {
|
|
67
|
+
obj["connectivity_assurance_disable"] = _ApiClient["default"].convertToType(data["connectivity_assurance_disable"], "Boolean");
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty("connectivity_assurance_enable")) {
|
|
70
|
+
obj["connectivity_assurance_enable"] = _ApiClient["default"].convertToType(data["connectivity_assurance_enable"], "Boolean");
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty("disable")) {
|
|
73
|
+
obj["disable"] = _ApiClient["default"].convertToType(data["disable"], "Boolean");
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty("enable")) {
|
|
76
|
+
obj["enable"] = _ApiClient["default"].convertToType(data["enable"], "Boolean");
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty("fleets_to_default")) {
|
|
79
|
+
obj["fleets_to_default"] = _ApiClient["default"].convertToType(data["fleets_to_default"], ["String"]);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty("fleets_to_join")) {
|
|
82
|
+
obj["fleets_to_join"] = _ApiClient["default"].convertToType(data["fleets_to_join"], ["String"]);
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty("fleets_to_leave")) {
|
|
85
|
+
obj["fleets_to_leave"] = _ApiClient["default"].convertToType(data["fleets_to_leave"], ["String"]);
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty("provision_product")) {
|
|
88
|
+
obj["provision_product"] = _ApiClient["default"].convertToType(data["provision_product"], "String");
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty("sn_to_default")) {
|
|
91
|
+
obj["sn_to_default"] = _ApiClient["default"].convertToType(data["sn_to_default"], "String");
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty("sn_to_set")) {
|
|
94
|
+
obj["sn_to_set"] = _ApiClient["default"].convertToType(data["sn_to_set"], "String");
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty("vars_to_default")) {
|
|
97
|
+
obj["vars_to_default"] = _ApiClient["default"].convertToType(data["vars_to_default"], {
|
|
98
|
+
String: "String"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty("vars_to_set")) {
|
|
102
|
+
obj["vars_to_set"] = _ApiClient["default"].convertToType(data["vars_to_set"], {
|
|
103
|
+
String: "String"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
} else if (data === null) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return obj;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Validates the JSON data with respect to <code>BatchJobRequests</code>.
|
|
114
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
115
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>BatchJobRequests</code>.
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "validateJSON",
|
|
119
|
+
value: function validateJSON(data) {
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data["comment"] && !(typeof data["comment"] === "string" || data["comment"] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `comment` to be a primitive type in the JSON string but got " + data["comment"]);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is an array
|
|
125
|
+
if (!Array.isArray(data["fleets_to_default"])) {
|
|
126
|
+
throw new Error("Expected the field `fleets_to_default` to be an array in the JSON data but got " + data["fleets_to_default"]);
|
|
127
|
+
}
|
|
128
|
+
// ensure the json data is an array
|
|
129
|
+
if (!Array.isArray(data["fleets_to_join"])) {
|
|
130
|
+
throw new Error("Expected the field `fleets_to_join` to be an array in the JSON data but got " + data["fleets_to_join"]);
|
|
131
|
+
}
|
|
132
|
+
// ensure the json data is an array
|
|
133
|
+
if (!Array.isArray(data["fleets_to_leave"])) {
|
|
134
|
+
throw new Error("Expected the field `fleets_to_leave` to be an array in the JSON data but got " + data["fleets_to_leave"]);
|
|
135
|
+
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
if (data["provision_product"] && !(typeof data["provision_product"] === "string" || data["provision_product"] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `provision_product` to be a primitive type in the JSON string but got " + data["provision_product"]);
|
|
139
|
+
}
|
|
140
|
+
// ensure the json data is a string
|
|
141
|
+
if (data["sn_to_default"] && !(typeof data["sn_to_default"] === "string" || data["sn_to_default"] instanceof String)) {
|
|
142
|
+
throw new Error("Expected the field `sn_to_default` to be a primitive type in the JSON string but got " + data["sn_to_default"]);
|
|
143
|
+
}
|
|
144
|
+
// ensure the json data is a string
|
|
145
|
+
if (data["sn_to_set"] && !(typeof data["sn_to_set"] === "string" || data["sn_to_set"] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `sn_to_set` to be a primitive type in the JSON string but got " + data["sn_to_set"]);
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
}]);
|
|
151
|
+
}();
|
|
152
|
+
/**
|
|
153
|
+
* @member {String} comment
|
|
154
|
+
*/
|
|
155
|
+
BatchJobRequests.prototype["comment"] = undefined;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Disable connectivity assurance for the device
|
|
159
|
+
* @member {Boolean} connectivity_assurance_disable
|
|
160
|
+
*/
|
|
161
|
+
BatchJobRequests.prototype["connectivity_assurance_disable"] = undefined;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Enable connectivity assurance for the device
|
|
165
|
+
* @member {Boolean} connectivity_assurance_enable
|
|
166
|
+
*/
|
|
167
|
+
BatchJobRequests.prototype["connectivity_assurance_enable"] = undefined;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Disable the device
|
|
171
|
+
* @member {Boolean} disable
|
|
172
|
+
*/
|
|
173
|
+
BatchJobRequests.prototype["disable"] = undefined;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Enable the device
|
|
177
|
+
* @member {Boolean} enable
|
|
178
|
+
*/
|
|
179
|
+
BatchJobRequests.prototype["enable"] = undefined;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Fleet UIDs to assign to the device if it has no fleets
|
|
183
|
+
* @member {Array.<String>} fleets_to_default
|
|
184
|
+
*/
|
|
185
|
+
BatchJobRequests.prototype["fleets_to_default"] = undefined;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Fleet UIDs to add the device to
|
|
189
|
+
* @member {Array.<String>} fleets_to_join
|
|
190
|
+
*/
|
|
191
|
+
BatchJobRequests.prototype["fleets_to_join"] = undefined;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Fleet UIDs to remove the device from
|
|
195
|
+
* @member {Array.<String>} fleets_to_leave
|
|
196
|
+
*/
|
|
197
|
+
BatchJobRequests.prototype["fleets_to_leave"] = undefined;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Product UID to provision the device with if not already provisioned
|
|
201
|
+
* @member {String} provision_product
|
|
202
|
+
*/
|
|
203
|
+
BatchJobRequests.prototype["provision_product"] = undefined;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Set the device serial number only if not already set
|
|
207
|
+
* @member {String} sn_to_default
|
|
208
|
+
*/
|
|
209
|
+
BatchJobRequests.prototype["sn_to_default"] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Set the device serial number (\"-\" to clear)
|
|
213
|
+
* @member {String} sn_to_set
|
|
214
|
+
*/
|
|
215
|
+
BatchJobRequests.prototype["sn_to_set"] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Environment variables to set only if not already set
|
|
219
|
+
* @member {Object.<String, String>} vars_to_default
|
|
220
|
+
*/
|
|
221
|
+
BatchJobRequests.prototype["vars_to_default"] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Environment variables to set (use \"-\" as value to clear)
|
|
225
|
+
* @member {Object.<String, String>} vars_to_set
|
|
226
|
+
*/
|
|
227
|
+
BatchJobRequests.prototype["vars_to_set"] = undefined;
|
|
228
|
+
var _default = exports["default"] = BatchJobRequests;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 6.
|
|
33
|
+
* @version 6.3.0-beta.10
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -47,6 +47,11 @@ var BillingAccountRole = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
* @const
|
|
48
48
|
*/
|
|
49
49
|
_defineProperty(this, "project_creator", "project_creator");
|
|
50
|
+
/**
|
|
51
|
+
* value: "billing_member"
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
_defineProperty(this, "billing_member", "billing_member");
|
|
50
55
|
}
|
|
51
56
|
return _createClass(BillingAccountRole, null, [{
|
|
52
57
|
key: "constructFromObject",
|
package/dist/model/BlynkRoute.js
CHANGED
package/dist/model/Body.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CancelJobRun200Response model module.
|
|
31
31
|
* @module model/CancelJobRun200Response
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CancelJobRun200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CellularPlan model module.
|
|
29
29
|
* @module model/CellularPlan
|
|
30
|
-
* @version 6.
|
|
30
|
+
* @version 6.3.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CellularPlan = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -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.
|
|
30
|
+
* @version 6.3.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -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.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CreateJob201Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The CreateMonitor model module.
|
|
33
33
|
* @module model/CreateMonitor
|
|
34
|
-
* @version 6.
|
|
34
|
+
* @version 6.3.0-beta.10
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -132,6 +132,15 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
132
132
|
if (data.hasOwnProperty("uid")) {
|
|
133
133
|
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
134
134
|
}
|
|
135
|
+
if (data.hasOwnProperty("usage_scope")) {
|
|
136
|
+
obj["usage_scope"] = _ApiClient["default"].convertToType(data["usage_scope"], "String");
|
|
137
|
+
}
|
|
138
|
+
if (data.hasOwnProperty("usage_type")) {
|
|
139
|
+
obj["usage_type"] = _ApiClient["default"].convertToType(data["usage_type"], "String");
|
|
140
|
+
}
|
|
141
|
+
if (data.hasOwnProperty("usage_window")) {
|
|
142
|
+
obj["usage_window"] = _ApiClient["default"].convertToType(data["usage_window"], "Number");
|
|
143
|
+
}
|
|
135
144
|
} else if (data === null) {
|
|
136
145
|
return null;
|
|
137
146
|
}
|
|
@@ -229,6 +238,14 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
229
238
|
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
230
239
|
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
231
240
|
}
|
|
241
|
+
// ensure the json data is a string
|
|
242
|
+
if (data["usage_scope"] && !(typeof data["usage_scope"] === "string" || data["usage_scope"] instanceof String)) {
|
|
243
|
+
throw new Error("Expected the field `usage_scope` to be a primitive type in the JSON string but got " + data["usage_scope"]);
|
|
244
|
+
}
|
|
245
|
+
// ensure the json data is a string
|
|
246
|
+
if (data["usage_type"] && !(typeof data["usage_type"] === "string" || data["usage_type"] instanceof String)) {
|
|
247
|
+
throw new Error("Expected the field `usage_type` to be a primitive type in the JSON string but got " + data["usage_type"]);
|
|
248
|
+
}
|
|
232
249
|
return true;
|
|
233
250
|
}
|
|
234
251
|
}]);
|
|
@@ -337,6 +354,24 @@ CreateMonitor.prototype["threshold"] = undefined;
|
|
|
337
354
|
*/
|
|
338
355
|
CreateMonitor.prototype["uid"] = undefined;
|
|
339
356
|
|
|
357
|
+
/**
|
|
358
|
+
* For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
|
|
359
|
+
* @member {String} usage_scope
|
|
360
|
+
*/
|
|
361
|
+
CreateMonitor.prototype["usage_scope"] = undefined;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
|
|
365
|
+
* @member {String} usage_type
|
|
366
|
+
*/
|
|
367
|
+
CreateMonitor.prototype["usage_type"] = undefined;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
|
|
371
|
+
* @member {Number} usage_window
|
|
372
|
+
*/
|
|
373
|
+
CreateMonitor.prototype["usage_window"] = undefined;
|
|
374
|
+
|
|
340
375
|
// Implement Monitor interface:
|
|
341
376
|
/**
|
|
342
377
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
@@ -422,6 +457,21 @@ _Monitor["default"].prototype["threshold"] = undefined;
|
|
|
422
457
|
* @member {String} uid
|
|
423
458
|
*/
|
|
424
459
|
_Monitor["default"].prototype["uid"] = undefined;
|
|
460
|
+
/**
|
|
461
|
+
* For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
|
|
462
|
+
* @member {String} usage_scope
|
|
463
|
+
*/
|
|
464
|
+
_Monitor["default"].prototype["usage_scope"] = undefined;
|
|
465
|
+
/**
|
|
466
|
+
* For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
|
|
467
|
+
* @member {String} usage_type
|
|
468
|
+
*/
|
|
469
|
+
_Monitor["default"].prototype["usage_type"] = undefined;
|
|
470
|
+
/**
|
|
471
|
+
* For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
|
|
472
|
+
* @member {Number} usage_window
|
|
473
|
+
*/
|
|
474
|
+
_Monitor["default"].prototype["usage_window"] = undefined;
|
|
425
475
|
|
|
426
476
|
/**
|
|
427
477
|
* Allowed values for the <code>aggregate_function</code> property.
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProductRequest model module.
|
|
31
31
|
* @module model/CreateProductRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -0,0 +1,130 @@
|
|
|
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 CreateProjectSecretRequest model module.
|
|
31
|
+
* @module model/CreateProjectSecretRequest
|
|
32
|
+
* @version 6.3.0-beta.10
|
|
33
|
+
*/
|
|
34
|
+
var CreateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateProjectSecretRequest</code>.
|
|
37
|
+
* @alias module:model/CreateProjectSecretRequest
|
|
38
|
+
* @param name {String} The secret name (alphanumeric and underscores only).
|
|
39
|
+
* @param value {String} The secret value (encrypted at rest, never returned after creation).
|
|
40
|
+
*/
|
|
41
|
+
function CreateProjectSecretRequest(name, value) {
|
|
42
|
+
_classCallCheck(this, CreateProjectSecretRequest);
|
|
43
|
+
CreateProjectSecretRequest.initialize(this, name, value);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(CreateProjectSecretRequest, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, name, value) {
|
|
54
|
+
obj["name"] = name;
|
|
55
|
+
obj["value"] = value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>CreateProjectSecretRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/CreateProjectSecretRequest} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/CreateProjectSecretRequest} The populated <code>CreateProjectSecretRequest</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new CreateProjectSecretRequest();
|
|
70
|
+
if (data.hasOwnProperty("name")) {
|
|
71
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty("value")) {
|
|
74
|
+
obj["value"] = _ApiClient["default"].convertToType(data["value"], "String");
|
|
75
|
+
}
|
|
76
|
+
} else if (data === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Validates the JSON data with respect to <code>CreateProjectSecretRequest</code>.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateProjectSecretRequest</code>.
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "validateJSON",
|
|
89
|
+
value: function validateJSON(data) {
|
|
90
|
+
// check to make sure all required properties are present in the JSON string
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(CreateProjectSecretRequest.RequiredProperties),
|
|
92
|
+
_step;
|
|
93
|
+
try {
|
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
+
var property = _step.value;
|
|
96
|
+
if (!data[property]) {
|
|
97
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// ensure the json data is a string
|
|
101
|
+
} catch (err) {
|
|
102
|
+
_iterator.e(err);
|
|
103
|
+
} finally {
|
|
104
|
+
_iterator.f();
|
|
105
|
+
}
|
|
106
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
107
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data["value"] && !(typeof data["value"] === "string" || data["value"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data["value"]);
|
|
112
|
+
}
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
}]);
|
|
116
|
+
}();
|
|
117
|
+
CreateProjectSecretRequest.RequiredProperties = ["name", "value"];
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The secret name (alphanumeric and underscores only).
|
|
121
|
+
* @member {String} name
|
|
122
|
+
*/
|
|
123
|
+
CreateProjectSecretRequest.prototype["name"] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The secret value (encrypted at rest, never returned after creation).
|
|
127
|
+
* @member {String} value
|
|
128
|
+
*/
|
|
129
|
+
CreateProjectSecretRequest.prototype["value"] = undefined;
|
|
130
|
+
var _default = exports["default"] = CreateProjectSecretRequest;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.3.0-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|