@blues-inc/notehub-js 7.0.0-beta.1 → 7.0.0-beta.11
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 +9 -5
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +9 -9
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +9 -9
- package/dist/api/DeviceApi.js +195 -195
- package/dist/api/EventApi.js +33 -33
- package/dist/api/ExternalDevicesApi.js +13 -13
- package/dist/api/JobsApi.js +19 -19
- package/dist/api/MonitorApi.js +11 -11
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +185 -185
- package/dist/api/RouteApi.js +25 -25
- package/dist/api/SkillsApi.js +9 -9
- package/dist/api/UsageApi.js +17 -17
- package/dist/api/WebhookApi.js +29 -29
- package/dist/index.js +28 -0
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -3
- 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 +2 -14
- package/dist/model/AzureRoute.js +1 -8
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -2
- package/dist/model/BillingAccount.js +3 -5
- package/dist/model/BlynkRoute.js +1 -6
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -5
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +1 -27
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -2
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -2
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -7
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +2 -3
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -3
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -3
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -33
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -7
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +6 -17
- package/dist/model/EnvVar.js +1 -5
- package/dist/model/EnvironmentVariables.js +2 -3
- package/dist/model/Error.js +1 -4
- package/dist/model/Event.js +435 -9
- package/dist/model/Filter.js +5 -5
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- 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 +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/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 +2 -3
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -6
- package/dist/model/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +2 -7
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -2
- package/dist/model/JobDefinitionSelect.js +1 -2
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -14
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -3
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +2 -2
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -6
- package/dist/model/QubitroRoute.js +1 -7
- package/dist/model/RadRoute.js +1 -9
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +2 -3
- package/dist/model/RepositoryRecord.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +2 -2
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +5 -5
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -16
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +4 -7
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +5 -9
- package/dist/model/SkillSummary.js +4 -7
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +2 -3
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -9
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -9
- package/dist/model/SnowpipeStreamingRoute.js +1 -12
- package/dist/model/ThingworxRoute.js +1 -6
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Triangulation.js +170 -0
- package/dist/model/TriangulationCellTower.js +160 -0
- package/dist/model/TriangulationGps.js +111 -0
- package/dist/model/TriangulationWifiAccessPoint.js +138 -0
- package/dist/model/TwilioNotification.js +1 -1
- package/dist/model/TwilioRoute.js +1 -9
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +2 -3
- package/dist/model/UsageData.js +3 -7
- package/dist/model/UsageEventsData.js +2 -5
- package/dist/model/UsageEventsResponse.js +2 -3
- package/dist/model/UsageRouteLogsData.js +5 -9
- package/dist/model/UsageSessionsData.js +5 -11
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/api/DeviceApi.js
CHANGED
|
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
48
48
|
/**
|
|
49
49
|
* Device service.
|
|
50
50
|
* @module api/DeviceApi
|
|
51
|
-
* @version 7.0.0-beta.
|
|
51
|
+
* @version 7.0.0-beta.11
|
|
52
52
|
*/
|
|
53
53
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
@@ -66,8 +66,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
66
|
/**
|
|
67
67
|
* Add a note to a .db notefile
|
|
68
68
|
* Add a note with the given ID to a database notefile on a device, synced to the Notecard on its next sync. To change an existing note, use `UpdateDbNote`; to queue a note in a `.qi` notefile, use `AddQiNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
|
|
69
|
-
* @param {String} projectOrProductUID
|
|
70
|
-
* @param {String} deviceUID
|
|
69
|
+
* @param {String} projectOrProductUID
|
|
70
|
+
* @param {String} deviceUID
|
|
71
71
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
72
72
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
73
73
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
@@ -116,8 +116,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
116
116
|
/**
|
|
117
117
|
* Add a note to a .db notefile
|
|
118
118
|
* Add a note with the given ID to a database notefile on a device, synced to the Notecard on its next sync. To change an existing note, use `UpdateDbNote`; to queue a note in a `.qi` notefile, use `AddQiNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
|
|
119
|
-
* @param {String} projectOrProductUID
|
|
120
|
-
* @param {String} deviceUID
|
|
119
|
+
* @param {String} projectOrProductUID
|
|
120
|
+
* @param {String} deviceUID
|
|
121
121
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
122
122
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
123
123
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
@@ -134,8 +134,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
134
|
/**
|
|
135
135
|
* Queue a note for a Notecard
|
|
136
136
|
* Add a note to an inbound queue (`.qi`) notefile on a device, creating the notefile if needed. The Notecard receives it on its next sync. For a `.db` notefile, use `AddDbNote`; to reach a connected Notecard immediately, use `SignalDevice`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.qi` or `.qis`, or if `payload` isn't valid base64.
|
|
137
|
-
* @param {String} projectOrProductUID
|
|
138
|
-
* @param {String} deviceUID
|
|
137
|
+
* @param {String} projectOrProductUID
|
|
138
|
+
* @param {String} deviceUID
|
|
139
139
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
140
140
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
141
141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -178,8 +178,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
178
178
|
/**
|
|
179
179
|
* Queue a note for a Notecard
|
|
180
180
|
* Add a note to an inbound queue (`.qi`) notefile on a device, creating the notefile if needed. The Notecard receives it on its next sync. For a `.db` notefile, use `AddDbNote`; to reach a connected Notecard immediately, use `SignalDevice`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.qi` or `.qis`, or if `payload` isn't valid base64.
|
|
181
|
-
* @param {String} projectOrProductUID
|
|
182
|
-
* @param {String} deviceUID
|
|
181
|
+
* @param {String} projectOrProductUID
|
|
182
|
+
* @param {String} deviceUID
|
|
183
183
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
184
184
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
185
185
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -195,8 +195,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
195
195
|
/**
|
|
196
196
|
* Create an empty notefile
|
|
197
197
|
* Create an empty notefile on a device. `AddQiNote` creates a notefile when needed, so this is only required for an empty one. Requires the Owner or Developer role. Returns 400 if the notefile already exists.
|
|
198
|
-
* @param {String} projectOrProductUID
|
|
199
|
-
* @param {String} deviceUID
|
|
198
|
+
* @param {String} projectOrProductUID
|
|
199
|
+
* @param {String} deviceUID
|
|
200
200
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
201
201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
202
202
|
*/
|
|
@@ -234,8 +234,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
234
|
/**
|
|
235
235
|
* Create an empty notefile
|
|
236
236
|
* Create an empty notefile on a device. `AddQiNote` creates a notefile when needed, so this is only required for an empty one. Requires the Owner or Developer role. Returns 400 if the notefile already exists.
|
|
237
|
-
* @param {String} projectOrProductUID
|
|
238
|
-
* @param {String} deviceUID
|
|
237
|
+
* @param {String} projectOrProductUID
|
|
238
|
+
* @param {String} deviceUID
|
|
239
239
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
240
240
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
241
241
|
*/
|
|
@@ -250,8 +250,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
250
250
|
/**
|
|
251
251
|
* Delete a device
|
|
252
252
|
* Delete a device and its notefiles from a project. Its events are kept. A Notecard that syncs again is added back as a new device; to block it instead, use `DisableDevice`. Requires the Owner or Developer role.
|
|
253
|
-
* @param {String} projectOrProductUID
|
|
254
|
-
* @param {String} deviceUID
|
|
253
|
+
* @param {String} projectOrProductUID
|
|
254
|
+
* @param {String} deviceUID
|
|
255
255
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
256
256
|
*/
|
|
257
257
|
}, {
|
|
@@ -283,8 +283,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
283
283
|
/**
|
|
284
284
|
* Delete a device
|
|
285
285
|
* Delete a device and its notefiles from a project. Its events are kept. A Notecard that syncs again is added back as a new device; to block it instead, use `DisableDevice`. Requires the Owner or Developer role.
|
|
286
|
-
* @param {String} projectOrProductUID
|
|
287
|
-
* @param {String} deviceUID
|
|
286
|
+
* @param {String} projectOrProductUID
|
|
287
|
+
* @param {String} deviceUID
|
|
288
288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
289
289
|
*/
|
|
290
290
|
}, {
|
|
@@ -298,8 +298,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
298
|
/**
|
|
299
299
|
* Delete a device environment variable
|
|
300
300
|
* Delete one device environment variable and return the ones left. Fleet and project variables with the same name then apply. Deleting a variable that doesn't exist succeeds. Requires the Owner or Developer role.
|
|
301
|
-
* @param {String} projectOrProductUID
|
|
302
|
-
* @param {String} deviceUID
|
|
301
|
+
* @param {String} projectOrProductUID
|
|
302
|
+
* @param {String} deviceUID
|
|
303
303
|
* @param {String} key The environment variable key to delete.
|
|
304
304
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
305
305
|
*/
|
|
@@ -337,8 +337,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
337
|
/**
|
|
338
338
|
* Delete a device environment variable
|
|
339
339
|
* Delete one device environment variable and return the ones left. Fleet and project variables with the same name then apply. Deleting a variable that doesn't exist succeeds. Requires the Owner or Developer role.
|
|
340
|
-
* @param {String} projectOrProductUID
|
|
341
|
-
* @param {String} deviceUID
|
|
340
|
+
* @param {String} projectOrProductUID
|
|
341
|
+
* @param {String} deviceUID
|
|
342
342
|
* @param {String} key The environment variable key to delete.
|
|
343
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
344
344
|
*/
|
|
@@ -353,8 +353,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
353
353
|
/**
|
|
354
354
|
* Delete a note
|
|
355
355
|
* Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
|
|
356
|
-
* @param {String} projectOrProductUID
|
|
357
|
-
* @param {String} deviceUID
|
|
356
|
+
* @param {String} projectOrProductUID
|
|
357
|
+
* @param {String} deviceUID
|
|
358
358
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
359
359
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
360
360
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -398,8 +398,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
398
|
/**
|
|
399
399
|
* Delete a note
|
|
400
400
|
* Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
|
|
401
|
-
* @param {String} projectOrProductUID
|
|
402
|
-
* @param {String} deviceUID
|
|
401
|
+
* @param {String} projectOrProductUID
|
|
402
|
+
* @param {String} deviceUID
|
|
403
403
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
404
404
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
405
405
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -415,8 +415,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
415
415
|
/**
|
|
416
416
|
* Delete notefiles
|
|
417
417
|
* Delete notefiles and all their notes from a device. To delete one note, use `DeleteNote`. Requires the Owner or Developer role. Returns 400 if `files` is empty.
|
|
418
|
-
* @param {String} projectOrProductUID
|
|
419
|
-
* @param {String} deviceUID
|
|
418
|
+
* @param {String} projectOrProductUID
|
|
419
|
+
* @param {String} deviceUID
|
|
420
420
|
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
|
|
421
421
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
422
422
|
*/
|
|
@@ -453,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
453
453
|
/**
|
|
454
454
|
* Delete notefiles
|
|
455
455
|
* Delete notefiles and all their notes from a device. To delete one note, use `DeleteNote`. Requires the Owner or Developer role. Returns 400 if `files` is empty.
|
|
456
|
-
* @param {String} projectOrProductUID
|
|
457
|
-
* @param {String} deviceUID
|
|
456
|
+
* @param {String} projectOrProductUID
|
|
457
|
+
* @param {String} deviceUID
|
|
458
458
|
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
|
|
459
459
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
460
460
|
*/
|
|
@@ -469,8 +469,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
469
469
|
/**
|
|
470
470
|
* Disable a device
|
|
471
471
|
* Stop a device from connecting to Notehub, ending any open session. The device and its data stay in the project; undo with `EnableDevice`. Does nothing if it's already disabled. Requires the Owner or Developer role.
|
|
472
|
-
* @param {String} projectOrProductUID
|
|
473
|
-
* @param {String} deviceUID
|
|
472
|
+
* @param {String} projectOrProductUID
|
|
473
|
+
* @param {String} deviceUID
|
|
474
474
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
475
475
|
*/
|
|
476
476
|
}, {
|
|
@@ -502,8 +502,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
502
502
|
/**
|
|
503
503
|
* Disable a device
|
|
504
504
|
* Stop a device from connecting to Notehub, ending any open session. The device and its data stay in the project; undo with `EnableDevice`. Does nothing if it's already disabled. Requires the Owner or Developer role.
|
|
505
|
-
* @param {String} projectOrProductUID
|
|
506
|
-
* @param {String} deviceUID
|
|
505
|
+
* @param {String} projectOrProductUID
|
|
506
|
+
* @param {String} deviceUID
|
|
507
507
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
508
508
|
*/
|
|
509
509
|
}, {
|
|
@@ -517,8 +517,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
517
517
|
/**
|
|
518
518
|
* Enable a device
|
|
519
519
|
* Re-enable a device turned off with `DisableDevice`, so it can connect to Notehub again. Does nothing if the device is already enabled. Requires the Owner or Developer role. Returns 409 if the device's cellular service was deactivated; it must be reactivated instead.
|
|
520
|
-
* @param {String} projectOrProductUID
|
|
521
|
-
* @param {String} deviceUID
|
|
520
|
+
* @param {String} projectOrProductUID
|
|
521
|
+
* @param {String} deviceUID
|
|
522
522
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
523
523
|
*/
|
|
524
524
|
}, {
|
|
@@ -550,8 +550,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
550
550
|
/**
|
|
551
551
|
* Enable a device
|
|
552
552
|
* Re-enable a device turned off with `DisableDevice`, so it can connect to Notehub again. Does nothing if the device is already enabled. Requires the Owner or Developer role. Returns 409 if the device's cellular service was deactivated; it must be reactivated instead.
|
|
553
|
-
* @param {String} projectOrProductUID
|
|
554
|
-
* @param {String} deviceUID
|
|
553
|
+
* @param {String} projectOrProductUID
|
|
554
|
+
* @param {String} deviceUID
|
|
555
555
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
556
556
|
*/
|
|
557
557
|
}, {
|
|
@@ -565,8 +565,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
565
565
|
/**
|
|
566
566
|
* Get a note
|
|
567
567
|
* Get one note's body, payload and time from a notefile on a device. To get every note in a notefile, use `GetNotefile`. With `delete=true`, the note is deleted after it is read, which requires the Owner or Developer role.
|
|
568
|
-
* @param {String} projectOrProductUID
|
|
569
|
-
* @param {String} deviceUID
|
|
568
|
+
* @param {String} projectOrProductUID
|
|
569
|
+
* @param {String} deviceUID
|
|
570
570
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
571
571
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
572
572
|
* @param {Object} opts Optional parameters
|
|
@@ -617,8 +617,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
617
617
|
/**
|
|
618
618
|
* Get a note
|
|
619
619
|
* Get one note's body, payload and time from a notefile on a device. To get every note in a notefile, use `GetNotefile`. With `delete=true`, the note is deleted after it is read, which requires the Owner or Developer role.
|
|
620
|
-
* @param {String} projectOrProductUID
|
|
621
|
-
* @param {String} deviceUID
|
|
620
|
+
* @param {String} projectOrProductUID
|
|
621
|
+
* @param {String} deviceUID
|
|
622
622
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
623
623
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
624
624
|
* @param {Object} opts Optional parameters
|
|
@@ -637,8 +637,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
637
637
|
/**
|
|
638
638
|
* Get a device
|
|
639
639
|
* Get one device's details: serial number, product, fleets, locations, firmware versions, SIM usage and DFU state. To find devices by tag, serial number or other fields, use `GetDevices`.
|
|
640
|
-
* @param {String} projectOrProductUID
|
|
641
|
-
* @param {String} deviceUID
|
|
640
|
+
* @param {String} projectOrProductUID
|
|
641
|
+
* @param {String} deviceUID
|
|
642
642
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
643
643
|
*/
|
|
644
644
|
}, {
|
|
@@ -670,8 +670,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
670
670
|
/**
|
|
671
671
|
* Get a device
|
|
672
672
|
* Get one device's details: serial number, product, fleets, locations, firmware versions, SIM usage and DFU state. To find devices by tag, serial number or other fields, use `GetDevices`.
|
|
673
|
-
* @param {String} projectOrProductUID
|
|
674
|
-
* @param {String} deviceUID
|
|
673
|
+
* @param {String} projectOrProductUID
|
|
674
|
+
* @param {String} deviceUID
|
|
675
675
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
676
676
|
*/
|
|
677
677
|
}, {
|
|
@@ -685,8 +685,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
685
685
|
/**
|
|
686
686
|
* Get a device's environment hierarchy
|
|
687
687
|
* Get a device's environment variables and the fleet and project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. For just the resolved values, use `GetDeviceEnvironmentVariables`.
|
|
688
|
-
* @param {String} projectOrProductUID
|
|
689
|
-
* @param {String} deviceUID
|
|
688
|
+
* @param {String} projectOrProductUID
|
|
689
|
+
* @param {String} deviceUID
|
|
690
690
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
691
691
|
*/
|
|
692
692
|
}, {
|
|
@@ -718,8 +718,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
718
718
|
/**
|
|
719
719
|
* Get a device's environment hierarchy
|
|
720
720
|
* Get a device's environment variables and the fleet and project variables it inherits, as a tree. Each variable has its precedence and whether it is used or overridden. For just the resolved values, use `GetDeviceEnvironmentVariables`.
|
|
721
|
-
* @param {String} projectOrProductUID
|
|
722
|
-
* @param {String} deviceUID
|
|
721
|
+
* @param {String} projectOrProductUID
|
|
722
|
+
* @param {String} deviceUID
|
|
723
723
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
724
724
|
*/
|
|
725
725
|
}, {
|
|
@@ -733,8 +733,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
733
733
|
/**
|
|
734
734
|
* Get device environment variables
|
|
735
735
|
* Get a device's own environment variables, its `env.default` values, and its effective values. Effective values merge in project and fleet variables, which device variables override. To see where each value comes from, use `GetDeviceEnvironmentHierarchy`.
|
|
736
|
-
* @param {String} projectOrProductUID
|
|
737
|
-
* @param {String} deviceUID
|
|
736
|
+
* @param {String} projectOrProductUID
|
|
737
|
+
* @param {String} deviceUID
|
|
738
738
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
739
739
|
*/
|
|
740
740
|
}, {
|
|
@@ -766,8 +766,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
766
766
|
/**
|
|
767
767
|
* Get device environment variables
|
|
768
768
|
* Get a device's own environment variables, its `env.default` values, and its effective values. Effective values merge in project and fleet variables, which device variables override. To see where each value comes from, use `GetDeviceEnvironmentHierarchy`.
|
|
769
|
-
* @param {String} projectOrProductUID
|
|
770
|
-
* @param {String} deviceUID
|
|
769
|
+
* @param {String} projectOrProductUID
|
|
770
|
+
* @param {String} deviceUID
|
|
771
771
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
772
772
|
*/
|
|
773
773
|
}, {
|
|
@@ -781,8 +781,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
781
781
|
/**
|
|
782
782
|
* Get device environment variables using a PIN
|
|
783
783
|
* Get a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Made for device dashboard pages; with a token, use `GetDeviceEnvironmentVariables`, which also returns effective values. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
|
|
784
|
-
* @param {String} productUID
|
|
785
|
-
* @param {String} deviceUID
|
|
784
|
+
* @param {String} productUID
|
|
785
|
+
* @param {String} deviceUID
|
|
786
786
|
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
787
787
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
788
788
|
*/
|
|
@@ -821,8 +821,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
821
821
|
/**
|
|
822
822
|
* Get device environment variables using a PIN
|
|
823
823
|
* Get a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Made for device dashboard pages; with a token, use `GetDeviceEnvironmentVariables`, which also returns effective values. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
|
|
824
|
-
* @param {String} productUID
|
|
825
|
-
* @param {String} deviceUID
|
|
824
|
+
* @param {String} productUID
|
|
825
|
+
* @param {String} deviceUID
|
|
826
826
|
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
827
827
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
828
828
|
*/
|
|
@@ -837,8 +837,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
837
837
|
/**
|
|
838
838
|
* Get a device's health log
|
|
839
839
|
* Get a device's health log: timestamped status messages such as restarts and completed firmware updates. Only the latest 100 entries are kept. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400, and the same value for both returns every entry.
|
|
840
|
-
* @param {String} projectOrProductUID
|
|
841
|
-
* @param {String} deviceUID
|
|
840
|
+
* @param {String} projectOrProductUID
|
|
841
|
+
* @param {String} deviceUID
|
|
842
842
|
* @param {Object} opts Optional parameters
|
|
843
843
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
844
844
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -879,8 +879,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
879
879
|
/**
|
|
880
880
|
* Get a device's health log
|
|
881
881
|
* Get a device's health log: timestamped status messages such as restarts and completed firmware updates. Only the latest 100 entries are kept. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400, and the same value for both returns every entry.
|
|
882
|
-
* @param {String} projectOrProductUID
|
|
883
|
-
* @param {String} deviceUID
|
|
882
|
+
* @param {String} projectOrProductUID
|
|
883
|
+
* @param {String} deviceUID
|
|
884
884
|
* @param {Object} opts Optional parameters
|
|
885
885
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
886
886
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -898,12 +898,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
898
|
/**
|
|
899
899
|
* Get a journey and its events
|
|
900
900
|
* Get one journey's start and end time and its events, oldest first. Only events with a location are included, and a run of events at the same location is reduced to the first. The events are paginated; `journey.has_more` is true if there are more. Returns 404 if the journey doesn't exist, and 403 if the organization is suspended.
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
902
|
-
* @param {String} deviceUID
|
|
901
|
+
* @param {String} projectOrProductUID
|
|
902
|
+
* @param {String} deviceUID
|
|
903
903
|
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
904
904
|
* @param {Object} opts Optional parameters
|
|
905
|
-
* @param {Number} opts.pageSize
|
|
906
|
-
* @param {Number} opts.pageNum
|
|
905
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
906
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
907
907
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
|
|
908
908
|
*/
|
|
909
909
|
}, {
|
|
@@ -944,12 +944,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
944
944
|
/**
|
|
945
945
|
* Get a journey and its events
|
|
946
946
|
* Get one journey's start and end time and its events, oldest first. Only events with a location are included, and a run of events at the same location is reduced to the first. The events are paginated; `journey.has_more` is true if there are more. Returns 404 if the journey doesn't exist, and 403 if the organization is suspended.
|
|
947
|
-
* @param {String} projectOrProductUID
|
|
948
|
-
* @param {String} deviceUID
|
|
947
|
+
* @param {String} projectOrProductUID
|
|
948
|
+
* @param {String} deviceUID
|
|
949
949
|
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
950
950
|
* @param {Object} opts Optional parameters
|
|
951
|
-
* @param {Number} opts.pageSize
|
|
952
|
-
* @param {Number} opts.pageNum
|
|
951
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
952
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
953
953
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
|
|
954
954
|
*/
|
|
955
955
|
}, {
|
|
@@ -963,8 +963,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
963
963
|
/**
|
|
964
964
|
* List a device's journeys
|
|
965
965
|
* List a device's journeys, newest first, without their events. A journey is the events whose body has the same `journey` value and a `jcount` field; one-event journeys are left out. For a journey's events, use `GetDeviceJourney`. Returns at most 100; `has_more` is true if there are more. `startDate` and `endDate` filter on the journey's start. Returns 403 if the organization is suspended.
|
|
966
|
-
* @param {String} projectOrProductUID
|
|
967
|
-
* @param {String} deviceUID
|
|
966
|
+
* @param {String} projectOrProductUID
|
|
967
|
+
* @param {String} deviceUID
|
|
968
968
|
* @param {Object} opts Optional parameters
|
|
969
969
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
970
970
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -1003,8 +1003,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1003
1003
|
/**
|
|
1004
1004
|
* List a device's journeys
|
|
1005
1005
|
* List a device's journeys, newest first, without their events. A journey is the events whose body has the same `journey` value and a `jcount` field; one-event journeys are left out. For a journey's events, use `GetDeviceJourney`. Returns at most 100; `has_more` is true if there are more. `startDate` and `endDate` filter on the journey's start. Returns 403 if the organization is suspended.
|
|
1006
|
-
* @param {String} projectOrProductUID
|
|
1007
|
-
* @param {String} deviceUID
|
|
1006
|
+
* @param {String} projectOrProductUID
|
|
1007
|
+
* @param {String} deviceUID
|
|
1008
1008
|
* @param {Object} opts Optional parameters
|
|
1009
1009
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1010
1010
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -1021,8 +1021,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Get a device's latest event per notefile
|
|
1023
1023
|
* Get the most recent event from each of a device's notefiles, sorted by notefile name. `_env.qo` is left out. To search a device's event history, use `GetEvents`. Returns 403 if the organization is suspended.
|
|
1024
|
-
* @param {String} projectOrProductUID
|
|
1025
|
-
* @param {String} deviceUID
|
|
1024
|
+
* @param {String} projectOrProductUID
|
|
1025
|
+
* @param {String} deviceUID
|
|
1026
1026
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
1027
1027
|
*/
|
|
1028
1028
|
}, {
|
|
@@ -1054,8 +1054,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Get a device's latest event per notefile
|
|
1056
1056
|
* Get the most recent event from each of a device's notefiles, sorted by notefile name. `_env.qo` is left out. To search a device's event history, use `GetEvents`. Returns 403 if the organization is suspended.
|
|
1057
|
-
* @param {String} projectOrProductUID
|
|
1058
|
-
* @param {String} deviceUID
|
|
1057
|
+
* @param {String} projectOrProductUID
|
|
1058
|
+
* @param {String} deviceUID
|
|
1059
1059
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
1060
1060
|
*/
|
|
1061
1061
|
}, {
|
|
@@ -1069,8 +1069,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Get a device's cellular data plans
|
|
1071
1071
|
* Get the data plan of each cellular SIM in a device: plan type, data used and remaining, and expiry. Covers the built-in SIM and any external SIM, but not satellite plans. Returns 404 if the device has no cellular or satellite SIM.
|
|
1072
|
-
* @param {String} projectOrProductUID
|
|
1073
|
-
* @param {String} deviceUID
|
|
1072
|
+
* @param {String} projectOrProductUID
|
|
1073
|
+
* @param {String} deviceUID
|
|
1074
1074
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
1075
1075
|
*/
|
|
1076
1076
|
}, {
|
|
@@ -1102,8 +1102,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Get a device's cellular data plans
|
|
1104
1104
|
* Get the data plan of each cellular SIM in a device: plan type, data used and remaining, and expiry. Covers the built-in SIM and any external SIM, but not satellite plans. Returns 404 if the device has no cellular or satellite SIM.
|
|
1105
|
-
* @param {String} projectOrProductUID
|
|
1106
|
-
* @param {String} deviceUID
|
|
1105
|
+
* @param {String} projectOrProductUID
|
|
1106
|
+
* @param {String} deviceUID
|
|
1107
1107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
1108
1108
|
*/
|
|
1109
1109
|
}, {
|
|
@@ -1117,8 +1117,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Get a device's public key
|
|
1119
1119
|
* Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
|
|
1120
|
-
* @param {String} projectOrProductUID
|
|
1121
|
-
* @param {String} deviceUID
|
|
1120
|
+
* @param {String} projectOrProductUID
|
|
1121
|
+
* @param {String} deviceUID
|
|
1122
1122
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
1123
1123
|
*/
|
|
1124
1124
|
}, {
|
|
@@ -1150,8 +1150,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Get a device's public key
|
|
1152
1152
|
* Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
|
|
1153
|
-
* @param {String} projectOrProductUID
|
|
1154
|
-
* @param {String} deviceUID
|
|
1153
|
+
* @param {String} projectOrProductUID
|
|
1154
|
+
* @param {String} deviceUID
|
|
1155
1155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
1156
1156
|
*/
|
|
1157
1157
|
}, {
|
|
@@ -1165,11 +1165,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1165
1165
|
/**
|
|
1166
1166
|
* List public keys of all devices
|
|
1167
1167
|
* List the public key of every device in a project. For one device, use `GetDevicePublicKey`. Paginated. Deleted devices are included only when reading with a `cursor`.
|
|
1168
|
-
* @param {String} projectOrProductUID
|
|
1168
|
+
* @param {String} projectOrProductUID
|
|
1169
1169
|
* @param {Object} opts Optional parameters
|
|
1170
|
-
* @param {Number} opts.pageSize
|
|
1171
|
-
* @param {Number} opts.pageNum
|
|
1172
|
-
* @param {String} opts.cursor
|
|
1170
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1171
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1172
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1173
1173
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
|
|
1174
1174
|
*/
|
|
1175
1175
|
}, {
|
|
@@ -1201,11 +1201,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1201
1201
|
/**
|
|
1202
1202
|
* List public keys of all devices
|
|
1203
1203
|
* List the public key of every device in a project. For one device, use `GetDevicePublicKey`. Paginated. Deleted devices are included only when reading with a `cursor`.
|
|
1204
|
-
* @param {String} projectOrProductUID
|
|
1204
|
+
* @param {String} projectOrProductUID
|
|
1205
1205
|
* @param {Object} opts Optional parameters
|
|
1206
|
-
* @param {Number} opts.pageSize
|
|
1207
|
-
* @param {Number} opts.pageNum
|
|
1208
|
-
* @param {String} opts.cursor
|
|
1206
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1207
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1208
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1209
1209
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
|
|
1210
1210
|
*/
|
|
1211
1211
|
}, {
|
|
@@ -1219,12 +1219,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1219
1219
|
/**
|
|
1220
1220
|
* List a device's sessions
|
|
1221
1221
|
* List a device's sessions, its connections to Notehub. Each shows why it opened and closed, signal strength, location and data usage. `startDate` and `endDate` filter on when the session began. For every device's sessions, use `GetSessions`. Paginated.
|
|
1222
|
-
* @param {String} projectOrProductUID
|
|
1223
|
-
* @param {String} deviceUID
|
|
1222
|
+
* @param {String} projectOrProductUID
|
|
1223
|
+
* @param {String} deviceUID
|
|
1224
1224
|
* @param {Object} opts Optional parameters
|
|
1225
|
-
* @param {Number} opts.pageSize
|
|
1226
|
-
* @param {Number} opts.pageNum
|
|
1227
|
-
* @param {String} opts.cursor
|
|
1225
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1226
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1227
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1228
1228
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1229
1229
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1230
1230
|
* @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
|
|
@@ -1267,12 +1267,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1267
1267
|
/**
|
|
1268
1268
|
* List a device's sessions
|
|
1269
1269
|
* List a device's sessions, its connections to Notehub. Each shows why it opened and closed, signal strength, location and data usage. `startDate` and `endDate` filter on when the session began. For every device's sessions, use `GetSessions`. Paginated.
|
|
1270
|
-
* @param {String} projectOrProductUID
|
|
1271
|
-
* @param {String} deviceUID
|
|
1270
|
+
* @param {String} projectOrProductUID
|
|
1271
|
+
* @param {String} deviceUID
|
|
1272
1272
|
* @param {Object} opts Optional parameters
|
|
1273
|
-
* @param {Number} opts.pageSize
|
|
1274
|
-
* @param {Number} opts.pageNum
|
|
1275
|
-
* @param {String} opts.cursor
|
|
1273
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1274
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1275
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1276
1276
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1277
1277
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1278
1278
|
* @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
|
|
@@ -1289,20 +1289,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1289
1289
|
/**
|
|
1290
1290
|
* List devices in a project
|
|
1291
1291
|
* List the devices in a project, with optional filters such as tag, serial number, fleet, location and firmware version. For one fleet's devices, use `GetFleetDevices`. Paginated.
|
|
1292
|
-
* @param {String} projectOrProductUID
|
|
1292
|
+
* @param {String} projectOrProductUID
|
|
1293
1293
|
* @param {Object} opts Optional parameters
|
|
1294
|
-
* @param {Number} opts.pageSize
|
|
1295
|
-
* @param {Number} opts.pageNum
|
|
1296
|
-
* @param {String} opts.cursor
|
|
1297
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1298
|
-
* @param {Array.<String>} opts.tag
|
|
1299
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1300
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1301
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1302
|
-
* @param {Array.<String>} opts.location Location
|
|
1303
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1304
|
-
* @param {Array.<String>} opts.productUID ProductUID
|
|
1305
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1294
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1295
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1296
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1297
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1298
|
+
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1299
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1300
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1301
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1302
|
+
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1303
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1304
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1305
|
+
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1306
1306
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1307
1307
|
*/
|
|
1308
1308
|
}, {
|
|
@@ -1343,20 +1343,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1343
1343
|
/**
|
|
1344
1344
|
* List devices in a project
|
|
1345
1345
|
* List the devices in a project, with optional filters such as tag, serial number, fleet, location and firmware version. For one fleet's devices, use `GetFleetDevices`. Paginated.
|
|
1346
|
-
* @param {String} projectOrProductUID
|
|
1346
|
+
* @param {String} projectOrProductUID
|
|
1347
1347
|
* @param {Object} opts Optional parameters
|
|
1348
|
-
* @param {Number} opts.pageSize
|
|
1349
|
-
* @param {Number} opts.pageNum
|
|
1350
|
-
* @param {String} opts.cursor
|
|
1351
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1352
|
-
* @param {Array.<String>} opts.tag
|
|
1353
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1354
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1355
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1356
|
-
* @param {Array.<String>} opts.location Location
|
|
1357
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1358
|
-
* @param {Array.<String>} opts.productUID ProductUID
|
|
1359
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1348
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1349
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1350
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1351
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1352
|
+
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1353
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1354
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1355
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1356
|
+
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1357
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1358
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1359
|
+
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1360
1360
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1361
1361
|
*/
|
|
1362
1362
|
}, {
|
|
@@ -1370,20 +1370,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1370
1370
|
/**
|
|
1371
1371
|
* List devices in a fleet
|
|
1372
1372
|
* List the devices in one fleet, with the same filters as `GetDevices`. To list a device's fleets instead, use `GetDeviceFleets`. Paginated. Returns 404 if the fleet doesn't exist.
|
|
1373
|
-
* @param {String} projectOrProductUID
|
|
1374
|
-
* @param {String} fleetUID
|
|
1373
|
+
* @param {String} projectOrProductUID
|
|
1374
|
+
* @param {String} fleetUID
|
|
1375
1375
|
* @param {Object} opts Optional parameters
|
|
1376
|
-
* @param {Number} opts.pageSize
|
|
1377
|
-
* @param {Number} opts.pageNum
|
|
1378
|
-
* @param {String} opts.cursor
|
|
1379
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1380
|
-
* @param {Array.<String>} opts.tag
|
|
1381
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1382
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1383
|
-
* @param {Array.<String>} opts.location Location
|
|
1384
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1385
|
-
* @param {Array.<String>} opts.productUID ProductUID
|
|
1386
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1376
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1377
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1378
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1379
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1380
|
+
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1381
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1382
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1383
|
+
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1384
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1385
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1386
|
+
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1387
1387
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1388
1388
|
*/
|
|
1389
1389
|
}, {
|
|
@@ -1428,20 +1428,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1428
1428
|
/**
|
|
1429
1429
|
* List devices in a fleet
|
|
1430
1430
|
* List the devices in one fleet, with the same filters as `GetDevices`. To list a device's fleets instead, use `GetDeviceFleets`. Paginated. Returns 404 if the fleet doesn't exist.
|
|
1431
|
-
* @param {String} projectOrProductUID
|
|
1432
|
-
* @param {String} fleetUID
|
|
1431
|
+
* @param {String} projectOrProductUID
|
|
1432
|
+
* @param {String} fleetUID
|
|
1433
1433
|
* @param {Object} opts Optional parameters
|
|
1434
|
-
* @param {Number} opts.pageSize
|
|
1435
|
-
* @param {Number} opts.pageNum
|
|
1436
|
-
* @param {String} opts.cursor
|
|
1437
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1438
|
-
* @param {Array.<String>} opts.tag
|
|
1439
|
-
* @param {Array.<String>} opts.serialNumber Serial number
|
|
1440
|
-
* @param {Array.<String>} opts.notecardFirmware
|
|
1441
|
-
* @param {Array.<String>} opts.location Location
|
|
1442
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware
|
|
1443
|
-
* @param {Array.<String>} opts.productUID ProductUID
|
|
1444
|
-
* @param {Array.<String>} opts.sku SKU
|
|
1434
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1435
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1436
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1437
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1438
|
+
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
1439
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1440
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1441
|
+
* @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1442
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1443
|
+
* @param {Array.<String>} opts.productUID ProductUID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1444
|
+
* @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
|
|
1445
1445
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1446
1446
|
*/
|
|
1447
1447
|
}, {
|
|
@@ -1455,8 +1455,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Get the notes in a notefile
|
|
1457
1457
|
* Get the notes in one notefile on a device. For a `.qi` notefile, that's the notes still queued; for a `.db` notefile, every note. To list all of a device's notefiles with their notes, use `ListNotefiles`. With `delete=true`, the returned notes are deleted, which requires the Owner or Developer role. Returns 400 if `notefileID` has no valid notefile extension.
|
|
1458
|
-
* @param {String} projectOrProductUID
|
|
1459
|
-
* @param {String} deviceUID
|
|
1458
|
+
* @param {String} projectOrProductUID
|
|
1459
|
+
* @param {String} deviceUID
|
|
1460
1460
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1461
1461
|
* @param {Object} opts Optional parameters
|
|
1462
1462
|
* @param {Number} opts.max The most notes to return.
|
|
@@ -1503,8 +1503,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* Get the notes in a notefile
|
|
1505
1505
|
* Get the notes in one notefile on a device. For a `.qi` notefile, that's the notes still queued; for a `.db` notefile, every note. To list all of a device's notefiles with their notes, use `ListNotefiles`. With `delete=true`, the returned notes are deleted, which requires the Owner or Developer role. Returns 400 if `notefileID` has no valid notefile extension.
|
|
1506
|
-
* @param {String} projectOrProductUID
|
|
1507
|
-
* @param {String} deviceUID
|
|
1506
|
+
* @param {String} projectOrProductUID
|
|
1507
|
+
* @param {String} deviceUID
|
|
1508
1508
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1509
1509
|
* @param {Object} opts Optional parameters
|
|
1510
1510
|
* @param {Number} opts.max The most notes to return.
|
|
@@ -1523,16 +1523,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1523
1523
|
/**
|
|
1524
1524
|
* List sessions in a project
|
|
1525
1525
|
* List the sessions of every device in a project, as `GetDeviceSessions` does for one device. `startDate` and `endDate` filter on when the session began. `deviceUID` and `fleetUID` each match any of their values; `fleetUID` matches the fleets recorded on the session. Paginated.
|
|
1526
|
-
* @param {String} projectOrProductUID
|
|
1526
|
+
* @param {String} projectOrProductUID
|
|
1527
1527
|
* @param {Object} opts Optional parameters
|
|
1528
|
-
* @param {Number} opts.pageSize
|
|
1529
|
-
* @param {Number} opts.pageNum
|
|
1530
|
-
* @param {String} opts.cursor
|
|
1528
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1529
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1530
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1531
1531
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1532
1532
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1533
1533
|
* @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
|
|
1534
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1535
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1534
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1535
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1536
1536
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
1537
1537
|
*/
|
|
1538
1538
|
}, {
|
|
@@ -1569,16 +1569,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1569
1569
|
/**
|
|
1570
1570
|
* List sessions in a project
|
|
1571
1571
|
* List the sessions of every device in a project, as `GetDeviceSessions` does for one device. `startDate` and `endDate` filter on when the session began. `deviceUID` and `fleetUID` each match any of their values; `fleetUID` matches the fleets recorded on the session. Paginated.
|
|
1572
|
-
* @param {String} projectOrProductUID
|
|
1572
|
+
* @param {String} projectOrProductUID
|
|
1573
1573
|
* @param {Object} opts Optional parameters
|
|
1574
|
-
* @param {Number} opts.pageSize
|
|
1575
|
-
* @param {Number} opts.pageNum
|
|
1576
|
-
* @param {String} opts.cursor
|
|
1574
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
1575
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
1576
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
1577
1577
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1578
1578
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1579
1579
|
* @param {Boolean} opts.firstSync If true, return only sessions whose `why_session_opened` begins with \"first sync\". (default to false)
|
|
1580
|
-
* @param {Array.<String>} opts.deviceUID
|
|
1581
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1580
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1581
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1582
1582
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
1583
1583
|
*/
|
|
1584
1584
|
}, {
|
|
@@ -1592,8 +1592,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1592
1592
|
/**
|
|
1593
1593
|
* List a device's notefiles and notes
|
|
1594
1594
|
* List a device's notefiles with the notes in each, sorted `.qo`, then `.qi`, then `.db`. `.qo` notefiles are listed without notes, since Notehub empties them as it processes them. Most system notefiles (names starting with `_`) are left out. For one notefile, use `GetNotefile`.
|
|
1595
|
-
* @param {String} projectOrProductUID
|
|
1596
|
-
* @param {String} deviceUID
|
|
1595
|
+
* @param {String} projectOrProductUID
|
|
1596
|
+
* @param {String} deviceUID
|
|
1597
1597
|
* @param {Object} opts Optional parameters
|
|
1598
1598
|
* @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
|
|
1599
1599
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1632,8 +1632,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1632
1632
|
/**
|
|
1633
1633
|
* List a device's notefiles and notes
|
|
1634
1634
|
* List a device's notefiles with the notes in each, sorted `.qo`, then `.qi`, then `.db`. `.qo` notefiles are listed without notes, since Notehub empties them as it processes them. Most system notefiles (names starting with `_`) are left out. For one notefile, use `GetNotefile`.
|
|
1635
|
-
* @param {String} projectOrProductUID
|
|
1636
|
-
* @param {String} deviceUID
|
|
1635
|
+
* @param {String} projectOrProductUID
|
|
1636
|
+
* @param {String} deviceUID
|
|
1637
1637
|
* @param {Object} opts Optional parameters
|
|
1638
1638
|
* @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
|
|
1639
1639
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1650,8 +1650,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Provision a Notecard
|
|
1652
1652
|
* Add a Notecard to a project before it first connects, with its product, serial number and fleets. A device that already exists isn't reset and keeps its fleets. Requires the Owner or Developer role. Returns 404 if `product_uid` doesn't exist, and 400 if it belongs to another project or `deviceUID` isn't a valid Notecard DeviceUID.
|
|
1653
|
-
* @param {String} projectOrProductUID
|
|
1654
|
-
* @param {String} deviceUID
|
|
1653
|
+
* @param {String} projectOrProductUID
|
|
1654
|
+
* @param {String} deviceUID
|
|
1655
1655
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
|
|
1656
1656
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1657
1657
|
*/
|
|
@@ -1688,8 +1688,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Provision a Notecard
|
|
1690
1690
|
* Add a Notecard to a project before it first connects, with its product, serial number and fleets. A device that already exists isn't reset and keeps its fleets. Requires the Owner or Developer role. Returns 404 if `product_uid` doesn't exist, and 400 if it belongs to another project or `deviceUID` isn't a valid Notecard DeviceUID.
|
|
1691
|
-
* @param {String} projectOrProductUID
|
|
1692
|
-
* @param {String} deviceUID
|
|
1691
|
+
* @param {String} projectOrProductUID
|
|
1692
|
+
* @param {String} deviceUID
|
|
1693
1693
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest The product, serial number and fleets for the device.
|
|
1694
1694
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1695
1695
|
*/
|
|
@@ -1704,8 +1704,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1704
1704
|
/**
|
|
1705
1705
|
* Set device environment variables
|
|
1706
1706
|
* Add or change a device's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
1707
|
-
* @param {String} projectOrProductUID
|
|
1708
|
-
* @param {String} deviceUID
|
|
1707
|
+
* @param {String} projectOrProductUID
|
|
1708
|
+
* @param {String} deviceUID
|
|
1709
1709
|
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1710
1710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1711
1711
|
*/
|
|
@@ -1742,8 +1742,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Set device environment variables
|
|
1744
1744
|
* Add or change a device's environment variables; variables you don't send keep their values. A value of `\"\"` or `-` deletes that variable. Setting `_fw`, `_fwc` or `_fwm` starts a host, Notecard or modem firmware update. Requires the Owner or Developer role. Returns 400 if a note's key isn't a variable.
|
|
1745
|
-
* @param {String} projectOrProductUID
|
|
1746
|
-
* @param {String} deviceUID
|
|
1745
|
+
* @param {String} projectOrProductUID
|
|
1746
|
+
* @param {String} deviceUID
|
|
1747
1747
|
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1748
1748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1749
1749
|
*/
|
|
@@ -1758,8 +1758,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Set device environment variables using a PIN
|
|
1760
1760
|
* Add or change a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Works like `SetDeviceEnvironmentVariables`: a value of `\"\"` or `-` deletes that variable. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
|
|
1761
|
-
* @param {String} productUID
|
|
1762
|
-
* @param {String} deviceUID
|
|
1761
|
+
* @param {String} productUID
|
|
1762
|
+
* @param {String} deviceUID
|
|
1763
1763
|
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
1764
1764
|
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1765
1765
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1803,8 +1803,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Set device environment variables using a PIN
|
|
1805
1805
|
* Add or change a device's environment variables using its PIN instead of an API token. Pass the PIN in `X-Auth-Token`. Works like `SetDeviceEnvironmentVariables`: a value of `\"\"` or `-` deletes that variable. Returns 401 if the project's device dashboard URL has no `[pin]`, or the PIN is wrong.
|
|
1806
|
-
* @param {String} productUID
|
|
1807
|
-
* @param {String} deviceUID
|
|
1806
|
+
* @param {String} productUID
|
|
1807
|
+
* @param {String} deviceUID
|
|
1808
1808
|
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
1809
1809
|
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1810
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1820,8 +1820,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1820
1820
|
/**
|
|
1821
1821
|
* Send a signal to a connected Notecard
|
|
1822
1822
|
* Send a JSON object straight to a Notecard, which the host can read with `hub.signal`. It's delivered only if the Notecard is connected to Notehub at that moment, and is never queued; `connected` in the response says whether it was. To queue data for the next sync, use `AddQiNote` instead. Requires the Owner or Developer role. Returns 400 if the body has a `type` field.
|
|
1823
|
-
* @param {String} projectOrProductUID
|
|
1824
|
-
* @param {String} deviceUID
|
|
1823
|
+
* @param {String} projectOrProductUID
|
|
1824
|
+
* @param {String} deviceUID
|
|
1825
1825
|
* @param {module:model/Body} body The signal to send.
|
|
1826
1826
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1827
1827
|
*/
|
|
@@ -1858,8 +1858,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Send a signal to a connected Notecard
|
|
1860
1860
|
* Send a JSON object straight to a Notecard, which the host can read with `hub.signal`. It's delivered only if the Notecard is connected to Notehub at that moment, and is never queued; `connected` in the response says whether it was. To queue data for the next sync, use `AddQiNote` instead. Requires the Owner or Developer role. Returns 400 if the body has a `type` field.
|
|
1861
|
-
* @param {String} projectOrProductUID
|
|
1862
|
-
* @param {String} deviceUID
|
|
1861
|
+
* @param {String} projectOrProductUID
|
|
1862
|
+
* @param {String} deviceUID
|
|
1863
1863
|
* @param {module:model/Body} body The signal to send.
|
|
1864
1864
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1865
1865
|
*/
|
|
@@ -1874,8 +1874,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Update a note in a .db notefile
|
|
1876
1876
|
* Replace the body and payload of a note in a database notefile on a device, synced to the Notecard on its next sync. To add a new note, use `AddDbNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
|
|
1877
|
-
* @param {String} projectOrProductUID
|
|
1878
|
-
* @param {String} deviceUID
|
|
1877
|
+
* @param {String} projectOrProductUID
|
|
1878
|
+
* @param {String} deviceUID
|
|
1879
1879
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1880
1880
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
1881
1881
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
@@ -1924,8 +1924,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Update a note in a .db notefile
|
|
1926
1926
|
* Replace the body and payload of a note in a database notefile on a device, synced to the Notecard on its next sync. To add a new note, use `AddDbNote`. Requires the Owner or Developer role. Returns 400 unless the notefile ends in `.db` or `.dbs`, or if `payload` isn't valid base64.
|
|
1927
|
-
* @param {String} projectOrProductUID
|
|
1928
|
-
* @param {String} deviceUID
|
|
1927
|
+
* @param {String} projectOrProductUID
|
|
1928
|
+
* @param {String} deviceUID
|
|
1929
1929
|
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1930
1930
|
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
1931
1931
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|