@blues-inc/notehub-js 6.7.0 → 7.0.0
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 +154 -150
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +12 -7
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +277 -134
- package/dist/api/EventApi.js +67 -200
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +259 -165
- package/dist/api/RouteApi.js +54 -39
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +73 -63
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +91 -63
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +14 -9
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +14 -4
- 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 +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +3 -1
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +36 -8
- package/dist/model/DeviceDfuHistory.js +12 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +14 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +12 -3
- package/dist/model/DeviceDfuStatusPage.js +14 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- 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 +16 -7
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +14 -1
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +14 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -1
- package/dist/model/GetDeviceSessions200Response.js +14 -1
- package/dist/model/GetDevices200Response.js +14 -1
- package/dist/model/GetEvents200Response.js +14 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +13 -7
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +60 -14
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +207 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
- package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
- package/dist/model/SkillSummary.js +205 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +153 -0
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- 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/TwilioNotification.js +167 -0
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +4 -4
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/LoginRequest.js +0 -103
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The DeleteJob200Response model module.
|
|
31
31
|
* @module model/DeleteJob200Response
|
|
32
|
-
* @version
|
|
32
|
+
* @version 7.0.0
|
|
33
33
|
*/
|
|
34
34
|
var DeleteJob200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeleteNotefilesRequest model module.
|
|
28
28
|
* @module model/DeleteNotefilesRequest
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0
|
|
30
30
|
*/
|
|
31
31
|
var DeleteNotefilesRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -85,7 +85,7 @@ var DeleteNotefilesRequest = /*#__PURE__*/function () {
|
|
|
85
85
|
}]);
|
|
86
86
|
}();
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Names of the notefiles to delete, e.g. `config.db`.
|
|
89
89
|
* @member {Array.<String>} files
|
|
90
90
|
*/
|
|
91
91
|
DeleteNotefilesRequest.prototype["files"] = undefined;
|
|
@@ -29,20 +29,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The DescriptionRecord model module.
|
|
31
31
|
* @module model/DescriptionRecord
|
|
32
|
-
* @version
|
|
32
|
+
* @version 7.0.0
|
|
33
33
|
*/
|
|
34
34
|
var DescriptionRecord = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>DescriptionRecord</code>.
|
|
37
37
|
* Metadata for a stored description record. The content itself is returned by GET on the record.
|
|
38
38
|
* @alias module:model/DescriptionRecord
|
|
39
|
-
* @param contentType {String} The
|
|
39
|
+
* @param contentType {String} The Content-Type served on GET, as sent when the record was stored or detected from its content.
|
|
40
40
|
* @param createdAt {Number} When the record was first created (Unix seconds).
|
|
41
41
|
* @param length {Number} The content length in bytes.
|
|
42
42
|
* @param md5 {String} The hex-encoded MD5 of the content.
|
|
43
43
|
* @param modifiedAt {Number} When the record was last updated (Unix seconds).
|
|
44
44
|
* @param name {String} The record name (letters, digits, '.', '_' or '-').
|
|
45
|
-
* @param scope {String}
|
|
45
|
+
* @param scope {String} Where the record is stored. - `project`: in one project - `global`: platform-wide, readable by every signed-in user
|
|
46
46
|
*/
|
|
47
47
|
function DescriptionRecord(contentType, createdAt, length, md5, modifiedAt, name, scope) {
|
|
48
48
|
_classCallCheck(this, DescriptionRecord);
|
|
@@ -172,7 +172,7 @@ var DescriptionRecord = /*#__PURE__*/function () {
|
|
|
172
172
|
DescriptionRecord.RequiredProperties = ["content_type", "created_at", "length", "md5", "modified_at", "name", "scope"];
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
|
-
* The
|
|
175
|
+
* The Content-Type served on GET, as sent when the record was stored or detected from its content.
|
|
176
176
|
* @member {String} content_type
|
|
177
177
|
*/
|
|
178
178
|
DescriptionRecord.prototype["content_type"] = undefined;
|
|
@@ -220,13 +220,13 @@ DescriptionRecord.prototype["modified_by"] = undefined;
|
|
|
220
220
|
DescriptionRecord.prototype["name"] = undefined;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* ProjectUID of the owning project, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`. Empty for a global record.
|
|
224
224
|
* @member {String} owner_uid
|
|
225
225
|
*/
|
|
226
226
|
DescriptionRecord.prototype["owner_uid"] = undefined;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* Where the record is stored. - `project`: in one project - `global`: platform-wide, readable by every signed-in user
|
|
230
230
|
* @member {String} scope
|
|
231
231
|
*/
|
|
232
232
|
DescriptionRecord.prototype["scope"] = undefined;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DescriptionRecordList model module.
|
|
32
32
|
* @module model/DescriptionRecordList
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0
|
|
34
34
|
*/
|
|
35
35
|
var DescriptionRecordList = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/Device.js
CHANGED
|
@@ -36,18 +36,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
36
36
|
/**
|
|
37
37
|
* The Device model module.
|
|
38
38
|
* @module model/Device
|
|
39
|
-
* @version
|
|
39
|
+
* @version 7.0.0
|
|
40
40
|
*/
|
|
41
41
|
var Device = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
|
43
43
|
* Constructs a new <code>Device</code>.
|
|
44
|
+
* A device in a project. `best_location` is the best of `gps_location`, `triangulated_location` and `tower_location`; each is null when unknown.
|
|
44
45
|
* @alias module:model/Device
|
|
45
|
-
* @param fleetUids {Array.<String>}
|
|
46
|
-
* @param productUid {String}
|
|
47
|
-
* @param provisioned {Date}
|
|
48
|
-
* @param temperature {Number}
|
|
49
|
-
* @param uid {String}
|
|
50
|
-
* @param voltage {Number}
|
|
46
|
+
* @param fleetUids {Array.<String>} FleetUIDs of the fleets the device is in.
|
|
47
|
+
* @param productUid {String} ProductUID the device uses, e.g. `com.blues.bridge:sensors`.
|
|
48
|
+
* @param provisioned {Date} When the device was added to the project.
|
|
49
|
+
* @param temperature {Number} Last reported Notecard temperature, in degrees Celsius.
|
|
50
|
+
* @param uid {String} DeviceUID, e.g. `dev:864475040509284`.
|
|
51
|
+
* @param voltage {Number} Last reported supply voltage, in volts.
|
|
51
52
|
*/
|
|
52
53
|
function Device(fleetUids, productUid, provisioned, temperature, uid, voltage) {
|
|
53
54
|
_classCallCheck(this, Device);
|
|
@@ -94,6 +95,9 @@ var Device = /*#__PURE__*/function () {
|
|
|
94
95
|
if (data.hasOwnProperty("contact")) {
|
|
95
96
|
obj["contact"] = _Contact["default"].constructFromObject(data["contact"]);
|
|
96
97
|
}
|
|
98
|
+
if (data.hasOwnProperty("deleted")) {
|
|
99
|
+
obj["deleted"] = _ApiClient["default"].convertToType(data["deleted"], "Boolean");
|
|
100
|
+
}
|
|
97
101
|
if (data.hasOwnProperty("dfu")) {
|
|
98
102
|
obj["dfu"] = _DFUEnv["default"].constructFromObject(data["dfu"]);
|
|
99
103
|
}
|
|
@@ -345,7 +349,7 @@ var Device = /*#__PURE__*/function () {
|
|
|
345
349
|
Device.RequiredProperties = ["fleet_uids", "product_uid", "provisioned", "temperature", "uid", "voltage"];
|
|
346
350
|
|
|
347
351
|
/**
|
|
348
|
-
* The
|
|
352
|
+
* The serial number if set, otherwise the DeviceUID. Use it as a display name.
|
|
349
353
|
* @member {String} best_id
|
|
350
354
|
*/
|
|
351
355
|
Device.prototype["best_id"] = undefined;
|
|
@@ -365,27 +369,37 @@ Device.prototype["cellular_usage"] = undefined;
|
|
|
365
369
|
*/
|
|
366
370
|
Device.prototype["contact"] = undefined;
|
|
367
371
|
|
|
372
|
+
/**
|
|
373
|
+
* True if this device has been deleted. Only present when reading with a `cursor`.
|
|
374
|
+
* @member {Boolean} deleted
|
|
375
|
+
*/
|
|
376
|
+
Device.prototype["deleted"] = undefined;
|
|
377
|
+
|
|
368
378
|
/**
|
|
369
379
|
* @member {module:model/DFUEnv} dfu
|
|
370
380
|
*/
|
|
371
381
|
Device.prototype["dfu"] = undefined;
|
|
372
382
|
|
|
373
383
|
/**
|
|
384
|
+
* True if the device was disabled with `DisableDevice` and can't connect.
|
|
374
385
|
* @member {Boolean} disabled
|
|
375
386
|
*/
|
|
376
387
|
Device.prototype["disabled"] = undefined;
|
|
377
388
|
|
|
378
389
|
/**
|
|
390
|
+
* Host firmware version, as reported by the device. Usually a JSON string.
|
|
379
391
|
* @member {String} firmware_host
|
|
380
392
|
*/
|
|
381
393
|
Device.prototype["firmware_host"] = undefined;
|
|
382
394
|
|
|
383
395
|
/**
|
|
396
|
+
* Notecard firmware version, as reported by the device.
|
|
384
397
|
* @member {String} firmware_notecard
|
|
385
398
|
*/
|
|
386
399
|
Device.prototype["firmware_notecard"] = undefined;
|
|
387
400
|
|
|
388
401
|
/**
|
|
402
|
+
* FleetUIDs of the fleets the device is in.
|
|
389
403
|
* @member {Array.<String>} fleet_uids
|
|
390
404
|
*/
|
|
391
405
|
Device.prototype["fleet_uids"] = undefined;
|
|
@@ -396,41 +410,49 @@ Device.prototype["fleet_uids"] = undefined;
|
|
|
396
410
|
Device.prototype["gps_location"] = undefined;
|
|
397
411
|
|
|
398
412
|
/**
|
|
413
|
+
* Not returned by `GetDevice`, `GetDevices` or `GetFleetDevices`; use `GetDeviceHealthLog`.
|
|
399
414
|
* @member {Array.<module:model/HealthLog>} health_log
|
|
400
415
|
*/
|
|
401
416
|
Device.prototype["health_log"] = undefined;
|
|
402
417
|
|
|
403
418
|
/**
|
|
419
|
+
* When the device was last active in a session. Null if it has never connected.
|
|
404
420
|
* @member {Date} last_activity
|
|
405
421
|
*/
|
|
406
422
|
Device.prototype["last_activity"] = undefined;
|
|
407
423
|
|
|
408
424
|
/**
|
|
425
|
+
* ProductUID the device uses, e.g. `com.blues.bridge:sensors`.
|
|
409
426
|
* @member {String} product_uid
|
|
410
427
|
*/
|
|
411
428
|
Device.prototype["product_uid"] = undefined;
|
|
412
429
|
|
|
413
430
|
/**
|
|
431
|
+
* When the device was added to the project.
|
|
414
432
|
* @member {Date} provisioned
|
|
415
433
|
*/
|
|
416
434
|
Device.prototype["provisioned"] = undefined;
|
|
417
435
|
|
|
418
436
|
/**
|
|
437
|
+
* Not returned by `GetDevice`, `GetDevices` or `GetFleetDevices`.
|
|
419
438
|
* @member {Array.<Number>} recent_event_count
|
|
420
439
|
*/
|
|
421
440
|
Device.prototype["recent_event_count"] = undefined;
|
|
422
441
|
|
|
423
442
|
/**
|
|
443
|
+
* Not returned by `GetDevice`, `GetDevices` or `GetFleetDevices`.
|
|
424
444
|
* @member {Array.<Number>} recent_session_count
|
|
425
445
|
*/
|
|
426
446
|
Device.prototype["recent_session_count"] = undefined;
|
|
427
447
|
|
|
428
448
|
/**
|
|
449
|
+
* Not returned by `GetDevice`, `GetDevices` or `GetFleetDevices`.
|
|
429
450
|
* @member {Array.<Number>} recent_session_seconds
|
|
430
451
|
*/
|
|
431
452
|
Device.prototype["recent_session_seconds"] = undefined;
|
|
432
453
|
|
|
433
454
|
/**
|
|
455
|
+
* Not returned by `GetDevice`, `GetDevices` or `GetFleetDevices`.
|
|
434
456
|
* @member {Date} recent_when
|
|
435
457
|
*/
|
|
436
458
|
Device.prototype["recent_when"] = undefined;
|
|
@@ -441,21 +463,25 @@ Device.prototype["recent_when"] = undefined;
|
|
|
441
463
|
Device.prototype["sensors"] = undefined;
|
|
442
464
|
|
|
443
465
|
/**
|
|
466
|
+
* Serial number, from the `_sn` environment variable if set. Empty if none.
|
|
444
467
|
* @member {String} serial_number
|
|
445
468
|
*/
|
|
446
469
|
Device.prototype["serial_number"] = undefined;
|
|
447
470
|
|
|
448
471
|
/**
|
|
472
|
+
* Notecard SKU, e.g. `NOTE-WBNAW`.
|
|
449
473
|
* @member {String} sku
|
|
450
474
|
*/
|
|
451
475
|
Device.prototype["sku"] = undefined;
|
|
452
476
|
|
|
453
477
|
/**
|
|
478
|
+
* Comma-separated tags, from the `_tags` environment variable. Empty if none.
|
|
454
479
|
* @member {String} tags
|
|
455
480
|
*/
|
|
456
481
|
Device.prototype["tags"] = undefined;
|
|
457
482
|
|
|
458
483
|
/**
|
|
484
|
+
* Last reported Notecard temperature, in degrees Celsius.
|
|
459
485
|
* @member {Number} temperature
|
|
460
486
|
*/
|
|
461
487
|
Device.prototype["temperature"] = undefined;
|
|
@@ -476,11 +502,13 @@ Device.prototype["tower_location"] = undefined;
|
|
|
476
502
|
Device.prototype["triangulated_location"] = undefined;
|
|
477
503
|
|
|
478
504
|
/**
|
|
505
|
+
* DeviceUID, e.g. `dev:864475040509284`.
|
|
479
506
|
* @member {String} uid
|
|
480
507
|
*/
|
|
481
508
|
Device.prototype["uid"] = undefined;
|
|
482
509
|
|
|
483
510
|
/**
|
|
511
|
+
* Last reported supply voltage, in volts.
|
|
484
512
|
* @member {Number} voltage
|
|
485
513
|
*/
|
|
486
514
|
Device.prototype["voltage"] = undefined;
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The DeviceDfuHistory model module.
|
|
33
33
|
* @module model/DeviceDfuHistory
|
|
34
|
-
* @version
|
|
34
|
+
* @version 7.0.0
|
|
35
35
|
*/
|
|
36
36
|
var DeviceDfuHistory = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -67,6 +67,9 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
|
|
|
67
67
|
if (data.hasOwnProperty("current")) {
|
|
68
68
|
obj["current"] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data["current"]);
|
|
69
69
|
}
|
|
70
|
+
if (data.hasOwnProperty("deleted")) {
|
|
71
|
+
obj["deleted"] = _ApiClient["default"].convertToType(data["deleted"], "Boolean");
|
|
72
|
+
}
|
|
70
73
|
if (data.hasOwnProperty("device_uid")) {
|
|
71
74
|
obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
|
|
72
75
|
}
|
|
@@ -126,12 +129,19 @@ var DeviceDfuHistory = /*#__PURE__*/function () {
|
|
|
126
129
|
DeviceDfuHistory.prototype["current"] = undefined;
|
|
127
130
|
|
|
128
131
|
/**
|
|
129
|
-
*
|
|
132
|
+
* True if this device has been deleted. Only present when reading with a `cursor`.
|
|
133
|
+
* @member {Boolean} deleted
|
|
134
|
+
*/
|
|
135
|
+
DeviceDfuHistory.prototype["deleted"] = undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* DeviceUID
|
|
130
139
|
* @member {String} device_uid
|
|
131
140
|
*/
|
|
132
141
|
DeviceDfuHistory.prototype["device_uid"] = undefined;
|
|
133
142
|
|
|
134
143
|
/**
|
|
144
|
+
* Every firmware update requested for this device, newest first.
|
|
135
145
|
* @member {Array.<module:model/DeviceDfuStateMachine>} history
|
|
136
146
|
*/
|
|
137
147
|
DeviceDfuHistory.prototype["history"] = undefined;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceDfuHistoryCurrent model module.
|
|
28
28
|
* @module model/DeviceDfuHistoryCurrent
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0
|
|
30
30
|
*/
|
|
31
31
|
var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -151,7 +151,7 @@ DeviceDfuHistoryCurrent.prototype["organization"] = undefined;
|
|
|
151
151
|
DeviceDfuHistoryCurrent.prototype["product"] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* Firmware version
|
|
154
|
+
* Firmware version the device runs, or `Unknown (device has not fully sync'd)`.
|
|
155
155
|
* @member {String} version
|
|
156
156
|
*/
|
|
157
157
|
DeviceDfuHistoryCurrent.prototype["version"] = undefined;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuHistoryPage model module.
|
|
32
32
|
* @module model/DeviceDfuHistoryPage
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuHistoryPage = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -69,6 +69,9 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
|
|
|
69
69
|
if (data.hasOwnProperty("has_more")) {
|
|
70
70
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
71
71
|
}
|
|
72
|
+
if (data.hasOwnProperty("next_cursor")) {
|
|
73
|
+
obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
|
|
74
|
+
}
|
|
72
75
|
} else if (data === null) {
|
|
73
76
|
return null;
|
|
74
77
|
}
|
|
@@ -103,6 +106,10 @@ var DeviceDfuHistoryPage = /*#__PURE__*/function () {
|
|
|
103
106
|
_iterator.f();
|
|
104
107
|
}
|
|
105
108
|
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
|
|
112
|
+
}
|
|
106
113
|
return true;
|
|
107
114
|
}
|
|
108
115
|
}]);
|
|
@@ -117,4 +124,10 @@ DeviceDfuHistoryPage.prototype["devices"] = undefined;
|
|
|
117
124
|
* @default false
|
|
118
125
|
*/
|
|
119
126
|
DeviceDfuHistoryPage.prototype["has_more"] = false;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Pass this value (epoch microseconds, optionally `.N`) as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
130
|
+
* @member {String} next_cursor
|
|
131
|
+
*/
|
|
132
|
+
DeviceDfuHistoryPage.prototype["next_cursor"] = undefined;
|
|
120
133
|
var _default = exports["default"] = DeviceDfuHistoryPage;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuStateMachine model module.
|
|
32
32
|
* @module model/DeviceDfuStateMachine
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuStateMachine = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -145,6 +145,7 @@ DeviceDfuStateMachine.prototype["initiated"] = undefined;
|
|
|
145
145
|
DeviceDfuStateMachine.prototype["requested_version"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
+
* Status updates reported for this firmware update.
|
|
148
149
|
* @member {Array.<module:model/DeviceDfuStateMachineNode>} updates
|
|
149
150
|
*/
|
|
150
151
|
DeviceDfuStateMachine.prototype["updates"] = undefined;
|
|
@@ -26,12 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceDfuStateMachineNode model module.
|
|
28
28
|
* @module model/DeviceDfuStateMachineNode
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0
|
|
30
30
|
*/
|
|
31
31
|
var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>DeviceDfuStateMachineNode</code>.
|
|
34
|
-
*
|
|
34
|
+
* One status update in a host or Notecard firmware update.
|
|
35
35
|
* @alias module:model/DeviceDfuStateMachineNode
|
|
36
36
|
*/
|
|
37
37
|
function DeviceDfuStateMachineNode() {
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DeviceDfuStatus model module.
|
|
30
30
|
* @module model/DeviceDfuStatus
|
|
31
|
-
* @version
|
|
31
|
+
* @version 7.0.0
|
|
32
32
|
*/
|
|
33
33
|
var DeviceDfuStatus = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -64,6 +64,9 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
|
|
|
64
64
|
if (data.hasOwnProperty("current")) {
|
|
65
65
|
obj["current"] = _DeviceDfuHistoryCurrent["default"].constructFromObject(data["current"]);
|
|
66
66
|
}
|
|
67
|
+
if (data.hasOwnProperty("deleted")) {
|
|
68
|
+
obj["deleted"] = _ApiClient["default"].convertToType(data["deleted"], "Boolean");
|
|
69
|
+
}
|
|
67
70
|
if (data.hasOwnProperty("device_uid")) {
|
|
68
71
|
obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
|
|
69
72
|
}
|
|
@@ -111,13 +114,19 @@ var DeviceDfuStatus = /*#__PURE__*/function () {
|
|
|
111
114
|
DeviceDfuStatus.prototype["current"] = undefined;
|
|
112
115
|
|
|
113
116
|
/**
|
|
114
|
-
*
|
|
117
|
+
* True if this device has been deleted. Only present when reading with a `cursor`.
|
|
118
|
+
* @member {Boolean} deleted
|
|
119
|
+
*/
|
|
120
|
+
DeviceDfuStatus.prototype["deleted"] = undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* DeviceUID
|
|
115
124
|
* @member {String} device_uid
|
|
116
125
|
*/
|
|
117
126
|
DeviceDfuStatus.prototype["device_uid"] = undefined;
|
|
118
127
|
|
|
119
128
|
/**
|
|
120
|
-
* true
|
|
129
|
+
* `true` while the device's latest firmware update hasn't finished.
|
|
121
130
|
* @member {Boolean} dfu_in_progress
|
|
122
131
|
*/
|
|
123
132
|
DeviceDfuStatus.prototype["dfu_in_progress"] = undefined;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuStatusPage model module.
|
|
32
32
|
* @module model/DeviceDfuStatusPage
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuStatusPage = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -69,6 +69,9 @@ var DeviceDfuStatusPage = /*#__PURE__*/function () {
|
|
|
69
69
|
if (data.hasOwnProperty("has_more")) {
|
|
70
70
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
71
71
|
}
|
|
72
|
+
if (data.hasOwnProperty("next_cursor")) {
|
|
73
|
+
obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
|
|
74
|
+
}
|
|
72
75
|
} else if (data === null) {
|
|
73
76
|
return null;
|
|
74
77
|
}
|
|
@@ -103,6 +106,10 @@ var DeviceDfuStatusPage = /*#__PURE__*/function () {
|
|
|
103
106
|
_iterator.f();
|
|
104
107
|
}
|
|
105
108
|
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
|
|
112
|
+
}
|
|
106
113
|
return true;
|
|
107
114
|
}
|
|
108
115
|
}]);
|
|
@@ -117,4 +124,10 @@ DeviceDfuStatusPage.prototype["devices"] = undefined;
|
|
|
117
124
|
* @default false
|
|
118
125
|
*/
|
|
119
126
|
DeviceDfuStatusPage.prototype["has_more"] = false;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Pass this value (epoch microseconds, optionally `.N`) as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
130
|
+
* @member {String} next_cursor
|
|
131
|
+
*/
|
|
132
|
+
DeviceDfuStatusPage.prototype["next_cursor"] = undefined;
|
|
120
133
|
var _default = exports["default"] = DeviceDfuStatusPage;
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DeviceSession model module.
|
|
30
30
|
* @module model/DeviceSession
|
|
31
|
-
* @version
|
|
31
|
+
* @version 7.0.0
|
|
32
32
|
*/
|
|
33
33
|
var DeviceSession = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -382,7 +382,7 @@ DeviceSession.prototype["cell"] = undefined;
|
|
|
382
382
|
DeviceSession.prototype["continuous"] = undefined;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
*
|
|
385
|
+
* DeviceUID
|
|
386
386
|
* @member {String} device
|
|
387
387
|
*/
|
|
388
388
|
DeviceSession.prototype["device"] = undefined;
|
|
@@ -400,7 +400,7 @@ DeviceSession.prototype["events"] = undefined;
|
|
|
400
400
|
DeviceSession.prototype["failed_connects"] = undefined;
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Array of
|
|
403
|
+
* Array of FleetUIDs
|
|
404
404
|
* @member {Array.<String>} fleets
|
|
405
405
|
*/
|
|
406
406
|
DeviceSession.prototype["fleets"] = undefined;
|
|
@@ -488,7 +488,7 @@ DeviceSession.prototype["power_primary"] = undefined;
|
|
|
488
488
|
DeviceSession.prototype["power_usb"] = undefined;
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
|
-
*
|
|
491
|
+
* ProductUID
|
|
492
492
|
* @member {String} product
|
|
493
493
|
*/
|
|
494
494
|
DeviceSession.prototype["product"] = undefined;
|
|
@@ -519,7 +519,7 @@ DeviceSession.prototype["rssi"] = undefined;
|
|
|
519
519
|
DeviceSession.prototype["scan"] = undefined;
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
|
-
*
|
|
522
|
+
* SessionUID
|
|
523
523
|
* @member {String} session
|
|
524
524
|
*/
|
|
525
525
|
DeviceSession.prototype["session"] = undefined;
|
|
@@ -26,11 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceTowerInfo model module.
|
|
28
28
|
* @module model/DeviceTowerInfo
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0
|
|
30
30
|
*/
|
|
31
31
|
var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>DeviceTowerInfo</code>.
|
|
34
|
+
* The cell tower the device last used. Null if unknown.
|
|
34
35
|
* @alias module:model/DeviceTowerInfo
|
|
35
36
|
*/
|
|
36
37
|
function DeviceTowerInfo() {
|
|
@@ -90,21 +91,25 @@ var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
|
90
91
|
}]);
|
|
91
92
|
}();
|
|
92
93
|
/**
|
|
94
|
+
* Cell ID.
|
|
93
95
|
* @member {Number} cell_id
|
|
94
96
|
*/
|
|
95
97
|
DeviceTowerInfo.prototype["cell_id"] = undefined;
|
|
96
98
|
|
|
97
99
|
/**
|
|
100
|
+
* Location area code.
|
|
98
101
|
* @member {Number} lac
|
|
99
102
|
*/
|
|
100
103
|
DeviceTowerInfo.prototype["lac"] = undefined;
|
|
101
104
|
|
|
102
105
|
/**
|
|
106
|
+
* Mobile country code.
|
|
103
107
|
* @member {Number} mcc
|
|
104
108
|
*/
|
|
105
109
|
DeviceTowerInfo.prototype["mcc"] = undefined;
|
|
106
110
|
|
|
107
111
|
/**
|
|
112
|
+
* Mobile network code.
|
|
108
113
|
* @member {Number} mnc
|
|
109
114
|
*/
|
|
110
115
|
DeviceTowerInfo.prototype["mnc"] = undefined;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DfuActionRequest model module.
|
|
28
28
|
* @module model/DfuActionRequest
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0
|
|
30
30
|
*/
|
|
31
31
|
var DfuActionRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -85,7 +85,7 @@ var DfuActionRequest = /*#__PURE__*/function () {
|
|
|
85
85
|
}]);
|
|
86
86
|
}();
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Stored firmware filename to install, as listed by `GetFirmwareInfo`. Required for `update`; ignored for `cancel`.
|
|
89
89
|
* @member {String} filename
|
|
90
90
|
*/
|
|
91
91
|
DfuActionRequest.prototype["filename"] = undefined;
|