@blues-inc/notehub-js 2.3.0-beta.4 → 2.3.0-beta.5
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 +45 -45
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +751 -763
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +282 -282
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +73 -73
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
- package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
- package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
- package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
- package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
- package/dist/model/{ListNotefiles200Response.js → HandleNotefileChanges200Response.js} +20 -20
- package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
- package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +4 -7
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/api/EventApi.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _GetProjectEvents200Response = _interopRequireDefault(require("../model/GetProjectEvents200Response"));
|
|
10
|
+
var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../model/GetProjectEventsByCursor200Response"));
|
|
11
11
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 2.3.0-beta.
|
|
33
|
+
* @version 2.3.0-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,8 +46,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Get Events of a
|
|
49
|
+
* Get Events of a Fleet
|
|
50
50
|
* @param {String} projectOrProductUID
|
|
51
|
+
* @param {String} fleetUID
|
|
51
52
|
* @param {Object} opts Optional parameters
|
|
52
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
53
54
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -61,23 +62,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
61
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
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
65
65
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
66
66
|
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
67
67
|
* @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.
|
|
68
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
68
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
69
69
|
*/
|
|
70
70
|
return _createClass(EventApi, [{
|
|
71
|
-
key: "
|
|
72
|
-
value: function
|
|
71
|
+
key: "getFleetEventsWithHttpInfo",
|
|
72
|
+
value: function getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
73
73
|
opts = opts || {};
|
|
74
74
|
var postBody = null;
|
|
75
75
|
// verify the required parameter 'projectOrProductUID' is set
|
|
76
76
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
77
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
77
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEvents");
|
|
78
|
+
}
|
|
79
|
+
// verify the required parameter 'fleetUID' is set
|
|
80
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
81
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
78
82
|
}
|
|
79
83
|
var pathParams = {
|
|
80
|
-
'projectOrProductUID': projectOrProductUID
|
|
84
|
+
'projectOrProductUID': projectOrProductUID,
|
|
85
|
+
'fleetUID': fleetUID
|
|
81
86
|
};
|
|
82
87
|
var queryParams = {
|
|
83
88
|
'pageSize': opts['pageSize'],
|
|
@@ -92,7 +97,6 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
97
|
'files': opts['files'],
|
|
93
98
|
'format': opts['format'],
|
|
94
99
|
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
95
|
-
'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
|
|
96
100
|
'sessionUID': this.apiClient.buildCollectionParam(opts['sessionUID'], 'multi'),
|
|
97
101
|
'eventUID': this.apiClient.buildCollectionParam(opts['eventUID'], 'multi'),
|
|
98
102
|
'selectFields': opts['selectFields']
|
|
@@ -102,13 +106,14 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
102
106
|
var authNames = ['personalAccessToken'];
|
|
103
107
|
var contentTypes = [];
|
|
104
108
|
var accepts = ['application/json', 'text/csv'];
|
|
105
|
-
var returnType =
|
|
106
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
109
|
+
var returnType = _GetProjectEvents200Response["default"];
|
|
110
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
/**
|
|
110
|
-
* Get Events of a
|
|
114
|
+
* Get Events of a Fleet
|
|
111
115
|
* @param {String} projectOrProductUID
|
|
116
|
+
* @param {String} fleetUID
|
|
112
117
|
* @param {Object} opts Optional parameters
|
|
113
118
|
* @param {Number} opts.pageSize (default to 50)
|
|
114
119
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -122,44 +127,50 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
122
127
|
* @param {String} opts.files
|
|
123
128
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
124
129
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
125
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
126
130
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
127
131
|
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
128
132
|
* @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.
|
|
129
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
133
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
130
134
|
*/
|
|
131
135
|
}, {
|
|
132
|
-
key: "
|
|
133
|
-
value: function
|
|
134
|
-
return this.
|
|
136
|
+
key: "getFleetEvents",
|
|
137
|
+
value: function getFleetEvents(projectOrProductUID, fleetUID, opts) {
|
|
138
|
+
return this.getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
135
139
|
return response_and_data.data;
|
|
136
140
|
});
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* Get Events of a
|
|
144
|
+
* Get Events of a Fleet by cursor
|
|
141
145
|
* @param {String} projectOrProductUID
|
|
146
|
+
* @param {String} fleetUID
|
|
142
147
|
* @param {Object} opts Optional parameters
|
|
143
148
|
* @param {Number} opts.limit (default to 50)
|
|
144
149
|
* @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.
|
|
145
150
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
146
151
|
* @param {Boolean} opts.systemFilesOnly
|
|
147
152
|
* @param {String} opts.files
|
|
148
|
-
* @param {String} opts.fleetUID
|
|
149
153
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
150
|
-
* @
|
|
154
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
155
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
156
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
151
157
|
*/
|
|
152
158
|
}, {
|
|
153
|
-
key: "
|
|
154
|
-
value: function
|
|
159
|
+
key: "getFleetEventsByCursorWithHttpInfo",
|
|
160
|
+
value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
155
161
|
opts = opts || {};
|
|
156
162
|
var postBody = null;
|
|
157
163
|
// verify the required parameter 'projectOrProductUID' is set
|
|
158
164
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
159
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
165
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
|
|
166
|
+
}
|
|
167
|
+
// verify the required parameter 'fleetUID' is set
|
|
168
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
169
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
160
170
|
}
|
|
161
171
|
var pathParams = {
|
|
162
|
-
'projectOrProductUID': projectOrProductUID
|
|
172
|
+
'projectOrProductUID': projectOrProductUID,
|
|
173
|
+
'fleetUID': fleetUID
|
|
163
174
|
};
|
|
164
175
|
var queryParams = {
|
|
165
176
|
'limit': opts['limit'],
|
|
@@ -167,43 +178,45 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
167
178
|
'sortOrder': opts['sortOrder'],
|
|
168
179
|
'systemFilesOnly': opts['systemFilesOnly'],
|
|
169
180
|
'files': opts['files'],
|
|
170
|
-
'
|
|
171
|
-
'
|
|
181
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
182
|
+
'startDate': opts['startDate'],
|
|
183
|
+
'endDate': opts['endDate']
|
|
172
184
|
};
|
|
173
185
|
var headerParams = {};
|
|
174
186
|
var formParams = {};
|
|
175
187
|
var authNames = ['personalAccessToken'];
|
|
176
188
|
var contentTypes = [];
|
|
177
189
|
var accepts = ['application/json'];
|
|
178
|
-
var returnType =
|
|
179
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
190
|
+
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
191
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
180
192
|
}
|
|
181
193
|
|
|
182
194
|
/**
|
|
183
|
-
* Get Events of a
|
|
195
|
+
* Get Events of a Fleet by cursor
|
|
184
196
|
* @param {String} projectOrProductUID
|
|
197
|
+
* @param {String} fleetUID
|
|
185
198
|
* @param {Object} opts Optional parameters
|
|
186
199
|
* @param {Number} opts.limit (default to 50)
|
|
187
200
|
* @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.
|
|
188
201
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
189
202
|
* @param {Boolean} opts.systemFilesOnly
|
|
190
203
|
* @param {String} opts.files
|
|
191
|
-
* @param {String} opts.fleetUID
|
|
192
204
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
193
|
-
* @
|
|
205
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
206
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
207
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
194
208
|
*/
|
|
195
209
|
}, {
|
|
196
|
-
key: "
|
|
197
|
-
value: function
|
|
198
|
-
return this.
|
|
210
|
+
key: "getFleetEventsByCursor",
|
|
211
|
+
value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
|
|
212
|
+
return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
199
213
|
return response_and_data.data;
|
|
200
214
|
});
|
|
201
215
|
}
|
|
202
216
|
|
|
203
217
|
/**
|
|
204
|
-
* Get Events of a
|
|
218
|
+
* Get Events of a Project
|
|
205
219
|
* @param {String} projectOrProductUID
|
|
206
|
-
* @param {String} fleetUID
|
|
207
220
|
* @param {Object} opts Optional parameters
|
|
208
221
|
* @param {Number} opts.pageSize (default to 50)
|
|
209
222
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -217,27 +230,23 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
230
|
* @param {String} opts.files
|
|
218
231
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
219
232
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
233
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
220
234
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
221
235
|
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
222
236
|
* @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.
|
|
223
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
237
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
224
238
|
*/
|
|
225
239
|
}, {
|
|
226
|
-
key: "
|
|
227
|
-
value: function
|
|
240
|
+
key: "getProjectEventsWithHttpInfo",
|
|
241
|
+
value: function getProjectEventsWithHttpInfo(projectOrProductUID, opts) {
|
|
228
242
|
opts = opts || {};
|
|
229
243
|
var postBody = null;
|
|
230
244
|
// verify the required parameter 'projectOrProductUID' is set
|
|
231
245
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
232
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
233
|
-
}
|
|
234
|
-
// verify the required parameter 'fleetUID' is set
|
|
235
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
236
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
246
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEvents");
|
|
237
247
|
}
|
|
238
248
|
var pathParams = {
|
|
239
|
-
'projectOrProductUID': projectOrProductUID
|
|
240
|
-
'fleetUID': fleetUID
|
|
249
|
+
'projectOrProductUID': projectOrProductUID
|
|
241
250
|
};
|
|
242
251
|
var queryParams = {
|
|
243
252
|
'pageSize': opts['pageSize'],
|
|
@@ -252,6 +261,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
261
|
'files': opts['files'],
|
|
253
262
|
'format': opts['format'],
|
|
254
263
|
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
264
|
+
'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
|
|
255
265
|
'sessionUID': this.apiClient.buildCollectionParam(opts['sessionUID'], 'multi'),
|
|
256
266
|
'eventUID': this.apiClient.buildCollectionParam(opts['eventUID'], 'multi'),
|
|
257
267
|
'selectFields': opts['selectFields']
|
|
@@ -261,14 +271,13 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
271
|
var authNames = ['personalAccessToken'];
|
|
262
272
|
var contentTypes = [];
|
|
263
273
|
var accepts = ['application/json', 'text/csv'];
|
|
264
|
-
var returnType =
|
|
265
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
274
|
+
var returnType = _GetProjectEvents200Response["default"];
|
|
275
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
266
276
|
}
|
|
267
277
|
|
|
268
278
|
/**
|
|
269
|
-
* Get Events of a
|
|
279
|
+
* Get Events of a Project
|
|
270
280
|
* @param {String} projectOrProductUID
|
|
271
|
-
* @param {String} fleetUID
|
|
272
281
|
* @param {Object} opts Optional parameters
|
|
273
282
|
* @param {Number} opts.pageSize (default to 50)
|
|
274
283
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -282,50 +291,44 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
291
|
* @param {String} opts.files
|
|
283
292
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
284
293
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
294
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
285
295
|
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
286
296
|
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
287
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.
|
|
288
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
298
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
289
299
|
*/
|
|
290
300
|
}, {
|
|
291
|
-
key: "
|
|
292
|
-
value: function
|
|
293
|
-
return this.
|
|
301
|
+
key: "getProjectEvents",
|
|
302
|
+
value: function getProjectEvents(projectOrProductUID, opts) {
|
|
303
|
+
return this.getProjectEventsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
294
304
|
return response_and_data.data;
|
|
295
305
|
});
|
|
296
306
|
}
|
|
297
307
|
|
|
298
308
|
/**
|
|
299
|
-
* Get Events of a
|
|
309
|
+
* Get Events of a Project by cursor
|
|
300
310
|
* @param {String} projectOrProductUID
|
|
301
|
-
* @param {String} fleetUID
|
|
302
311
|
* @param {Object} opts Optional parameters
|
|
303
312
|
* @param {Number} opts.limit (default to 50)
|
|
304
313
|
* @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.
|
|
305
314
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
306
315
|
* @param {Boolean} opts.systemFilesOnly
|
|
307
316
|
* @param {String} opts.files
|
|
317
|
+
* @param {String} opts.fleetUID
|
|
308
318
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
309
|
-
* @
|
|
310
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
311
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
319
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
312
320
|
*/
|
|
313
321
|
}, {
|
|
314
|
-
key: "
|
|
315
|
-
value: function
|
|
322
|
+
key: "getProjectEventsByCursorWithHttpInfo",
|
|
323
|
+
value: function getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
|
|
316
324
|
opts = opts || {};
|
|
317
325
|
var postBody = null;
|
|
318
326
|
// verify the required parameter 'projectOrProductUID' is set
|
|
319
327
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
320
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
321
|
-
}
|
|
322
|
-
// verify the required parameter 'fleetUID' is set
|
|
323
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
324
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
328
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsByCursor");
|
|
325
329
|
}
|
|
326
330
|
var pathParams = {
|
|
327
|
-
'projectOrProductUID': projectOrProductUID
|
|
328
|
-
'fleetUID': fleetUID
|
|
331
|
+
'projectOrProductUID': projectOrProductUID
|
|
329
332
|
};
|
|
330
333
|
var queryParams = {
|
|
331
334
|
'limit': opts['limit'],
|
|
@@ -333,38 +336,35 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
336
|
'sortOrder': opts['sortOrder'],
|
|
334
337
|
'systemFilesOnly': opts['systemFilesOnly'],
|
|
335
338
|
'files': opts['files'],
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'endDate': opts['endDate']
|
|
339
|
+
'fleetUID': opts['fleetUID'],
|
|
340
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi')
|
|
339
341
|
};
|
|
340
342
|
var headerParams = {};
|
|
341
343
|
var formParams = {};
|
|
342
344
|
var authNames = ['personalAccessToken'];
|
|
343
345
|
var contentTypes = [];
|
|
344
346
|
var accepts = ['application/json'];
|
|
345
|
-
var returnType =
|
|
346
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
347
|
+
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
348
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
347
349
|
}
|
|
348
350
|
|
|
349
351
|
/**
|
|
350
|
-
* Get Events of a
|
|
352
|
+
* Get Events of a Project by cursor
|
|
351
353
|
* @param {String} projectOrProductUID
|
|
352
|
-
* @param {String} fleetUID
|
|
353
354
|
* @param {Object} opts Optional parameters
|
|
354
355
|
* @param {Number} opts.limit (default to 50)
|
|
355
356
|
* @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.
|
|
356
357
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
357
358
|
* @param {Boolean} opts.systemFilesOnly
|
|
358
359
|
* @param {String} opts.files
|
|
360
|
+
* @param {String} opts.fleetUID
|
|
359
361
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
360
|
-
* @
|
|
361
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
362
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
362
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
363
363
|
*/
|
|
364
364
|
}, {
|
|
365
|
-
key: "
|
|
366
|
-
value: function
|
|
367
|
-
return this.
|
|
365
|
+
key: "getProjectEventsByCursor",
|
|
366
|
+
value: function getProjectEventsByCursor(projectOrProductUID, opts) {
|
|
367
|
+
return this.getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
368
368
|
return response_and_data.data;
|
|
369
369
|
});
|
|
370
370
|
}
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 2.3.0-beta.
|
|
32
|
+
* @version 2.3.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 2.3.0-beta.
|
|
32
|
+
* @version 2.3.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|