@blues-inc/notehub-js 6.7.0-beta.73 → 6.7.0-beta.75
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 +130 -129
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +5 -5
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +177 -115
- package/dist/api/EventApi.js +51 -45
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +17 -11
- package/dist/api/ProjectApi.js +237 -149
- package/dist/api/RouteApi.js +47 -35
- package/dist/api/SkillsApi.js +17 -17
- package/dist/api/UsageApi.js +59 -49
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +7 -0
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +1 -1
- 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 +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +2 -1
- package/dist/model/CreatedRepository.js +5 -5
- 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 +4 -4
- package/dist/model/DataSetField.js +2 -2
- 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 +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +27 -8
- package/dist/model/DeviceDfuHistory.js +2 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- 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 +1 -1
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- 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 +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -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/GetOrganization200Response.js +1 -1
- package/dist/model/GetOrganization200ResponsePlan.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
- 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 +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- 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 +13 -7
- 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 +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- 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 +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryRecord.js +119 -0
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- 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 +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +1 -1
- package/dist/model/SkillSummary.js +1 -1
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.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 +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- 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 +2 -2
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +4 -4
- package/package.json +1 -1
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.75
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,7 +46,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create a route
|
|
50
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
50
51
|
* @param {String} projectOrProductUID
|
|
51
52
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
@@ -77,7 +78,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
* Create
|
|
81
|
+
* Create a route
|
|
82
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
81
83
|
* @param {String} projectOrProductUID
|
|
82
84
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
83
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
@@ -91,9 +93,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
/**
|
|
94
|
-
* Delete
|
|
96
|
+
* Delete a route
|
|
97
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
95
98
|
* @param {String} projectOrProductUID
|
|
96
|
-
* @param {String} routeUID
|
|
99
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
97
100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
98
101
|
*/
|
|
99
102
|
}, {
|
|
@@ -123,9 +126,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
/**
|
|
126
|
-
* Delete
|
|
129
|
+
* Delete a route
|
|
130
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
127
131
|
* @param {String} projectOrProductUID
|
|
128
|
-
* @param {String} routeUID
|
|
132
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
129
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
130
134
|
*/
|
|
131
135
|
}, {
|
|
@@ -137,9 +141,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* Get
|
|
144
|
+
* Get a route
|
|
145
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
141
146
|
* @param {String} projectOrProductUID
|
|
142
|
-
* @param {String} routeUID
|
|
147
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
143
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
144
149
|
*/
|
|
145
150
|
}, {
|
|
@@ -169,9 +174,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
/**
|
|
172
|
-
* Get
|
|
177
|
+
* Get a route
|
|
178
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
173
179
|
* @param {String} projectOrProductUID
|
|
174
|
-
* @param {String} routeUID
|
|
180
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
175
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
176
182
|
*/
|
|
177
183
|
}, {
|
|
@@ -183,23 +189,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
/**
|
|
186
|
-
*
|
|
192
|
+
* List a route's logs
|
|
193
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
187
194
|
* @param {String} projectOrProductUID
|
|
188
|
-
* @param {String} routeUID
|
|
195
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
189
196
|
* @param {Object} opts Optional parameters
|
|
190
197
|
* @param {Number} opts.pageSize (default to 1000)
|
|
191
198
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
199
|
* @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
200
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
194
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
195
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
201
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
202
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
196
203
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
197
204
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
198
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
199
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
200
|
-
* @param {String} opts.files
|
|
201
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
202
|
-
* @param {Array.<String>} opts.responseStatus
|
|
205
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
206
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
207
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
208
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
209
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
203
210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
204
211
|
*/
|
|
205
212
|
}, {
|
|
@@ -244,23 +251,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
244
251
|
}
|
|
245
252
|
|
|
246
253
|
/**
|
|
247
|
-
*
|
|
254
|
+
* List a route's logs
|
|
255
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
248
256
|
* @param {String} projectOrProductUID
|
|
249
|
-
* @param {String} routeUID
|
|
257
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
250
258
|
* @param {Object} opts Optional parameters
|
|
251
259
|
* @param {Number} opts.pageSize (default to 1000)
|
|
252
260
|
* @param {Number} opts.pageNum (default to 1)
|
|
253
261
|
* @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
262
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
255
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
256
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
263
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
264
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
257
265
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
258
266
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
259
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
260
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
261
|
-
* @param {String} opts.files
|
|
262
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
263
|
-
* @param {Array.<String>} opts.responseStatus
|
|
267
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
268
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
269
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
270
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
271
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
264
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
265
273
|
*/
|
|
266
274
|
}, {
|
|
@@ -272,7 +280,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
/**
|
|
275
|
-
*
|
|
283
|
+
* List routes
|
|
284
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
276
285
|
* @param {String} projectOrProductUID
|
|
277
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
|
|
278
287
|
*/
|
|
@@ -298,7 +307,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
307
|
}
|
|
299
308
|
|
|
300
309
|
/**
|
|
301
|
-
*
|
|
310
|
+
* List routes
|
|
311
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
302
312
|
* @param {String} projectOrProductUID
|
|
303
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
|
|
304
314
|
*/
|
|
@@ -311,9 +321,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
321
|
}
|
|
312
322
|
|
|
313
323
|
/**
|
|
314
|
-
* Update route
|
|
324
|
+
* Update a route
|
|
325
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
315
326
|
* @param {String} projectOrProductUID
|
|
316
|
-
* @param {String} routeUID
|
|
327
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
317
328
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
318
329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
319
330
|
*/
|
|
@@ -348,9 +359,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
348
359
|
}
|
|
349
360
|
|
|
350
361
|
/**
|
|
351
|
-
* Update route
|
|
362
|
+
* Update a route
|
|
363
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
352
364
|
* @param {String} projectOrProductUID
|
|
353
|
-
* @param {String} routeUID
|
|
365
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
354
366
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
355
367
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
356
368
|
*/
|
package/dist/api/SkillsApi.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* Skills service.
|
|
33
33
|
* @module api/SkillsApi
|
|
34
|
-
* @version 6.7.0-beta.
|
|
34
|
+
* @version 6.7.0-beta.75
|
|
35
35
|
*/
|
|
36
36
|
var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -47,8 +47,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Delete a
|
|
51
|
-
*
|
|
50
|
+
* Delete a project skill
|
|
51
|
+
* Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
52
52
|
* @param {String} projectOrProductUID
|
|
53
53
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
54
54
|
* @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
@@ -87,8 +87,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* Delete a
|
|
91
|
-
*
|
|
90
|
+
* Delete a project skill
|
|
91
|
+
* Delete a skill and all its stored versions. Requires `If-Match` set to the revision from `GetSkill`. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
92
92
|
* @param {String} projectOrProductUID
|
|
93
93
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
94
94
|
* @param {String} ifMatch Required; use one strong ETag or quoted skill revision. Wildcards and weak tags are rejected.
|
|
@@ -103,8 +103,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
106
|
+
* Get a project skill
|
|
107
|
+
* Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
|
|
108
108
|
* @param {String} projectOrProductUID
|
|
109
109
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
110
110
|
* @param {Object} opts Optional parameters
|
|
@@ -143,8 +143,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
146
|
+
* Get a project skill
|
|
147
|
+
* Get one skill's metadata and exact Markdown content. Use `links.self` from `GetSkills`, or URL-encode the whole skill name as one path parameter. `If-Match` requires a revision; `If-None-Match` skips unchanged content. Any role can read it, and so can anonymous callers when the project's default access is Viewer.
|
|
148
148
|
* @param {String} projectOrProductUID
|
|
149
149
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
150
150
|
* @param {Object} opts Optional parameters
|
|
@@ -161,8 +161,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* List
|
|
165
|
-
* List
|
|
164
|
+
* List project skills
|
|
165
|
+
* List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
|
|
166
166
|
* @param {String} projectOrProductUID
|
|
167
167
|
* @param {Object} opts Optional parameters
|
|
168
168
|
* @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
|
|
@@ -196,8 +196,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* List
|
|
200
|
-
* List
|
|
199
|
+
* List project skills
|
|
200
|
+
* List a project's skills, the Markdown guides agents read, with metadata only unless `includeContent=true`. Not paginated; a project with none returns `skills: []`. On 413, list metadata and use `GetSkill` for each document. Subprojects read their parent's skills. Any role can read them, and so can anonymous callers when the project's default access is Viewer.
|
|
201
201
|
* @param {String} projectOrProductUID
|
|
202
202
|
* @param {Object} opts Optional parameters
|
|
203
203
|
* @param {Boolean} opts.includeContent Use true to include exact Markdown content. Omit or use false for metadata only. (default to false)
|
|
@@ -213,8 +213,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
|
-
* Create or replace a
|
|
217
|
-
*
|
|
216
|
+
* Create or replace a project skill
|
|
217
|
+
* Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
218
218
|
* @param {String} projectOrProductUID
|
|
219
219
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
220
220
|
* @param {module:model/SkillWrite} skillWrite
|
|
@@ -258,8 +258,8 @@ var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
|
-
* Create or replace a
|
|
262
|
-
*
|
|
261
|
+
* Create or replace a project skill
|
|
262
|
+
* Create a skill with `If-None-Match: *`, or replace it with `If-Match` set to the revision from `GetSkill`. Send `content` and optional `kinds`; omit `kinds` to keep them, or send `[]` to clear them. An identical write returns unchanged. Requires the Owner or Developer role. Subprojects must write to their parent project.
|
|
263
263
|
* @param {String} projectOrProductUID
|
|
264
264
|
* @param {String} skillName Relative .md name, case-insensitive, at most 512 UTF-8 bytes. In URLs, encode the whole name once: references/devices.md becomes references%2Fdevices.md; a literal % becomes %25. Pass the unencoded name to SDKs. Spaces, Unicode and punctuation are allowed. No absolute paths, dot segments, empty segments, backslashes, colons, control characters or surrounding segment whitespace.
|
|
265
265
|
* @param {module:model/SkillWrite} skillWrite
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
32
32
|
/**
|
|
33
33
|
* Usage service.
|
|
34
34
|
* @module api/UsageApi
|
|
35
|
-
* @version 6.7.0-beta.
|
|
35
|
+
* @version 6.7.0-beta.75
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|
|
@@ -48,13 +48,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Get billable
|
|
51
|
+
* Get billable API usage
|
|
52
|
+
* Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
|
|
52
53
|
* @param {String} projectOrProductUID
|
|
53
|
-
* @param {module:model/String} period
|
|
54
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
54
55
|
* @param {Object} opts Optional parameters
|
|
55
56
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
56
57
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
57
|
-
* @param {Number} opts.limit
|
|
58
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
58
59
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
|
|
59
60
|
*/
|
|
60
61
|
return _createClass(UsageApi, [{
|
|
@@ -89,13 +90,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
|
-
* Get billable
|
|
93
|
+
* Get billable API usage
|
|
94
|
+
* Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
|
|
93
95
|
* @param {String} projectOrProductUID
|
|
94
|
-
* @param {module:model/String} period
|
|
96
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
95
97
|
* @param {Object} opts Optional parameters
|
|
96
98
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
97
99
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
98
|
-
* @param {Number} opts.limit
|
|
100
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
99
101
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
|
|
100
102
|
*/
|
|
101
103
|
}, {
|
|
@@ -107,16 +109,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
|
-
* Get
|
|
112
|
+
* Get cellular and satellite data usage
|
|
113
|
+
* Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
|
|
111
114
|
* @param {String} projectOrProductUID
|
|
112
|
-
* @param {module:model/String} period
|
|
115
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
113
116
|
* @param {Object} opts Optional parameters
|
|
114
117
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
115
118
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
116
119
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
117
120
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
118
|
-
* @param {Number} opts.limit
|
|
119
|
-
* @param {module:model/String} opts.aggregate
|
|
121
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
122
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
120
123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
121
124
|
*/
|
|
122
125
|
}, {
|
|
@@ -154,16 +157,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
/**
|
|
157
|
-
* Get
|
|
160
|
+
* Get cellular and satellite data usage
|
|
161
|
+
* Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
|
|
158
162
|
* @param {String} projectOrProductUID
|
|
159
|
-
* @param {module:model/String} period
|
|
163
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
160
164
|
* @param {Object} opts Optional parameters
|
|
161
165
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
162
166
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
163
167
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
164
168
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
165
|
-
* @param {Number} opts.limit
|
|
166
|
-
* @param {module:model/String} opts.aggregate
|
|
169
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
170
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
167
171
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
|
|
168
172
|
*/
|
|
169
173
|
}, {
|
|
@@ -175,19 +179,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
/**
|
|
178
|
-
* Get
|
|
182
|
+
* Get event usage
|
|
183
|
+
* Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
|
|
179
184
|
* @param {String} projectOrProductUID
|
|
180
|
-
* @param {module:model/String} period
|
|
185
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
181
186
|
* @param {Object} opts Optional parameters
|
|
182
187
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
183
188
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
184
189
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
185
190
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
186
|
-
* @param {Number} opts.limit
|
|
187
|
-
* @param {module:model/String} opts.aggregate
|
|
188
|
-
* @param {Array.<String>} opts.notefile
|
|
189
|
-
* @param {Boolean} opts.skipRecentData
|
|
190
|
-
* @param {Boolean} opts.includeNotefiles
|
|
191
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
192
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
193
|
+
* @param {Array.<String>} opts.notefile Count only events from these notefiles.
|
|
194
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
195
|
+
* @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
|
|
191
196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
|
|
192
197
|
*/
|
|
193
198
|
}, {
|
|
@@ -228,19 +233,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
/**
|
|
231
|
-
* Get
|
|
236
|
+
* Get event usage
|
|
237
|
+
* Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
|
|
232
238
|
* @param {String} projectOrProductUID
|
|
233
|
-
* @param {module:model/String} period
|
|
239
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
234
240
|
* @param {Object} opts Optional parameters
|
|
235
241
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
236
242
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
237
243
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
238
244
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
239
|
-
* @param {Number} opts.limit
|
|
240
|
-
* @param {module:model/String} opts.aggregate
|
|
241
|
-
* @param {Array.<String>} opts.notefile
|
|
242
|
-
* @param {Boolean} opts.skipRecentData
|
|
243
|
-
* @param {Boolean} opts.includeNotefiles
|
|
245
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
246
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
247
|
+
* @param {Array.<String>} opts.notefile Count only events from these notefiles.
|
|
248
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
249
|
+
* @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
|
|
244
250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
|
|
245
251
|
*/
|
|
246
252
|
}, {
|
|
@@ -252,16 +258,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
/**
|
|
255
|
-
* Get route
|
|
261
|
+
* Get route log usage
|
|
262
|
+
* Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
|
|
256
263
|
* @param {String} projectOrProductUID
|
|
257
|
-
* @param {module:model/String} period
|
|
264
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
258
265
|
* @param {Object} opts Optional parameters
|
|
259
266
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
260
267
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
261
268
|
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
262
|
-
* @param {Number} opts.limit
|
|
263
|
-
* @param {module:model/String} opts.aggregate
|
|
264
|
-
* @param {Boolean} opts.skipRecentData
|
|
269
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
270
|
+
* @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
|
|
271
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
265
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
|
|
266
273
|
*/
|
|
267
274
|
}, {
|
|
@@ -299,16 +306,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
299
306
|
}
|
|
300
307
|
|
|
301
308
|
/**
|
|
302
|
-
* Get route
|
|
309
|
+
* Get route log usage
|
|
310
|
+
* Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
|
|
303
311
|
* @param {String} projectOrProductUID
|
|
304
|
-
* @param {module:model/String} period
|
|
312
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
305
313
|
* @param {Object} opts Optional parameters
|
|
306
314
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
307
315
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
308
316
|
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
309
|
-
* @param {Number} opts.limit
|
|
310
|
-
* @param {module:model/String} opts.aggregate
|
|
311
|
-
* @param {Boolean} opts.skipRecentData
|
|
317
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
318
|
+
* @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
|
|
319
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
312
320
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
|
|
313
321
|
*/
|
|
314
322
|
}, {
|
|
@@ -320,17 +328,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
328
|
}
|
|
321
329
|
|
|
322
330
|
/**
|
|
323
|
-
* Get
|
|
331
|
+
* Get session usage
|
|
332
|
+
* Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
|
|
324
333
|
* @param {String} projectOrProductUID
|
|
325
|
-
* @param {module:model/String} period
|
|
334
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
326
335
|
* @param {Object} opts Optional parameters
|
|
327
336
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
328
337
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
329
338
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
330
339
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
331
|
-
* @param {Number} opts.limit
|
|
332
|
-
* @param {module:model/String} opts.aggregate
|
|
333
|
-
* @param {Boolean} opts.skipRecentData
|
|
340
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
341
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
342
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
334
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
|
|
335
344
|
*/
|
|
336
345
|
}, {
|
|
@@ -369,17 +378,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
378
|
}
|
|
370
379
|
|
|
371
380
|
/**
|
|
372
|
-
* Get
|
|
381
|
+
* Get session usage
|
|
382
|
+
* Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
|
|
373
383
|
* @param {String} projectOrProductUID
|
|
374
|
-
* @param {module:model/String} period
|
|
384
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
375
385
|
* @param {Object} opts Optional parameters
|
|
376
386
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
377
387
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
378
388
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
379
389
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
380
|
-
* @param {Number} opts.limit
|
|
381
|
-
* @param {module:model/String} opts.aggregate
|
|
382
|
-
* @param {Boolean} opts.skipRecentData
|
|
390
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
391
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
392
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
383
393
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
|
|
384
394
|
*/
|
|
385
395
|
}, {
|