@blues-inc/notehub-js 1.0.37-beta.7 → 1.0.37-beta.8
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 +7 -10
- 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 +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +14 -14
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +38 -59
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
- package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
- package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/PersonalAccessToken.js +37 -37
- package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
- package/dist/model/PersonalAccessTokenInfo.js +13 -13
- package/dist/model/PersonalAccessTokenSecret.js +14 -14
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +34 -36
- package/dist/model/SimUsage.js +16 -69
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +68 -68
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/DataSet.js +0 -164
- package/dist/model/QuestionDataResponseLineChart.js +0 -204
- package/dist/model/QuestionDataResponseMap.js +0 -143
|
@@ -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 1.0.37-beta.
|
|
34
|
+
* @version 1.0.37-beta.8
|
|
35
35
|
*/
|
|
36
36
|
var MonitorAlertRoutesInner = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -145,8 +145,8 @@ var MonitorAlertRoutesInner = /*#__PURE__*/function () {
|
|
|
145
145
|
}]);
|
|
146
146
|
}();
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @member {
|
|
148
|
+
* text or blocks
|
|
149
|
+
* @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
|
|
150
150
|
*/
|
|
151
151
|
_MonitorAlertRoutesInner = MonitorAlertRoutesInner;
|
|
152
152
|
/**
|
|
@@ -157,12 +157,6 @@ _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
|
|
|
157
157
|
_defineProperty(MonitorAlertRoutesInner, "fromJSON", function (json_string) {
|
|
158
158
|
return _MonitorAlertRoutesInner.constructFromObject(JSON.parse(json_string));
|
|
159
159
|
});
|
|
160
|
-
MonitorAlertRoutesInner.prototype['url'] = undefined;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* text or blocks
|
|
164
|
-
* @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
|
|
165
|
-
*/
|
|
166
160
|
MonitorAlertRoutesInner.prototype['message_type'] = undefined;
|
|
167
161
|
|
|
168
162
|
/**
|
|
@@ -172,10 +166,10 @@ MonitorAlertRoutesInner.prototype['message_type'] = undefined;
|
|
|
172
166
|
MonitorAlertRoutesInner.prototype['text'] = undefined;
|
|
173
167
|
|
|
174
168
|
/**
|
|
175
|
-
* The
|
|
176
|
-
* @member {String}
|
|
169
|
+
* The URL of the Slack webhook.
|
|
170
|
+
* @member {String} url
|
|
177
171
|
*/
|
|
178
|
-
MonitorAlertRoutesInner.prototype['
|
|
172
|
+
MonitorAlertRoutesInner.prototype['url'] = undefined;
|
|
179
173
|
|
|
180
174
|
/**
|
|
181
175
|
* The channel to send the message to.
|
|
@@ -183,6 +177,12 @@ MonitorAlertRoutesInner.prototype['token'] = undefined;
|
|
|
183
177
|
*/
|
|
184
178
|
MonitorAlertRoutesInner.prototype['channel'] = undefined;
|
|
185
179
|
|
|
180
|
+
/**
|
|
181
|
+
* The bearer token for the Slack app.
|
|
182
|
+
* @member {String} token
|
|
183
|
+
*/
|
|
184
|
+
MonitorAlertRoutesInner.prototype['token'] = undefined;
|
|
185
|
+
|
|
186
186
|
/**
|
|
187
187
|
* Email Address
|
|
188
188
|
* @member {String} email
|
package/dist/model/Mqtt.js
CHANGED
|
@@ -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"); }
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Mqtt model module.
|
|
30
30
|
* @module model/Mqtt
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.8
|
|
32
32
|
*/
|
|
33
33
|
var Mqtt = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -62,47 +62,47 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function constructFromObject(data, obj) {
|
|
63
63
|
if (data) {
|
|
64
64
|
obj = obj || new Mqtt();
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('broker')) {
|
|
66
|
+
obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
68
|
+
if (data.hasOwnProperty('certificate')) {
|
|
69
|
+
obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty('
|
|
72
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('certificate_name')) {
|
|
72
|
+
obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty('
|
|
75
|
-
obj['
|
|
74
|
+
if (data.hasOwnProperty('filter')) {
|
|
75
|
+
obj['filter'] = _AwsFilter["default"].constructFromObject(data['filter']);
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty('
|
|
78
|
-
obj['
|
|
77
|
+
if (data.hasOwnProperty('fleets')) {
|
|
78
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('key')) {
|
|
81
|
+
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('password')) {
|
|
84
|
+
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
82
85
|
}
|
|
83
86
|
if (data.hasOwnProperty('port')) {
|
|
84
87
|
obj['port'] = _ApiClient["default"].convertToType(data['port'], 'Number');
|
|
85
88
|
}
|
|
86
|
-
if (data.hasOwnProperty('
|
|
87
|
-
obj['
|
|
89
|
+
if (data.hasOwnProperty('private_key_name')) {
|
|
90
|
+
obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
|
|
88
91
|
}
|
|
89
|
-
if (data.hasOwnProperty('
|
|
90
|
-
obj['
|
|
92
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
93
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('timeout')) {
|
|
96
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
91
97
|
}
|
|
92
98
|
if (data.hasOwnProperty('topic')) {
|
|
93
99
|
obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
|
|
94
100
|
}
|
|
95
|
-
if (data.hasOwnProperty('
|
|
96
|
-
obj['
|
|
97
|
-
}
|
|
98
|
-
if (data.hasOwnProperty('certificate_name')) {
|
|
99
|
-
obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
|
|
100
|
-
}
|
|
101
|
-
if (data.hasOwnProperty('key')) {
|
|
102
|
-
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
101
|
+
if (data.hasOwnProperty('transform')) {
|
|
102
|
+
obj['transform'] = _AwsTransform["default"].constructFromObject(data['transform']);
|
|
103
103
|
}
|
|
104
|
-
if (data.hasOwnProperty('
|
|
105
|
-
obj['
|
|
104
|
+
if (data.hasOwnProperty('username')) {
|
|
105
|
+
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
106
106
|
}
|
|
107
107
|
} else if (data === null) {
|
|
108
108
|
return null;
|
|
@@ -118,37 +118,11 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
118
118
|
}, {
|
|
119
119
|
key: "validateJSON",
|
|
120
120
|
value: function validateJSON(data) {
|
|
121
|
-
// ensure the json data is an array
|
|
122
|
-
if (!Array.isArray(data['fleets'])) {
|
|
123
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
124
|
-
}
|
|
125
|
-
// validate the optional field `filter`
|
|
126
|
-
if (data['filter']) {
|
|
127
|
-
// data not null
|
|
128
|
-
_HttpFilter["default"].validateJSON(data['filter']);
|
|
129
|
-
}
|
|
130
|
-
// validate the optional field `transform`
|
|
131
|
-
if (data['transform']) {
|
|
132
|
-
// data not null
|
|
133
|
-
_HttpTransform["default"].validateJSON(data['transform']);
|
|
134
|
-
}
|
|
135
121
|
// ensure the json data is a string
|
|
136
122
|
if (data['broker'] && !(typeof data['broker'] === 'string' || data['broker'] instanceof String)) {
|
|
137
123
|
throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data['broker']);
|
|
138
124
|
}
|
|
139
125
|
// ensure the json data is a string
|
|
140
|
-
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
141
|
-
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
|
142
|
-
}
|
|
143
|
-
// ensure the json data is a string
|
|
144
|
-
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
145
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
146
|
-
}
|
|
147
|
-
// ensure the json data is a string
|
|
148
|
-
if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
|
|
149
|
-
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
|
|
150
|
-
}
|
|
151
|
-
// ensure the json data is a string
|
|
152
126
|
if (data['certificate'] && !(typeof data['certificate'] === 'string' || data['certificate'] instanceof String)) {
|
|
153
127
|
throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data['certificate']);
|
|
154
128
|
}
|
|
@@ -156,93 +130,119 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
156
130
|
if (data['certificate_name'] && !(typeof data['certificate_name'] === 'string' || data['certificate_name'] instanceof String)) {
|
|
157
131
|
throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data['certificate_name']);
|
|
158
132
|
}
|
|
133
|
+
// validate the optional field `filter`
|
|
134
|
+
if (data['filter']) {
|
|
135
|
+
// data not null
|
|
136
|
+
_AwsFilter["default"].validateJSON(data['filter']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is an array
|
|
139
|
+
if (!Array.isArray(data['fleets'])) {
|
|
140
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
141
|
+
}
|
|
159
142
|
// ensure the json data is a string
|
|
160
143
|
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
|
|
161
144
|
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
|
|
162
145
|
}
|
|
163
146
|
// ensure the json data is a string
|
|
147
|
+
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
149
|
+
}
|
|
150
|
+
// ensure the json data is a string
|
|
164
151
|
if (data['private_key_name'] && !(typeof data['private_key_name'] === 'string' || data['private_key_name'] instanceof String)) {
|
|
165
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']);
|
|
166
153
|
}
|
|
154
|
+
// ensure the json data is a string
|
|
155
|
+
if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
|
|
156
|
+
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
|
|
157
|
+
}
|
|
158
|
+
// validate the optional field `transform`
|
|
159
|
+
if (data['transform']) {
|
|
160
|
+
// data not null
|
|
161
|
+
_AwsTransform["default"].validateJSON(data['transform']);
|
|
162
|
+
}
|
|
163
|
+
// ensure the json data is a string
|
|
164
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
165
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
|
166
|
+
}
|
|
167
167
|
return true;
|
|
168
168
|
}
|
|
169
169
|
}]);
|
|
170
170
|
}();
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
173
|
-
* @member {Array.<String>} fleets
|
|
172
|
+
* @member {String} broker
|
|
174
173
|
*/
|
|
175
|
-
Mqtt.prototype['
|
|
174
|
+
Mqtt.prototype['broker'] = undefined;
|
|
176
175
|
|
|
177
176
|
/**
|
|
178
|
-
*
|
|
177
|
+
* Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
178
|
+
* @member {String} certificate
|
|
179
179
|
*/
|
|
180
|
-
Mqtt.prototype['
|
|
180
|
+
Mqtt.prototype['certificate'] = undefined;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Name of certificate.
|
|
184
|
+
* @member {String} certificate_name
|
|
184
185
|
*/
|
|
185
|
-
Mqtt.prototype['
|
|
186
|
+
Mqtt.prototype['certificate_name'] = undefined;
|
|
186
187
|
|
|
187
188
|
/**
|
|
188
|
-
* @member {
|
|
189
|
+
* @member {module:model/AwsFilter} filter
|
|
189
190
|
*/
|
|
190
|
-
Mqtt.prototype['
|
|
191
|
+
Mqtt.prototype['filter'] = undefined;
|
|
191
192
|
|
|
192
193
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @member {
|
|
195
|
-
* @default 15
|
|
194
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
195
|
+
* @member {Array.<String>} fleets
|
|
196
196
|
*/
|
|
197
|
-
Mqtt.prototype['
|
|
197
|
+
Mqtt.prototype['fleets'] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
201
|
+
* @member {String} key
|
|
201
202
|
*/
|
|
202
|
-
Mqtt.prototype['
|
|
203
|
+
Mqtt.prototype['key'] = undefined;
|
|
203
204
|
|
|
204
205
|
/**
|
|
205
|
-
*
|
|
206
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
207
|
+
* @member {String} password
|
|
206
208
|
*/
|
|
207
|
-
Mqtt.prototype['
|
|
209
|
+
Mqtt.prototype['password'] = undefined;
|
|
208
210
|
|
|
209
211
|
/**
|
|
210
|
-
* @member {
|
|
212
|
+
* @member {Number} port
|
|
211
213
|
*/
|
|
212
|
-
Mqtt.prototype['
|
|
214
|
+
Mqtt.prototype['port'] = undefined;
|
|
213
215
|
|
|
214
216
|
/**
|
|
215
|
-
*
|
|
216
|
-
* @member {String}
|
|
217
|
+
* Name of key
|
|
218
|
+
* @member {String} private_key_name
|
|
217
219
|
*/
|
|
218
|
-
Mqtt.prototype['
|
|
220
|
+
Mqtt.prototype['private_key_name'] = undefined;
|
|
219
221
|
|
|
220
222
|
/**
|
|
221
|
-
* @member {
|
|
223
|
+
* @member {Number} throttle_ms
|
|
222
224
|
*/
|
|
223
|
-
Mqtt.prototype['
|
|
225
|
+
Mqtt.prototype['throttle_ms'] = undefined;
|
|
224
226
|
|
|
225
227
|
/**
|
|
226
|
-
*
|
|
227
|
-
* @member {
|
|
228
|
+
* Timeout in seconds for each request
|
|
229
|
+
* @member {Number} timeout
|
|
230
|
+
* @default 15
|
|
228
231
|
*/
|
|
229
|
-
Mqtt.prototype['
|
|
232
|
+
Mqtt.prototype['timeout'] = 15;
|
|
230
233
|
|
|
231
234
|
/**
|
|
232
|
-
*
|
|
233
|
-
* @member {String} certificate_name
|
|
235
|
+
* @member {String} topic
|
|
234
236
|
*/
|
|
235
|
-
Mqtt.prototype['
|
|
237
|
+
Mqtt.prototype['topic'] = undefined;
|
|
236
238
|
|
|
237
239
|
/**
|
|
238
|
-
*
|
|
239
|
-
* @member {String} key
|
|
240
|
+
* @member {module:model/AwsTransform} transform
|
|
240
241
|
*/
|
|
241
|
-
Mqtt.prototype['
|
|
242
|
+
Mqtt.prototype['transform'] = undefined;
|
|
242
243
|
|
|
243
244
|
/**
|
|
244
|
-
*
|
|
245
|
-
* @member {String} private_key_name
|
|
245
|
+
* @member {String} username
|
|
246
246
|
*/
|
|
247
|
-
Mqtt.prototype['
|
|
247
|
+
Mqtt.prototype['username'] = undefined;
|
|
248
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 1.0.37-beta.
|
|
33
|
+
* @version 1.0.37-beta.8
|
|
34
34
|
*/
|
|
35
35
|
var NotefileSchema = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The NotehubRoute model module.
|
|
29
29
|
* @module model/NotehubRoute
|
|
30
|
-
* @version 1.0.37-beta.
|
|
30
|
+
* @version 1.0.37-beta.8
|
|
31
31
|
*/
|
|
32
32
|
var NotehubRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,24 +60,24 @@ var NotehubRoute = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new NotehubRoute();
|
|
63
|
-
if (data.hasOwnProperty('
|
|
64
|
-
obj['
|
|
63
|
+
if (data.hasOwnProperty('disabled')) {
|
|
64
|
+
obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
|
|
65
65
|
}
|
|
66
66
|
if (data.hasOwnProperty('label')) {
|
|
67
67
|
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty('route_type')) {
|
|
70
|
-
obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
|
|
71
|
-
}
|
|
72
69
|
if (data.hasOwnProperty('modified')) {
|
|
73
70
|
obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
|
|
74
71
|
}
|
|
75
|
-
if (data.hasOwnProperty('
|
|
76
|
-
obj['
|
|
72
|
+
if (data.hasOwnProperty('route_type')) {
|
|
73
|
+
obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
|
|
77
74
|
}
|
|
78
75
|
if (data.hasOwnProperty('schema')) {
|
|
79
76
|
obj['schema'] = _NotehubRouteSchema["default"].constructFromObject(data['schema']);
|
|
80
77
|
}
|
|
78
|
+
if (data.hasOwnProperty('uid')) {
|
|
79
|
+
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
|
|
80
|
+
}
|
|
81
81
|
} else if (data === null) {
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
@@ -92,36 +92,37 @@ var NotehubRoute = /*#__PURE__*/function () {
|
|
|
92
92
|
}, {
|
|
93
93
|
key: "validateJSON",
|
|
94
94
|
value: function validateJSON(data) {
|
|
95
|
-
// ensure the json data is a string
|
|
96
|
-
if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
97
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
98
|
-
}
|
|
99
95
|
// ensure the json data is a string
|
|
100
96
|
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
101
97
|
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
102
98
|
}
|
|
103
99
|
// ensure the json data is a string
|
|
104
|
-
if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
|
|
105
|
-
throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
|
|
106
|
-
}
|
|
107
|
-
// ensure the json data is a string
|
|
108
100
|
if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
|
|
109
101
|
throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
|
|
110
102
|
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
|
|
106
|
+
}
|
|
111
107
|
// validate the optional field `schema`
|
|
112
108
|
if (data['schema']) {
|
|
113
109
|
// data not null
|
|
114
110
|
_NotehubRouteSchema["default"].validateJSON(data['schema']);
|
|
115
111
|
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
115
|
+
}
|
|
116
116
|
return true;
|
|
117
117
|
}
|
|
118
118
|
}]);
|
|
119
119
|
}();
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @member {
|
|
121
|
+
* Is route disabled?
|
|
122
|
+
* @member {Boolean} disabled
|
|
123
|
+
* @default false
|
|
123
124
|
*/
|
|
124
|
-
NotehubRoute.prototype['
|
|
125
|
+
NotehubRoute.prototype['disabled'] = false;
|
|
125
126
|
|
|
126
127
|
/**
|
|
127
128
|
* Route Label
|
|
@@ -129,13 +130,6 @@ NotehubRoute.prototype['uid'] = undefined;
|
|
|
129
130
|
*/
|
|
130
131
|
NotehubRoute.prototype['label'] = undefined;
|
|
131
132
|
|
|
132
|
-
/**
|
|
133
|
-
* Type of route.
|
|
134
|
-
* @member {module:model/NotehubRoute.RouteTypeEnum} route_type
|
|
135
|
-
* @default 'http'
|
|
136
|
-
*/
|
|
137
|
-
NotehubRoute.prototype['route_type'] = 'http';
|
|
138
|
-
|
|
139
133
|
/**
|
|
140
134
|
* Last Modified
|
|
141
135
|
* @member {String} modified
|
|
@@ -143,17 +137,23 @@ NotehubRoute.prototype['route_type'] = 'http';
|
|
|
143
137
|
NotehubRoute.prototype['modified'] = undefined;
|
|
144
138
|
|
|
145
139
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @member {
|
|
148
|
-
* @default
|
|
140
|
+
* Type of route.
|
|
141
|
+
* @member {module:model/NotehubRoute.RouteTypeEnum} route_type
|
|
142
|
+
* @default 'http'
|
|
149
143
|
*/
|
|
150
|
-
NotehubRoute.prototype['
|
|
144
|
+
NotehubRoute.prototype['route_type'] = 'http';
|
|
151
145
|
|
|
152
146
|
/**
|
|
153
147
|
* @member {module:model/NotehubRouteSchema} schema
|
|
154
148
|
*/
|
|
155
149
|
NotehubRoute.prototype['schema'] = undefined;
|
|
156
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Route UID
|
|
153
|
+
* @member {String} uid
|
|
154
|
+
*/
|
|
155
|
+
NotehubRoute.prototype['uid'] = undefined;
|
|
156
|
+
|
|
157
157
|
/**
|
|
158
158
|
* Allowed values for the <code>route_type</code> property.
|
|
159
159
|
* @enum {String}
|