@blues-inc/notehub-js 1.0.24-beta.9 → 1.0.25
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 +190 -199
- package/dist/ApiClient.js +156 -157
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +122 -122
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +326 -326
- package/dist/api/RouteApi.js +74 -74
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +7 -7
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +84 -84
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +182 -182
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +223 -223
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +21 -21
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectFleets200Response.js +11 -12
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PostProvisionProjectDeviceRequest.js +26 -13
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Role.js +9 -9
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +52 -52
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +17 -17
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/package.json +4 -4
package/dist/api/EventApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
* Event service.
|
|
32
|
-
* @module api/EventApi
|
|
33
|
-
* @version 1.0.
|
|
34
|
-
*/
|
|
31
|
+
* Event service.
|
|
32
|
+
* @module api/EventApi
|
|
33
|
+
* @version 1.0.25
|
|
34
|
+
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
* Constructs a new EventApi.
|
|
38
|
+
* @alias module:api/EventApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
43
|
function EventApi(apiClient) {
|
|
44
44
|
_classCallCheck(this, EventApi);
|
|
45
45
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -47,8 +47,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
|
-
* @param {String} projectUID
|
|
51
|
-
* @param {String} fleetUID
|
|
50
|
+
* @param {String} projectUID
|
|
51
|
+
* @param {String} fleetUID
|
|
52
52
|
* @param {Object} opts Optional parameters
|
|
53
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
54
54
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -58,8 +58,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
58
58
|
* @param {Number} opts.startDate Unix timestamp
|
|
59
59
|
* @param {Number} opts.endDate Unix timestamp
|
|
60
60
|
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
61
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
62
|
-
* @param {String} opts.files
|
|
61
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
62
|
+
* @param {String} opts.files
|
|
63
63
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
64
64
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
65
65
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
@@ -83,41 +83,41 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
83
83
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
84
84
|
}
|
|
85
85
|
var pathParams = {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
projectUID: projectUID,
|
|
87
|
+
fleetUID: fleetUID
|
|
88
88
|
};
|
|
89
89
|
var queryParams = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
90
|
+
pageSize: opts["pageSize"],
|
|
91
|
+
pageNum: opts["pageNum"],
|
|
92
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
93
|
+
sortBy: opts["sortBy"],
|
|
94
|
+
sortOrder: opts["sortOrder"],
|
|
95
|
+
startDate: opts["startDate"],
|
|
96
|
+
endDate: opts["endDate"],
|
|
97
|
+
dateType: opts["dateType"],
|
|
98
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
99
|
+
files: opts["files"],
|
|
100
|
+
format: opts["format"],
|
|
101
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
102
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
103
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
104
|
+
selectFields: opts["selectFields"],
|
|
105
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
106
|
+
since: opts["since"]
|
|
107
107
|
};
|
|
108
108
|
var headerParams = {};
|
|
109
109
|
var formParams = {};
|
|
110
|
-
var authNames = [
|
|
110
|
+
var authNames = ["api_key"];
|
|
111
111
|
var contentTypes = [];
|
|
112
|
-
var accepts = [
|
|
112
|
+
var accepts = ["application/json", "text/csv"];
|
|
113
113
|
var returnType = _GetProjectEvents200Response["default"];
|
|
114
|
-
return this.apiClient.callApi(
|
|
114
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* Get Events of a Fleet
|
|
119
|
-
* @param {String} projectUID
|
|
120
|
-
* @param {String} fleetUID
|
|
119
|
+
* @param {String} projectUID
|
|
120
|
+
* @param {String} fleetUID
|
|
121
121
|
* @param {Object} opts Optional parameters
|
|
122
122
|
* @param {Number} opts.pageSize (default to 50)
|
|
123
123
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -127,8 +127,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
127
|
* @param {Number} opts.startDate Unix timestamp
|
|
128
128
|
* @param {Number} opts.endDate Unix timestamp
|
|
129
129
|
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
130
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
131
|
-
* @param {String} opts.files
|
|
130
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
131
|
+
* @param {String} opts.files
|
|
132
132
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
133
133
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
134
134
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
@@ -148,14 +148,14 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Get Events of a Fleet by cursor
|
|
151
|
-
* @param {String} projectUID
|
|
152
|
-
* @param {String} fleetUID
|
|
151
|
+
* @param {String} projectUID
|
|
152
|
+
* @param {String} fleetUID
|
|
153
153
|
* @param {Object} opts Optional parameters
|
|
154
154
|
* @param {Number} opts.limit (default to 50)
|
|
155
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
155
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
156
156
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
157
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
158
|
-
* @param {String} opts.files
|
|
157
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
158
|
+
* @param {String} opts.files
|
|
159
159
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
160
160
|
* @param {Number} opts.startDate Unix timestamp
|
|
161
161
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -175,38 +175,38 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
175
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
176
176
|
}
|
|
177
177
|
var pathParams = {
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
projectUID: projectUID,
|
|
179
|
+
fleetUID: fleetUID
|
|
180
180
|
};
|
|
181
181
|
var queryParams = {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
limit: opts["limit"],
|
|
183
|
+
cursor: opts["cursor"],
|
|
184
|
+
sortOrder: opts["sortOrder"],
|
|
185
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
186
|
+
files: opts["files"],
|
|
187
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
188
|
+
startDate: opts["startDate"],
|
|
189
|
+
endDate: opts["endDate"]
|
|
190
190
|
};
|
|
191
191
|
var headerParams = {};
|
|
192
192
|
var formParams = {};
|
|
193
|
-
var authNames = [
|
|
193
|
+
var authNames = ["api_key"];
|
|
194
194
|
var contentTypes = [];
|
|
195
|
-
var accepts = [
|
|
195
|
+
var accepts = ["application/json"];
|
|
196
196
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
197
|
-
return this.apiClient.callApi(
|
|
197
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Get Events of a Fleet by cursor
|
|
202
|
-
* @param {String} projectUID
|
|
203
|
-
* @param {String} fleetUID
|
|
202
|
+
* @param {String} projectUID
|
|
203
|
+
* @param {String} fleetUID
|
|
204
204
|
* @param {Object} opts Optional parameters
|
|
205
205
|
* @param {Number} opts.limit (default to 50)
|
|
206
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
206
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
207
207
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
208
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
209
|
-
* @param {String} opts.files
|
|
208
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
209
|
+
* @param {String} opts.files
|
|
210
210
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
211
211
|
* @param {Number} opts.startDate Unix timestamp
|
|
212
212
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -222,7 +222,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* Get Events of a Project
|
|
225
|
-
* @param {String} projectUID
|
|
225
|
+
* @param {String} projectUID
|
|
226
226
|
* @param {Object} opts Optional parameters
|
|
227
227
|
* @param {Number} opts.pageSize (default to 50)
|
|
228
228
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -232,8 +232,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
232
|
* @param {Number} opts.startDate Unix timestamp
|
|
233
233
|
* @param {Number} opts.endDate Unix timestamp
|
|
234
234
|
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
235
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
236
|
-
* @param {String} opts.files
|
|
235
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
236
|
+
* @param {String} opts.files
|
|
237
237
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
238
238
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
239
239
|
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
@@ -254,40 +254,40 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
254
254
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
255
255
|
}
|
|
256
256
|
var pathParams = {
|
|
257
|
-
|
|
257
|
+
projectUID: projectUID
|
|
258
258
|
};
|
|
259
259
|
var queryParams = {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
260
|
+
pageSize: opts["pageSize"],
|
|
261
|
+
pageNum: opts["pageNum"],
|
|
262
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
263
|
+
sortBy: opts["sortBy"],
|
|
264
|
+
sortOrder: opts["sortOrder"],
|
|
265
|
+
startDate: opts["startDate"],
|
|
266
|
+
endDate: opts["endDate"],
|
|
267
|
+
dateType: opts["dateType"],
|
|
268
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
269
|
+
files: opts["files"],
|
|
270
|
+
format: opts["format"],
|
|
271
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
272
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
273
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
274
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
275
|
+
selectFields: opts["selectFields"],
|
|
276
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
277
|
+
since: opts["since"]
|
|
278
278
|
};
|
|
279
279
|
var headerParams = {};
|
|
280
280
|
var formParams = {};
|
|
281
|
-
var authNames = [
|
|
281
|
+
var authNames = ["api_key"];
|
|
282
282
|
var contentTypes = [];
|
|
283
|
-
var accepts = [
|
|
283
|
+
var accepts = ["application/json", "text/csv"];
|
|
284
284
|
var returnType = _GetProjectEvents200Response["default"];
|
|
285
|
-
return this.apiClient.callApi(
|
|
285
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* Get Events of a Project
|
|
290
|
-
* @param {String} projectUID
|
|
290
|
+
* @param {String} projectUID
|
|
291
291
|
* @param {Object} opts Optional parameters
|
|
292
292
|
* @param {Number} opts.pageSize (default to 50)
|
|
293
293
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -297,8 +297,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
297
297
|
* @param {Number} opts.startDate Unix timestamp
|
|
298
298
|
* @param {Number} opts.endDate Unix timestamp
|
|
299
299
|
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
300
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
301
|
-
* @param {String} opts.files
|
|
300
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
301
|
+
* @param {String} opts.files
|
|
302
302
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
303
303
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
304
304
|
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
@@ -319,14 +319,14 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Get Events of a Project by cursor
|
|
322
|
-
* @param {String} projectUID
|
|
322
|
+
* @param {String} projectUID
|
|
323
323
|
* @param {Object} opts Optional parameters
|
|
324
324
|
* @param {Number} opts.limit (default to 50)
|
|
325
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
325
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
326
326
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
327
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
328
|
-
* @param {String} opts.files
|
|
329
|
-
* @param {String} opts.fleetUID
|
|
327
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
328
|
+
* @param {String} opts.files
|
|
329
|
+
* @param {String} opts.fleetUID
|
|
330
330
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
331
331
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
332
332
|
*/
|
|
@@ -340,36 +340,36 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
340
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
|
|
341
341
|
}
|
|
342
342
|
var pathParams = {
|
|
343
|
-
|
|
343
|
+
projectUID: projectUID
|
|
344
344
|
};
|
|
345
345
|
var queryParams = {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
limit: opts["limit"],
|
|
347
|
+
cursor: opts["cursor"],
|
|
348
|
+
sortOrder: opts["sortOrder"],
|
|
349
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
350
|
+
files: opts["files"],
|
|
351
|
+
fleetUID: opts["fleetUID"],
|
|
352
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
|
|
353
353
|
};
|
|
354
354
|
var headerParams = {};
|
|
355
355
|
var formParams = {};
|
|
356
|
-
var authNames = [
|
|
356
|
+
var authNames = ["api_key"];
|
|
357
357
|
var contentTypes = [];
|
|
358
|
-
var accepts = [
|
|
358
|
+
var accepts = ["application/json"];
|
|
359
359
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
360
|
-
return this.apiClient.callApi(
|
|
360
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
364
|
* Get Events of a Project by cursor
|
|
365
|
-
* @param {String} projectUID
|
|
365
|
+
* @param {String} projectUID
|
|
366
366
|
* @param {Object} opts Optional parameters
|
|
367
367
|
* @param {Number} opts.limit (default to 50)
|
|
368
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
368
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
369
369
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
370
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
371
|
-
* @param {String} opts.files
|
|
372
|
-
* @param {String} opts.fleetUID
|
|
370
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
371
|
+
* @param {String} opts.files
|
|
372
|
+
* @param {String} opts.fleetUID
|
|
373
373
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
374
374
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
375
375
|
*/
|
|
@@ -383,8 +383,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* Get Route Logs by Event UID
|
|
386
|
-
* @param {String} projectUID
|
|
387
|
-
* @param {String} eventUID
|
|
386
|
+
* @param {String} projectUID
|
|
387
|
+
* @param {String} eventUID
|
|
388
388
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>} and HTTP response
|
|
389
389
|
*/
|
|
390
390
|
}, {
|
|
@@ -400,23 +400,23 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
400
|
throw new _Error["default"]("Missing the required parameter 'eventUID' when calling getRouteLogsByEvent");
|
|
401
401
|
}
|
|
402
402
|
var pathParams = {
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
projectUID: projectUID,
|
|
404
|
+
eventUID: eventUID
|
|
405
405
|
};
|
|
406
406
|
var queryParams = {};
|
|
407
407
|
var headerParams = {};
|
|
408
408
|
var formParams = {};
|
|
409
|
-
var authNames = [
|
|
409
|
+
var authNames = ["api_key"];
|
|
410
410
|
var contentTypes = [];
|
|
411
|
-
var accepts = [
|
|
411
|
+
var accepts = ["application/json"];
|
|
412
412
|
var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
|
|
413
|
-
return this.apiClient.callApi(
|
|
413
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/events/{eventUID}/route-logs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
417
|
* Get Route Logs by Event UID
|
|
418
|
-
* @param {String} projectUID
|
|
419
|
-
* @param {String} eventUID
|
|
418
|
+
* @param {String} projectUID
|
|
419
|
+
* @param {String} eventUID
|
|
420
420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
|
|
421
421
|
*/
|
|
422
422
|
}, {
|