@blues-inc/notehub-js 2.2.0-beta.30 → 2.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 +21 -18
- 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 +1 -13
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +10 -10
- package/dist/api/UsageApi.js +8 -8
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +85 -64
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/{Aws.js → AwsRoute.js} +39 -45
- package/dist/model/{Azure.js → AzureRoute.js} +34 -40
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +147 -0
- package/dist/model/Body.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 +15 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- 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 +165 -0
- package/dist/model/DeleteDeviceFleetsRequest.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/{AwsFilter.js → Filter.js} +25 -47
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +16 -2
- package/dist/model/FleetConnectivityAssurance.js +111 -0
- package/dist/model/GetAlerts200Response.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/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/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/{Google.js → GoogleRoute.js} +32 -37
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/{Http.js → HttpRoute.js} +34 -40
- 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 +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/{Mqtt.js → MqttRoute.js} +45 -50
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +214 -134
- package/dist/model/{UserDbRoute.js → NotehubRouteSummary.js} +24 -29
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- 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/PostProvisionProjectDeviceRequest.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/{Proxy.js → ProxyRoute.js} +22 -26
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QubitroRoute.js +159 -0
- package/dist/model/{Radresponder.js → RadRoute.js} +38 -26
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/{SlackTransform.js → RouteTransformSettings.js} +22 -22
- package/dist/model/S3ArchiveRoute.js +271 -0
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/{Slack.js → SlackRoute.js} +35 -58
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/{Snowflake.js → SnowflakeRoute.js} +34 -41
- package/dist/model/{Thingworx.js → ThingworxRoute.js} +32 -37
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/{Twilio.js → TwilioRoute.js} +30 -39
- package/dist/model/UpdateFleetRequest.js +15 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +20 -7
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +2 -2
- 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
- package/dist/model/AwsTransform.js +0 -148
- package/dist/model/NotehubRouteSchema.js +0 -505
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.0-beta.
|
|
29
|
+
* The HttpRoute model module.
|
|
30
|
+
* @module model/HttpRoute
|
|
31
|
+
* @version 2.2.0-beta.31
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var HttpRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Http
|
|
35
|
+
* Constructs a new <code>HttpRoute</code>.
|
|
36
|
+
* @alias module:model/HttpRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function HttpRoute() {
|
|
39
|
+
_classCallCheck(this, HttpRoute);
|
|
40
|
+
HttpRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,27 +45,27 @@ var Http = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(HttpRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>HttpRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/HttpRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/HttpRoute} The populated <code>HttpRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new HttpRoute();
|
|
65
64
|
if (data.hasOwnProperty('disable_http_headers')) {
|
|
66
65
|
obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
|
|
67
66
|
}
|
|
68
67
|
if (data.hasOwnProperty('filter')) {
|
|
69
|
-
obj['filter'] =
|
|
68
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
70
69
|
}
|
|
71
70
|
if (data.hasOwnProperty('fleets')) {
|
|
72
71
|
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
@@ -83,7 +82,7 @@ var Http = /*#__PURE__*/function () {
|
|
|
83
82
|
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
84
83
|
}
|
|
85
84
|
if (data.hasOwnProperty('transform')) {
|
|
86
|
-
obj['transform'] =
|
|
85
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
87
86
|
}
|
|
88
87
|
if (data.hasOwnProperty('url')) {
|
|
89
88
|
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
@@ -95,9 +94,9 @@ var Http = /*#__PURE__*/function () {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
* Validates the JSON data with respect to <code>
|
|
97
|
+
* Validates the JSON data with respect to <code>HttpRoute</code>.
|
|
99
98
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
100
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>HttpRoute</code>.
|
|
101
100
|
*/
|
|
102
101
|
}, {
|
|
103
102
|
key: "validateJSON",
|
|
@@ -105,7 +104,7 @@ var Http = /*#__PURE__*/function () {
|
|
|
105
104
|
// validate the optional field `filter`
|
|
106
105
|
if (data['filter']) {
|
|
107
106
|
// data not null
|
|
108
|
-
|
|
107
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
109
108
|
}
|
|
110
109
|
// ensure the json data is an array
|
|
111
110
|
if (!Array.isArray(data['fleets'])) {
|
|
@@ -114,7 +113,7 @@ var Http = /*#__PURE__*/function () {
|
|
|
114
113
|
// validate the optional field `transform`
|
|
115
114
|
if (data['transform']) {
|
|
116
115
|
// data not null
|
|
117
|
-
|
|
116
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
118
117
|
}
|
|
119
118
|
// ensure the json data is a string
|
|
120
119
|
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
@@ -126,47 +125,42 @@ var Http = /*#__PURE__*/function () {
|
|
|
126
125
|
}();
|
|
127
126
|
/**
|
|
128
127
|
* @member {Boolean} disable_http_headers
|
|
129
|
-
* @default false
|
|
130
128
|
*/
|
|
131
|
-
|
|
129
|
+
HttpRoute.prototype['disable_http_headers'] = undefined;
|
|
132
130
|
|
|
133
131
|
/**
|
|
134
|
-
* @member {module:model/
|
|
132
|
+
* @member {module:model/Filter} filter
|
|
135
133
|
*/
|
|
136
|
-
|
|
134
|
+
HttpRoute.prototype['filter'] = undefined;
|
|
137
135
|
|
|
138
136
|
/**
|
|
139
|
-
*
|
|
137
|
+
* If non-empty, applies only to the listed fleets.
|
|
140
138
|
* @member {Array.<String>} fleets
|
|
141
139
|
*/
|
|
142
|
-
|
|
140
|
+
HttpRoute.prototype['fleets'] = undefined;
|
|
143
141
|
|
|
144
142
|
/**
|
|
145
143
|
* @member {Object.<String, String>} http_headers
|
|
146
144
|
*/
|
|
147
|
-
|
|
145
|
+
HttpRoute.prototype['http_headers'] = undefined;
|
|
148
146
|
|
|
149
147
|
/**
|
|
150
|
-
* Minimum time between requests in Miliseconds
|
|
151
148
|
* @member {Number} throttle_ms
|
|
152
149
|
*/
|
|
153
|
-
|
|
150
|
+
HttpRoute.prototype['throttle_ms'] = undefined;
|
|
154
151
|
|
|
155
152
|
/**
|
|
156
|
-
* Timeout in seconds for each request
|
|
157
153
|
* @member {Number} timeout
|
|
158
|
-
* @default 15
|
|
159
154
|
*/
|
|
160
|
-
|
|
155
|
+
HttpRoute.prototype['timeout'] = undefined;
|
|
161
156
|
|
|
162
157
|
/**
|
|
163
|
-
* @member {module:model/
|
|
158
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
164
159
|
*/
|
|
165
|
-
|
|
160
|
+
HttpRoute.prototype['transform'] = undefined;
|
|
166
161
|
|
|
167
162
|
/**
|
|
168
|
-
* Route URL
|
|
169
163
|
* @member {String} url
|
|
170
164
|
*/
|
|
171
|
-
|
|
172
|
-
var _default = exports["default"] =
|
|
165
|
+
HttpRoute.prototype['url'] = undefined;
|
|
166
|
+
var _default = exports["default"] = HttpRoute;
|
package/dist/model/Location.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Location model module.
|
|
31
31
|
* @module model/Location
|
|
32
|
-
* @version 2.2.0-beta.
|
|
32
|
+
* @version 2.2.0-beta.31
|
|
33
33
|
*/
|
|
34
34
|
var Location = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Login200Response model module.
|
|
28
28
|
* @module model/Login200Response
|
|
29
|
-
* @version 2.2.0-beta.
|
|
29
|
+
* @version 2.2.0-beta.31
|
|
30
30
|
*/
|
|
31
31
|
var Login200Response = /*#__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 LoginRequest model module.
|
|
28
28
|
* @module model/LoginRequest
|
|
29
|
-
* @version 2.2.0-beta.
|
|
29
|
+
* @version 2.2.0-beta.31
|
|
30
30
|
*/
|
|
31
31
|
var LoginRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Monitor.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The MonitorAlertRoutesInner model module.
|
|
33
33
|
* @module model/MonitorAlertRoutesInner
|
|
34
|
-
* @version 2.2.0-beta.
|
|
34
|
+
* @version 2.2.0-beta.31
|
|
35
35
|
*/
|
|
36
36
|
var MonitorAlertRoutesInner = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.0-beta.
|
|
29
|
+
* The MqttRoute model module.
|
|
30
|
+
* @module model/MqttRoute
|
|
31
|
+
* @version 2.2.0-beta.31
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var MqttRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Mqtt
|
|
35
|
+
* Constructs a new <code>MqttRoute</code>.
|
|
36
|
+
* @alias module:model/MqttRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function MqttRoute() {
|
|
39
|
+
_classCallCheck(this, MqttRoute);
|
|
40
|
+
MqttRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,22 +45,22 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(MqttRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>MqttRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/MqttRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/MqttRoute} The populated <code>MqttRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new MqttRoute();
|
|
65
64
|
if (data.hasOwnProperty('broker')) {
|
|
66
65
|
obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
|
|
67
66
|
}
|
|
@@ -72,7 +71,7 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
72
71
|
obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
|
|
73
72
|
}
|
|
74
73
|
if (data.hasOwnProperty('filter')) {
|
|
75
|
-
obj['filter'] =
|
|
74
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
76
75
|
}
|
|
77
76
|
if (data.hasOwnProperty('fleets')) {
|
|
78
77
|
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
@@ -84,7 +83,7 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
84
83
|
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
85
84
|
}
|
|
86
85
|
if (data.hasOwnProperty('port')) {
|
|
87
|
-
obj['port'] = _ApiClient["default"].convertToType(data['port'], '
|
|
86
|
+
obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String');
|
|
88
87
|
}
|
|
89
88
|
if (data.hasOwnProperty('private_key_name')) {
|
|
90
89
|
obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
|
|
@@ -99,7 +98,7 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
99
98
|
obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
|
|
100
99
|
}
|
|
101
100
|
if (data.hasOwnProperty('transform')) {
|
|
102
|
-
obj['transform'] =
|
|
101
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
103
102
|
}
|
|
104
103
|
if (data.hasOwnProperty('username')) {
|
|
105
104
|
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
@@ -111,9 +110,9 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
/**
|
|
114
|
-
* Validates the JSON data with respect to <code>
|
|
113
|
+
* Validates the JSON data with respect to <code>MqttRoute</code>.
|
|
115
114
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
116
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
115
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>MqttRoute</code>.
|
|
117
116
|
*/
|
|
118
117
|
}, {
|
|
119
118
|
key: "validateJSON",
|
|
@@ -133,7 +132,7 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
133
132
|
// validate the optional field `filter`
|
|
134
133
|
if (data['filter']) {
|
|
135
134
|
// data not null
|
|
136
|
-
|
|
135
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
137
136
|
}
|
|
138
137
|
// ensure the json data is an array
|
|
139
138
|
if (!Array.isArray(data['fleets'])) {
|
|
@@ -148,6 +147,10 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
148
147
|
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
149
148
|
}
|
|
150
149
|
// ensure the json data is a string
|
|
150
|
+
if (data['port'] && !(typeof data['port'] === 'string' || data['port'] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `port` to be a primitive type in the JSON string but got " + data['port']);
|
|
152
|
+
}
|
|
153
|
+
// ensure the json data is a string
|
|
151
154
|
if (data['private_key_name'] && !(typeof data['private_key_name'] === 'string' || data['private_key_name'] instanceof String)) {
|
|
152
155
|
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data['private_key_name']);
|
|
153
156
|
}
|
|
@@ -158,7 +161,7 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
158
161
|
// validate the optional field `transform`
|
|
159
162
|
if (data['transform']) {
|
|
160
163
|
// data not null
|
|
161
|
-
|
|
164
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
162
165
|
}
|
|
163
166
|
// ensure the json data is a string
|
|
164
167
|
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
@@ -171,78 +174,70 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
171
174
|
/**
|
|
172
175
|
* @member {String} broker
|
|
173
176
|
*/
|
|
174
|
-
|
|
177
|
+
MqttRoute.prototype['broker'] = undefined;
|
|
175
178
|
|
|
176
179
|
/**
|
|
177
|
-
* Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
178
180
|
* @member {String} certificate
|
|
179
181
|
*/
|
|
180
|
-
|
|
182
|
+
MqttRoute.prototype['certificate'] = undefined;
|
|
181
183
|
|
|
182
184
|
/**
|
|
183
|
-
* Name of certificate.
|
|
184
185
|
* @member {String} certificate_name
|
|
185
186
|
*/
|
|
186
|
-
|
|
187
|
+
MqttRoute.prototype['certificate_name'] = undefined;
|
|
187
188
|
|
|
188
189
|
/**
|
|
189
|
-
* @member {module:model/
|
|
190
|
+
* @member {module:model/Filter} filter
|
|
190
191
|
*/
|
|
191
|
-
|
|
192
|
+
MqttRoute.prototype['filter'] = undefined;
|
|
192
193
|
|
|
193
194
|
/**
|
|
194
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
195
195
|
* @member {Array.<String>} fleets
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
MqttRoute.prototype['fleets'] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
* Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
201
200
|
* @member {String} key
|
|
202
201
|
*/
|
|
203
|
-
|
|
202
|
+
MqttRoute.prototype['key'] = undefined;
|
|
204
203
|
|
|
205
204
|
/**
|
|
206
|
-
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
207
205
|
* @member {String} password
|
|
208
206
|
*/
|
|
209
|
-
|
|
207
|
+
MqttRoute.prototype['password'] = undefined;
|
|
210
208
|
|
|
211
209
|
/**
|
|
212
|
-
* @member {
|
|
210
|
+
* @member {String} port
|
|
213
211
|
*/
|
|
214
|
-
|
|
212
|
+
MqttRoute.prototype['port'] = undefined;
|
|
215
213
|
|
|
216
214
|
/**
|
|
217
|
-
* Name of key
|
|
218
215
|
* @member {String} private_key_name
|
|
219
216
|
*/
|
|
220
|
-
|
|
217
|
+
MqttRoute.prototype['private_key_name'] = undefined;
|
|
221
218
|
|
|
222
219
|
/**
|
|
223
220
|
* @member {Number} throttle_ms
|
|
224
221
|
*/
|
|
225
|
-
|
|
222
|
+
MqttRoute.prototype['throttle_ms'] = undefined;
|
|
226
223
|
|
|
227
224
|
/**
|
|
228
|
-
* Timeout in seconds for each request
|
|
229
225
|
* @member {Number} timeout
|
|
230
|
-
* @default 15
|
|
231
226
|
*/
|
|
232
|
-
|
|
227
|
+
MqttRoute.prototype['timeout'] = undefined;
|
|
233
228
|
|
|
234
229
|
/**
|
|
235
230
|
* @member {String} topic
|
|
236
231
|
*/
|
|
237
|
-
|
|
232
|
+
MqttRoute.prototype['topic'] = undefined;
|
|
238
233
|
|
|
239
234
|
/**
|
|
240
|
-
* @member {module:model/
|
|
235
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
241
236
|
*/
|
|
242
|
-
|
|
237
|
+
MqttRoute.prototype['transform'] = undefined;
|
|
243
238
|
|
|
244
239
|
/**
|
|
245
240
|
* @member {String} username
|
|
246
241
|
*/
|
|
247
|
-
|
|
248
|
-
var _default = exports["default"] =
|
|
242
|
+
MqttRoute.prototype['username'] = undefined;
|
|
243
|
+
var _default = exports["default"] = MqttRoute;
|
package/dist/model/Note.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The NotefileSchema model module.
|
|
32
32
|
* @module model/NotefileSchema
|
|
33
|
-
* @version 2.2.0-beta.
|
|
33
|
+
* @version 2.2.0-beta.31
|
|
34
34
|
*/
|
|
35
35
|
var NotefileSchema = /*#__PURE__*/function () {
|
|
36
36
|
/**
|