@blues-inc/notehub-js 1.0.21 → 1.0.23-beta.1
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 +188 -178
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -20
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +380 -329
- package/dist/api/EventApi.js +162 -121
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +246 -246
- package/dist/api/RouteApi.js +77 -77
- package/dist/model/Alert.js +72 -57
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +127 -126
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/FirmwareStatus.js +28 -28
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +16 -15
- package/dist/model/GetBillingAccounts200Response.js +11 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +13 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +11 -10
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +18 -17
- package/dist/model/GetProjectEvents200Response.js +30 -16
- package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
- package/dist/model/GetProjectFleets200Response.js +13 -12
- package/dist/model/GetProjectMembers200Response.js +13 -12
- package/dist/model/GetProjectProducts200Response.js +11 -10
- package/dist/model/GetProjects200Response.js +11 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +101 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -11
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/OTAStatus.js +89 -89
- package/dist/model/OTAStatusList.js +14 -13
- package/dist/model/OTAUpdateRequest.js +54 -54
- package/dist/model/OTAUpdateStatus.js +18 -18
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Route.js +37 -37
- package/dist/model/RouteSchema.js +46 -47
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UserDbRoute.js +26 -26
- package/package.json +4 -4
package/dist/api/EventApi.js
CHANGED
|
@@ -17,9 +17,9 @@ 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. Beta test change
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.1.
|
|
22
|
+
* The version of the OpenAPI document: 1.1.2
|
|
23
23
|
* Contact: engineering@blues.io
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
* Event service.
|
|
32
|
+
* @module api/EventApi
|
|
33
|
+
* @version 1.0.23-beta.1
|
|
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,92 +47,109 @@ 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
|
|
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
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
61
|
-
* @param {String} opts.files
|
|
60
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
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 = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
|
|
85
|
+
'pageSize': opts['pageSize'],
|
|
86
|
+
'pageNum': opts['pageNum'],
|
|
87
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
88
|
+
'sortBy': opts['sortBy'],
|
|
89
|
+
'sortOrder': opts['sortOrder'],
|
|
90
|
+
'startDate': opts['startDate'],
|
|
91
|
+
'endDate': opts['endDate'],
|
|
92
|
+
'systemFilesOnly': opts['systemFilesOnly'],
|
|
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
|
-
var authNames = [
|
|
104
|
+
var authNames = ['api_key'];
|
|
95
105
|
var contentTypes = [];
|
|
96
|
-
var accepts = [
|
|
106
|
+
var accepts = ['application/json', 'text/csv'];
|
|
97
107
|
var returnType = _GetProjectEvents200Response["default"];
|
|
98
|
-
return this.apiClient.callApi(
|
|
108
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
99
109
|
}
|
|
100
110
|
|
|
101
111
|
/**
|
|
102
112
|
* Get Events of a Fleet
|
|
103
|
-
* @param {String} projectUID
|
|
104
|
-
* @param {String} fleetUID
|
|
113
|
+
* @param {String} projectUID
|
|
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
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
114
|
-
* @param {String} opts.files
|
|
123
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
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
|
}
|
|
124
141
|
|
|
125
142
|
/**
|
|
126
143
|
* Get Events of a Fleet by cursor
|
|
127
|
-
* @param {String} projectUID
|
|
128
|
-
* @param {String} fleetUID
|
|
144
|
+
* @param {String} projectUID
|
|
145
|
+
* @param {String} fleetUID
|
|
129
146
|
* @param {Object} opts Optional parameters
|
|
130
147
|
* @param {Number} opts.limit (default to 50)
|
|
131
|
-
* @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.
|
|
148
|
+
* @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.
|
|
132
149
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
133
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
134
|
-
* @param {String} opts.files
|
|
135
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
150
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
151
|
+
* @param {String} opts.files
|
|
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
|
|
@@ -151,39 +168,39 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
151
168
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
152
169
|
}
|
|
153
170
|
var pathParams = {
|
|
154
|
-
projectUID: projectUID,
|
|
155
|
-
fleetUID: fleetUID
|
|
171
|
+
'projectUID': projectUID,
|
|
172
|
+
'fleetUID': fleetUID
|
|
156
173
|
};
|
|
157
174
|
var queryParams = {
|
|
158
|
-
limit: opts[
|
|
159
|
-
cursor: opts[
|
|
160
|
-
sortOrder: opts[
|
|
161
|
-
systemFilesOnly: opts[
|
|
162
|
-
files: opts[
|
|
163
|
-
deviceUID: opts[
|
|
164
|
-
startDate: opts[
|
|
165
|
-
endDate: opts[
|
|
175
|
+
'limit': opts['limit'],
|
|
176
|
+
'cursor': opts['cursor'],
|
|
177
|
+
'sortOrder': opts['sortOrder'],
|
|
178
|
+
'systemFilesOnly': opts['systemFilesOnly'],
|
|
179
|
+
'files': opts['files'],
|
|
180
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
181
|
+
'startDate': opts['startDate'],
|
|
182
|
+
'endDate': opts['endDate']
|
|
166
183
|
};
|
|
167
184
|
var headerParams = {};
|
|
168
185
|
var formParams = {};
|
|
169
|
-
var authNames = [
|
|
186
|
+
var authNames = ['api_key'];
|
|
170
187
|
var contentTypes = [];
|
|
171
|
-
var accepts = [
|
|
188
|
+
var accepts = ['application/json'];
|
|
172
189
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
173
|
-
return this.apiClient.callApi(
|
|
190
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
174
191
|
}
|
|
175
192
|
|
|
176
193
|
/**
|
|
177
194
|
* Get Events of a Fleet by cursor
|
|
178
|
-
* @param {String} projectUID
|
|
179
|
-
* @param {String} fleetUID
|
|
195
|
+
* @param {String} projectUID
|
|
196
|
+
* @param {String} fleetUID
|
|
180
197
|
* @param {Object} opts Optional parameters
|
|
181
198
|
* @param {Number} opts.limit (default to 50)
|
|
182
|
-
* @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.
|
|
199
|
+
* @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.
|
|
183
200
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
184
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
185
|
-
* @param {String} opts.files
|
|
186
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
201
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
202
|
+
* @param {String} opts.files
|
|
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}
|
|
@@ -198,17 +215,25 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
198
215
|
|
|
199
216
|
/**
|
|
200
217
|
* Get Events of a Project
|
|
201
|
-
* @param {String} projectUID
|
|
218
|
+
* @param {String} projectUID
|
|
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
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
211
|
-
* @param {String} opts.files
|
|
227
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
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
|
}, {
|
|
@@ -221,41 +246,57 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
246
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
222
247
|
}
|
|
223
248
|
var pathParams = {
|
|
224
|
-
projectUID: projectUID
|
|
249
|
+
'projectUID': projectUID
|
|
225
250
|
};
|
|
226
251
|
var queryParams = {
|
|
227
|
-
pageSize: opts[
|
|
228
|
-
pageNum: opts[
|
|
229
|
-
deviceUID: opts[
|
|
230
|
-
sortBy: opts[
|
|
231
|
-
sortOrder: opts[
|
|
232
|
-
startDate: opts[
|
|
233
|
-
endDate: opts[
|
|
234
|
-
systemFilesOnly: opts[
|
|
235
|
-
files: opts[
|
|
252
|
+
'pageSize': opts['pageSize'],
|
|
253
|
+
'pageNum': opts['pageNum'],
|
|
254
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
255
|
+
'sortBy': opts['sortBy'],
|
|
256
|
+
'sortOrder': opts['sortOrder'],
|
|
257
|
+
'startDate': opts['startDate'],
|
|
258
|
+
'endDate': opts['endDate'],
|
|
259
|
+
'systemFilesOnly': opts['systemFilesOnly'],
|
|
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
|
-
var authNames = [
|
|
272
|
+
var authNames = ['api_key'];
|
|
240
273
|
var contentTypes = [];
|
|
241
|
-
var accepts = [
|
|
274
|
+
var accepts = ['application/json', 'text/csv'];
|
|
242
275
|
var returnType = _GetProjectEvents200Response["default"];
|
|
243
|
-
return this.apiClient.callApi(
|
|
276
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
244
277
|
}
|
|
245
278
|
|
|
246
279
|
/**
|
|
247
280
|
* Get Events of a Project
|
|
248
|
-
* @param {String} projectUID
|
|
281
|
+
* @param {String} projectUID
|
|
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
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
258
|
-
* @param {String} opts.files
|
|
290
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
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
|
}, {
|
|
@@ -268,15 +309,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
268
309
|
|
|
269
310
|
/**
|
|
270
311
|
* Get Events of a Project by cursor
|
|
271
|
-
* @param {String} projectUID
|
|
312
|
+
* @param {String} projectUID
|
|
272
313
|
* @param {Object} opts Optional parameters
|
|
273
314
|
* @param {Number} opts.limit (default to 50)
|
|
274
|
-
* @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.
|
|
315
|
+
* @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.
|
|
275
316
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
276
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
277
|
-
* @param {String} opts.files
|
|
278
|
-
* @param {String} opts.fleetUID
|
|
279
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
317
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
318
|
+
* @param {String} opts.files
|
|
319
|
+
* @param {String} opts.fleetUID
|
|
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
|
}, {
|
|
@@ -289,37 +330,37 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
330
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
|
|
290
331
|
}
|
|
291
332
|
var pathParams = {
|
|
292
|
-
projectUID: projectUID
|
|
333
|
+
'projectUID': projectUID
|
|
293
334
|
};
|
|
294
335
|
var queryParams = {
|
|
295
|
-
limit: opts[
|
|
296
|
-
cursor: opts[
|
|
297
|
-
sortOrder: opts[
|
|
298
|
-
systemFilesOnly: opts[
|
|
299
|
-
files: opts[
|
|
300
|
-
fleetUID: opts[
|
|
301
|
-
deviceUID: opts[
|
|
336
|
+
'limit': opts['limit'],
|
|
337
|
+
'cursor': opts['cursor'],
|
|
338
|
+
'sortOrder': opts['sortOrder'],
|
|
339
|
+
'systemFilesOnly': opts['systemFilesOnly'],
|
|
340
|
+
'files': opts['files'],
|
|
341
|
+
'fleetUID': opts['fleetUID'],
|
|
342
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi')
|
|
302
343
|
};
|
|
303
344
|
var headerParams = {};
|
|
304
345
|
var formParams = {};
|
|
305
|
-
var authNames = [
|
|
346
|
+
var authNames = ['api_key'];
|
|
306
347
|
var contentTypes = [];
|
|
307
|
-
var accepts = [
|
|
348
|
+
var accepts = ['application/json'];
|
|
308
349
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
309
|
-
return this.apiClient.callApi(
|
|
350
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
310
351
|
}
|
|
311
352
|
|
|
312
353
|
/**
|
|
313
354
|
* Get Events of a Project by cursor
|
|
314
|
-
* @param {String} projectUID
|
|
355
|
+
* @param {String} projectUID
|
|
315
356
|
* @param {Object} opts Optional parameters
|
|
316
357
|
* @param {Number} opts.limit (default to 50)
|
|
317
|
-
* @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.
|
|
358
|
+
* @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.
|
|
318
359
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
319
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
320
|
-
* @param {String} opts.files
|
|
321
|
-
* @param {String} opts.fleetUID
|
|
322
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
360
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
361
|
+
* @param {String} opts.files
|
|
362
|
+
* @param {String} opts.fleetUID
|
|
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
|
}, {
|
|
@@ -332,8 +373,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
332
373
|
|
|
333
374
|
/**
|
|
334
375
|
* Get Route Logs by Event UID
|
|
335
|
-
* @param {String} projectUID
|
|
336
|
-
* @param {String} eventUID
|
|
376
|
+
* @param {String} projectUID
|
|
377
|
+
* @param {String} eventUID
|
|
337
378
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>} and HTTP response
|
|
338
379
|
*/
|
|
339
380
|
}, {
|
|
@@ -349,23 +390,23 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
349
390
|
throw new _Error["default"]("Missing the required parameter 'eventUID' when calling getRouteLogsByEvent");
|
|
350
391
|
}
|
|
351
392
|
var pathParams = {
|
|
352
|
-
projectUID: projectUID,
|
|
353
|
-
eventUID: eventUID
|
|
393
|
+
'projectUID': projectUID,
|
|
394
|
+
'eventUID': eventUID
|
|
354
395
|
};
|
|
355
396
|
var queryParams = {};
|
|
356
397
|
var headerParams = {};
|
|
357
398
|
var formParams = {};
|
|
358
|
-
var authNames = [
|
|
399
|
+
var authNames = ['api_key'];
|
|
359
400
|
var contentTypes = [];
|
|
360
|
-
var accepts = [
|
|
401
|
+
var accepts = ['application/json'];
|
|
361
402
|
var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
|
|
362
|
-
return this.apiClient.callApi(
|
|
403
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/events/{eventUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
363
404
|
}
|
|
364
405
|
|
|
365
406
|
/**
|
|
366
407
|
* Get Route Logs by Event UID
|
|
367
|
-
* @param {String} projectUID
|
|
368
|
-
* @param {String} eventUID
|
|
408
|
+
* @param {String} projectUID
|
|
409
|
+
* @param {String} eventUID
|
|
369
410
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
|
|
370
411
|
*/
|
|
371
412
|
}, {
|