@blues-inc/notehub-js 6.7.0-beta.72 → 6.7.0-beta.73
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 +125 -126
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +7 -5
- package/dist/api/AuthorizationApi.js +5 -5
- package/dist/api/DescriptionApi.js +33 -49
- package/dist/api/DeviceApi.js +115 -177
- package/dist/api/EventApi.js +45 -51
- package/dist/api/ExternalDevicesApi.js +13 -19
- package/dist/api/JobsApi.js +39 -57
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +11 -17
- package/dist/api/ProjectApi.js +149 -237
- package/dist/api/RouteApi.js +35 -47
- package/dist/api/SkillsApi.js +17 -17
- package/dist/api/UsageApi.js +49 -59
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +0 -7
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +11 -6
- package/dist/model/AlertDataInner.js +9 -4
- 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 +1 -2
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +2 -3
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +3 -4
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +6 -7
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +1 -2
- 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 +8 -27
- package/dist/model/DeviceDfuHistory.js +1 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -2
- 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 +1 -6
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +2 -2
- 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 +10 -11
- 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 +1 -2
- package/dist/model/GetDevicePublicKey200Response.js +3 -5
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -3
- 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 +4 -7
- 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 +7 -13
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +4 -4
- 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 +1 -2
- package/dist/model/NotefileSchema.js +3 -5
- package/dist/model/NotehubRoute.js +3 -7
- package/dist/model/NotehubRouteSummary.js +1 -6
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +3 -5
- package/dist/model/Product.js +4 -8
- package/dist/model/Project.js +4 -7
- package/dist/model/ProjectMember.js +4 -5
- 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/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 +4 -6
- 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 +3 -3
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +3 -3
- 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 +6 -7
- 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 +1 -1
- package/package.json +1 -1
- package/dist/model/RepositoryRecord.js +0 -119
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.73
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,8 +46,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Create a
|
|
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.
|
|
49
|
+
* Create Route within a Project
|
|
51
50
|
* @param {String} projectOrProductUID
|
|
52
51
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
53
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
@@ -78,8 +77,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
/**
|
|
81
|
-
* Create a
|
|
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.
|
|
80
|
+
* Create Route within a Project
|
|
83
81
|
* @param {String} projectOrProductUID
|
|
84
82
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
85
83
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
@@ -93,10 +91,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
/**
|
|
96
|
-
* Delete a
|
|
97
|
-
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
94
|
+
* Delete single route within a project
|
|
98
95
|
* @param {String} projectOrProductUID
|
|
99
|
-
* @param {String} routeUID
|
|
96
|
+
* @param {String} routeUID
|
|
100
97
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
101
98
|
*/
|
|
102
99
|
}, {
|
|
@@ -126,10 +123,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
123
|
}
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
|
-
* Delete a
|
|
130
|
-
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
126
|
+
* Delete single route within a project
|
|
131
127
|
* @param {String} projectOrProductUID
|
|
132
|
-
* @param {String} routeUID
|
|
128
|
+
* @param {String} routeUID
|
|
133
129
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
134
130
|
*/
|
|
135
131
|
}, {
|
|
@@ -141,10 +137,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
141
137
|
}
|
|
142
138
|
|
|
143
139
|
/**
|
|
144
|
-
* Get a
|
|
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.
|
|
140
|
+
* Get single route within a project
|
|
146
141
|
* @param {String} projectOrProductUID
|
|
147
|
-
* @param {String} routeUID
|
|
142
|
+
* @param {String} routeUID
|
|
148
143
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
149
144
|
*/
|
|
150
145
|
}, {
|
|
@@ -174,10 +169,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
169
|
}
|
|
175
170
|
|
|
176
171
|
/**
|
|
177
|
-
* Get a
|
|
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.
|
|
172
|
+
* Get single route within a project
|
|
179
173
|
* @param {String} projectOrProductUID
|
|
180
|
-
* @param {String} routeUID
|
|
174
|
+
* @param {String} routeUID
|
|
181
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
182
176
|
*/
|
|
183
177
|
}, {
|
|
@@ -189,24 +183,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
183
|
}
|
|
190
184
|
|
|
191
185
|
/**
|
|
192
|
-
*
|
|
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.
|
|
186
|
+
* Get Route Logs by RouteUID
|
|
194
187
|
* @param {String} projectOrProductUID
|
|
195
|
-
* @param {String} routeUID
|
|
188
|
+
* @param {String} routeUID
|
|
196
189
|
* @param {Object} opts Optional parameters
|
|
197
190
|
* @param {Number} opts.pageSize (default to 1000)
|
|
198
191
|
* @param {Number} opts.pageNum (default to 1)
|
|
199
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).
|
|
200
193
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
201
|
-
* @param {module:model/String} opts.sortBy
|
|
202
|
-
* @param {module:model/String} opts.sortOrder
|
|
194
|
+
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
195
|
+
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
203
196
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
204
197
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
205
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
206
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
207
|
-
* @param {String} opts.files
|
|
208
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
209
|
-
* @param {Array.<String>} opts.responseStatus
|
|
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
|
|
210
203
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
211
204
|
*/
|
|
212
205
|
}, {
|
|
@@ -251,24 +244,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
244
|
}
|
|
252
245
|
|
|
253
246
|
/**
|
|
254
|
-
*
|
|
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.
|
|
247
|
+
* Get Route Logs by RouteUID
|
|
256
248
|
* @param {String} projectOrProductUID
|
|
257
|
-
* @param {String} routeUID
|
|
249
|
+
* @param {String} routeUID
|
|
258
250
|
* @param {Object} opts Optional parameters
|
|
259
251
|
* @param {Number} opts.pageSize (default to 1000)
|
|
260
252
|
* @param {Number} opts.pageNum (default to 1)
|
|
261
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).
|
|
262
254
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
263
|
-
* @param {module:model/String} opts.sortBy
|
|
264
|
-
* @param {module:model/String} opts.sortOrder
|
|
255
|
+
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
256
|
+
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
265
257
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
266
258
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
267
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
268
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
269
|
-
* @param {String} opts.files
|
|
270
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
271
|
-
* @param {Array.<String>} opts.responseStatus
|
|
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
|
|
272
264
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
273
265
|
*/
|
|
274
266
|
}, {
|
|
@@ -280,8 +272,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
272
|
}
|
|
281
273
|
|
|
282
274
|
/**
|
|
283
|
-
*
|
|
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`.
|
|
275
|
+
* Get all Routes within a Project
|
|
285
276
|
* @param {String} projectOrProductUID
|
|
286
277
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
|
|
287
278
|
*/
|
|
@@ -307,8 +298,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
307
298
|
}
|
|
308
299
|
|
|
309
300
|
/**
|
|
310
|
-
*
|
|
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`.
|
|
301
|
+
* Get all Routes within a Project
|
|
312
302
|
* @param {String} projectOrProductUID
|
|
313
303
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
|
|
314
304
|
*/
|
|
@@ -321,10 +311,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
321
311
|
}
|
|
322
312
|
|
|
323
313
|
/**
|
|
324
|
-
* Update
|
|
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.
|
|
314
|
+
* Update route by UID
|
|
326
315
|
* @param {String} projectOrProductUID
|
|
327
|
-
* @param {String} routeUID
|
|
316
|
+
* @param {String} routeUID
|
|
328
317
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
329
318
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
330
319
|
*/
|
|
@@ -359,10 +348,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
348
|
}
|
|
360
349
|
|
|
361
350
|
/**
|
|
362
|
-
* Update
|
|
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.
|
|
351
|
+
* Update route by UID
|
|
364
352
|
* @param {String} projectOrProductUID
|
|
365
|
-
* @param {String} routeUID
|
|
353
|
+
* @param {String} routeUID
|
|
366
354
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
367
355
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
368
356
|
*/
|
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.73
|
|
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 (Product Skill)
|
|
51
|
+
* Skill Training: delete a skill and all its stored versions. Requires If-Match: \"revision\" from GetSkill. Subproject writes must target the 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 (Product Skill)
|
|
91
|
+
* Skill Training: delete a skill and all its stored versions. Requires If-Match: \"revision\" from GetSkill. Subproject writes must target the 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
|
+
* Read a Project Skill (Product Skill)
|
|
107
|
+
* Read one skill with metadata and exact Markdown content. Use links.self from GetSkills, or URL-encode the entire skill name as one path parameter. If-Match requires a revision; If-None-Match skips unchanged content.
|
|
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
|
+
* Read a Project Skill (Product Skill)
|
|
147
|
+
* Read one skill with metadata and exact Markdown content. Use links.self from GetSkills, or URL-encode the entire skill name as one path parameter. If-Match requires a revision; If-None-Match skips unchanged content.
|
|
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 (Product Skills)
|
|
165
|
+
* List all skill metadata. Set includeContent=true to include exact Markdown content in one consistent snapshot. No pagination; an empty project returns skills: []. On 413, list metadata and use GetSkill for individual documents. Subprojects read their parent's skills.
|
|
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 (Product Skills)
|
|
200
|
+
* List all skill metadata. Set includeContent=true to include exact Markdown content in one consistent snapshot. No pagination; an empty project returns skills: []. On 413, list metadata and use GetSkill for individual documents. Subprojects read their parent's skills.
|
|
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 (Product Skill)
|
|
217
|
+
* Skill Training: create with If-None-Match: *, or replace with If-Match: \"revision\" from GetSkill. Send content and optional kinds. Omit kinds to preserve them; [] clears them. An identical write returns unchanged. Subproject writes must target the 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 (Product Skill)
|
|
262
|
+
* Skill Training: create with If-None-Match: *, or replace with If-Match: \"revision\" from GetSkill. Send content and optional kinds. Omit kinds to preserve them; [] clears them. An identical write returns unchanged. Subproject writes must target the 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.73
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|
|
@@ -48,14 +48,13 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
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`.
|
|
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
|
|
53
52
|
* @param {String} projectOrProductUID
|
|
54
|
-
* @param {module:model/String} period
|
|
53
|
+
* @param {module:model/String} period Period type for aggregation
|
|
55
54
|
* @param {Object} opts Optional parameters
|
|
56
55
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
57
56
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
58
|
-
* @param {Number} opts.limit
|
|
57
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
59
58
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
|
|
60
59
|
*/
|
|
61
60
|
return _createClass(UsageApi, [{
|
|
@@ -90,14 +89,13 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
/**
|
|
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`.
|
|
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
|
|
95
93
|
* @param {String} projectOrProductUID
|
|
96
|
-
* @param {module:model/String} period
|
|
94
|
+
* @param {module:model/String} period Period type for aggregation
|
|
97
95
|
* @param {Object} opts Optional parameters
|
|
98
96
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
99
97
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
100
|
-
* @param {Number} opts.limit
|
|
98
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
101
99
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
|
|
102
100
|
*/
|
|
103
101
|
}, {
|
|
@@ -109,17 +107,16 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
/**
|
|
112
|
-
* Get
|
|
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`.
|
|
110
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
114
111
|
* @param {String} projectOrProductUID
|
|
115
|
-
* @param {module:model/String} period
|
|
112
|
+
* @param {module:model/String} period Period type for aggregation
|
|
116
113
|
* @param {Object} opts Optional parameters
|
|
117
114
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
118
115
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
119
116
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
120
117
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
121
|
-
* @param {Number} opts.limit
|
|
122
|
-
* @param {module:model/String} opts.aggregate
|
|
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')
|
|
123
120
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
124
121
|
*/
|
|
125
122
|
}, {
|
|
@@ -157,17 +154,16 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
154
|
}
|
|
158
155
|
|
|
159
156
|
/**
|
|
160
|
-
* Get
|
|
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`.
|
|
157
|
+
* Get data usage in bytes for a project with time range and period aggregation
|
|
162
158
|
* @param {String} projectOrProductUID
|
|
163
|
-
* @param {module:model/String} period
|
|
159
|
+
* @param {module:model/String} period Period type for aggregation
|
|
164
160
|
* @param {Object} opts Optional parameters
|
|
165
161
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
166
162
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
167
163
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
168
164
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
169
|
-
* @param {Number} opts.limit
|
|
170
|
-
* @param {module:model/String} opts.aggregate
|
|
165
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
166
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
171
167
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
|
|
172
168
|
*/
|
|
173
169
|
}, {
|
|
@@ -179,20 +175,19 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
179
175
|
}
|
|
180
176
|
|
|
181
177
|
/**
|
|
182
|
-
* Get
|
|
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`.
|
|
178
|
+
* Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
184
179
|
* @param {String} projectOrProductUID
|
|
185
|
-
* @param {module:model/String} period
|
|
180
|
+
* @param {module:model/String} period Period type for aggregation
|
|
186
181
|
* @param {Object} opts Optional parameters
|
|
187
182
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
188
183
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
189
184
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
190
185
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
191
|
-
* @param {Number} opts.limit
|
|
192
|
-
* @param {module:model/String} opts.aggregate
|
|
193
|
-
* @param {Array.<String>} opts.notefile
|
|
194
|
-
* @param {Boolean} opts.skipRecentData
|
|
195
|
-
* @param {Boolean} opts.includeNotefiles
|
|
186
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
187
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
188
|
+
* @param {Array.<String>} opts.notefile Filter to specific notefiles
|
|
189
|
+
* @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)
|
|
190
|
+
* @param {Boolean} opts.includeNotefiles Include per-notefile event counts in the response (default to false)
|
|
196
191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
|
|
197
192
|
*/
|
|
198
193
|
}, {
|
|
@@ -233,20 +228,19 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
233
228
|
}
|
|
234
229
|
|
|
235
230
|
/**
|
|
236
|
-
* Get
|
|
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`.
|
|
231
|
+
* Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
238
232
|
* @param {String} projectOrProductUID
|
|
239
|
-
* @param {module:model/String} period
|
|
233
|
+
* @param {module:model/String} period Period type for aggregation
|
|
240
234
|
* @param {Object} opts Optional parameters
|
|
241
235
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
242
236
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
243
237
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
244
238
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
245
|
-
* @param {Number} opts.limit
|
|
246
|
-
* @param {module:model/String} opts.aggregate
|
|
247
|
-
* @param {Array.<String>} opts.notefile
|
|
248
|
-
* @param {Boolean} opts.skipRecentData
|
|
249
|
-
* @param {Boolean} opts.includeNotefiles
|
|
239
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
240
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
241
|
+
* @param {Array.<String>} opts.notefile Filter to specific notefiles
|
|
242
|
+
* @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)
|
|
243
|
+
* @param {Boolean} opts.includeNotefiles Include per-notefile event counts in the response (default to false)
|
|
250
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
|
|
251
245
|
*/
|
|
252
246
|
}, {
|
|
@@ -258,17 +252,16 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
252
|
}
|
|
259
253
|
|
|
260
254
|
/**
|
|
261
|
-
* Get route
|
|
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.
|
|
255
|
+
* Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
263
256
|
* @param {String} projectOrProductUID
|
|
264
|
-
* @param {module:model/String} period
|
|
257
|
+
* @param {module:model/String} period Period type for aggregation
|
|
265
258
|
* @param {Object} opts Optional parameters
|
|
266
259
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
267
260
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
268
261
|
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
269
|
-
* @param {Number} opts.limit
|
|
270
|
-
* @param {module:model/String} opts.aggregate
|
|
271
|
-
* @param {Boolean} opts.skipRecentData
|
|
262
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
263
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
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)
|
|
272
265
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
|
|
273
266
|
*/
|
|
274
267
|
}, {
|
|
@@ -306,17 +299,16 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
299
|
}
|
|
307
300
|
|
|
308
301
|
/**
|
|
309
|
-
* Get route
|
|
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.
|
|
302
|
+
* Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
311
303
|
* @param {String} projectOrProductUID
|
|
312
|
-
* @param {module:model/String} period
|
|
304
|
+
* @param {module:model/String} period Period type for aggregation
|
|
313
305
|
* @param {Object} opts Optional parameters
|
|
314
306
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
315
307
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
316
308
|
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
317
|
-
* @param {Number} opts.limit
|
|
318
|
-
* @param {module:model/String} opts.aggregate
|
|
319
|
-
* @param {Boolean} opts.skipRecentData
|
|
309
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
310
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
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)
|
|
320
312
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
|
|
321
313
|
*/
|
|
322
314
|
}, {
|
|
@@ -328,18 +320,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
320
|
}
|
|
329
321
|
|
|
330
322
|
/**
|
|
331
|
-
* Get
|
|
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`.
|
|
323
|
+
* Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
333
324
|
* @param {String} projectOrProductUID
|
|
334
|
-
* @param {module:model/String} period
|
|
325
|
+
* @param {module:model/String} period Period type for aggregation
|
|
335
326
|
* @param {Object} opts Optional parameters
|
|
336
327
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
337
328
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
338
329
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
339
330
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
340
|
-
* @param {Number} opts.limit
|
|
341
|
-
* @param {module:model/String} opts.aggregate
|
|
342
|
-
* @param {Boolean} opts.skipRecentData
|
|
331
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
332
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
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)
|
|
343
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
|
|
344
335
|
*/
|
|
345
336
|
}, {
|
|
@@ -378,18 +369,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
378
369
|
}
|
|
379
370
|
|
|
380
371
|
/**
|
|
381
|
-
* Get
|
|
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`.
|
|
372
|
+
* Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
383
373
|
* @param {String} projectOrProductUID
|
|
384
|
-
* @param {module:model/String} period
|
|
374
|
+
* @param {module:model/String} period Period type for aggregation
|
|
385
375
|
* @param {Object} opts Optional parameters
|
|
386
376
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
387
377
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
388
378
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
389
379
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
390
|
-
* @param {Number} opts.limit
|
|
391
|
-
* @param {module:model/String} opts.aggregate
|
|
392
|
-
* @param {Boolean} opts.skipRecentData
|
|
380
|
+
* @param {Number} opts.limit Limit the number of data points returned (default to 200000)
|
|
381
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
|
|
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)
|
|
393
383
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
|
|
394
384
|
*/
|
|
395
385
|
}, {
|
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.73
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/index.js
CHANGED
|
@@ -867,12 +867,6 @@ Object.defineProperty(exports, "RepositoryListResponse", {
|
|
|
867
867
|
return _RepositoryListResponse["default"];
|
|
868
868
|
}
|
|
869
869
|
});
|
|
870
|
-
Object.defineProperty(exports, "RepositoryRecord", {
|
|
871
|
-
enumerable: true,
|
|
872
|
-
get: function get() {
|
|
873
|
-
return _RepositoryRecord["default"];
|
|
874
|
-
}
|
|
875
|
-
});
|
|
876
870
|
Object.defineProperty(exports, "RepositoryTokenRequest", {
|
|
877
871
|
enumerable: true,
|
|
878
872
|
get: function get() {
|
|
@@ -1271,7 +1265,6 @@ var _QubitroRoute = _interopRequireDefault(require("./model/QubitroRoute"));
|
|
|
1271
1265
|
var _RadRoute = _interopRequireDefault(require("./model/RadRoute"));
|
|
1272
1266
|
var _Repository = _interopRequireDefault(require("./model/Repository"));
|
|
1273
1267
|
var _RepositoryListResponse = _interopRequireDefault(require("./model/RepositoryListResponse"));
|
|
1274
|
-
var _RepositoryRecord = _interopRequireDefault(require("./model/RepositoryRecord"));
|
|
1275
1268
|
var _RepositoryTokenRequest = _interopRequireDefault(require("./model/RepositoryTokenRequest"));
|
|
1276
1269
|
var _RepositoryTokenResponse = _interopRequireDefault(require("./model/RepositoryTokenResponse"));
|
|
1277
1270
|
var _Role = _interopRequireDefault(require("./model/Role"));
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AWSRoleConfig model module.
|
|
31
31
|
* @module model/AWSRoleConfig
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.73
|
|
33
33
|
*/
|
|
34
34
|
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,13 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.73
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>AddDeviceToFleetsRequest</code>.
|
|
37
37
|
* @alias module:model/AddDeviceToFleetsRequest
|
|
38
|
-
* @param fleetUids {Array.<String>}
|
|
38
|
+
* @param fleetUids {Array.<String>} The fleetUIDs to add to the device.
|
|
39
39
|
*/
|
|
40
40
|
function AddDeviceToFleetsRequest(fleetUids) {
|
|
41
41
|
_classCallCheck(this, AddDeviceToFleetsRequest);
|
|
@@ -108,7 +108,7 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
108
108
|
AddDeviceToFleetsRequest.RequiredProperties = ["fleet_uids"];
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* The fleetUIDs to add to the device.
|
|
112
112
|
* @member {Array.<String>} fleet_uids
|
|
113
113
|
*/
|
|
114
114
|
AddDeviceToFleetsRequest.prototype["fleet_uids"] = undefined;
|