@blues-inc/notehub-js 6.7.0-beta.49 → 6.7.0-beta.50
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 +32 -32
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +145 -147
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/SkillsApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -2
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +2 -3
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +8 -27
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- 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 +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +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 +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 +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +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 +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +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 +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +1 -1
- package/dist/model/SkillSummary.js +1 -1
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +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/api/DeviceApi.js
CHANGED
|
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
48
48
|
/**
|
|
49
49
|
* Device service.
|
|
50
50
|
* @module api/DeviceApi
|
|
51
|
-
* @version 6.7.0-beta.
|
|
51
|
+
* @version 6.7.0-beta.50
|
|
52
52
|
*/
|
|
53
53
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
@@ -64,11 +64,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Add a
|
|
67
|
+
* Add a note to a .db notefile
|
|
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.
|
|
68
69
|
* @param {String} projectOrProductUID
|
|
69
70
|
* @param {String} deviceUID
|
|
70
|
-
* @param {String} notefileID
|
|
71
|
-
* @param {String} noteID
|
|
71
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
72
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
72
73
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
73
74
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
74
75
|
*/
|
|
@@ -113,11 +114,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
/**
|
|
116
|
-
* Add a
|
|
117
|
+
* Add a note to a .db notefile
|
|
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.
|
|
117
119
|
* @param {String} projectOrProductUID
|
|
118
120
|
* @param {String} deviceUID
|
|
119
|
-
* @param {String} notefileID
|
|
120
|
-
* @param {String} noteID
|
|
121
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
122
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
121
123
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
122
124
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
123
125
|
*/
|
|
@@ -130,10 +132,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
|
-
*
|
|
135
|
+
* Queue a note for a Notecard
|
|
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.
|
|
134
137
|
* @param {String} projectOrProductUID
|
|
135
138
|
* @param {String} deviceUID
|
|
136
|
-
* @param {String} notefileID
|
|
139
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
137
140
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
138
141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
139
142
|
*/
|
|
@@ -173,10 +176,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
/**
|
|
176
|
-
*
|
|
179
|
+
* Queue a note for a Notecard
|
|
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.
|
|
177
181
|
* @param {String} projectOrProductUID
|
|
178
182
|
* @param {String} deviceUID
|
|
179
|
-
* @param {String} notefileID
|
|
183
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
180
184
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
181
185
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
182
186
|
*/
|
|
@@ -189,10 +193,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
/**
|
|
192
|
-
*
|
|
196
|
+
* Create an empty notefile
|
|
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.
|
|
193
198
|
* @param {String} projectOrProductUID
|
|
194
199
|
* @param {String} deviceUID
|
|
195
|
-
* @param {String} notefileID
|
|
200
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
196
201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
197
202
|
*/
|
|
198
203
|
}, {
|
|
@@ -227,10 +232,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
232
|
}
|
|
228
233
|
|
|
229
234
|
/**
|
|
230
|
-
*
|
|
235
|
+
* Create an empty notefile
|
|
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.
|
|
231
237
|
* @param {String} projectOrProductUID
|
|
232
238
|
* @param {String} deviceUID
|
|
233
|
-
* @param {String} notefileID
|
|
239
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
234
240
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
235
241
|
*/
|
|
236
242
|
}, {
|
|
@@ -242,8 +248,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
248
|
}
|
|
243
249
|
|
|
244
250
|
/**
|
|
245
|
-
* Delete
|
|
246
|
-
* 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.
|
|
251
|
+
* Delete Device
|
|
247
252
|
* @param {String} projectOrProductUID
|
|
248
253
|
* @param {String} deviceUID
|
|
249
254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -275,8 +280,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
280
|
}
|
|
276
281
|
|
|
277
282
|
/**
|
|
278
|
-
* Delete
|
|
279
|
-
* 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.
|
|
283
|
+
* Delete Device
|
|
280
284
|
* @param {String} projectOrProductUID
|
|
281
285
|
* @param {String} deviceUID
|
|
282
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -290,7 +294,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
290
294
|
}
|
|
291
295
|
|
|
292
296
|
/**
|
|
293
|
-
* Delete environment variable
|
|
297
|
+
* Delete a device environment variable
|
|
298
|
+
* 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.
|
|
294
299
|
* @param {String} projectOrProductUID
|
|
295
300
|
* @param {String} deviceUID
|
|
296
301
|
* @param {String} key The environment variable key to delete.
|
|
@@ -328,7 +333,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
333
|
}
|
|
329
334
|
|
|
330
335
|
/**
|
|
331
|
-
* Delete environment variable
|
|
336
|
+
* Delete a device environment variable
|
|
337
|
+
* 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.
|
|
332
338
|
* @param {String} projectOrProductUID
|
|
333
339
|
* @param {String} deviceUID
|
|
334
340
|
* @param {String} key The environment variable key to delete.
|
|
@@ -343,11 +349,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
343
349
|
}
|
|
344
350
|
|
|
345
351
|
/**
|
|
346
|
-
* Delete a note
|
|
352
|
+
* Delete a note
|
|
353
|
+
* Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
|
|
347
354
|
* @param {String} projectOrProductUID
|
|
348
355
|
* @param {String} deviceUID
|
|
349
|
-
* @param {String} notefileID
|
|
350
|
-
* @param {String} noteID
|
|
356
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
357
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
351
358
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
352
359
|
*/
|
|
353
360
|
}, {
|
|
@@ -387,11 +394,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
387
394
|
}
|
|
388
395
|
|
|
389
396
|
/**
|
|
390
|
-
* Delete a note
|
|
397
|
+
* Delete a note
|
|
398
|
+
* Delete one note from a notefile on a device. To delete whole notefiles, use `DeleteNotefiles`. Requires the Owner or Developer role.
|
|
391
399
|
* @param {String} projectOrProductUID
|
|
392
400
|
* @param {String} deviceUID
|
|
393
|
-
* @param {String} notefileID
|
|
394
|
-
* @param {String} noteID
|
|
401
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
402
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
395
403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
396
404
|
*/
|
|
397
405
|
}, {
|
|
@@ -403,10 +411,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
403
411
|
}
|
|
404
412
|
|
|
405
413
|
/**
|
|
406
|
-
*
|
|
414
|
+
* Delete notefiles
|
|
415
|
+
* 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.
|
|
407
416
|
* @param {String} projectOrProductUID
|
|
408
417
|
* @param {String} deviceUID
|
|
409
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
418
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
|
|
410
419
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
411
420
|
*/
|
|
412
421
|
}, {
|
|
@@ -440,10 +449,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
440
449
|
}
|
|
441
450
|
|
|
442
451
|
/**
|
|
443
|
-
*
|
|
452
|
+
* Delete notefiles
|
|
453
|
+
* 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.
|
|
444
454
|
* @param {String} projectOrProductUID
|
|
445
455
|
* @param {String} deviceUID
|
|
446
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
456
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest The notefiles to delete.
|
|
447
457
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
448
458
|
*/
|
|
449
459
|
}, {
|
|
@@ -455,8 +465,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
455
465
|
}
|
|
456
466
|
|
|
457
467
|
/**
|
|
458
|
-
* Disable
|
|
459
|
-
* 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.
|
|
468
|
+
* Disable Device
|
|
460
469
|
* @param {String} projectOrProductUID
|
|
461
470
|
* @param {String} deviceUID
|
|
462
471
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -488,8 +497,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
488
497
|
}
|
|
489
498
|
|
|
490
499
|
/**
|
|
491
|
-
* Disable
|
|
492
|
-
* 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.
|
|
500
|
+
* Disable Device
|
|
493
501
|
* @param {String} projectOrProductUID
|
|
494
502
|
* @param {String} deviceUID
|
|
495
503
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -503,8 +511,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
503
511
|
}
|
|
504
512
|
|
|
505
513
|
/**
|
|
506
|
-
* Enable
|
|
507
|
-
* 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.
|
|
514
|
+
* Enable Device
|
|
508
515
|
* @param {String} projectOrProductUID
|
|
509
516
|
* @param {String} deviceUID
|
|
510
517
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -536,8 +543,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
536
543
|
}
|
|
537
544
|
|
|
538
545
|
/**
|
|
539
|
-
* Enable
|
|
540
|
-
* 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.
|
|
546
|
+
* Enable Device
|
|
541
547
|
* @param {String} projectOrProductUID
|
|
542
548
|
* @param {String} deviceUID
|
|
543
549
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -551,14 +557,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
551
557
|
}
|
|
552
558
|
|
|
553
559
|
/**
|
|
554
|
-
* Get a note
|
|
560
|
+
* Get a note
|
|
561
|
+
* 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.
|
|
555
562
|
* @param {String} projectOrProductUID
|
|
556
563
|
* @param {String} deviceUID
|
|
557
|
-
* @param {String} notefileID
|
|
558
|
-
* @param {String} noteID
|
|
564
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
565
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
559
566
|
* @param {Object} opts Optional parameters
|
|
560
|
-
* @param {Boolean} opts._delete
|
|
561
|
-
* @param {Boolean} opts.deleted
|
|
567
|
+
* @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
|
|
568
|
+
* @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
|
|
562
569
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
|
|
563
570
|
*/
|
|
564
571
|
}, {
|
|
@@ -602,14 +609,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
602
609
|
}
|
|
603
610
|
|
|
604
611
|
/**
|
|
605
|
-
* Get a note
|
|
612
|
+
* Get a note
|
|
613
|
+
* 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.
|
|
606
614
|
* @param {String} projectOrProductUID
|
|
607
615
|
* @param {String} deviceUID
|
|
608
|
-
* @param {String} notefileID
|
|
609
|
-
* @param {String} noteID
|
|
616
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
617
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
610
618
|
* @param {Object} opts Optional parameters
|
|
611
|
-
* @param {Boolean} opts._delete
|
|
612
|
-
* @param {Boolean} opts.deleted
|
|
619
|
+
* @param {Boolean} opts._delete If true, delete the note after returning it. Requires the Owner or Developer role.
|
|
620
|
+
* @param {Boolean} opts.deleted If true, also return the note if it has been deleted.
|
|
613
621
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
|
|
614
622
|
*/
|
|
615
623
|
}, {
|
|
@@ -621,8 +629,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
621
629
|
}
|
|
622
630
|
|
|
623
631
|
/**
|
|
624
|
-
* Get
|
|
625
|
-
* 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`.
|
|
632
|
+
* Get Device
|
|
626
633
|
* @param {String} projectOrProductUID
|
|
627
634
|
* @param {String} deviceUID
|
|
628
635
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
@@ -654,8 +661,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
654
661
|
}
|
|
655
662
|
|
|
656
663
|
/**
|
|
657
|
-
* Get
|
|
658
|
-
* 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`.
|
|
664
|
+
* Get Device
|
|
659
665
|
* @param {String} projectOrProductUID
|
|
660
666
|
* @param {String} deviceUID
|
|
661
667
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
@@ -669,7 +675,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
669
675
|
}
|
|
670
676
|
|
|
671
677
|
/**
|
|
672
|
-
* Get environment
|
|
678
|
+
* Get a device's environment hierarchy
|
|
679
|
+
* 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`.
|
|
673
680
|
* @param {String} projectOrProductUID
|
|
674
681
|
* @param {String} deviceUID
|
|
675
682
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
@@ -701,7 +708,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
701
708
|
}
|
|
702
709
|
|
|
703
710
|
/**
|
|
704
|
-
* Get environment
|
|
711
|
+
* Get a device's environment hierarchy
|
|
712
|
+
* 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`.
|
|
705
713
|
* @param {String} projectOrProductUID
|
|
706
714
|
* @param {String} deviceUID
|
|
707
715
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
@@ -715,7 +723,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
715
723
|
}
|
|
716
724
|
|
|
717
725
|
/**
|
|
718
|
-
* Get environment variables
|
|
726
|
+
* Get device environment variables
|
|
727
|
+
* 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`.
|
|
719
728
|
* @param {String} projectOrProductUID
|
|
720
729
|
* @param {String} deviceUID
|
|
721
730
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
@@ -747,7 +756,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
747
756
|
}
|
|
748
757
|
|
|
749
758
|
/**
|
|
750
|
-
* Get environment variables
|
|
759
|
+
* Get device environment variables
|
|
760
|
+
* 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`.
|
|
751
761
|
* @param {String} projectOrProductUID
|
|
752
762
|
* @param {String} deviceUID
|
|
753
763
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
@@ -761,10 +771,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
761
771
|
}
|
|
762
772
|
|
|
763
773
|
/**
|
|
764
|
-
* Get environment variables
|
|
774
|
+
* Get device environment variables using a PIN
|
|
775
|
+
* 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.
|
|
765
776
|
* @param {String} productUID
|
|
766
777
|
* @param {String} deviceUID
|
|
767
|
-
* @param {String} xAuthToken
|
|
778
|
+
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
768
779
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
769
780
|
*/
|
|
770
781
|
}, {
|
|
@@ -800,10 +811,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
800
811
|
}
|
|
801
812
|
|
|
802
813
|
/**
|
|
803
|
-
* Get environment variables
|
|
814
|
+
* Get device environment variables using a PIN
|
|
815
|
+
* 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.
|
|
804
816
|
* @param {String} productUID
|
|
805
817
|
* @param {String} deviceUID
|
|
806
|
-
* @param {String} xAuthToken
|
|
818
|
+
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
807
819
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
808
820
|
*/
|
|
809
821
|
}, {
|
|
@@ -815,14 +827,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
827
|
}
|
|
816
828
|
|
|
817
829
|
/**
|
|
818
|
-
* Get
|
|
819
|
-
* Get a device's health log: timestamped status messages such as restarts and completed firmware updates. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400.
|
|
830
|
+
* Get Device Health Log
|
|
820
831
|
* @param {String} projectOrProductUID
|
|
821
832
|
* @param {String} deviceUID
|
|
822
833
|
* @param {Object} opts Optional parameters
|
|
823
834
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
824
835
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
825
|
-
* @param {Array.<module:model/String>} opts.logType Return only
|
|
836
|
+
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
826
837
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
827
838
|
*/
|
|
828
839
|
}, {
|
|
@@ -857,14 +868,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
857
868
|
}
|
|
858
869
|
|
|
859
870
|
/**
|
|
860
|
-
* Get
|
|
861
|
-
* Get a device's health log: timestamped status messages such as restarts and completed firmware updates. To filter by date, pass both `startDate` and `endDate`; `startDate` alone returns 400.
|
|
871
|
+
* Get Device Health Log
|
|
862
872
|
* @param {String} projectOrProductUID
|
|
863
873
|
* @param {String} deviceUID
|
|
864
874
|
* @param {Object} opts Optional parameters
|
|
865
875
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
866
876
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
867
|
-
* @param {Array.<module:model/String>} opts.logType Return only
|
|
877
|
+
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
868
878
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
869
879
|
*/
|
|
870
880
|
}, {
|
|
@@ -876,8 +886,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
876
886
|
}
|
|
877
887
|
|
|
878
888
|
/**
|
|
879
|
-
* Get a journey
|
|
880
|
-
* 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.
|
|
889
|
+
* Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
|
|
881
890
|
* @param {String} projectOrProductUID
|
|
882
891
|
* @param {String} deviceUID
|
|
883
892
|
* @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).
|
|
@@ -922,8 +931,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
922
931
|
}
|
|
923
932
|
|
|
924
933
|
/**
|
|
925
|
-
* Get a journey
|
|
926
|
-
* 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.
|
|
934
|
+
* Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
|
|
927
935
|
* @param {String} projectOrProductUID
|
|
928
936
|
* @param {String} deviceUID
|
|
929
937
|
* @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).
|
|
@@ -941,8 +949,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
941
949
|
}
|
|
942
950
|
|
|
943
951
|
/**
|
|
944
|
-
*
|
|
945
|
-
* 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.
|
|
952
|
+
* Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
|
|
946
953
|
* @param {String} projectOrProductUID
|
|
947
954
|
* @param {String} deviceUID
|
|
948
955
|
* @param {Object} opts Optional parameters
|
|
@@ -981,8 +988,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
981
988
|
}
|
|
982
989
|
|
|
983
990
|
/**
|
|
984
|
-
*
|
|
985
|
-
* 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.
|
|
991
|
+
* Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
|
|
986
992
|
* @param {String} projectOrProductUID
|
|
987
993
|
* @param {String} deviceUID
|
|
988
994
|
* @param {Object} opts Optional parameters
|
|
@@ -999,8 +1005,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
999
1005
|
}
|
|
1000
1006
|
|
|
1001
1007
|
/**
|
|
1002
|
-
* Get
|
|
1003
|
-
* 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.
|
|
1008
|
+
* Get Device Latest Events
|
|
1004
1009
|
* @param {String} projectOrProductUID
|
|
1005
1010
|
* @param {String} deviceUID
|
|
1006
1011
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
@@ -1032,8 +1037,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1032
1037
|
}
|
|
1033
1038
|
|
|
1034
1039
|
/**
|
|
1035
|
-
* Get
|
|
1036
|
-
* 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.
|
|
1040
|
+
* Get Device Latest Events
|
|
1037
1041
|
* @param {String} projectOrProductUID
|
|
1038
1042
|
* @param {String} deviceUID
|
|
1039
1043
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
@@ -1047,8 +1051,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1047
1051
|
}
|
|
1048
1052
|
|
|
1049
1053
|
/**
|
|
1050
|
-
* Get
|
|
1051
|
-
* 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.
|
|
1054
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
1052
1055
|
* @param {String} projectOrProductUID
|
|
1053
1056
|
* @param {String} deviceUID
|
|
1054
1057
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
@@ -1080,8 +1083,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1080
1083
|
}
|
|
1081
1084
|
|
|
1082
1085
|
/**
|
|
1083
|
-
* Get
|
|
1084
|
-
* 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.
|
|
1086
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
1085
1087
|
* @param {String} projectOrProductUID
|
|
1086
1088
|
* @param {String} deviceUID
|
|
1087
1089
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
@@ -1095,8 +1097,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1095
1097
|
}
|
|
1096
1098
|
|
|
1097
1099
|
/**
|
|
1098
|
-
* Get
|
|
1099
|
-
* Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
|
|
1100
|
+
* Get Device Public Key
|
|
1100
1101
|
* @param {String} projectOrProductUID
|
|
1101
1102
|
* @param {String} deviceUID
|
|
1102
1103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
@@ -1128,8 +1129,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
|
|
1130
1131
|
/**
|
|
1131
|
-
* Get
|
|
1132
|
-
* Get one Notecard's public key, in PEM format. For every device in the project, use `GetDevicePublicKeys`.
|
|
1132
|
+
* Get Device Public Key
|
|
1133
1133
|
* @param {String} projectOrProductUID
|
|
1134
1134
|
* @param {String} deviceUID
|
|
1135
1135
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
@@ -1143,8 +1143,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
1145
|
/**
|
|
1146
|
-
*
|
|
1147
|
-
* 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`.
|
|
1146
|
+
* Get Device Public Keys of a Project
|
|
1148
1147
|
* @param {String} projectOrProductUID
|
|
1149
1148
|
* @param {Object} opts Optional parameters
|
|
1150
1149
|
* @param {Number} opts.pageSize (default to 1000)
|
|
@@ -1179,8 +1178,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1179
1178
|
}
|
|
1180
1179
|
|
|
1181
1180
|
/**
|
|
1182
|
-
*
|
|
1183
|
-
* 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`.
|
|
1181
|
+
* Get Device Public Keys of a Project
|
|
1184
1182
|
* @param {String} projectOrProductUID
|
|
1185
1183
|
* @param {Object} opts Optional parameters
|
|
1186
1184
|
* @param {Number} opts.pageSize (default to 1000)
|
|
@@ -1197,8 +1195,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1197
1195
|
}
|
|
1198
1196
|
|
|
1199
1197
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
* 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. Paginated.
|
|
1198
|
+
* Get Device Sessions
|
|
1202
1199
|
* @param {String} projectOrProductUID
|
|
1203
1200
|
* @param {String} deviceUID
|
|
1204
1201
|
* @param {Object} opts Optional parameters
|
|
@@ -1207,7 +1204,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1207
1204
|
* @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).
|
|
1208
1205
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1209
1206
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1210
|
-
* @param {Boolean} opts.firstSync
|
|
1207
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1211
1208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
1212
1209
|
*/
|
|
1213
1210
|
}, {
|
|
@@ -1245,8 +1242,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1245
1242
|
}
|
|
1246
1243
|
|
|
1247
1244
|
/**
|
|
1248
|
-
*
|
|
1249
|
-
* 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. Paginated.
|
|
1245
|
+
* Get Device Sessions
|
|
1250
1246
|
* @param {String} projectOrProductUID
|
|
1251
1247
|
* @param {String} deviceUID
|
|
1252
1248
|
* @param {Object} opts Optional parameters
|
|
@@ -1255,7 +1251,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1255
1251
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
1256
1252
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1257
1253
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1258
|
-
* @param {Boolean} opts.firstSync
|
|
1254
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1259
1255
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
1260
1256
|
*/
|
|
1261
1257
|
}, {
|
|
@@ -1267,8 +1263,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1267
1263
|
}
|
|
1268
1264
|
|
|
1269
1265
|
/**
|
|
1270
|
-
*
|
|
1271
|
-
* 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.
|
|
1266
|
+
* Get Devices of a Project
|
|
1272
1267
|
* @param {String} projectOrProductUID
|
|
1273
1268
|
* @param {Object} opts Optional parameters
|
|
1274
1269
|
* @param {Number} opts.pageSize (default to 1000)
|
|
@@ -1321,8 +1316,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1321
1316
|
}
|
|
1322
1317
|
|
|
1323
1318
|
/**
|
|
1324
|
-
*
|
|
1325
|
-
* 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.
|
|
1319
|
+
* Get Devices of a Project
|
|
1326
1320
|
* @param {String} projectOrProductUID
|
|
1327
1321
|
* @param {Object} opts Optional parameters
|
|
1328
1322
|
* @param {Number} opts.pageSize (default to 1000)
|
|
@@ -1348,8 +1342,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1348
1342
|
}
|
|
1349
1343
|
|
|
1350
1344
|
/**
|
|
1351
|
-
*
|
|
1352
|
-
* 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.
|
|
1345
|
+
* Get Devices of a Fleet within a Project
|
|
1353
1346
|
* @param {String} projectOrProductUID
|
|
1354
1347
|
* @param {String} fleetUID
|
|
1355
1348
|
* @param {Object} opts Optional parameters
|
|
@@ -1406,8 +1399,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1406
1399
|
}
|
|
1407
1400
|
|
|
1408
1401
|
/**
|
|
1409
|
-
*
|
|
1410
|
-
* 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.
|
|
1402
|
+
* Get Devices of a Fleet within a Project
|
|
1411
1403
|
* @param {String} projectOrProductUID
|
|
1412
1404
|
* @param {String} fleetUID
|
|
1413
1405
|
* @param {Object} opts Optional parameters
|
|
@@ -1433,14 +1425,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1433
1425
|
}
|
|
1434
1426
|
|
|
1435
1427
|
/**
|
|
1436
|
-
*
|
|
1428
|
+
* Get the notes in a notefile
|
|
1429
|
+
* 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.
|
|
1437
1430
|
* @param {String} projectOrProductUID
|
|
1438
1431
|
* @param {String} deviceUID
|
|
1439
|
-
* @param {String} notefileID
|
|
1432
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1440
1433
|
* @param {Object} opts Optional parameters
|
|
1441
|
-
* @param {Number} opts.max The
|
|
1442
|
-
* @param {Boolean} opts.deleted true
|
|
1443
|
-
* @param {Boolean} opts._delete true
|
|
1434
|
+
* @param {Number} opts.max The most notes to return.
|
|
1435
|
+
* @param {Boolean} opts.deleted If true, also return deleted notes.
|
|
1436
|
+
* @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
|
|
1444
1437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
|
|
1445
1438
|
*/
|
|
1446
1439
|
}, {
|
|
@@ -1480,14 +1473,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1480
1473
|
}
|
|
1481
1474
|
|
|
1482
1475
|
/**
|
|
1483
|
-
*
|
|
1476
|
+
* Get the notes in a notefile
|
|
1477
|
+
* 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.
|
|
1484
1478
|
* @param {String} projectOrProductUID
|
|
1485
1479
|
* @param {String} deviceUID
|
|
1486
|
-
* @param {String} notefileID
|
|
1480
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1487
1481
|
* @param {Object} opts Optional parameters
|
|
1488
|
-
* @param {Number} opts.max The
|
|
1489
|
-
* @param {Boolean} opts.deleted true
|
|
1490
|
-
* @param {Boolean} opts._delete true
|
|
1482
|
+
* @param {Number} opts.max The most notes to return.
|
|
1483
|
+
* @param {Boolean} opts.deleted If true, also return deleted notes.
|
|
1484
|
+
* @param {Boolean} opts._delete If true, delete the notes this request returns. Requires the Owner or Developer role.
|
|
1491
1485
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
|
|
1492
1486
|
*/
|
|
1493
1487
|
}, {
|
|
@@ -1499,11 +1493,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1499
1493
|
}
|
|
1500
1494
|
|
|
1501
1495
|
/**
|
|
1502
|
-
*
|
|
1496
|
+
* List a device's notefiles and notes
|
|
1497
|
+
* 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`.
|
|
1503
1498
|
* @param {String} projectOrProductUID
|
|
1504
1499
|
* @param {String} deviceUID
|
|
1505
1500
|
* @param {Object} opts Optional parameters
|
|
1506
|
-
* @param {Array.<String>} opts.files
|
|
1501
|
+
* @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
|
|
1507
1502
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1508
1503
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
|
|
1509
1504
|
*/
|
|
@@ -1538,11 +1533,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1538
1533
|
}
|
|
1539
1534
|
|
|
1540
1535
|
/**
|
|
1541
|
-
*
|
|
1536
|
+
* List a device's notefiles and notes
|
|
1537
|
+
* 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`.
|
|
1542
1538
|
* @param {String} projectOrProductUID
|
|
1543
1539
|
* @param {String} deviceUID
|
|
1544
1540
|
* @param {Object} opts Optional parameters
|
|
1545
|
-
* @param {Array.<String>} opts.files
|
|
1541
|
+
* @param {Array.<String>} opts.files Notefiles to include, e.g. `config.db`. If omitted, all are listed.
|
|
1546
1542
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
1547
1543
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
|
|
1548
1544
|
*/
|
|
@@ -1555,11 +1551,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1555
1551
|
}
|
|
1556
1552
|
|
|
1557
1553
|
/**
|
|
1558
|
-
* Provision a
|
|
1559
|
-
* 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.
|
|
1554
|
+
* Provision Device for a Project
|
|
1560
1555
|
* @param {String} projectOrProductUID
|
|
1561
1556
|
* @param {String} deviceUID
|
|
1562
|
-
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest
|
|
1557
|
+
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1563
1558
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1564
1559
|
*/
|
|
1565
1560
|
}, {
|
|
@@ -1593,11 +1588,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1593
1588
|
}
|
|
1594
1589
|
|
|
1595
1590
|
/**
|
|
1596
|
-
* Provision a
|
|
1597
|
-
* 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.
|
|
1591
|
+
* Provision Device for a Project
|
|
1598
1592
|
* @param {String} projectOrProductUID
|
|
1599
1593
|
* @param {String} deviceUID
|
|
1600
|
-
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest
|
|
1594
|
+
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1601
1595
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1602
1596
|
*/
|
|
1603
1597
|
}, {
|
|
@@ -1609,10 +1603,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1609
1603
|
}
|
|
1610
1604
|
|
|
1611
1605
|
/**
|
|
1612
|
-
* Set environment variables
|
|
1606
|
+
* Set device environment variables
|
|
1607
|
+
* 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.
|
|
1613
1608
|
* @param {String} projectOrProductUID
|
|
1614
1609
|
* @param {String} deviceUID
|
|
1615
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1610
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1616
1611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1617
1612
|
*/
|
|
1618
1613
|
}, {
|
|
@@ -1646,10 +1641,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1646
1641
|
}
|
|
1647
1642
|
|
|
1648
1643
|
/**
|
|
1649
|
-
* Set environment variables
|
|
1644
|
+
* Set device environment variables
|
|
1645
|
+
* 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.
|
|
1650
1646
|
* @param {String} projectOrProductUID
|
|
1651
1647
|
* @param {String} deviceUID
|
|
1652
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1648
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1653
1649
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1654
1650
|
*/
|
|
1655
1651
|
}, {
|
|
@@ -1661,11 +1657,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1661
1657
|
}
|
|
1662
1658
|
|
|
1663
1659
|
/**
|
|
1664
|
-
* Set environment variables
|
|
1660
|
+
* Set device environment variables using a PIN
|
|
1661
|
+
* 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.
|
|
1665
1662
|
* @param {String} productUID
|
|
1666
1663
|
* @param {String} deviceUID
|
|
1667
|
-
* @param {String} xAuthToken
|
|
1668
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1664
|
+
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
1665
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1669
1666
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1670
1667
|
*/
|
|
1671
1668
|
}, {
|
|
@@ -1705,11 +1702,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1705
1702
|
}
|
|
1706
1703
|
|
|
1707
1704
|
/**
|
|
1708
|
-
* Set environment variables
|
|
1705
|
+
* Set device environment variables using a PIN
|
|
1706
|
+
* 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.
|
|
1709
1707
|
* @param {String} productUID
|
|
1710
1708
|
* @param {String} deviceUID
|
|
1711
|
-
* @param {String} xAuthToken
|
|
1712
|
-
* @param {module:model/EnvironmentVariables} environmentVariables
|
|
1709
|
+
* @param {String} xAuthToken The device's PIN, used instead of an API token.
|
|
1710
|
+
* @param {module:model/EnvironmentVariables} environmentVariables The variables to add or change, and optional notes.
|
|
1713
1711
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1714
1712
|
*/
|
|
1715
1713
|
}, {
|
|
@@ -1721,11 +1719,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1721
1719
|
}
|
|
1722
1720
|
|
|
1723
1721
|
/**
|
|
1724
|
-
* Send a signal to a
|
|
1725
|
-
* 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.
|
|
1722
|
+
* Send a signal from Notehub to a Notecard.
|
|
1726
1723
|
* @param {String} projectOrProductUID
|
|
1727
1724
|
* @param {String} deviceUID
|
|
1728
|
-
* @param {module:model/Body} body
|
|
1725
|
+
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1729
1726
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1730
1727
|
*/
|
|
1731
1728
|
}, {
|
|
@@ -1759,11 +1756,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1759
1756
|
}
|
|
1760
1757
|
|
|
1761
1758
|
/**
|
|
1762
|
-
* Send a signal to a
|
|
1763
|
-
* 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.
|
|
1759
|
+
* Send a signal from Notehub to a Notecard.
|
|
1764
1760
|
* @param {String} projectOrProductUID
|
|
1765
1761
|
* @param {String} deviceUID
|
|
1766
|
-
* @param {module:model/Body} body
|
|
1762
|
+
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1767
1763
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1768
1764
|
*/
|
|
1769
1765
|
}, {
|
|
@@ -1775,11 +1771,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1771
|
}
|
|
1776
1772
|
|
|
1777
1773
|
/**
|
|
1778
|
-
* Update a note in a .db
|
|
1774
|
+
* Update a note in a .db notefile
|
|
1775
|
+
* 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.
|
|
1779
1776
|
* @param {String} projectOrProductUID
|
|
1780
1777
|
* @param {String} deviceUID
|
|
1781
|
-
* @param {String} notefileID
|
|
1782
|
-
* @param {String} noteID
|
|
1778
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1779
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
1783
1780
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1784
1781
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1785
1782
|
*/
|
|
@@ -1824,11 +1821,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1824
1821
|
}
|
|
1825
1822
|
|
|
1826
1823
|
/**
|
|
1827
|
-
* Update a note in a .db
|
|
1824
|
+
* Update a note in a .db notefile
|
|
1825
|
+
* 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.
|
|
1828
1826
|
* @param {String} projectOrProductUID
|
|
1829
1827
|
* @param {String} deviceUID
|
|
1830
|
-
* @param {String} notefileID
|
|
1831
|
-
* @param {String} noteID
|
|
1828
|
+
* @param {String} notefileID Notefile name, including its extension, e.g. `config.db` or `commands.qi`.
|
|
1829
|
+
* @param {String} noteID Note ID within the notefile, e.g. `my_note`. Notes in a `.qi` notefile have IDs like `1:435`.
|
|
1832
1830
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1833
1831
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1834
1832
|
*/
|