@blues-inc/notehub-js 6.7.0-beta.4 → 6.7.0-beta.40
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 +150 -147
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +3 -3
- package/dist/api/AuthorizationApi.js +3 -3
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +19 -19
- package/dist/api/EventApi.js +25 -170
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +9 -9
- package/dist/api/ProjectApi.js +17 -17
- package/dist/api/RouteApi.js +7 -7
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +15 -15
- package/dist/api/WebhookApi.js +17 -17
- package/dist/index.js +77 -49
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +4 -4
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +3 -3
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +3 -3
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +2 -1
- package/dist/model/CreatedRepository.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/DataSet.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/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +2 -2
- package/dist/model/DeviceDfuHistory.js +2 -2
- 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 +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- 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 +7 -7
- 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 +3 -3
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- package/dist/model/GetDbNote200Response.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/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.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/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.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 +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- 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/Organization.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +3 -3
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +207 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
- package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
- package/dist/model/SkillSummary.js +205 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +153 -0
- 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/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.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 +2 -2
- 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/BillingAccountApi.js +0 -167
package/dist/api/DeviceApi.js
CHANGED
|
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
48
48
|
/**
|
|
49
49
|
* Device service.
|
|
50
50
|
* @module api/DeviceApi
|
|
51
|
-
* @version 6.7.0-beta.
|
|
51
|
+
* @version 6.7.0-beta.40
|
|
52
52
|
*/
|
|
53
53
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
@@ -871,7 +871,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
871
871
|
* @param {String} deviceUID
|
|
872
872
|
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
873
873
|
* @param {Object} opts Optional parameters
|
|
874
|
-
* @param {Number} opts.pageSize (default to
|
|
874
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
875
875
|
* @param {Number} opts.pageNum (default to 1)
|
|
876
876
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
|
|
877
877
|
*/
|
|
@@ -916,7 +916,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
916
916
|
* @param {String} deviceUID
|
|
917
917
|
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
918
918
|
* @param {Object} opts Optional parameters
|
|
919
|
-
* @param {Number} opts.pageSize (default to
|
|
919
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
920
920
|
* @param {Number} opts.pageNum (default to 1)
|
|
921
921
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
|
|
922
922
|
*/
|
|
@@ -1126,7 +1126,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1126
1126
|
* Get Device Public Keys of a Project
|
|
1127
1127
|
* @param {String} projectOrProductUID
|
|
1128
1128
|
* @param {Object} opts Optional parameters
|
|
1129
|
-
* @param {Number} opts.pageSize (default to
|
|
1129
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1130
1130
|
* @param {Number} opts.pageNum (default to 1)
|
|
1131
1131
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1132
1132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
|
|
@@ -1161,7 +1161,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1161
1161
|
* Get Device Public Keys of a Project
|
|
1162
1162
|
* @param {String} projectOrProductUID
|
|
1163
1163
|
* @param {Object} opts Optional parameters
|
|
1164
|
-
* @param {Number} opts.pageSize (default to
|
|
1164
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1165
1165
|
* @param {Number} opts.pageNum (default to 1)
|
|
1166
1166
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1167
1167
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
|
|
@@ -1179,7 +1179,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1179
1179
|
* @param {String} projectOrProductUID
|
|
1180
1180
|
* @param {String} deviceUID
|
|
1181
1181
|
* @param {Object} opts Optional parameters
|
|
1182
|
-
* @param {Number} opts.pageSize (default to
|
|
1182
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1183
1183
|
* @param {Number} opts.pageNum (default to 1)
|
|
1184
1184
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1185
1185
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -1226,7 +1226,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1226
1226
|
* @param {String} projectOrProductUID
|
|
1227
1227
|
* @param {String} deviceUID
|
|
1228
1228
|
* @param {Object} opts Optional parameters
|
|
1229
|
-
* @param {Number} opts.pageSize (default to
|
|
1229
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1230
1230
|
* @param {Number} opts.pageNum (default to 1)
|
|
1231
1231
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1232
1232
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -1246,17 +1246,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1246
1246
|
* Get Devices of a Project
|
|
1247
1247
|
* @param {String} projectOrProductUID
|
|
1248
1248
|
* @param {Object} opts Optional parameters
|
|
1249
|
-
* @param {Number} opts.pageSize (default to
|
|
1249
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1250
1250
|
* @param {Number} opts.pageNum (default to 1)
|
|
1251
1251
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1252
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1252
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1253
1253
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1254
1254
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1255
1255
|
* @param {Array.<String>} opts.fleetUID
|
|
1256
1256
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1257
1257
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1258
1258
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1259
|
-
* @param {Array.<String>} opts.productUID
|
|
1259
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1260
1260
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1261
1261
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1262
1262
|
*/
|
|
@@ -1299,17 +1299,17 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1299
1299
|
* Get Devices of a Project
|
|
1300
1300
|
* @param {String} projectOrProductUID
|
|
1301
1301
|
* @param {Object} opts Optional parameters
|
|
1302
|
-
* @param {Number} opts.pageSize (default to
|
|
1302
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1303
1303
|
* @param {Number} opts.pageNum (default to 1)
|
|
1304
1304
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1305
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1305
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1306
1306
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1307
1307
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1308
1308
|
* @param {Array.<String>} opts.fleetUID
|
|
1309
1309
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1310
1310
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1311
1311
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1312
|
-
* @param {Array.<String>} opts.productUID
|
|
1312
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1313
1313
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1314
1314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1315
1315
|
*/
|
|
@@ -1326,16 +1326,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1326
1326
|
* @param {String} projectOrProductUID
|
|
1327
1327
|
* @param {String} fleetUID
|
|
1328
1328
|
* @param {Object} opts Optional parameters
|
|
1329
|
-
* @param {Number} opts.pageSize (default to
|
|
1329
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1330
1330
|
* @param {Number} opts.pageNum (default to 1)
|
|
1331
1331
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1332
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1332
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1333
1333
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1334
1334
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1335
1335
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1336
1336
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1337
1337
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1338
|
-
* @param {Array.<String>} opts.productUID
|
|
1338
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1339
1339
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1340
1340
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1341
1341
|
*/
|
|
@@ -1383,16 +1383,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1383
1383
|
* @param {String} projectOrProductUID
|
|
1384
1384
|
* @param {String} fleetUID
|
|
1385
1385
|
* @param {Object} opts Optional parameters
|
|
1386
|
-
* @param {Number} opts.pageSize (default to
|
|
1386
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1387
1387
|
* @param {Number} opts.pageNum (default to 1)
|
|
1388
1388
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1389
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1389
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1390
1390
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1391
1391
|
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1392
1392
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1393
1393
|
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1394
1394
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1395
|
-
* @param {Array.<String>} opts.productUID
|
|
1395
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1396
1396
|
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1397
1397
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1398
1398
|
*/
|
package/dist/api/EventApi.js
CHANGED
|
@@ -7,7 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _GetEvents200Response = _interopRequireDefault(require("../model/GetEvents200Response"));
|
|
10
|
-
var _GetEventsByCursor200Response = _interopRequireDefault(require("../model/GetEventsByCursor200Response"));
|
|
11
10
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -30,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
29
|
/**
|
|
31
30
|
* Event service.
|
|
32
31
|
* @module api/EventApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.40
|
|
34
33
|
*/
|
|
35
34
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
35
|
/**
|
|
@@ -49,11 +48,11 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
48
|
* Get Events of a Project
|
|
50
49
|
* @param {String} projectOrProductUID
|
|
51
50
|
* @param {Object} opts Optional parameters
|
|
52
|
-
* @param {Number} opts.pageSize (default to
|
|
51
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
53
52
|
* @param {Number} opts.pageNum (default to 1)
|
|
54
53
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
55
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
56
|
-
* @param {Array.<String>} opts.sensorUID A
|
|
54
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
55
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
57
56
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
58
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
59
58
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -63,9 +62,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
62
|
* @param {String} opts.files
|
|
64
63
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
65
64
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
66
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
67
|
-
* @param {Array.<String>} opts.sessionUID Filter by
|
|
68
|
-
* @param {Array.<String>} opts.eventUID Filter by
|
|
65
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
66
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
67
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
69
68
|
* @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.
|
|
70
69
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
71
70
|
*/
|
|
@@ -114,11 +113,11 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
114
113
|
* Get Events of a Project
|
|
115
114
|
* @param {String} projectOrProductUID
|
|
116
115
|
* @param {Object} opts Optional parameters
|
|
117
|
-
* @param {Number} opts.pageSize (default to
|
|
116
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
118
117
|
* @param {Number} opts.pageNum (default to 1)
|
|
119
118
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
120
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
121
|
-
* @param {Array.<String>} opts.sensorUID A
|
|
119
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
120
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
122
121
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
123
122
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
124
123
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -128,9 +127,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
128
127
|
* @param {String} opts.files
|
|
129
128
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
130
129
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
131
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
132
|
-
* @param {Array.<String>} opts.sessionUID Filter by
|
|
133
|
-
* @param {Array.<String>} opts.eventUID Filter by
|
|
130
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
131
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
132
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
134
133
|
* @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.
|
|
135
134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
136
135
|
*/
|
|
@@ -142,83 +141,16 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
141
|
});
|
|
143
142
|
}
|
|
144
143
|
|
|
145
|
-
/**
|
|
146
|
-
* DEPRECATED: Use Get Events of a Project instead with the cursor parameter.
|
|
147
|
-
* @param {String} projectOrProductUID
|
|
148
|
-
* @param {Object} opts Optional parameters
|
|
149
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
150
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
151
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
152
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
153
|
-
* @param {String} opts.files
|
|
154
|
-
* @param {String} opts.fleetUID
|
|
155
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
156
|
-
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
157
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
158
|
-
*/
|
|
159
|
-
}, {
|
|
160
|
-
key: "getEventsByCursorWithHttpInfo",
|
|
161
|
-
value: function getEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
|
|
162
|
-
opts = opts || {};
|
|
163
|
-
var postBody = null;
|
|
164
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
165
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
166
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsByCursor");
|
|
167
|
-
}
|
|
168
|
-
var pathParams = {
|
|
169
|
-
projectOrProductUID: projectOrProductUID
|
|
170
|
-
};
|
|
171
|
-
var queryParams = {
|
|
172
|
-
limit: opts["limit"],
|
|
173
|
-
cursor: opts["cursor"],
|
|
174
|
-
sortOrder: opts["sortOrder"],
|
|
175
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
176
|
-
files: opts["files"],
|
|
177
|
-
fleetUID: opts["fleetUID"],
|
|
178
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
179
|
-
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi")
|
|
180
|
-
};
|
|
181
|
-
var headerParams = {};
|
|
182
|
-
var formParams = {};
|
|
183
|
-
var authNames = ["personalAccessToken"];
|
|
184
|
-
var contentTypes = [];
|
|
185
|
-
var accepts = ["application/json"];
|
|
186
|
-
var returnType = _GetEventsByCursor200Response["default"];
|
|
187
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* DEPRECATED: Use Get Events of a Project instead with the cursor parameter.
|
|
192
|
-
* @param {String} projectOrProductUID
|
|
193
|
-
* @param {Object} opts Optional parameters
|
|
194
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
195
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
196
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
197
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
198
|
-
* @param {String} opts.files
|
|
199
|
-
* @param {String} opts.fleetUID
|
|
200
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
201
|
-
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
202
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
203
|
-
*/
|
|
204
|
-
}, {
|
|
205
|
-
key: "getEventsByCursor",
|
|
206
|
-
value: function getEventsByCursor(projectOrProductUID, opts) {
|
|
207
|
-
return this.getEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
208
|
-
return response_and_data.data;
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
144
|
/**
|
|
213
145
|
* Get Events of a Fleet
|
|
214
146
|
* @param {String} projectOrProductUID
|
|
215
147
|
* @param {String} fleetUID
|
|
216
148
|
* @param {Object} opts Optional parameters
|
|
217
|
-
* @param {Number} opts.pageSize (default to
|
|
149
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
218
150
|
* @param {Number} opts.pageNum (default to 1)
|
|
219
151
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
220
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
221
|
-
* @param {Array.<String>} opts.sensorUID A
|
|
152
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
153
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
222
154
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
223
155
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
224
156
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -228,8 +160,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
228
160
|
* @param {String} opts.files
|
|
229
161
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
230
162
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
231
|
-
* @param {Array.<String>} opts.sessionUID Filter by
|
|
232
|
-
* @param {Array.<String>} opts.eventUID Filter by
|
|
163
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
164
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
233
165
|
* @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.
|
|
234
166
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
235
167
|
*/
|
|
@@ -283,11 +215,11 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
283
215
|
* @param {String} projectOrProductUID
|
|
284
216
|
* @param {String} fleetUID
|
|
285
217
|
* @param {Object} opts Optional parameters
|
|
286
|
-
* @param {Number} opts.pageSize (default to
|
|
218
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
287
219
|
* @param {Number} opts.pageNum (default to 1)
|
|
288
220
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
289
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
290
|
-
* @param {Array.<String>} opts.sensorUID A
|
|
221
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
222
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
291
223
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
292
224
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
293
225
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -297,8 +229,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
297
229
|
* @param {String} opts.files
|
|
298
230
|
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
299
231
|
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
300
|
-
* @param {Array.<String>} opts.sessionUID Filter by
|
|
301
|
-
* @param {Array.<String>} opts.eventUID Filter by
|
|
232
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
233
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
302
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.
|
|
303
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
304
236
|
*/
|
|
@@ -311,84 +243,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
243
|
}
|
|
312
244
|
|
|
313
245
|
/**
|
|
314
|
-
*
|
|
315
|
-
* @param {String} projectOrProductUID
|
|
316
|
-
* @param {String} fleetUID
|
|
317
|
-
* @param {Object} opts Optional parameters
|
|
318
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
319
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
320
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
321
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
322
|
-
* @param {String} opts.files
|
|
323
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
324
|
-
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
325
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
326
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
327
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
328
|
-
*/
|
|
329
|
-
}, {
|
|
330
|
-
key: "getFleetEventsByCursorWithHttpInfo",
|
|
331
|
-
value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
332
|
-
opts = opts || {};
|
|
333
|
-
var postBody = null;
|
|
334
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
335
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
336
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
|
|
337
|
-
}
|
|
338
|
-
// verify the required parameter 'fleetUID' is set
|
|
339
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
340
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
341
|
-
}
|
|
342
|
-
var pathParams = {
|
|
343
|
-
projectOrProductUID: projectOrProductUID,
|
|
344
|
-
fleetUID: fleetUID
|
|
345
|
-
};
|
|
346
|
-
var queryParams = {
|
|
347
|
-
limit: opts["limit"],
|
|
348
|
-
cursor: opts["cursor"],
|
|
349
|
-
sortOrder: opts["sortOrder"],
|
|
350
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
351
|
-
files: opts["files"],
|
|
352
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
353
|
-
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
354
|
-
startDate: opts["startDate"],
|
|
355
|
-
endDate: opts["endDate"]
|
|
356
|
-
};
|
|
357
|
-
var headerParams = {};
|
|
358
|
-
var formParams = {};
|
|
359
|
-
var authNames = ["personalAccessToken"];
|
|
360
|
-
var contentTypes = [];
|
|
361
|
-
var accepts = ["application/json"];
|
|
362
|
-
var returnType = _GetEventsByCursor200Response["default"];
|
|
363
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* DEPRECATED: Use Get Events of a Fleet instead with the cursor parameter.
|
|
368
|
-
* @param {String} projectOrProductUID
|
|
369
|
-
* @param {String} fleetUID
|
|
370
|
-
* @param {Object} opts Optional parameters
|
|
371
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
372
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
373
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
374
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
375
|
-
* @param {String} opts.files
|
|
376
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
377
|
-
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
378
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
379
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
380
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
381
|
-
*/
|
|
382
|
-
}, {
|
|
383
|
-
key: "getFleetEventsByCursor",
|
|
384
|
-
value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
|
|
385
|
-
return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
386
|
-
return response_and_data.data;
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Get Route Logs by Event UID
|
|
246
|
+
* Get Route Logs by EventUID
|
|
392
247
|
* @param {String} projectOrProductUID
|
|
393
248
|
* @param {String} eventUID
|
|
394
249
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
@@ -420,7 +275,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
420
275
|
}
|
|
421
276
|
|
|
422
277
|
/**
|
|
423
|
-
* Get Route Logs by
|
|
278
|
+
* Get Route Logs by EventUID
|
|
424
279
|
* @param {String} projectOrProductUID
|
|
425
280
|
* @param {String} eventUID
|
|
426
281
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -36,7 +36,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
36
36
|
/**
|
|
37
37
|
* Jobs service.
|
|
38
38
|
* @module api/JobsApi
|
|
39
|
-
* @version 6.7.0-beta.
|
|
39
|
+
* @version 6.7.0-beta.40
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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 _GetOrganization200Response = _interopRequireDefault(require("../model/GetOrganization200Response"));
|
|
10
|
+
var _GetOrganizationBalanceHistory200Response = _interopRequireDefault(require("../model/GetOrganizationBalanceHistory200Response"));
|
|
11
11
|
var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
|
|
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, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Organization service.
|
|
32
32
|
* @module api/OrganizationApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.40
|
|
34
34
|
*/
|
|
35
35
|
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,7 +48,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Organization Information
|
|
50
50
|
* @param {String} organizationUID
|
|
51
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
51
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganization200Response} and HTTP response
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(OrganizationApi, [{
|
|
54
54
|
key: "getOrganizationWithHttpInfo",
|
|
@@ -67,14 +67,14 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
var authNames = ["personalAccessToken"];
|
|
68
68
|
var contentTypes = [];
|
|
69
69
|
var accepts = ["application/json"];
|
|
70
|
-
var returnType =
|
|
70
|
+
var returnType = _GetOrganization200Response["default"];
|
|
71
71
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Get Organization Information
|
|
76
76
|
* @param {String} organizationUID
|
|
77
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganization200Response}
|
|
78
78
|
*/
|
|
79
79
|
}, {
|
|
80
80
|
key: "getOrganization",
|
|
@@ -90,7 +90,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
90
|
* @param {Object} opts Optional parameters
|
|
91
91
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
92
92
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
93
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
93
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizationBalanceHistory200Response} and HTTP response
|
|
94
94
|
*/
|
|
95
95
|
}, {
|
|
96
96
|
key: "getOrganizationBalanceHistoryWithHttpInfo",
|
|
@@ -113,7 +113,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
113
|
var authNames = ["personalAccessToken"];
|
|
114
114
|
var contentTypes = [];
|
|
115
115
|
var accepts = ["application/json"];
|
|
116
|
-
var returnType =
|
|
116
|
+
var returnType = _GetOrganizationBalanceHistory200Response["default"];
|
|
117
117
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -123,7 +123,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
123
123
|
* @param {Object} opts Optional parameters
|
|
124
124
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
125
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
126
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizationBalanceHistory200Response}
|
|
127
127
|
*/
|
|
128
128
|
}, {
|
|
129
129
|
key: "getOrganizationBalanceHistory",
|