@blues-inc/notehub-js 1.0.29-beta.5 → 1.0.29-beta.7
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 +2 -12
- 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/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RepositoryApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/index.js +7 -28
- 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 +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.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/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +31 -1
- package/dist/model/DeviceDfuHistory.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/DeviceDfuStatusCurrent.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/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/GetDeviceEnvironmentVariables200Response.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/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +5 -7
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
- package/dist/model/Google.js +1 -1
- 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 +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSchema.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 +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +1 -1
- package/dist/model/QuestionDataResponseMap.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/{WebhookSettings.js → SimUsage.js} +48 -47
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +2 -10
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UserDbRoute.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/package.json +1 -1
- package/dist/api/ExternalDevicesApi.js +0 -202
- package/dist/api/WebhookApi.js +0 -312
- package/dist/model/ExtDeviceSession.js +0 -617
|
@@ -24,18 +24,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
* @module model/
|
|
29
|
-
* @version 1.0.29-beta.
|
|
27
|
+
* The SimUsage model module.
|
|
28
|
+
* @module model/SimUsage
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var SimUsage = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>SimUsage</code>.
|
|
34
|
+
* @alias module:model/SimUsage
|
|
35
35
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
36
|
+
function SimUsage() {
|
|
37
|
+
_classCallCheck(this, SimUsage);
|
|
38
|
+
SimUsage.initialize(this);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -43,33 +43,36 @@ var WebhookSettings = /*#__PURE__*/function () {
|
|
|
43
43
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
44
|
* Only for internal use.
|
|
45
45
|
*/
|
|
46
|
-
return _createClass(
|
|
46
|
+
return _createClass(SimUsage, null, [{
|
|
47
47
|
key: "initialize",
|
|
48
48
|
value: function initialize(obj) {}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>SimUsage</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
52
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
53
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
-
* @param {module:model/
|
|
55
|
-
* @return {module:model/
|
|
54
|
+
* @param {module:model/SimUsage} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/SimUsage} The populated <code>SimUsage</code> instance.
|
|
56
56
|
*/
|
|
57
57
|
}, {
|
|
58
58
|
key: "constructFromObject",
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
|
-
obj = obj || new
|
|
62
|
-
if (data.hasOwnProperty('
|
|
63
|
-
obj['
|
|
61
|
+
obj = obj || new SimUsage();
|
|
62
|
+
if (data.hasOwnProperty('iccid')) {
|
|
63
|
+
obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('used')) {
|
|
66
|
+
obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
68
|
+
if (data.hasOwnProperty('limit')) {
|
|
69
|
+
obj['limit'] = _ApiClient["default"].convertToType(data['limit'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty('
|
|
72
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('lifetimeUsed')) {
|
|
72
|
+
obj['lifetimeUsed'] = _ApiClient["default"].convertToType(data['lifetimeUsed'], 'Number');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('lastUpdated')) {
|
|
75
|
+
obj['lastUpdated'] = _ApiClient["default"].convertToType(data['lastUpdated'], 'Number');
|
|
73
76
|
}
|
|
74
77
|
} else if (data === null) {
|
|
75
78
|
return null;
|
|
@@ -78,50 +81,48 @@ var WebhookSettings = /*#__PURE__*/function () {
|
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
/**
|
|
81
|
-
* Validates the JSON data with respect to <code>
|
|
84
|
+
* Validates the JSON data with respect to <code>SimUsage</code>.
|
|
82
85
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SimUsage</code>.
|
|
84
87
|
*/
|
|
85
88
|
}, {
|
|
86
89
|
key: "validateJSON",
|
|
87
90
|
value: function validateJSON(data) {
|
|
88
91
|
// ensure the json data is a string
|
|
89
|
-
if (data['
|
|
90
|
-
throw new Error("Expected the field `
|
|
91
|
-
}
|
|
92
|
-
// ensure the json data is a string
|
|
93
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
94
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
95
|
-
}
|
|
96
|
-
// ensure the json data is a string
|
|
97
|
-
if (data['transform'] && !(typeof data['transform'] === 'string' || data['transform'] instanceof String)) {
|
|
98
|
-
throw new Error("Expected the field `transform` to be a primitive type in the JSON string but got " + data['transform']);
|
|
92
|
+
if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
|
|
93
|
+
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data['iccid']);
|
|
99
94
|
}
|
|
100
95
|
return true;
|
|
101
96
|
}
|
|
102
97
|
}]);
|
|
103
98
|
}();
|
|
104
99
|
/**
|
|
105
|
-
*
|
|
106
|
-
* @member {String}
|
|
100
|
+
* ICCID of the SIM card
|
|
101
|
+
* @member {String} iccid
|
|
102
|
+
*/
|
|
103
|
+
SimUsage.prototype['iccid'] = undefined;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Bytes used on the SIMs current data plan
|
|
107
|
+
* @member {Number} used
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
|
+
SimUsage.prototype['used'] = undefined;
|
|
109
110
|
|
|
110
111
|
/**
|
|
111
|
-
*
|
|
112
|
-
* @member {
|
|
112
|
+
* Limit in bytes of the SIMs current data plan
|
|
113
|
+
* @member {Number} limit
|
|
113
114
|
*/
|
|
114
|
-
|
|
115
|
+
SimUsage.prototype['limit'] = undefined;
|
|
115
116
|
|
|
116
117
|
/**
|
|
117
|
-
*
|
|
118
|
-
* @member {
|
|
118
|
+
* Total number of bytes used by SIM
|
|
119
|
+
* @member {Number} lifetimeUsed
|
|
119
120
|
*/
|
|
120
|
-
|
|
121
|
+
SimUsage.prototype['lifetimeUsed'] = undefined;
|
|
121
122
|
|
|
122
123
|
/**
|
|
123
|
-
*
|
|
124
|
-
* @member {
|
|
124
|
+
* Time this usage information was last updated
|
|
125
|
+
* @member {Number} lastUpdated
|
|
125
126
|
*/
|
|
126
|
-
|
|
127
|
-
var _default = exports["default"] =
|
|
127
|
+
SimUsage.prototype['lastUpdated'] = undefined;
|
|
128
|
+
var _default = exports["default"] = SimUsage;
|
package/dist/model/Slack.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The SlackBearerNotification model module.
|
|
28
28
|
* @module model/SlackBearerNotification
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var SlackBearerNotification = /*#__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 SlackWebHookNotification model module.
|
|
28
28
|
* @module model/SlackWebHookNotification
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var SlackWebHookNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Snowflake.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Snowflake model module.
|
|
30
30
|
* @module model/Snowflake
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var Snowflake = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The SnowflakeTransform model module.
|
|
28
28
|
* @module model/SnowflakeTransform
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var SnowflakeTransform = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Thingworx.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Thingworx model module.
|
|
30
30
|
* @module model/Thingworx
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var Thingworx = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The TowerLocation model module.
|
|
28
28
|
* @module model/TowerLocation
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var TowerLocation = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -136,7 +136,6 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
136
136
|
}]);
|
|
137
137
|
}();
|
|
138
138
|
/**
|
|
139
|
-
* Time when this location was ascertained
|
|
140
139
|
* @member {Number} time
|
|
141
140
|
*/
|
|
142
141
|
TowerLocation.prototype['time'] = undefined;
|
|
@@ -154,49 +153,42 @@ TowerLocation.prototype['n'] = undefined;
|
|
|
154
153
|
TowerLocation.prototype['c'] = undefined;
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
|
-
* Latitude
|
|
158
156
|
* @member {Number} lat
|
|
159
157
|
*/
|
|
160
158
|
TowerLocation.prototype['lat'] = undefined;
|
|
161
159
|
|
|
162
160
|
/**
|
|
163
|
-
* Longitude
|
|
164
161
|
* @member {Number} lon
|
|
165
162
|
*/
|
|
166
163
|
TowerLocation.prototype['lon'] = undefined;
|
|
167
164
|
|
|
168
165
|
/**
|
|
169
|
-
* Timezone name
|
|
170
166
|
* @member {String} zone
|
|
171
167
|
*/
|
|
172
168
|
TowerLocation.prototype['zone'] = undefined;
|
|
173
169
|
|
|
174
170
|
/**
|
|
175
|
-
* Mobile Country Code
|
|
176
171
|
* @member {Number} mcc
|
|
177
172
|
*/
|
|
178
173
|
TowerLocation.prototype['mcc'] = undefined;
|
|
179
174
|
|
|
180
175
|
/**
|
|
181
|
-
* Mobile Network Code
|
|
182
176
|
* @member {Number} mnc
|
|
183
177
|
*/
|
|
184
178
|
TowerLocation.prototype['mnc'] = undefined;
|
|
185
179
|
|
|
186
180
|
/**
|
|
187
|
-
* Location Area Code
|
|
188
181
|
* @member {Number} lac
|
|
189
182
|
*/
|
|
190
183
|
TowerLocation.prototype['lac'] = undefined;
|
|
191
184
|
|
|
192
185
|
/**
|
|
193
|
-
* Cell ID
|
|
194
186
|
* @member {Number} cid
|
|
195
187
|
*/
|
|
196
188
|
TowerLocation.prototype['cid'] = undefined;
|
|
197
189
|
|
|
198
190
|
/**
|
|
199
|
-
* Open
|
|
191
|
+
* Open location code
|
|
200
192
|
* @member {String} l
|
|
201
193
|
*/
|
|
202
194
|
TowerLocation.prototype['l'] = undefined;
|
package/dist/model/Twilio.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateFleetRequest model module.
|
|
28
28
|
* @module model/UpdateFleetRequest
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UploadMetadata model module.
|
|
29
29
|
* @module model/UploadMetadata
|
|
30
|
-
* @version 1.0.29-beta.
|
|
30
|
+
* @version 1.0.29-beta.7
|
|
31
31
|
*/
|
|
32
32
|
var UploadMetadata = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDbRoute model module.
|
|
28
28
|
* @module model/UserDbRoute
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserDfuStateMachine model module.
|
|
30
30
|
* @module model/UserDfuStateMachine
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDfuStateMachineStatus model module.
|
|
28
28
|
* @module model/UserDfuStateMachineStatus
|
|
29
|
-
* @version 1.0.29-beta.
|
|
29
|
+
* @version 1.0.29-beta.7
|
|
30
30
|
*/
|
|
31
31
|
var UserDfuStateMachineStatus = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserFirmwareInfo model module.
|
|
30
30
|
* @module model/UserFirmwareInfo
|
|
31
|
-
* @version 1.0.29-beta.
|
|
31
|
+
* @version 1.0.29-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var UserFirmwareInfo = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/package.json
CHANGED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _Event = _interopRequireDefault(require("../model/Event"));
|
|
9
|
-
var _ExtDeviceSession = _interopRequireDefault(require("../model/ExtDeviceSession"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
-
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
-
*
|
|
20
|
-
* The version of the OpenAPI document: 1.2.0
|
|
21
|
-
* Contact: engineering@blues.io
|
|
22
|
-
*
|
|
23
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
-
* https://openapi-generator.tech
|
|
25
|
-
* Do not edit the class manually.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* ExternalDevices service.
|
|
30
|
-
* @module api/ExternalDevicesApi
|
|
31
|
-
* @version 1.0.29-beta.5
|
|
32
|
-
*/
|
|
33
|
-
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
-
/**
|
|
35
|
-
* Constructs a new ExternalDevicesApi.
|
|
36
|
-
* @alias module:api/ExternalDevicesApi
|
|
37
|
-
* @class
|
|
38
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
-
*/
|
|
41
|
-
function ExternalDevicesApi(apiClient) {
|
|
42
|
-
_classCallCheck(this, ExternalDevicesApi);
|
|
43
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Closes the session for the specified device if open
|
|
48
|
-
* @param {String} productUID
|
|
49
|
-
* @param {String} deviceUID
|
|
50
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
51
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
52
|
-
*/
|
|
53
|
-
return _createClass(ExternalDevicesApi, [{
|
|
54
|
-
key: "closeSessionWithHttpInfo",
|
|
55
|
-
value: function closeSessionWithHttpInfo(productUID, deviceUID, extDeviceSession) {
|
|
56
|
-
var postBody = extDeviceSession;
|
|
57
|
-
// verify the required parameter 'productUID' is set
|
|
58
|
-
if (productUID === undefined || productUID === null) {
|
|
59
|
-
throw new Error("Missing the required parameter 'productUID' when calling closeSession");
|
|
60
|
-
}
|
|
61
|
-
// verify the required parameter 'deviceUID' is set
|
|
62
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
63
|
-
throw new Error("Missing the required parameter 'deviceUID' when calling closeSession");
|
|
64
|
-
}
|
|
65
|
-
// verify the required parameter 'extDeviceSession' is set
|
|
66
|
-
if (extDeviceSession === undefined || extDeviceSession === null) {
|
|
67
|
-
throw new Error("Missing the required parameter 'extDeviceSession' when calling closeSession");
|
|
68
|
-
}
|
|
69
|
-
var pathParams = {
|
|
70
|
-
'productUID': productUID,
|
|
71
|
-
'deviceUID': deviceUID
|
|
72
|
-
};
|
|
73
|
-
var queryParams = {};
|
|
74
|
-
var headerParams = {};
|
|
75
|
-
var formParams = {};
|
|
76
|
-
var authNames = ['api_key'];
|
|
77
|
-
var contentTypes = ['application/json'];
|
|
78
|
-
var accepts = [];
|
|
79
|
-
var returnType = null;
|
|
80
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/close', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Closes the session for the specified device if open
|
|
85
|
-
* @param {String} productUID
|
|
86
|
-
* @param {String} deviceUID
|
|
87
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
88
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
89
|
-
*/
|
|
90
|
-
}, {
|
|
91
|
-
key: "closeSession",
|
|
92
|
-
value: function closeSession(productUID, deviceUID, extDeviceSession) {
|
|
93
|
-
return this.closeSessionWithHttpInfo(productUID, deviceUID, extDeviceSession).then(function (response_and_data) {
|
|
94
|
-
return response_and_data.data;
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Creates an event using specified webhook
|
|
100
|
-
* @param {String} productUID
|
|
101
|
-
* @param {String} deviceUID
|
|
102
|
-
* @param {module:model/Event} event Event Object
|
|
103
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
104
|
-
*/
|
|
105
|
-
}, {
|
|
106
|
-
key: "createEventExtDeviceWithHttpInfo",
|
|
107
|
-
value: function createEventExtDeviceWithHttpInfo(productUID, deviceUID, event) {
|
|
108
|
-
var postBody = event;
|
|
109
|
-
// verify the required parameter 'productUID' is set
|
|
110
|
-
if (productUID === undefined || productUID === null) {
|
|
111
|
-
throw new Error("Missing the required parameter 'productUID' when calling createEventExtDevice");
|
|
112
|
-
}
|
|
113
|
-
// verify the required parameter 'deviceUID' is set
|
|
114
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
115
|
-
throw new Error("Missing the required parameter 'deviceUID' when calling createEventExtDevice");
|
|
116
|
-
}
|
|
117
|
-
// verify the required parameter 'event' is set
|
|
118
|
-
if (event === undefined || event === null) {
|
|
119
|
-
throw new Error("Missing the required parameter 'event' when calling createEventExtDevice");
|
|
120
|
-
}
|
|
121
|
-
var pathParams = {
|
|
122
|
-
'productUID': productUID,
|
|
123
|
-
'deviceUID': deviceUID
|
|
124
|
-
};
|
|
125
|
-
var queryParams = {};
|
|
126
|
-
var headerParams = {};
|
|
127
|
-
var formParams = {};
|
|
128
|
-
var authNames = ['api_key'];
|
|
129
|
-
var contentTypes = ['application/json'];
|
|
130
|
-
var accepts = [];
|
|
131
|
-
var returnType = null;
|
|
132
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Creates an event using specified webhook
|
|
137
|
-
* @param {String} productUID
|
|
138
|
-
* @param {String} deviceUID
|
|
139
|
-
* @param {module:model/Event} event Event Object
|
|
140
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
141
|
-
*/
|
|
142
|
-
}, {
|
|
143
|
-
key: "createEventExtDevice",
|
|
144
|
-
value: function createEventExtDevice(productUID, deviceUID, event) {
|
|
145
|
-
return this.createEventExtDeviceWithHttpInfo(productUID, deviceUID, event).then(function (response_and_data) {
|
|
146
|
-
return response_and_data.data;
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
152
|
-
* @param {String} productUID
|
|
153
|
-
* @param {String} deviceUID
|
|
154
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
155
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
156
|
-
*/
|
|
157
|
-
}, {
|
|
158
|
-
key: "webhookSessionWithHttpInfo",
|
|
159
|
-
value: function webhookSessionWithHttpInfo(productUID, deviceUID, extDeviceSession) {
|
|
160
|
-
var postBody = extDeviceSession;
|
|
161
|
-
// verify the required parameter 'productUID' is set
|
|
162
|
-
if (productUID === undefined || productUID === null) {
|
|
163
|
-
throw new Error("Missing the required parameter 'productUID' when calling webhookSession");
|
|
164
|
-
}
|
|
165
|
-
// verify the required parameter 'deviceUID' is set
|
|
166
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
167
|
-
throw new Error("Missing the required parameter 'deviceUID' when calling webhookSession");
|
|
168
|
-
}
|
|
169
|
-
// verify the required parameter 'extDeviceSession' is set
|
|
170
|
-
if (extDeviceSession === undefined || extDeviceSession === null) {
|
|
171
|
-
throw new Error("Missing the required parameter 'extDeviceSession' when calling webhookSession");
|
|
172
|
-
}
|
|
173
|
-
var pathParams = {
|
|
174
|
-
'productUID': productUID,
|
|
175
|
-
'deviceUID': deviceUID
|
|
176
|
-
};
|
|
177
|
-
var queryParams = {};
|
|
178
|
-
var headerParams = {};
|
|
179
|
-
var formParams = {};
|
|
180
|
-
var authNames = ['api_key'];
|
|
181
|
-
var contentTypes = ['application/json'];
|
|
182
|
-
var accepts = [];
|
|
183
|
-
var returnType = null;
|
|
184
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/open', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
189
|
-
* @param {String} productUID
|
|
190
|
-
* @param {String} deviceUID
|
|
191
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
192
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
193
|
-
*/
|
|
194
|
-
}, {
|
|
195
|
-
key: "webhookSession",
|
|
196
|
-
value: function webhookSession(productUID, deviceUID, extDeviceSession) {
|
|
197
|
-
return this.webhookSessionWithHttpInfo(productUID, deviceUID, extDeviceSession).then(function (response_and_data) {
|
|
198
|
-
return response_and_data.data;
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
}]);
|
|
202
|
-
}();
|