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