@blues-inc/notehub-js 6.7.0-beta.2 → 6.7.0-beta.21
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 +147 -150
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +4 -1
- package/dist/api/AuthorizationApi.js +3 -3
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +46 -34
- package/dist/api/EventApi.js +27 -166
- 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 +59 -53
- package/dist/api/RouteApi.js +8 -5
- package/dist/api/UsageApi.js +78 -18
- package/dist/api/WebhookApi.js +17 -17
- package/dist/index.js +73 -80
- 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/{PersonalAccessTokenSecret.js → ArchiveStats.js} +55 -35
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/{GetEventsByCursor200Response.js → BatchJobNoteRequest.js} +83 -62
- package/dist/model/BatchJobRequests.js +38 -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 +44 -39
- 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 +2 -2
- 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 +77 -2
- package/dist/model/DataSetField.js +7 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{PersonalAccessTokenCreatedBy.js → DatasetReloadProgress.js} +42 -42
- 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 +125 -2
- package/dist/model/DeviceDfuHistory.js +11 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +14 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +11 -2
- package/dist/model/DeviceDfuStatusPage.js +14 -1
- package/dist/model/{GetBillingAccounts200Response.js → DeviceSensor.js} +54 -40
- 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 +34 -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 +14 -1
- package/dist/model/GetApiUsage200Response.js +140 -0
- 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 +6 -6
- 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 +14 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +10 -1
- package/dist/model/GetDeviceSessions200Response.js +14 -1
- package/dist/model/GetDevices200Response.js +14 -1
- package/dist/model/GetEvents200Response.js +14 -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/{GetDeviceHealthLog200ResponseHealthLogInner.js → HealthLog.js} +22 -22
- 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 +30 -23
- 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 +15 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +2 -2
- 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/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 +147 -0
- 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/model/PersonalAccessToken.js +0 -168
- package/dist/model/PersonalAccessTokenInfo.js +0 -121
package/dist/api/ProjectApi.js
CHANGED
|
@@ -56,7 +56,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version 6.7.0-beta.
|
|
59
|
+
* @version 6.7.0-beta.21
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
|
@@ -1046,23 +1046,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
1048
|
/**
|
|
1049
|
-
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1049
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1050
1050
|
* @param {String} projectOrProductUID
|
|
1051
1051
|
* @param {module:model/String} firmwareType
|
|
1052
1052
|
* @param {Object} opts Optional parameters
|
|
1053
1053
|
* @param {Number} opts.pageSize (default to 50)
|
|
1054
1054
|
* @param {Number} opts.pageNum (default to 1)
|
|
1055
|
+
* @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).
|
|
1055
1056
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1056
1057
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1057
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1058
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1059
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1058
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1059
|
+
* @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`.
|
|
1060
|
+
* @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.
|
|
1060
1061
|
* @param {String} opts.fleetUID
|
|
1061
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1062
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1063
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1064
|
-
* @param {Array.<String>} opts.productUID
|
|
1065
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1062
|
+
* @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.
|
|
1063
|
+
* @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.
|
|
1064
|
+
* @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.
|
|
1065
|
+
* @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.
|
|
1066
|
+
* @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.
|
|
1066
1067
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
1067
1068
|
*/
|
|
1068
1069
|
}, {
|
|
@@ -1085,6 +1086,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1085
1086
|
var queryParams = {
|
|
1086
1087
|
pageSize: opts["pageSize"],
|
|
1087
1088
|
pageNum: opts["pageNum"],
|
|
1089
|
+
cursor: opts["cursor"],
|
|
1088
1090
|
sortBy: opts["sortBy"],
|
|
1089
1091
|
sortOrder: opts["sortOrder"],
|
|
1090
1092
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
@@ -1107,23 +1109,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1107
1109
|
}
|
|
1108
1110
|
|
|
1109
1111
|
/**
|
|
1110
|
-
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1112
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1111
1113
|
* @param {String} projectOrProductUID
|
|
1112
1114
|
* @param {module:model/String} firmwareType
|
|
1113
1115
|
* @param {Object} opts Optional parameters
|
|
1114
1116
|
* @param {Number} opts.pageSize (default to 50)
|
|
1115
1117
|
* @param {Number} opts.pageNum (default to 1)
|
|
1118
|
+
* @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).
|
|
1116
1119
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1117
1120
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1118
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1119
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1120
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1121
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1122
|
+
* @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`.
|
|
1123
|
+
* @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.
|
|
1121
1124
|
* @param {String} opts.fleetUID
|
|
1122
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1123
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1124
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1125
|
-
* @param {Array.<String>} opts.productUID
|
|
1126
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1125
|
+
* @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.
|
|
1126
|
+
* @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.
|
|
1127
|
+
* @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.
|
|
1128
|
+
* @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.
|
|
1129
|
+
* @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.
|
|
1127
1130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
1128
1131
|
*/
|
|
1129
1132
|
}, {
|
|
@@ -1135,23 +1138,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1135
1138
|
}
|
|
1136
1139
|
|
|
1137
1140
|
/**
|
|
1138
|
-
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1141
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1139
1142
|
* @param {String} projectOrProductUID
|
|
1140
1143
|
* @param {module:model/String} firmwareType
|
|
1141
1144
|
* @param {Object} opts Optional parameters
|
|
1142
1145
|
* @param {Number} opts.pageSize (default to 50)
|
|
1143
1146
|
* @param {Number} opts.pageNum (default to 1)
|
|
1147
|
+
* @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).
|
|
1144
1148
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1145
1149
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1146
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1147
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1148
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1150
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1151
|
+
* @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`.
|
|
1152
|
+
* @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.
|
|
1149
1153
|
* @param {String} opts.fleetUID
|
|
1150
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1151
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1152
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1153
|
-
* @param {Array.<String>} opts.productUID
|
|
1154
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1154
|
+
* @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.
|
|
1155
|
+
* @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.
|
|
1156
|
+
* @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.
|
|
1157
|
+
* @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.
|
|
1158
|
+
* @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.
|
|
1155
1159
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1156
1160
|
*/
|
|
1157
1161
|
}, {
|
|
@@ -1174,6 +1178,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1174
1178
|
var queryParams = {
|
|
1175
1179
|
pageSize: opts["pageSize"],
|
|
1176
1180
|
pageNum: opts["pageNum"],
|
|
1181
|
+
cursor: opts["cursor"],
|
|
1177
1182
|
sortBy: opts["sortBy"],
|
|
1178
1183
|
sortOrder: opts["sortOrder"],
|
|
1179
1184
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
@@ -1196,23 +1201,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1201
|
}
|
|
1197
1202
|
|
|
1198
1203
|
/**
|
|
1199
|
-
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1204
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
|
|
1200
1205
|
* @param {String} projectOrProductUID
|
|
1201
1206
|
* @param {module:model/String} firmwareType
|
|
1202
1207
|
* @param {Object} opts Optional parameters
|
|
1203
1208
|
* @param {Number} opts.pageSize (default to 50)
|
|
1204
1209
|
* @param {Number} opts.pageNum (default to 1)
|
|
1210
|
+
* @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).
|
|
1205
1211
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
1206
1212
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
1207
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1208
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1209
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1213
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1214
|
+
* @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`.
|
|
1215
|
+
* @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.
|
|
1210
1216
|
* @param {String} opts.fleetUID
|
|
1211
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1212
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1213
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1214
|
-
* @param {Array.<String>} opts.productUID
|
|
1215
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1217
|
+
* @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.
|
|
1218
|
+
* @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.
|
|
1219
|
+
* @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.
|
|
1220
|
+
* @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.
|
|
1221
|
+
* @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.
|
|
1216
1222
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1217
1223
|
*/
|
|
1218
1224
|
}, {
|
|
@@ -1819,15 +1825,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1819
1825
|
* @param {module:model/String} firmwareType
|
|
1820
1826
|
* @param {module:model/String} action
|
|
1821
1827
|
* @param {Object} opts Optional parameters
|
|
1822
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1823
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1824
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1828
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1829
|
+
* @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`.
|
|
1830
|
+
* @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.
|
|
1825
1831
|
* @param {String} opts.fleetUID
|
|
1826
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1827
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1828
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1829
|
-
* @param {Array.<String>} opts.productUID
|
|
1830
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1832
|
+
* @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.
|
|
1833
|
+
* @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.
|
|
1834
|
+
* @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.
|
|
1835
|
+
* @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.
|
|
1836
|
+
* @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.
|
|
1831
1837
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1832
1838
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1833
1839
|
*/
|
|
@@ -1879,15 +1885,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1879
1885
|
* @param {module:model/String} firmwareType
|
|
1880
1886
|
* @param {module:model/String} action
|
|
1881
1887
|
* @param {Object} opts Optional parameters
|
|
1882
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
1883
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1884
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1888
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1889
|
+
* @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`.
|
|
1890
|
+
* @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.
|
|
1885
1891
|
* @param {String} opts.fleetUID
|
|
1886
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1887
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1888
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1889
|
-
* @param {Array.<String>} opts.productUID
|
|
1890
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1892
|
+
* @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.
|
|
1893
|
+
* @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.
|
|
1894
|
+
* @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.
|
|
1895
|
+
* @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.
|
|
1896
|
+
* @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.
|
|
1891
1897
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1892
1898
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1893
1899
|
*/
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -183,13 +183,14 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Get Route Logs by
|
|
186
|
+
* Get Route Logs by RouteUID
|
|
187
187
|
* @param {String} projectOrProductUID
|
|
188
188
|
* @param {String} routeUID
|
|
189
189
|
* @param {Object} opts Optional parameters
|
|
190
190
|
* @param {Number} opts.pageSize (default to 50)
|
|
191
191
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
|
-
* @param {
|
|
192
|
+
* @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).
|
|
193
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
193
194
|
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
194
195
|
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
195
196
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -221,6 +222,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
222
|
var queryParams = {
|
|
222
223
|
pageSize: opts["pageSize"],
|
|
223
224
|
pageNum: opts["pageNum"],
|
|
225
|
+
cursor: opts["cursor"],
|
|
224
226
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
225
227
|
sortBy: opts["sortBy"],
|
|
226
228
|
sortOrder: opts["sortOrder"],
|
|
@@ -242,13 +244,14 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
244
|
}
|
|
243
245
|
|
|
244
246
|
/**
|
|
245
|
-
* Get Route Logs by
|
|
247
|
+
* Get Route Logs by RouteUID
|
|
246
248
|
* @param {String} projectOrProductUID
|
|
247
249
|
* @param {String} routeUID
|
|
248
250
|
* @param {Object} opts Optional parameters
|
|
249
251
|
* @param {Number} opts.pageSize (default to 50)
|
|
250
252
|
* @param {Number} opts.pageNum (default to 1)
|
|
251
|
-
* @param {
|
|
253
|
+
* @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).
|
|
254
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
252
255
|
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
253
256
|
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
254
257
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -6,6 +6,7 @@ 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 _GetApiUsage200Response = _interopRequireDefault(require("../model/GetApiUsage200Response"));
|
|
9
10
|
var _GetDataUsage200Response = _interopRequireDefault(require("../model/GetDataUsage200Response"));
|
|
10
11
|
var _GetRouteLogsUsage200Response = _interopRequireDefault(require("../model/GetRouteLogsUsage200Response"));
|
|
11
12
|
var _GetSessionsUsage200Response = _interopRequireDefault(require("../model/GetSessionsUsage200Response"));
|
|
@@ -31,7 +32,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
32
|
/**
|
|
32
33
|
* Usage service.
|
|
33
34
|
* @module api/UsageApi
|
|
34
|
-
* @version 6.7.0-beta.
|
|
35
|
+
* @version 6.7.0-beta.21
|
|
35
36
|
*/
|
|
36
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
38
|
/**
|
|
@@ -47,19 +48,78 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
|
-
* Get
|
|
51
|
+
* Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
|
|
51
52
|
* @param {String} projectOrProductUID
|
|
52
53
|
* @param {module:model/String} period Period type for aggregation
|
|
53
54
|
* @param {Object} opts Optional parameters
|
|
54
55
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
55
56
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
56
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
57
|
-
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
58
57
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
59
|
-
* @
|
|
60
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
58
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
|
|
61
59
|
*/
|
|
62
60
|
return _createClass(UsageApi, [{
|
|
61
|
+
key: "getApiUsageWithHttpInfo",
|
|
62
|
+
value: function getApiUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
var postBody = null;
|
|
65
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
66
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
67
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getApiUsage");
|
|
68
|
+
}
|
|
69
|
+
// verify the required parameter 'period' is set
|
|
70
|
+
if (period === undefined || period === null) {
|
|
71
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getApiUsage");
|
|
72
|
+
}
|
|
73
|
+
var pathParams = {
|
|
74
|
+
projectOrProductUID: projectOrProductUID
|
|
75
|
+
};
|
|
76
|
+
var queryParams = {
|
|
77
|
+
startDate: opts["startDate"],
|
|
78
|
+
endDate: opts["endDate"],
|
|
79
|
+
limit: opts["limit"],
|
|
80
|
+
period: period
|
|
81
|
+
};
|
|
82
|
+
var headerParams = {};
|
|
83
|
+
var formParams = {};
|
|
84
|
+
var authNames = ["personalAccessToken"];
|
|
85
|
+
var contentTypes = [];
|
|
86
|
+
var accepts = ["application/json"];
|
|
87
|
+
var returnType = _GetApiUsage200Response["default"];
|
|
88
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/api", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
|
|
93
|
+
* @param {String} projectOrProductUID
|
|
94
|
+
* @param {module:model/String} period Period type for aggregation
|
|
95
|
+
* @param {Object} opts Optional parameters
|
|
96
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
97
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
98
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
99
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getApiUsage",
|
|
103
|
+
value: function getApiUsage(projectOrProductUID, period, opts) {
|
|
104
|
+
return this.getApiUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
105
|
+
return response_and_data.data;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
111
|
+
* @param {String} projectOrProductUID
|
|
112
|
+
* @param {module:model/String} period Period type for aggregation
|
|
113
|
+
* @param {Object} opts Optional parameters
|
|
114
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
115
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
116
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
117
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
118
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
119
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
120
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
121
|
+
*/
|
|
122
|
+
}, {
|
|
63
123
|
key: "getDataUsageWithHttpInfo",
|
|
64
124
|
value: function getDataUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
65
125
|
opts = opts || {};
|
|
@@ -100,8 +160,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
100
160
|
* @param {Object} opts Optional parameters
|
|
101
161
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
102
162
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
103
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
104
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
163
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
164
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
105
165
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
106
166
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
107
167
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
|
|
@@ -121,8 +181,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
121
181
|
* @param {Object} opts Optional parameters
|
|
122
182
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
123
183
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
124
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
125
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
184
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
185
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
126
186
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
127
187
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
128
188
|
* @param {Array.<String>} opts.notefile Filter to specific notefiles
|
|
@@ -174,8 +234,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
234
|
* @param {Object} opts Optional parameters
|
|
175
235
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
176
236
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
177
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
178
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
237
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
238
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
179
239
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
180
240
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
181
241
|
* @param {Array.<String>} opts.notefile Filter to specific notefiles
|
|
@@ -198,7 +258,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
198
258
|
* @param {Object} opts Optional parameters
|
|
199
259
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
200
260
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
201
|
-
* @param {Array.<String>} opts.routeUID A
|
|
261
|
+
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
202
262
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
203
263
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
204
264
|
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
|
@@ -245,7 +305,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
305
|
* @param {Object} opts Optional parameters
|
|
246
306
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
247
307
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
248
|
-
* @param {Array.<String>} opts.routeUID A
|
|
308
|
+
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
249
309
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
250
310
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
251
311
|
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
|
@@ -266,8 +326,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
266
326
|
* @param {Object} opts Optional parameters
|
|
267
327
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
268
328
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
269
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
270
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
329
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
330
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
271
331
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
272
332
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
273
333
|
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
|
@@ -315,8 +375,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
315
375
|
* @param {Object} opts Optional parameters
|
|
316
376
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
317
377
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
318
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
319
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
378
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
379
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
320
380
|
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
321
381
|
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
322
382
|
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -99,7 +99,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
99
99
|
/**
|
|
100
100
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
101
101
|
* @param {String} projectOrProductUID
|
|
102
|
-
* @param {String} webhookUID
|
|
102
|
+
* @param {String} webhookUID WebhookUID
|
|
103
103
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
104
104
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
105
105
|
*/
|
|
@@ -136,7 +136,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
136
|
/**
|
|
137
137
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
138
138
|
* @param {String} projectOrProductUID
|
|
139
|
-
* @param {String} webhookUID
|
|
139
|
+
* @param {String} webhookUID WebhookUID
|
|
140
140
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
141
141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
142
142
|
*/
|
|
@@ -151,7 +151,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
151
151
|
/**
|
|
152
152
|
* Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
|
|
153
153
|
* @param {String} productUID
|
|
154
|
-
* @param {String} webhookUID
|
|
154
|
+
* @param {String} webhookUID WebhookUID
|
|
155
155
|
* @param {String} deviceUID
|
|
156
156
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
157
157
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -194,7 +194,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
194
|
/**
|
|
195
195
|
* Sends an event to be processed by the specified webhook, addressed by productUID, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
|
|
196
196
|
* @param {String} productUID
|
|
197
|
-
* @param {String} webhookUID
|
|
197
|
+
* @param {String} webhookUID WebhookUID
|
|
198
198
|
* @param {String} deviceUID
|
|
199
199
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
200
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -210,7 +210,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
210
|
/**
|
|
211
211
|
* Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
|
|
212
212
|
* @param {String} productUID
|
|
213
|
-
* @param {String} webhookUID
|
|
213
|
+
* @param {String} webhookUID WebhookUID
|
|
214
214
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
215
215
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
216
216
|
*/
|
|
@@ -247,7 +247,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
247
247
|
/**
|
|
248
248
|
* Sends an event to be processed by the specified webhook, addressed by productUID. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
|
|
249
249
|
* @param {String} productUID
|
|
250
|
-
* @param {String} webhookUID
|
|
250
|
+
* @param {String} webhookUID WebhookUID
|
|
251
251
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
252
252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
253
253
|
*/
|
|
@@ -262,7 +262,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
262
262
|
/**
|
|
263
263
|
* Deletes the specified webhook
|
|
264
264
|
* @param {String} projectOrProductUID
|
|
265
|
-
* @param {String} webhookUID
|
|
265
|
+
* @param {String} webhookUID WebhookUID
|
|
266
266
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
267
267
|
*/
|
|
268
268
|
}, {
|
|
@@ -294,7 +294,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
294
294
|
/**
|
|
295
295
|
* Deletes the specified webhook
|
|
296
296
|
* @param {String} projectOrProductUID
|
|
297
|
-
* @param {String} webhookUID
|
|
297
|
+
* @param {String} webhookUID WebhookUID
|
|
298
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
299
299
|
*/
|
|
300
300
|
}, {
|
|
@@ -308,7 +308,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
308
|
/**
|
|
309
309
|
* Retrieves the configuration settings for the specified webhook
|
|
310
310
|
* @param {String} projectOrProductUID
|
|
311
|
-
* @param {String} webhookUID
|
|
311
|
+
* @param {String} webhookUID WebhookUID
|
|
312
312
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
313
313
|
*/
|
|
314
314
|
}, {
|
|
@@ -340,7 +340,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
340
|
/**
|
|
341
341
|
* Retrieves the configuration settings for the specified webhook
|
|
342
342
|
* @param {String} projectOrProductUID
|
|
343
|
-
* @param {String} webhookUID
|
|
343
|
+
* @param {String} webhookUID WebhookUID
|
|
344
344
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
345
345
|
*/
|
|
346
346
|
}, {
|
|
@@ -354,7 +354,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
354
|
/**
|
|
355
355
|
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
356
356
|
* @param {String} productUID
|
|
357
|
-
* @param {String} webhookUID
|
|
357
|
+
* @param {String} webhookUID WebhookUID
|
|
358
358
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
359
359
|
*/
|
|
360
360
|
}, {
|
|
@@ -386,7 +386,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
386
|
/**
|
|
387
387
|
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
388
388
|
* @param {String} productUID
|
|
389
|
-
* @param {String} webhookUID
|
|
389
|
+
* @param {String} webhookUID WebhookUID
|
|
390
390
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
391
391
|
*/
|
|
392
392
|
}, {
|
|
@@ -490,7 +490,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
490
490
|
/**
|
|
491
491
|
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
492
492
|
* @param {String} projectOrProductUID
|
|
493
|
-
* @param {String} webhookUID
|
|
493
|
+
* @param {String} webhookUID WebhookUID
|
|
494
494
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
495
495
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
496
496
|
*/
|
|
@@ -527,7 +527,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
527
527
|
/**
|
|
528
528
|
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
529
529
|
* @param {String} projectOrProductUID
|
|
530
|
-
* @param {String} webhookUID
|
|
530
|
+
* @param {String} webhookUID WebhookUID
|
|
531
531
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
532
532
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
533
533
|
*/
|
|
@@ -542,7 +542,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
542
542
|
/**
|
|
543
543
|
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
544
544
|
* @param {String} productUID
|
|
545
|
-
* @param {String} webhookUID
|
|
545
|
+
* @param {String} webhookUID WebhookUID
|
|
546
546
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
547
547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
548
548
|
*/
|
|
@@ -579,7 +579,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
579
579
|
/**
|
|
580
580
|
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
581
581
|
* @param {String} productUID
|
|
582
|
-
* @param {String} webhookUID
|
|
582
|
+
* @param {String} webhookUID WebhookUID
|
|
583
583
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
584
584
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
585
585
|
*/
|