@blues-inc/notehub-js 1.0.23 → 1.0.24-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 +199 -178
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -23
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +352 -352
- package/dist/api/EventApi.js +134 -124
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +599 -330
- package/dist/api/RouteApi.js +103 -103
- package/dist/index.js +102 -39
- package/dist/model/Alert.js +108 -62
- 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/{OTAUpdateStatus.js → CurrentFirmware.js} +34 -47
- 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/DeviceDfuHistory.js +139 -0
- package/dist/model/DeviceDfuHistoryPage.js +121 -0
- package/dist/model/DeviceDfuStateMachine.js +152 -0
- package/dist/model/DeviceDfuStateMachineNode.js +132 -0
- package/dist/model/DeviceDfuStatus.js +129 -0
- package/dist/model/DeviceDfuStatusCurrent.js +158 -0
- package/dist/model/{OTAStatusList.js → DeviceDfuStatusPage.js} +34 -33
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/DfuActionRequest.js +92 -0
- 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/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +61 -61
- 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 +22 -21
- 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/{Route.js → NotehubRoute.js} +56 -56
- package/dist/model/{RouteSchema.js → NotehubRouteSchema.js} +70 -71
- 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/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/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/UserDfuStateMachineStatus.js +123 -0
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +3 -3
- package/dist/model/FirmwareStatus.js +0 -144
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
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.
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
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.24-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,9 +47,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
|
-
* @param {String} projectUID
|
|
50
|
+
* @param {String} projectUID
|
|
51
|
+
* @param {String} fleetUID
|
|
51
52
|
* @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
55
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
@@ -57,8 +57,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
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 {
|
|
61
|
-
* @param {
|
|
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
|
|
62
63
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
63
64
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
64
65
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
@@ -70,49 +71,54 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
71
|
*/
|
|
71
72
|
return _createClass(EventApi, [{
|
|
72
73
|
key: "getFleetEventsWithHttpInfo",
|
|
73
|
-
value: function getFleetEventsWithHttpInfo(projectUID, opts) {
|
|
74
|
+
value: function getFleetEventsWithHttpInfo(projectUID, fleetUID, opts) {
|
|
74
75
|
opts = opts || {};
|
|
75
76
|
var postBody = null;
|
|
76
77
|
// verify the required parameter 'projectUID' is set
|
|
77
78
|
if (projectUID === undefined || projectUID === null) {
|
|
78
79
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
|
|
79
80
|
}
|
|
81
|
+
// verify the required parameter 'fleetUID' is set
|
|
82
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
83
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
84
|
+
}
|
|
80
85
|
var pathParams = {
|
|
81
|
-
projectUID: projectUID
|
|
86
|
+
'projectUID': projectUID,
|
|
87
|
+
'fleetUID': fleetUID
|
|
82
88
|
};
|
|
83
89
|
var queryParams = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
systemFilesOnly: opts[
|
|
93
|
-
files: opts[
|
|
94
|
-
format: opts[
|
|
95
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
96
|
-
sessionUID: this.apiClient.buildCollectionParam(opts[
|
|
97
|
-
eventUID: this.apiClient.buildCollectionParam(opts[
|
|
98
|
-
selectFields: opts[
|
|
99
|
-
deviceUIDs: this.apiClient.buildCollectionParam(opts[
|
|
100
|
-
since: opts[
|
|
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']
|
|
101
107
|
};
|
|
102
108
|
var headerParams = {};
|
|
103
109
|
var formParams = {};
|
|
104
|
-
var authNames = [
|
|
110
|
+
var authNames = ['api_key'];
|
|
105
111
|
var contentTypes = [];
|
|
106
|
-
var accepts = [
|
|
112
|
+
var accepts = ['application/json', 'text/csv'];
|
|
107
113
|
var returnType = _GetProjectEvents200Response["default"];
|
|
108
|
-
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);
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
/**
|
|
112
118
|
* Get Events of a Fleet
|
|
113
|
-
* @param {String} projectUID
|
|
119
|
+
* @param {String} projectUID
|
|
120
|
+
* @param {String} fleetUID
|
|
114
121
|
* @param {Object} opts Optional parameters
|
|
115
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
116
122
|
* @param {Number} opts.pageSize (default to 50)
|
|
117
123
|
* @param {Number} opts.pageNum (default to 1)
|
|
118
124
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
@@ -120,8 +126,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
120
126
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
121
127
|
* @param {Number} opts.startDate Unix timestamp
|
|
122
128
|
* @param {Number} opts.endDate Unix timestamp
|
|
123
|
-
* @param {
|
|
124
|
-
* @param {
|
|
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
|
|
125
132
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
126
133
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
127
134
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
@@ -133,22 +140,22 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
140
|
*/
|
|
134
141
|
}, {
|
|
135
142
|
key: "getFleetEvents",
|
|
136
|
-
value: function getFleetEvents(projectUID, opts) {
|
|
137
|
-
return this.getFleetEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
143
|
+
value: function getFleetEvents(projectUID, fleetUID, opts) {
|
|
144
|
+
return this.getFleetEventsWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
138
145
|
return response_and_data.data;
|
|
139
146
|
});
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
/**
|
|
143
150
|
* Get Events of a Fleet by cursor
|
|
144
|
-
* @param {String} projectUID
|
|
145
|
-
* @param {String} fleetUID
|
|
151
|
+
* @param {String} projectUID
|
|
152
|
+
* @param {String} fleetUID
|
|
146
153
|
* @param {Object} opts Optional parameters
|
|
147
154
|
* @param {Number} opts.limit (default to 50)
|
|
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.
|
|
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.
|
|
149
156
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
150
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
151
|
-
* @param {String} opts.files
|
|
157
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
158
|
+
* @param {String} opts.files
|
|
152
159
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
153
160
|
* @param {Number} opts.startDate Unix timestamp
|
|
154
161
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -168,38 +175,38 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
175
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
169
176
|
}
|
|
170
177
|
var pathParams = {
|
|
171
|
-
projectUID: projectUID,
|
|
172
|
-
fleetUID: fleetUID
|
|
178
|
+
'projectUID': projectUID,
|
|
179
|
+
'fleetUID': fleetUID
|
|
173
180
|
};
|
|
174
181
|
var queryParams = {
|
|
175
|
-
limit: opts[
|
|
176
|
-
cursor: opts[
|
|
177
|
-
sortOrder: opts[
|
|
178
|
-
systemFilesOnly: opts[
|
|
179
|
-
files: opts[
|
|
180
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
181
|
-
startDate: opts[
|
|
182
|
-
endDate: opts[
|
|
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']
|
|
183
190
|
};
|
|
184
191
|
var headerParams = {};
|
|
185
192
|
var formParams = {};
|
|
186
|
-
var authNames = [
|
|
193
|
+
var authNames = ['api_key'];
|
|
187
194
|
var contentTypes = [];
|
|
188
|
-
var accepts = [
|
|
195
|
+
var accepts = ['application/json'];
|
|
189
196
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
190
|
-
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);
|
|
191
198
|
}
|
|
192
199
|
|
|
193
200
|
/**
|
|
194
201
|
* Get Events of a Fleet by cursor
|
|
195
|
-
* @param {String} projectUID
|
|
196
|
-
* @param {String} fleetUID
|
|
202
|
+
* @param {String} projectUID
|
|
203
|
+
* @param {String} fleetUID
|
|
197
204
|
* @param {Object} opts Optional parameters
|
|
198
205
|
* @param {Number} opts.limit (default to 50)
|
|
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.
|
|
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.
|
|
200
207
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
201
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
202
|
-
* @param {String} opts.files
|
|
208
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
209
|
+
* @param {String} opts.files
|
|
203
210
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
204
211
|
* @param {Number} opts.startDate Unix timestamp
|
|
205
212
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -215,7 +222,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
222
|
|
|
216
223
|
/**
|
|
217
224
|
* Get Events of a Project
|
|
218
|
-
* @param {String} projectUID
|
|
225
|
+
* @param {String} projectUID
|
|
219
226
|
* @param {Object} opts Optional parameters
|
|
220
227
|
* @param {Number} opts.pageSize (default to 50)
|
|
221
228
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -224,8 +231,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
224
231
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
225
232
|
* @param {Number} opts.startDate Unix timestamp
|
|
226
233
|
* @param {Number} opts.endDate Unix timestamp
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {
|
|
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
|
|
229
237
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
230
238
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
231
239
|
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
@@ -246,39 +254,40 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
246
254
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
247
255
|
}
|
|
248
256
|
var pathParams = {
|
|
249
|
-
projectUID: projectUID
|
|
257
|
+
'projectUID': projectUID
|
|
250
258
|
};
|
|
251
259
|
var queryParams = {
|
|
252
|
-
pageSize: opts[
|
|
253
|
-
pageNum: opts[
|
|
254
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
255
|
-
sortBy: opts[
|
|
256
|
-
sortOrder: opts[
|
|
257
|
-
startDate: opts[
|
|
258
|
-
endDate: opts[
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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']
|
|
269
278
|
};
|
|
270
279
|
var headerParams = {};
|
|
271
280
|
var formParams = {};
|
|
272
|
-
var authNames = [
|
|
281
|
+
var authNames = ['api_key'];
|
|
273
282
|
var contentTypes = [];
|
|
274
|
-
var accepts = [
|
|
283
|
+
var accepts = ['application/json', 'text/csv'];
|
|
275
284
|
var returnType = _GetProjectEvents200Response["default"];
|
|
276
|
-
return this.apiClient.callApi(
|
|
285
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
277
286
|
}
|
|
278
287
|
|
|
279
288
|
/**
|
|
280
289
|
* Get Events of a Project
|
|
281
|
-
* @param {String} projectUID
|
|
290
|
+
* @param {String} projectUID
|
|
282
291
|
* @param {Object} opts Optional parameters
|
|
283
292
|
* @param {Number} opts.pageSize (default to 50)
|
|
284
293
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -287,8 +296,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
296
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
288
297
|
* @param {Number} opts.startDate Unix timestamp
|
|
289
298
|
* @param {Number} opts.endDate Unix timestamp
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {
|
|
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
|
|
292
302
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
293
303
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
294
304
|
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
@@ -309,14 +319,14 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
319
|
|
|
310
320
|
/**
|
|
311
321
|
* Get Events of a Project by cursor
|
|
312
|
-
* @param {String} projectUID
|
|
322
|
+
* @param {String} projectUID
|
|
313
323
|
* @param {Object} opts Optional parameters
|
|
314
324
|
* @param {Number} opts.limit (default to 50)
|
|
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.
|
|
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.
|
|
316
326
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
317
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
318
|
-
* @param {String} opts.files
|
|
319
|
-
* @param {String} opts.fleetUID
|
|
327
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
328
|
+
* @param {String} opts.files
|
|
329
|
+
* @param {String} opts.fleetUID
|
|
320
330
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
321
331
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
322
332
|
*/
|
|
@@ -330,36 +340,36 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
330
340
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
|
|
331
341
|
}
|
|
332
342
|
var pathParams = {
|
|
333
|
-
projectUID: projectUID
|
|
343
|
+
'projectUID': projectUID
|
|
334
344
|
};
|
|
335
345
|
var queryParams = {
|
|
336
|
-
limit: opts[
|
|
337
|
-
cursor: opts[
|
|
338
|
-
sortOrder: opts[
|
|
339
|
-
systemFilesOnly: opts[
|
|
340
|
-
files: opts[
|
|
341
|
-
fleetUID: opts[
|
|
342
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
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')
|
|
343
353
|
};
|
|
344
354
|
var headerParams = {};
|
|
345
355
|
var formParams = {};
|
|
346
|
-
var authNames = [
|
|
356
|
+
var authNames = ['api_key'];
|
|
347
357
|
var contentTypes = [];
|
|
348
|
-
var accepts = [
|
|
358
|
+
var accepts = ['application/json'];
|
|
349
359
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
350
|
-
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);
|
|
351
361
|
}
|
|
352
362
|
|
|
353
363
|
/**
|
|
354
364
|
* Get Events of a Project by cursor
|
|
355
|
-
* @param {String} projectUID
|
|
365
|
+
* @param {String} projectUID
|
|
356
366
|
* @param {Object} opts Optional parameters
|
|
357
367
|
* @param {Number} opts.limit (default to 50)
|
|
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.
|
|
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.
|
|
359
369
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
360
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
361
|
-
* @param {String} opts.files
|
|
362
|
-
* @param {String} opts.fleetUID
|
|
370
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
371
|
+
* @param {String} opts.files
|
|
372
|
+
* @param {String} opts.fleetUID
|
|
363
373
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
364
374
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
365
375
|
*/
|
|
@@ -373,8 +383,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
373
383
|
|
|
374
384
|
/**
|
|
375
385
|
* Get Route Logs by Event UID
|
|
376
|
-
* @param {String} projectUID
|
|
377
|
-
* @param {String} eventUID
|
|
386
|
+
* @param {String} projectUID
|
|
387
|
+
* @param {String} eventUID
|
|
378
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
|
|
379
389
|
*/
|
|
380
390
|
}, {
|
|
@@ -390,23 +400,23 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
400
|
throw new _Error["default"]("Missing the required parameter 'eventUID' when calling getRouteLogsByEvent");
|
|
391
401
|
}
|
|
392
402
|
var pathParams = {
|
|
393
|
-
projectUID: projectUID,
|
|
394
|
-
eventUID: eventUID
|
|
403
|
+
'projectUID': projectUID,
|
|
404
|
+
'eventUID': eventUID
|
|
395
405
|
};
|
|
396
406
|
var queryParams = {};
|
|
397
407
|
var headerParams = {};
|
|
398
408
|
var formParams = {};
|
|
399
|
-
var authNames = [
|
|
409
|
+
var authNames = ['api_key'];
|
|
400
410
|
var contentTypes = [];
|
|
401
|
-
var accepts = [
|
|
411
|
+
var accepts = ['application/json'];
|
|
402
412
|
var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
|
|
403
|
-
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);
|
|
404
414
|
}
|
|
405
415
|
|
|
406
416
|
/**
|
|
407
417
|
* Get Route Logs by Event UID
|
|
408
|
-
* @param {String} projectUID
|
|
409
|
-
* @param {String} eventUID
|
|
418
|
+
* @param {String} projectUID
|
|
419
|
+
* @param {String} eventUID
|
|
410
420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
|
|
411
421
|
*/
|
|
412
422
|
}, {
|