@blues-inc/notehub-js 2.3.0 → 3.0.0-beta.2
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 +250 -241
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +843 -831
- package/dist/api/EventApi.js +178 -178
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +562 -562
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +65 -44
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +80 -73
- package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +26 -26
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +17 -17
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +26 -26
- package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +24 -24
- package/dist/model/Device.js +115 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +35 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +29 -29
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +26 -25
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +38 -37
- package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +35 -34
- package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +39 -38
- package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +42 -41
- package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +27 -27
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +27 -27
- package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +30 -30
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +112 -98
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +36 -36
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +21 -21
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +30 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +40 -29
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +27 -27
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/model/MqttRoute.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The MqttRoute model module.
|
|
30
30
|
* @module model/MqttRoute
|
|
31
|
-
* @version
|
|
31
|
+
* @version 3.0.0-beta.2
|
|
32
32
|
*/
|
|
33
33
|
var MqttRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,47 +61,47 @@ var MqttRoute = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new MqttRoute();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty('broker')) {
|
|
65
|
+
obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('certificate')) {
|
|
68
|
+
obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('certificate_name')) {
|
|
71
|
+
obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty('filter')) {
|
|
74
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty('fleets')) {
|
|
77
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty('key')) {
|
|
80
|
+
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty('password')) {
|
|
83
|
+
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty('port')) {
|
|
86
|
+
obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String');
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty('private_key_name')) {
|
|
89
|
+
obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
92
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty('timeout')) {
|
|
95
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty('topic')) {
|
|
98
|
+
obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty('transform')) {
|
|
101
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty('username')) {
|
|
104
|
+
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
105
105
|
}
|
|
106
106
|
} else if (data === null) {
|
|
107
107
|
return null;
|
|
@@ -118,54 +118,54 @@ var MqttRoute = /*#__PURE__*/function () {
|
|
|
118
118
|
key: "validateJSON",
|
|
119
119
|
value: function validateJSON(data) {
|
|
120
120
|
// ensure the json data is a string
|
|
121
|
-
if (data[
|
|
122
|
-
throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data[
|
|
121
|
+
if (data['broker'] && !(typeof data['broker'] === 'string' || data['broker'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data['broker']);
|
|
123
123
|
}
|
|
124
124
|
// ensure the json data is a string
|
|
125
|
-
if (data[
|
|
126
|
-
throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data[
|
|
125
|
+
if (data['certificate'] && !(typeof data['certificate'] === 'string' || data['certificate'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data['certificate']);
|
|
127
127
|
}
|
|
128
128
|
// ensure the json data is a string
|
|
129
|
-
if (data[
|
|
130
|
-
throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data[
|
|
129
|
+
if (data['certificate_name'] && !(typeof data['certificate_name'] === 'string' || data['certificate_name'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data['certificate_name']);
|
|
131
131
|
}
|
|
132
132
|
// validate the optional field `filter`
|
|
133
|
-
if (data[
|
|
133
|
+
if (data['filter']) {
|
|
134
134
|
// data not null
|
|
135
|
-
_Filter["default"].validateJSON(data[
|
|
135
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
136
136
|
}
|
|
137
137
|
// ensure the json data is an array
|
|
138
|
-
if (!Array.isArray(data[
|
|
139
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
138
|
+
if (!Array.isArray(data['fleets'])) {
|
|
139
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
140
140
|
}
|
|
141
141
|
// ensure the json data is a string
|
|
142
|
-
if (data[
|
|
143
|
-
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data[
|
|
142
|
+
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
|
|
144
144
|
}
|
|
145
145
|
// ensure the json data is a string
|
|
146
|
-
if (data[
|
|
147
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data[
|
|
146
|
+
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
148
148
|
}
|
|
149
149
|
// ensure the json data is a string
|
|
150
|
-
if (data[
|
|
151
|
-
throw new Error("Expected the field `port` to be a primitive type in the JSON string but got " + data[
|
|
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
152
|
}
|
|
153
153
|
// ensure the json data is a string
|
|
154
|
-
if (data[
|
|
155
|
-
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data[
|
|
154
|
+
if (data['private_key_name'] && !(typeof data['private_key_name'] === 'string' || data['private_key_name'] instanceof String)) {
|
|
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']);
|
|
156
156
|
}
|
|
157
157
|
// ensure the json data is a string
|
|
158
|
-
if (data[
|
|
159
|
-
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data[
|
|
158
|
+
if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
|
|
159
|
+
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
|
|
160
160
|
}
|
|
161
161
|
// validate the optional field `transform`
|
|
162
|
-
if (data[
|
|
162
|
+
if (data['transform']) {
|
|
163
163
|
// data not null
|
|
164
|
-
_RouteTransformSettings["default"].validateJSON(data[
|
|
164
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
165
165
|
}
|
|
166
166
|
// ensure the json data is a string
|
|
167
|
-
if (data[
|
|
168
|
-
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data[
|
|
167
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
|
169
169
|
}
|
|
170
170
|
return true;
|
|
171
171
|
}
|
|
@@ -174,70 +174,70 @@ var MqttRoute = /*#__PURE__*/function () {
|
|
|
174
174
|
/**
|
|
175
175
|
* @member {String} broker
|
|
176
176
|
*/
|
|
177
|
-
MqttRoute.prototype[
|
|
177
|
+
MqttRoute.prototype['broker'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* @member {String} certificate
|
|
181
181
|
*/
|
|
182
|
-
MqttRoute.prototype[
|
|
182
|
+
MqttRoute.prototype['certificate'] = undefined;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* @member {String} certificate_name
|
|
186
186
|
*/
|
|
187
|
-
MqttRoute.prototype[
|
|
187
|
+
MqttRoute.prototype['certificate_name'] = undefined;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* @member {module:model/Filter} filter
|
|
191
191
|
*/
|
|
192
|
-
MqttRoute.prototype[
|
|
192
|
+
MqttRoute.prototype['filter'] = undefined;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* @member {Array.<String>} fleets
|
|
196
196
|
*/
|
|
197
|
-
MqttRoute.prototype[
|
|
197
|
+
MqttRoute.prototype['fleets'] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* @member {String} key
|
|
201
201
|
*/
|
|
202
|
-
MqttRoute.prototype[
|
|
202
|
+
MqttRoute.prototype['key'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* @member {String} password
|
|
206
206
|
*/
|
|
207
|
-
MqttRoute.prototype[
|
|
207
|
+
MqttRoute.prototype['password'] = undefined;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* @member {String} port
|
|
211
211
|
*/
|
|
212
|
-
MqttRoute.prototype[
|
|
212
|
+
MqttRoute.prototype['port'] = undefined;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* @member {String} private_key_name
|
|
216
216
|
*/
|
|
217
|
-
MqttRoute.prototype[
|
|
217
|
+
MqttRoute.prototype['private_key_name'] = undefined;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* @member {Number} throttle_ms
|
|
221
221
|
*/
|
|
222
|
-
MqttRoute.prototype[
|
|
222
|
+
MqttRoute.prototype['throttle_ms'] = undefined;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* @member {Number} timeout
|
|
226
226
|
*/
|
|
227
|
-
MqttRoute.prototype[
|
|
227
|
+
MqttRoute.prototype['timeout'] = undefined;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* @member {String} topic
|
|
231
231
|
*/
|
|
232
|
-
MqttRoute.prototype[
|
|
232
|
+
MqttRoute.prototype['topic'] = undefined;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* @member {module:model/RouteTransformSettings} transform
|
|
236
236
|
*/
|
|
237
|
-
MqttRoute.prototype[
|
|
237
|
+
MqttRoute.prototype['transform'] = undefined;
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
240
|
* @member {String} username
|
|
241
241
|
*/
|
|
242
|
-
MqttRoute.prototype[
|
|
242
|
+
MqttRoute.prototype['username'] = undefined;
|
|
243
243
|
var _default = exports["default"] = MqttRoute;
|
package/dist/model/Note.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
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
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Note model module.
|
|
28
28
|
* @module model/Note
|
|
29
|
-
* @version
|
|
29
|
+
* @version 3.0.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var Note = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,11 +59,11 @@ var Note = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new Note();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('body')) {
|
|
63
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('payload')) {
|
|
66
|
+
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String');
|
|
67
67
|
}
|
|
68
68
|
} else if (data === null) {
|
|
69
69
|
return null;
|
|
@@ -80,8 +80,8 @@ var Note = /*#__PURE__*/function () {
|
|
|
80
80
|
key: "validateJSON",
|
|
81
81
|
value: function validateJSON(data) {
|
|
82
82
|
// ensure the json data is a string
|
|
83
|
-
if (data[
|
|
84
|
-
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data[
|
|
83
|
+
if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']);
|
|
85
85
|
}
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
@@ -90,10 +90,10 @@ var Note = /*#__PURE__*/function () {
|
|
|
90
90
|
/**
|
|
91
91
|
* @member {Object} body
|
|
92
92
|
*/
|
|
93
|
-
Note.prototype[
|
|
93
|
+
Note.prototype['body'] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* @member {String} payload
|
|
97
97
|
*/
|
|
98
|
-
Note.prototype[
|
|
98
|
+
Note.prototype['payload'] = undefined;
|
|
99
99
|
var _default = exports["default"] = Note;
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,14 +30,14 @@ 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
|
|
33
|
+
* @version 3.0.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var NotefileSchema = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>NotefileSchema</code>.
|
|
38
38
|
* @alias module:model/NotefileSchema
|
|
39
|
-
* @param notefile {String}
|
|
40
|
-
* @param properties {Array.<module:model/SchemaProperty>}
|
|
39
|
+
* @param notefile {String}
|
|
40
|
+
* @param properties {Array.<module:model/SchemaProperty>}
|
|
41
41
|
*/
|
|
42
42
|
function NotefileSchema(notefile, properties) {
|
|
43
43
|
_classCallCheck(this, NotefileSchema);
|
|
@@ -52,8 +52,8 @@ var NotefileSchema = /*#__PURE__*/function () {
|
|
|
52
52
|
return _createClass(NotefileSchema, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
54
|
value: function initialize(obj, notefile, properties) {
|
|
55
|
-
obj[
|
|
56
|
-
obj[
|
|
55
|
+
obj['notefile'] = notefile;
|
|
56
|
+
obj['properties'] = properties;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -68,11 +68,11 @@ var NotefileSchema = /*#__PURE__*/function () {
|
|
|
68
68
|
value: function constructFromObject(data, obj) {
|
|
69
69
|
if (data) {
|
|
70
70
|
obj = obj || new NotefileSchema();
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('notefile')) {
|
|
72
|
+
obj['notefile'] = _ApiClient["default"].convertToType(data['notefile'], 'String');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty('properties')) {
|
|
75
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], [_SchemaProperty["default"]]);
|
|
76
76
|
}
|
|
77
77
|
} else if (data === null) {
|
|
78
78
|
return null;
|
|
@@ -104,17 +104,17 @@ var NotefileSchema = /*#__PURE__*/function () {
|
|
|
104
104
|
} finally {
|
|
105
105
|
_iterator.f();
|
|
106
106
|
}
|
|
107
|
-
if (data[
|
|
108
|
-
throw new Error("Expected the field `notefile` to be a primitive type in the JSON string but got " + data[
|
|
107
|
+
if (data['notefile'] && !(typeof data['notefile'] === 'string' || data['notefile'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `notefile` to be a primitive type in the JSON string but got " + data['notefile']);
|
|
109
109
|
}
|
|
110
|
-
if (data[
|
|
110
|
+
if (data['properties']) {
|
|
111
111
|
// data not null
|
|
112
112
|
// ensure the json data is an array
|
|
113
|
-
if (!Array.isArray(data[
|
|
114
|
-
throw new Error("Expected the field `properties` to be an array in the JSON data but got " + data[
|
|
113
|
+
if (!Array.isArray(data['properties'])) {
|
|
114
|
+
throw new Error("Expected the field `properties` to be an array in the JSON data but got " + data['properties']);
|
|
115
115
|
}
|
|
116
116
|
// validate the optional field `properties` (array)
|
|
117
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
117
|
+
var _iterator2 = _createForOfIteratorHelper(data['properties']),
|
|
118
118
|
_step2;
|
|
119
119
|
try {
|
|
120
120
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -126,6 +126,7 @@ var NotefileSchema = /*#__PURE__*/function () {
|
|
|
126
126
|
} finally {
|
|
127
127
|
_iterator2.f();
|
|
128
128
|
}
|
|
129
|
+
;
|
|
129
130
|
}
|
|
130
131
|
return true;
|
|
131
132
|
}
|
|
@@ -136,10 +137,10 @@ NotefileSchema.RequiredProperties = ["notefile", "properties"];
|
|
|
136
137
|
/**
|
|
137
138
|
* @member {String} notefile
|
|
138
139
|
*/
|
|
139
|
-
NotefileSchema.prototype[
|
|
140
|
+
NotefileSchema.prototype['notefile'] = undefined;
|
|
140
141
|
|
|
141
142
|
/**
|
|
142
143
|
* @member {Array.<module:model/SchemaProperty>} properties
|
|
143
144
|
*/
|
|
144
|
-
NotefileSchema.prototype[
|
|
145
|
+
NotefileSchema.prototype['properties'] = undefined;
|
|
145
146
|
var _default = exports["default"] = NotefileSchema;
|