@blues-inc/notehub-js 1.0.20 → 1.0.22
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 +34 -18
- package/dist/ApiClient.js +7 -7
- package/dist/api/AlertApi.js +10 -7
- package/dist/api/AuthorizationApi.js +6 -6
- package/dist/api/BillingAccountApi.js +6 -6
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +74 -33
- package/dist/api/MonitorApi.js +6 -6
- package/dist/api/ProjectApi.js +177 -6
- package/dist/api/RouteApi.js +9 -9
- package/dist/index.js +55 -13
- package/dist/model/Alert.js +22 -9
- package/dist/model/AlertDataInner.js +6 -6
- package/dist/model/AlertNotificationsInner.js +6 -6
- package/dist/model/Aws.js +6 -6
- package/dist/model/Azure.js +6 -6
- package/dist/model/BillingAccount.js +9 -9
- package/dist/model/BillingAccountRole.js +15 -15
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +9 -9
- package/dist/model/Contact.js +6 -6
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateMonitor.js +102 -23
- package/dist/model/CreateProductRequest.js +9 -9
- package/dist/model/CreateProjectRequest.js +9 -9
- package/dist/model/DFUEnv.js +6 -6
- package/dist/model/DFUState.js +6 -6
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +9 -9
- package/dist/model/DeviceSession.js +6 -6
- package/dist/model/DeviceTowerInfo.js +6 -6
- package/dist/model/DeviceUsage.js +6 -6
- package/dist/model/{MonitorThresholds.js → EmailNotification.js} +31 -27
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +9 -9
- package/dist/model/Event.js +6 -6
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/FirmwareStatus.js +144 -0
- package/dist/model/Fleet.js +9 -9
- package/dist/model/GetAlerts200Response.js +9 -9
- package/dist/model/GetBillingAccounts200Response.js +9 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +9 -9
- package/dist/model/GetDeviceHealthLog200Response.js +9 -9
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +9 -9
- package/dist/model/GetDeviceLatest200Response.js +9 -9
- package/dist/model/GetDevicePublicKey200Response.js +9 -9
- package/dist/model/GetDeviceSessions200Response.js +9 -9
- package/dist/model/GetProjectDevicePublicKeys200Response.js +9 -9
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +6 -6
- package/dist/model/GetProjectDevices200Response.js +9 -9
- package/dist/model/GetProjectEvents200Response.js +22 -9
- package/dist/model/GetProjectEventsByCursor200Response.js +9 -9
- package/dist/model/GetProjectFleets200Response.js +9 -9
- package/dist/model/GetProjectMembers200Response.js +9 -9
- package/dist/model/GetProjectProducts200Response.js +9 -9
- package/dist/model/GetProjects200Response.js +9 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +6 -6
- package/dist/model/Google.js +6 -6
- package/dist/model/HandleNoteChanges200Response.js +6 -6
- package/dist/model/HandleNoteGet200Response.js +6 -6
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +6 -6
- package/dist/model/HandleNotefileChangesPending200Response.js +6 -6
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +6 -6
- package/dist/model/HttpFilter.js +6 -6
- package/dist/model/HttpTransform.js +6 -6
- package/dist/model/Location.js +9 -9
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +6 -6
- package/dist/model/Monitor.js +83 -20
- package/dist/model/MonitorAlertRoutesInner.js +145 -44
- package/dist/model/Mqtt.js +6 -6
- package/dist/model/Note.js +6 -6
- package/dist/model/OTAStatus.js +306 -0
- package/dist/model/OTAStatusList.js +120 -0
- package/dist/model/OTAUpdateRequest.js +214 -0
- package/dist/model/OTAUpdateStatus.js +118 -0
- package/dist/model/PostProvisionProjectDeviceRequest.js +9 -9
- package/dist/model/Product.js +9 -9
- package/dist/model/Project.js +9 -9
- package/dist/model/ProjectMember.js +9 -9
- package/dist/model/Proxy.js +6 -6
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +6 -6
- package/dist/model/Role.js +6 -6
- package/dist/model/Route.js +6 -6
- package/dist/model/RouteSchema.js +7 -7
- package/dist/model/Slack.js +6 -6
- package/dist/model/SlackBearerNotification.js +149 -0
- package/dist/model/SlackWebHookNotification.js +136 -0
- package/dist/model/Snowflake.js +6 -6
- package/dist/model/SnowflakeTransform.js +6 -6
- package/dist/model/Thingworx.js +6 -6
- package/dist/model/TowerLocation.js +6 -6
- package/dist/model/Twilio.js +6 -6
- package/dist/model/UpdateFleetRequest.js +6 -6
- package/dist/model/UserDbRoute.js +6 -6
- package/package.json +1 -1
- package/dist/api/FirmwareApi.js +0 -109
package/dist/api/EventApi.js
CHANGED
|
@@ -9,17 +9,17 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
9
9
|
var _GetProjectEvents200Response = _interopRequireDefault(require("../model/GetProjectEvents200Response"));
|
|
10
10
|
var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../model/GetProjectEventsByCursor200Response"));
|
|
11
11
|
var _GetRouteLogsByRoute200ResponseInner = _interopRequireDefault(require("../model/GetRouteLogsByRoute200ResponseInner"));
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
14
|
-
function _classCallCheck(
|
|
15
|
-
function _defineProperties(
|
|
16
|
-
function _createClass(
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
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
20
|
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.
|
|
22
|
+
* The version of the OpenAPI document: 1.1.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.22
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,52 +48,62 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
50
|
* @param {String} projectUID
|
|
51
|
-
* @param {String} fleetUID
|
|
52
51
|
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
53
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
54
54
|
* @param {Number} opts.pageNum (default to 1)
|
|
55
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
55
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
56
56
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
57
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
58
58
|
* @param {Number} opts.startDate Unix timestamp
|
|
59
59
|
* @param {Number} opts.endDate Unix timestamp
|
|
60
60
|
* @param {Boolean} opts.systemFilesOnly
|
|
61
61
|
* @param {String} opts.files
|
|
62
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
63
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
64
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
65
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
66
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
67
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
68
|
+
* @param {String} opts.since Deprecated.
|
|
62
69
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
63
70
|
*/
|
|
64
71
|
return _createClass(EventApi, [{
|
|
65
72
|
key: "getFleetEventsWithHttpInfo",
|
|
66
|
-
value: function getFleetEventsWithHttpInfo(projectUID,
|
|
73
|
+
value: function getFleetEventsWithHttpInfo(projectUID, opts) {
|
|
67
74
|
opts = opts || {};
|
|
68
75
|
var postBody = null;
|
|
69
76
|
// verify the required parameter 'projectUID' is set
|
|
70
77
|
if (projectUID === undefined || projectUID === null) {
|
|
71
78
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
|
|
72
79
|
}
|
|
73
|
-
// verify the required parameter 'fleetUID' is set
|
|
74
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
75
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
76
|
-
}
|
|
77
80
|
var pathParams = {
|
|
78
|
-
projectUID: projectUID
|
|
79
|
-
fleetUID: fleetUID
|
|
81
|
+
projectUID: projectUID
|
|
80
82
|
};
|
|
81
83
|
var queryParams = {
|
|
84
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
82
85
|
pageSize: opts["pageSize"],
|
|
83
86
|
pageNum: opts["pageNum"],
|
|
84
|
-
deviceUID: opts["deviceUID"],
|
|
87
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
85
88
|
sortBy: opts["sortBy"],
|
|
86
89
|
sortOrder: opts["sortOrder"],
|
|
87
90
|
startDate: opts["startDate"],
|
|
88
91
|
endDate: opts["endDate"],
|
|
89
92
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
90
|
-
files: opts["files"]
|
|
93
|
+
files: opts["files"],
|
|
94
|
+
format: opts["format"],
|
|
95
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
96
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
97
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
98
|
+
selectFields: opts["selectFields"],
|
|
99
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
100
|
+
since: opts["since"]
|
|
91
101
|
};
|
|
92
102
|
var headerParams = {};
|
|
93
103
|
var formParams = {};
|
|
94
104
|
var authNames = ["api_key"];
|
|
95
105
|
var contentTypes = [];
|
|
96
|
-
var accepts = ["application/json"];
|
|
106
|
+
var accepts = ["application/json", "text/csv"];
|
|
97
107
|
var returnType = _GetProjectEvents200Response["default"];
|
|
98
108
|
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
99
109
|
}
|
|
@@ -101,23 +111,30 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
111
|
/**
|
|
102
112
|
* Get Events of a Fleet
|
|
103
113
|
* @param {String} projectUID
|
|
104
|
-
* @param {String} fleetUID
|
|
105
114
|
* @param {Object} opts Optional parameters
|
|
115
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
106
116
|
* @param {Number} opts.pageSize (default to 50)
|
|
107
117
|
* @param {Number} opts.pageNum (default to 1)
|
|
108
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
118
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
109
119
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
110
120
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
111
121
|
* @param {Number} opts.startDate Unix timestamp
|
|
112
122
|
* @param {Number} opts.endDate Unix timestamp
|
|
113
123
|
* @param {Boolean} opts.systemFilesOnly
|
|
114
124
|
* @param {String} opts.files
|
|
125
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
126
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
127
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
128
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
129
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
130
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
131
|
+
* @param {String} opts.since Deprecated.
|
|
115
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
116
133
|
*/
|
|
117
134
|
}, {
|
|
118
135
|
key: "getFleetEvents",
|
|
119
|
-
value: function getFleetEvents(projectUID,
|
|
120
|
-
return this.getFleetEventsWithHttpInfo(projectUID,
|
|
136
|
+
value: function getFleetEvents(projectUID, opts) {
|
|
137
|
+
return this.getFleetEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
121
138
|
return response_and_data.data;
|
|
122
139
|
});
|
|
123
140
|
}
|
|
@@ -132,7 +149,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
132
149
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
133
150
|
* @param {Boolean} opts.systemFilesOnly
|
|
134
151
|
* @param {String} opts.files
|
|
135
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
152
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
136
153
|
* @param {Number} opts.startDate Unix timestamp
|
|
137
154
|
* @param {Number} opts.endDate Unix timestamp
|
|
138
155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
@@ -160,7 +177,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
160
177
|
sortOrder: opts["sortOrder"],
|
|
161
178
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
162
179
|
files: opts["files"],
|
|
163
|
-
deviceUID: opts["deviceUID"],
|
|
180
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
164
181
|
startDate: opts["startDate"],
|
|
165
182
|
endDate: opts["endDate"]
|
|
166
183
|
};
|
|
@@ -183,7 +200,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
200
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
184
201
|
* @param {Boolean} opts.systemFilesOnly
|
|
185
202
|
* @param {String} opts.files
|
|
186
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
203
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
187
204
|
* @param {Number} opts.startDate Unix timestamp
|
|
188
205
|
* @param {Number} opts.endDate Unix timestamp
|
|
189
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
@@ -202,13 +219,21 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
202
219
|
* @param {Object} opts Optional parameters
|
|
203
220
|
* @param {Number} opts.pageSize (default to 50)
|
|
204
221
|
* @param {Number} opts.pageNum (default to 1)
|
|
205
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
222
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
206
223
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
207
224
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
208
225
|
* @param {Number} opts.startDate Unix timestamp
|
|
209
226
|
* @param {Number} opts.endDate Unix timestamp
|
|
210
227
|
* @param {Boolean} opts.systemFilesOnly
|
|
211
228
|
* @param {String} opts.files
|
|
229
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
230
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
231
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
232
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
233
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
234
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
235
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
236
|
+
* @param {String} opts.since Deprecated.
|
|
212
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
213
238
|
*/
|
|
214
239
|
}, {
|
|
@@ -226,19 +251,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
226
251
|
var queryParams = {
|
|
227
252
|
pageSize: opts["pageSize"],
|
|
228
253
|
pageNum: opts["pageNum"],
|
|
229
|
-
deviceUID: opts["deviceUID"],
|
|
254
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
230
255
|
sortBy: opts["sortBy"],
|
|
231
256
|
sortOrder: opts["sortOrder"],
|
|
232
257
|
startDate: opts["startDate"],
|
|
233
258
|
endDate: opts["endDate"],
|
|
234
259
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
235
|
-
files: opts["files"]
|
|
260
|
+
files: opts["files"],
|
|
261
|
+
format: opts["format"],
|
|
262
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
263
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
264
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
265
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
266
|
+
selectFields: opts["selectFields"],
|
|
267
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
268
|
+
since: opts["since"]
|
|
236
269
|
};
|
|
237
270
|
var headerParams = {};
|
|
238
271
|
var formParams = {};
|
|
239
272
|
var authNames = ["api_key"];
|
|
240
273
|
var contentTypes = [];
|
|
241
|
-
var accepts = ["application/json"];
|
|
274
|
+
var accepts = ["application/json", "text/csv"];
|
|
242
275
|
var returnType = _GetProjectEvents200Response["default"];
|
|
243
276
|
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
244
277
|
}
|
|
@@ -249,13 +282,21 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
282
|
* @param {Object} opts Optional parameters
|
|
250
283
|
* @param {Number} opts.pageSize (default to 50)
|
|
251
284
|
* @param {Number} opts.pageNum (default to 1)
|
|
252
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
285
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
253
286
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
254
287
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
255
288
|
* @param {Number} opts.startDate Unix timestamp
|
|
256
289
|
* @param {Number} opts.endDate Unix timestamp
|
|
257
290
|
* @param {Boolean} opts.systemFilesOnly
|
|
258
291
|
* @param {String} opts.files
|
|
292
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
293
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
294
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
295
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
296
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
297
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
298
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
299
|
+
* @param {String} opts.since Deprecated.
|
|
259
300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
260
301
|
*/
|
|
261
302
|
}, {
|
|
@@ -276,7 +317,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
317
|
* @param {Boolean} opts.systemFilesOnly
|
|
277
318
|
* @param {String} opts.files
|
|
278
319
|
* @param {String} opts.fleetUID
|
|
279
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
320
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
280
321
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
281
322
|
*/
|
|
282
323
|
}, {
|
|
@@ -298,7 +339,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
339
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
299
340
|
files: opts["files"],
|
|
300
341
|
fleetUID: opts["fleetUID"],
|
|
301
|
-
deviceUID: opts["deviceUID"]
|
|
342
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
|
|
302
343
|
};
|
|
303
344
|
var headerParams = {};
|
|
304
345
|
var formParams = {};
|
|
@@ -319,7 +360,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
319
360
|
* @param {Boolean} opts.systemFilesOnly
|
|
320
361
|
* @param {String} opts.files
|
|
321
362
|
* @param {String} opts.fleetUID
|
|
322
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
363
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
323
364
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
324
365
|
*/
|
|
325
366
|
}, {
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -8,17 +8,17 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _CreateMonitor = _interopRequireDefault(require("../model/CreateMonitor"));
|
|
9
9
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
10
|
var _Monitor = _interopRequireDefault(require("../model/Monitor"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
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(
|
|
14
|
-
function _defineProperties(
|
|
15
|
-
function _createClass(
|
|
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
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
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
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.
|
|
21
|
+
* The version of the OpenAPI document: 1.1.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.22
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -12,26 +12,30 @@ var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProje
|
|
|
12
12
|
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
13
13
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
14
14
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
15
|
+
var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
|
|
15
16
|
var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
16
17
|
var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetProjectFleets200Response"));
|
|
17
18
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
18
19
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
19
20
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
21
|
+
var _OTAStatusList = _interopRequireDefault(require("../model/OTAStatusList"));
|
|
22
|
+
var _OTAUpdateRequest = _interopRequireDefault(require("../model/OTAUpdateRequest"));
|
|
23
|
+
var _OTAUpdateStatus = _interopRequireDefault(require("../model/OTAUpdateStatus"));
|
|
20
24
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
21
25
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
22
26
|
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
23
27
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
24
|
-
function _interopRequireDefault(
|
|
28
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
25
29
|
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); }
|
|
26
|
-
function _classCallCheck(
|
|
27
|
-
function _defineProperties(
|
|
28
|
-
function _createClass(
|
|
30
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
31
|
+
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); } }
|
|
32
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
34
|
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); } /**
|
|
31
35
|
* Notehub API
|
|
32
36
|
* The OpenAPI definition for the Notehub.io API.
|
|
33
37
|
*
|
|
34
|
-
* The version of the OpenAPI document: 1.
|
|
38
|
+
* The version of the OpenAPI document: 1.1.0
|
|
35
39
|
* Contact: engineering@blues.io
|
|
36
40
|
*
|
|
37
41
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
42
46
|
/**
|
|
43
47
|
* Project service.
|
|
44
48
|
* @module api/ProjectApi
|
|
45
|
-
* @version 1.0.
|
|
49
|
+
* @version 1.0.22
|
|
46
50
|
*/
|
|
47
51
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
48
52
|
/**
|
|
@@ -589,6 +593,70 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
589
593
|
});
|
|
590
594
|
}
|
|
591
595
|
|
|
596
|
+
/**
|
|
597
|
+
* Get Available Firmware Information
|
|
598
|
+
* @param {String} projectUID
|
|
599
|
+
* @param {Object} opts Optional parameters
|
|
600
|
+
* @param {String} opts.product
|
|
601
|
+
* @param {String} opts.firmwareType
|
|
602
|
+
* @param {String} opts.version
|
|
603
|
+
* @param {String} opts.target
|
|
604
|
+
* @param {String} opts.filename
|
|
605
|
+
* @param {String} opts.md5
|
|
606
|
+
* @param {Boolean} opts.unpublished
|
|
607
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
608
|
+
*/
|
|
609
|
+
}, {
|
|
610
|
+
key: "getFirmwareInfoWithHttpInfo",
|
|
611
|
+
value: function getFirmwareInfoWithHttpInfo(projectUID, opts) {
|
|
612
|
+
opts = opts || {};
|
|
613
|
+
var postBody = null;
|
|
614
|
+
// verify the required parameter 'projectUID' is set
|
|
615
|
+
if (projectUID === undefined || projectUID === null) {
|
|
616
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
|
|
617
|
+
}
|
|
618
|
+
var pathParams = {
|
|
619
|
+
projectUID: projectUID
|
|
620
|
+
};
|
|
621
|
+
var queryParams = {
|
|
622
|
+
product: opts["product"],
|
|
623
|
+
firmwareType: opts["firmwareType"],
|
|
624
|
+
version: opts["version"],
|
|
625
|
+
target: opts["target"],
|
|
626
|
+
filename: opts["filename"],
|
|
627
|
+
md5: opts["md5"],
|
|
628
|
+
unpublished: opts["unpublished"]
|
|
629
|
+
};
|
|
630
|
+
var headerParams = {};
|
|
631
|
+
var formParams = {};
|
|
632
|
+
var authNames = ["api_key"];
|
|
633
|
+
var contentTypes = [];
|
|
634
|
+
var accepts = ["application/json"];
|
|
635
|
+
var returnType = [_FirmwareInfo["default"]];
|
|
636
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Get Available Firmware Information
|
|
641
|
+
* @param {String} projectUID
|
|
642
|
+
* @param {Object} opts Optional parameters
|
|
643
|
+
* @param {String} opts.product
|
|
644
|
+
* @param {String} opts.firmwareType
|
|
645
|
+
* @param {String} opts.version
|
|
646
|
+
* @param {String} opts.target
|
|
647
|
+
* @param {String} opts.filename
|
|
648
|
+
* @param {String} opts.md5
|
|
649
|
+
* @param {Boolean} opts.unpublished
|
|
650
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
651
|
+
*/
|
|
652
|
+
}, {
|
|
653
|
+
key: "getFirmwareInfo",
|
|
654
|
+
value: function getFirmwareInfo(projectUID, opts) {
|
|
655
|
+
return this.getFirmwareInfoWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
656
|
+
return response_and_data.data;
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
|
|
592
660
|
/**
|
|
593
661
|
* Get environment variables of a fleet
|
|
594
662
|
* @param {String} projectUID
|
|
@@ -830,6 +898,64 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
830
898
|
});
|
|
831
899
|
}
|
|
832
900
|
|
|
901
|
+
/**
|
|
902
|
+
* Get Project OTA Status
|
|
903
|
+
* @param {String} projectUID
|
|
904
|
+
* @param {Object} opts Optional parameters
|
|
905
|
+
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
906
|
+
* @param {Array.<String>} opts.fleetUIDs
|
|
907
|
+
* @param {Array.<String>} opts.deviceTags
|
|
908
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
909
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
910
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAStatusList>} and HTTP response
|
|
911
|
+
*/
|
|
912
|
+
}, {
|
|
913
|
+
key: "getProjectOTAStatusWithHttpInfo",
|
|
914
|
+
value: function getProjectOTAStatusWithHttpInfo(projectUID, opts) {
|
|
915
|
+
opts = opts || {};
|
|
916
|
+
var postBody = null;
|
|
917
|
+
// verify the required parameter 'projectUID' is set
|
|
918
|
+
if (projectUID === undefined || projectUID === null) {
|
|
919
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectOTAStatus");
|
|
920
|
+
}
|
|
921
|
+
var pathParams = {
|
|
922
|
+
projectUID: projectUID
|
|
923
|
+
};
|
|
924
|
+
var queryParams = {
|
|
925
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
926
|
+
fleetUIDs: this.apiClient.buildCollectionParam(opts["fleetUIDs"], "multi"),
|
|
927
|
+
deviceTags: this.apiClient.buildCollectionParam(opts["deviceTags"], "multi"),
|
|
928
|
+
pageSize: opts["pageSize"],
|
|
929
|
+
pageNum: opts["pageNum"]
|
|
930
|
+
};
|
|
931
|
+
var headerParams = {};
|
|
932
|
+
var formParams = {};
|
|
933
|
+
var authNames = ["api_key"];
|
|
934
|
+
var contentTypes = [];
|
|
935
|
+
var accepts = ["application/json"];
|
|
936
|
+
var returnType = [_OTAStatusList["default"]];
|
|
937
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/ota/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Get Project OTA Status
|
|
942
|
+
* @param {String} projectUID
|
|
943
|
+
* @param {Object} opts Optional parameters
|
|
944
|
+
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
945
|
+
* @param {Array.<String>} opts.fleetUIDs
|
|
946
|
+
* @param {Array.<String>} opts.deviceTags
|
|
947
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
948
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
949
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAStatusList>}
|
|
950
|
+
*/
|
|
951
|
+
}, {
|
|
952
|
+
key: "getProjectOTAStatus",
|
|
953
|
+
value: function getProjectOTAStatus(projectUID, opts) {
|
|
954
|
+
return this.getProjectOTAStatusWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
955
|
+
return response_and_data.data;
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
|
|
833
959
|
/**
|
|
834
960
|
* Get Products within a Project
|
|
835
961
|
* @param {String} projectUID
|
|
@@ -1144,5 +1270,50 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1144
1270
|
return response_and_data.data;
|
|
1145
1271
|
});
|
|
1146
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Update Project Firmware
|
|
1276
|
+
* @param {String} projectUID
|
|
1277
|
+
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1278
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAUpdateStatus>} and HTTP response
|
|
1279
|
+
*/
|
|
1280
|
+
}, {
|
|
1281
|
+
key: "updateProjectFirmwareWithHttpInfo",
|
|
1282
|
+
value: function updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest) {
|
|
1283
|
+
var postBody = oTAUpdateRequest;
|
|
1284
|
+
// verify the required parameter 'projectUID' is set
|
|
1285
|
+
if (projectUID === undefined || projectUID === null) {
|
|
1286
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateProjectFirmware");
|
|
1287
|
+
}
|
|
1288
|
+
// verify the required parameter 'oTAUpdateRequest' is set
|
|
1289
|
+
if (oTAUpdateRequest === undefined || oTAUpdateRequest === null) {
|
|
1290
|
+
throw new _Error["default"]("Missing the required parameter 'oTAUpdateRequest' when calling updateProjectFirmware");
|
|
1291
|
+
}
|
|
1292
|
+
var pathParams = {
|
|
1293
|
+
projectUID: projectUID
|
|
1294
|
+
};
|
|
1295
|
+
var queryParams = {};
|
|
1296
|
+
var headerParams = {};
|
|
1297
|
+
var formParams = {};
|
|
1298
|
+
var authNames = ["api_key"];
|
|
1299
|
+
var contentTypes = ["application/json"];
|
|
1300
|
+
var accepts = ["application/json"];
|
|
1301
|
+
var returnType = [_OTAUpdateStatus["default"]];
|
|
1302
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/ota/update", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Update Project Firmware
|
|
1307
|
+
* @param {String} projectUID
|
|
1308
|
+
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1309
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAUpdateStatus>}
|
|
1310
|
+
*/
|
|
1311
|
+
}, {
|
|
1312
|
+
key: "updateProjectFirmware",
|
|
1313
|
+
value: function updateProjectFirmware(projectUID, oTAUpdateRequest) {
|
|
1314
|
+
return this.updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest).then(function (response_and_data) {
|
|
1315
|
+
return response_and_data.data;
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1147
1318
|
}]);
|
|
1148
1319
|
}();
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -9,17 +9,17 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
9
9
|
var _GetRouteLogsByRoute200ResponseInner = _interopRequireDefault(require("../model/GetRouteLogsByRoute200ResponseInner"));
|
|
10
10
|
var _Route = _interopRequireDefault(require("../model/Route"));
|
|
11
11
|
var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
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); }
|
|
14
|
-
function _classCallCheck(
|
|
15
|
-
function _defineProperties(
|
|
16
|
-
function _createClass(
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
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
20
|
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.
|
|
22
|
+
* The version of the OpenAPI document: 1.1.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.22
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -189,7 +189,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
189
|
* @param {Object} opts Optional parameters
|
|
190
190
|
* @param {Number} opts.pageSize (default to 50)
|
|
191
191
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
192
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
193
193
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
194
194
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
195
195
|
* @param {Number} opts.startDate Unix timestamp
|
|
@@ -218,7 +218,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
218
218
|
var queryParams = {
|
|
219
219
|
pageSize: opts["pageSize"],
|
|
220
220
|
pageNum: opts["pageNum"],
|
|
221
|
-
deviceUID: opts["deviceUID"],
|
|
221
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
222
222
|
sortBy: opts["sortBy"],
|
|
223
223
|
sortOrder: opts["sortOrder"],
|
|
224
224
|
startDate: opts["startDate"],
|
|
@@ -242,7 +242,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
242
|
* @param {Object} opts Optional parameters
|
|
243
243
|
* @param {Number} opts.pageSize (default to 50)
|
|
244
244
|
* @param {Number} opts.pageNum (default to 1)
|
|
245
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
245
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
246
246
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
247
247
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
248
248
|
* @param {Number} opts.startDate Unix timestamp
|