@blues-inc/notehub-js 1.0.29-beta.14 → 1.0.29-beta.15
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 +1 -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 +0 -35
- 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 +1 -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 +12 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -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 +1 -1
- 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/NotefileSchema.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/SchemaProperty.js +1 -1
- 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 -203
- package/dist/api/WebhookApi.js +0 -282
- package/dist/model/ExtDeviceSession.js +0 -617
- package/dist/model/GetWebhooks200Response.js +0 -112
- package/dist/model/WebhookSettings.js +0 -114
|
@@ -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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
32
32
|
*/
|
|
33
33
|
var UserFirmwareInfo = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/package.json
CHANGED
|
@@ -1,203 +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 _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var _Event = _interopRequireDefault(require("../model/Event"));
|
|
10
|
-
var _ExtDeviceSession = _interopRequireDefault(require("../model/ExtDeviceSession"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
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); }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
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); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
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); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
23
|
-
*
|
|
24
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
-
* https://openapi-generator.tech
|
|
26
|
-
* Do not edit the class manually.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* ExternalDevices service.
|
|
31
|
-
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 1.0.29-beta.14
|
|
33
|
-
*/
|
|
34
|
-
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new ExternalDevicesApi.
|
|
37
|
-
* @alias module:api/ExternalDevicesApi
|
|
38
|
-
* @class
|
|
39
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
-
*/
|
|
42
|
-
function ExternalDevicesApi(apiClient) {
|
|
43
|
-
_classCallCheck(this, ExternalDevicesApi);
|
|
44
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Creates an event using specified webhook
|
|
49
|
-
* @param {String} productUID
|
|
50
|
-
* @param {String} deviceUID
|
|
51
|
-
* @param {module:model/Event} event Event Object
|
|
52
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
|
-
*/
|
|
54
|
-
return _createClass(ExternalDevicesApi, [{
|
|
55
|
-
key: "createEventExtDeviceWithHttpInfo",
|
|
56
|
-
value: function createEventExtDeviceWithHttpInfo(productUID, deviceUID, event) {
|
|
57
|
-
var postBody = event;
|
|
58
|
-
// verify the required parameter 'productUID' is set
|
|
59
|
-
if (productUID === undefined || productUID === null) {
|
|
60
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createEventExtDevice");
|
|
61
|
-
}
|
|
62
|
-
// verify the required parameter 'deviceUID' is set
|
|
63
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
64
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createEventExtDevice");
|
|
65
|
-
}
|
|
66
|
-
// verify the required parameter 'event' is set
|
|
67
|
-
if (event === undefined || event === null) {
|
|
68
|
-
throw new _Error["default"]("Missing the required parameter 'event' when calling createEventExtDevice");
|
|
69
|
-
}
|
|
70
|
-
var pathParams = {
|
|
71
|
-
'productUID': productUID,
|
|
72
|
-
'deviceUID': deviceUID
|
|
73
|
-
};
|
|
74
|
-
var queryParams = {};
|
|
75
|
-
var headerParams = {};
|
|
76
|
-
var formParams = {};
|
|
77
|
-
var authNames = ['api_key'];
|
|
78
|
-
var contentTypes = ['application/json'];
|
|
79
|
-
var accepts = ['application/json'];
|
|
80
|
-
var returnType = null;
|
|
81
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Creates an event using specified webhook
|
|
86
|
-
* @param {String} productUID
|
|
87
|
-
* @param {String} deviceUID
|
|
88
|
-
* @param {module:model/Event} event Event Object
|
|
89
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
|
-
*/
|
|
91
|
-
}, {
|
|
92
|
-
key: "createEventExtDevice",
|
|
93
|
-
value: function createEventExtDevice(productUID, deviceUID, event) {
|
|
94
|
-
return this.createEventExtDeviceWithHttpInfo(productUID, deviceUID, event).then(function (response_and_data) {
|
|
95
|
-
return response_and_data.data;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Closes the session for the specified device if open
|
|
101
|
-
* @param {String} productUID
|
|
102
|
-
* @param {String} deviceUID
|
|
103
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
104
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
105
|
-
*/
|
|
106
|
-
}, {
|
|
107
|
-
key: "extDeviceSessionCloseWithHttpInfo",
|
|
108
|
-
value: function extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, extDeviceSession) {
|
|
109
|
-
var postBody = extDeviceSession;
|
|
110
|
-
// verify the required parameter 'productUID' is set
|
|
111
|
-
if (productUID === undefined || productUID === null) {
|
|
112
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionClose");
|
|
113
|
-
}
|
|
114
|
-
// verify the required parameter 'deviceUID' is set
|
|
115
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
116
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionClose");
|
|
117
|
-
}
|
|
118
|
-
// verify the required parameter 'extDeviceSession' is set
|
|
119
|
-
if (extDeviceSession === undefined || extDeviceSession === null) {
|
|
120
|
-
throw new _Error["default"]("Missing the required parameter 'extDeviceSession' when calling extDeviceSessionClose");
|
|
121
|
-
}
|
|
122
|
-
var pathParams = {
|
|
123
|
-
'productUID': productUID,
|
|
124
|
-
'deviceUID': deviceUID
|
|
125
|
-
};
|
|
126
|
-
var queryParams = {};
|
|
127
|
-
var headerParams = {};
|
|
128
|
-
var formParams = {};
|
|
129
|
-
var authNames = ['api_key'];
|
|
130
|
-
var contentTypes = ['application/json'];
|
|
131
|
-
var accepts = ['application/json'];
|
|
132
|
-
var returnType = null;
|
|
133
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/close', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Closes the session for the specified device if open
|
|
138
|
-
* @param {String} productUID
|
|
139
|
-
* @param {String} deviceUID
|
|
140
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
141
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
142
|
-
*/
|
|
143
|
-
}, {
|
|
144
|
-
key: "extDeviceSessionClose",
|
|
145
|
-
value: function extDeviceSessionClose(productUID, deviceUID, extDeviceSession) {
|
|
146
|
-
return this.extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, extDeviceSession).then(function (response_and_data) {
|
|
147
|
-
return response_and_data.data;
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
153
|
-
* @param {String} productUID
|
|
154
|
-
* @param {String} deviceUID
|
|
155
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
156
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
157
|
-
*/
|
|
158
|
-
}, {
|
|
159
|
-
key: "extDeviceSessionOpenWithHttpInfo",
|
|
160
|
-
value: function extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, extDeviceSession) {
|
|
161
|
-
var postBody = extDeviceSession;
|
|
162
|
-
// verify the required parameter 'productUID' is set
|
|
163
|
-
if (productUID === undefined || productUID === null) {
|
|
164
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionOpen");
|
|
165
|
-
}
|
|
166
|
-
// verify the required parameter 'deviceUID' is set
|
|
167
|
-
if (deviceUID === undefined || deviceUID === null) {
|
|
168
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionOpen");
|
|
169
|
-
}
|
|
170
|
-
// verify the required parameter 'extDeviceSession' is set
|
|
171
|
-
if (extDeviceSession === undefined || extDeviceSession === null) {
|
|
172
|
-
throw new _Error["default"]("Missing the required parameter 'extDeviceSession' when calling extDeviceSessionOpen");
|
|
173
|
-
}
|
|
174
|
-
var pathParams = {
|
|
175
|
-
'productUID': productUID,
|
|
176
|
-
'deviceUID': deviceUID
|
|
177
|
-
};
|
|
178
|
-
var queryParams = {};
|
|
179
|
-
var headerParams = {};
|
|
180
|
-
var formParams = {};
|
|
181
|
-
var authNames = ['api_key'];
|
|
182
|
-
var contentTypes = ['application/json'];
|
|
183
|
-
var accepts = ['application/json'];
|
|
184
|
-
var returnType = null;
|
|
185
|
-
return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/open', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
|
|
190
|
-
* @param {String} productUID
|
|
191
|
-
* @param {String} deviceUID
|
|
192
|
-
* @param {module:model/ExtDeviceSession} extDeviceSession Session Object
|
|
193
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
194
|
-
*/
|
|
195
|
-
}, {
|
|
196
|
-
key: "extDeviceSessionOpen",
|
|
197
|
-
value: function extDeviceSessionOpen(productUID, deviceUID, extDeviceSession) {
|
|
198
|
-
return this.extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, extDeviceSession).then(function (response_and_data) {
|
|
199
|
-
return response_and_data.data;
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}]);
|
|
203
|
-
}();
|
package/dist/api/WebhookApi.js
DELETED
|
@@ -1,282 +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 _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var _GetWebhooks200Response = _interopRequireDefault(require("../model/GetWebhooks200Response"));
|
|
10
|
-
var _WebhookSettings = _interopRequireDefault(require("../model/WebhookSettings"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
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); }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
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); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
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); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
23
|
-
*
|
|
24
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
-
* https://openapi-generator.tech
|
|
26
|
-
* Do not edit the class manually.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* Webhook service.
|
|
31
|
-
* @module api/WebhookApi
|
|
32
|
-
* @version 1.0.29-beta.14
|
|
33
|
-
*/
|
|
34
|
-
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new WebhookApi.
|
|
37
|
-
* @alias module:api/WebhookApi
|
|
38
|
-
* @class
|
|
39
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
-
*/
|
|
42
|
-
function WebhookApi(apiClient) {
|
|
43
|
-
_classCallCheck(this, WebhookApi);
|
|
44
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
49
|
-
* @param {String} productUID
|
|
50
|
-
* @param {String} webhookUID Webhook UID
|
|
51
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
52
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
|
-
*/
|
|
54
|
-
return _createClass(WebhookApi, [{
|
|
55
|
-
key: "createWebhookWithHttpInfo",
|
|
56
|
-
value: function createWebhookWithHttpInfo(productUID, webhookUID, webhookSettings) {
|
|
57
|
-
var postBody = webhookSettings;
|
|
58
|
-
// verify the required parameter 'productUID' is set
|
|
59
|
-
if (productUID === undefined || productUID === null) {
|
|
60
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createWebhook");
|
|
61
|
-
}
|
|
62
|
-
// verify the required parameter 'webhookUID' is set
|
|
63
|
-
if (webhookUID === undefined || webhookUID === null) {
|
|
64
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhook");
|
|
65
|
-
}
|
|
66
|
-
// verify the required parameter 'webhookSettings' is set
|
|
67
|
-
if (webhookSettings === undefined || webhookSettings === null) {
|
|
68
|
-
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
|
|
69
|
-
}
|
|
70
|
-
var pathParams = {
|
|
71
|
-
'productUID': productUID,
|
|
72
|
-
'webhookUID': webhookUID
|
|
73
|
-
};
|
|
74
|
-
var queryParams = {};
|
|
75
|
-
var headerParams = {};
|
|
76
|
-
var formParams = {};
|
|
77
|
-
var authNames = ['api_key'];
|
|
78
|
-
var contentTypes = ['application/json'];
|
|
79
|
-
var accepts = ['application/json'];
|
|
80
|
-
var returnType = null;
|
|
81
|
-
return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
86
|
-
* @param {String} productUID
|
|
87
|
-
* @param {String} webhookUID Webhook UID
|
|
88
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
89
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
|
-
*/
|
|
91
|
-
}, {
|
|
92
|
-
key: "createWebhook",
|
|
93
|
-
value: function createWebhook(productUID, webhookUID, webhookSettings) {
|
|
94
|
-
return this.createWebhookWithHttpInfo(productUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
95
|
-
return response_and_data.data;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Deletes the specified webhook
|
|
101
|
-
* @param {String} productUID
|
|
102
|
-
* @param {String} webhookUID Webhook UID
|
|
103
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
104
|
-
*/
|
|
105
|
-
}, {
|
|
106
|
-
key: "deleteWebhookWithHttpInfo",
|
|
107
|
-
value: function deleteWebhookWithHttpInfo(productUID, webhookUID) {
|
|
108
|
-
var postBody = null;
|
|
109
|
-
// verify the required parameter 'productUID' is set
|
|
110
|
-
if (productUID === undefined || productUID === null) {
|
|
111
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteWebhook");
|
|
112
|
-
}
|
|
113
|
-
// verify the required parameter 'webhookUID' is set
|
|
114
|
-
if (webhookUID === undefined || webhookUID === null) {
|
|
115
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
|
|
116
|
-
}
|
|
117
|
-
var pathParams = {
|
|
118
|
-
'productUID': productUID,
|
|
119
|
-
'webhookUID': webhookUID
|
|
120
|
-
};
|
|
121
|
-
var queryParams = {};
|
|
122
|
-
var headerParams = {};
|
|
123
|
-
var formParams = {};
|
|
124
|
-
var authNames = ['api_key'];
|
|
125
|
-
var contentTypes = [];
|
|
126
|
-
var accepts = ['application/json'];
|
|
127
|
-
var returnType = null;
|
|
128
|
-
return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Deletes the specified webhook
|
|
133
|
-
* @param {String} productUID
|
|
134
|
-
* @param {String} webhookUID Webhook UID
|
|
135
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
136
|
-
*/
|
|
137
|
-
}, {
|
|
138
|
-
key: "deleteWebhook",
|
|
139
|
-
value: function deleteWebhook(productUID, webhookUID) {
|
|
140
|
-
return this.deleteWebhookWithHttpInfo(productUID, webhookUID).then(function (response_and_data) {
|
|
141
|
-
return response_and_data.data;
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Retrieves the configuration settings for the specified webhook
|
|
147
|
-
* @param {String} productUID
|
|
148
|
-
* @param {String} webhookUID Webhook UID
|
|
149
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
150
|
-
*/
|
|
151
|
-
}, {
|
|
152
|
-
key: "getWebhookWithHttpInfo",
|
|
153
|
-
value: function getWebhookWithHttpInfo(productUID, webhookUID) {
|
|
154
|
-
var postBody = null;
|
|
155
|
-
// verify the required parameter 'productUID' is set
|
|
156
|
-
if (productUID === undefined || productUID === null) {
|
|
157
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getWebhook");
|
|
158
|
-
}
|
|
159
|
-
// verify the required parameter 'webhookUID' is set
|
|
160
|
-
if (webhookUID === undefined || webhookUID === null) {
|
|
161
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
|
|
162
|
-
}
|
|
163
|
-
var pathParams = {
|
|
164
|
-
'productUID': productUID,
|
|
165
|
-
'webhookUID': webhookUID
|
|
166
|
-
};
|
|
167
|
-
var queryParams = {};
|
|
168
|
-
var headerParams = {};
|
|
169
|
-
var formParams = {};
|
|
170
|
-
var authNames = ['api_key'];
|
|
171
|
-
var contentTypes = [];
|
|
172
|
-
var accepts = ['application/json'];
|
|
173
|
-
var returnType = _WebhookSettings["default"];
|
|
174
|
-
return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Retrieves the configuration settings for the specified webhook
|
|
179
|
-
* @param {String} productUID
|
|
180
|
-
* @param {String} webhookUID Webhook UID
|
|
181
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
182
|
-
*/
|
|
183
|
-
}, {
|
|
184
|
-
key: "getWebhook",
|
|
185
|
-
value: function getWebhook(productUID, webhookUID) {
|
|
186
|
-
return this.getWebhookWithHttpInfo(productUID, webhookUID).then(function (response_and_data) {
|
|
187
|
-
return response_and_data.data;
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Retrieves all webhooks for the specified project
|
|
193
|
-
* @param {String} productUID
|
|
194
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
|
|
195
|
-
*/
|
|
196
|
-
}, {
|
|
197
|
-
key: "getWebhooksWithHttpInfo",
|
|
198
|
-
value: function getWebhooksWithHttpInfo(productUID) {
|
|
199
|
-
var postBody = null;
|
|
200
|
-
// verify the required parameter 'productUID' is set
|
|
201
|
-
if (productUID === undefined || productUID === null) {
|
|
202
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getWebhooks");
|
|
203
|
-
}
|
|
204
|
-
var pathParams = {
|
|
205
|
-
'productUID': productUID
|
|
206
|
-
};
|
|
207
|
-
var queryParams = {};
|
|
208
|
-
var headerParams = {};
|
|
209
|
-
var formParams = {};
|
|
210
|
-
var authNames = ['api_key'];
|
|
211
|
-
var contentTypes = [];
|
|
212
|
-
var accepts = ['application/json'];
|
|
213
|
-
var returnType = _GetWebhooks200Response["default"];
|
|
214
|
-
return this.apiClient.callApi('/v1/products/{productUID}/webhooks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Retrieves all webhooks for the specified project
|
|
219
|
-
* @param {String} productUID
|
|
220
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
|
|
221
|
-
*/
|
|
222
|
-
}, {
|
|
223
|
-
key: "getWebhooks",
|
|
224
|
-
value: function getWebhooks(productUID) {
|
|
225
|
-
return this.getWebhooksWithHttpInfo(productUID).then(function (response_and_data) {
|
|
226
|
-
return response_and_data.data;
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
232
|
-
* @param {String} productUID
|
|
233
|
-
* @param {String} webhookUID Webhook UID
|
|
234
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
235
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
236
|
-
*/
|
|
237
|
-
}, {
|
|
238
|
-
key: "updateWebhookWithHttpInfo",
|
|
239
|
-
value: function updateWebhookWithHttpInfo(productUID, webhookUID, webhookSettings) {
|
|
240
|
-
var postBody = webhookSettings;
|
|
241
|
-
// verify the required parameter 'productUID' is set
|
|
242
|
-
if (productUID === undefined || productUID === null) {
|
|
243
|
-
throw new _Error["default"]("Missing the required parameter 'productUID' when calling updateWebhook");
|
|
244
|
-
}
|
|
245
|
-
// verify the required parameter 'webhookUID' is set
|
|
246
|
-
if (webhookUID === undefined || webhookUID === null) {
|
|
247
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling updateWebhook");
|
|
248
|
-
}
|
|
249
|
-
// verify the required parameter 'webhookSettings' is set
|
|
250
|
-
if (webhookSettings === undefined || webhookSettings === null) {
|
|
251
|
-
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
|
|
252
|
-
}
|
|
253
|
-
var pathParams = {
|
|
254
|
-
'productUID': productUID,
|
|
255
|
-
'webhookUID': webhookUID
|
|
256
|
-
};
|
|
257
|
-
var queryParams = {};
|
|
258
|
-
var headerParams = {};
|
|
259
|
-
var formParams = {};
|
|
260
|
-
var authNames = ['api_key'];
|
|
261
|
-
var contentTypes = ['application/json'];
|
|
262
|
-
var accepts = ['application/json'];
|
|
263
|
-
var returnType = null;
|
|
264
|
-
return this.apiClient.callApi('/v1/products/{productUID}/webhooks/{webhookUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
269
|
-
* @param {String} productUID
|
|
270
|
-
* @param {String} webhookUID Webhook UID
|
|
271
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
272
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
273
|
-
*/
|
|
274
|
-
}, {
|
|
275
|
-
key: "updateWebhook",
|
|
276
|
-
value: function updateWebhook(productUID, webhookUID, webhookSettings) {
|
|
277
|
-
return this.updateWebhookWithHttpInfo(productUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
278
|
-
return response_and_data.data;
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
}]);
|
|
282
|
-
}();
|