From 20d76556c28d163b0b666b3edb78ad30159b0bea Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Wed, 26 Mar 2025 17:09:39 -0300 Subject: [PATCH] Add explicit read properties for device command Change-tye: minor --- src/commands/device/index.ts | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/src/commands/device/index.ts b/src/commands/device/index.ts index 53e6c7bb..4d421b3f 100644 --- a/src/commands/device/index.ts +++ b/src/commands/device/index.ts @@ -81,6 +81,64 @@ export default class DeviceCmd extends Command { params.uuid, options.json ? { + $select: [ + 'id', + 'belongs_to__application', + 'belongs_to__user', + 'actor', + 'is_pinned_on__release', + 'device_name', + 'is_of__device_type', + 'uuid', + 'is_running__release', + 'note', + 'local_id', + 'status', + 'update_status', + 'last_update_status_event', + 'is_online', + 'last_connectivity_event', + 'is_connected_to_vpn', + 'last_vpn_event', + 'ip_address', + 'mac_address', + 'public_address', + 'os_version', + 'os_variant', + 'supervisor_version', + 'should_be_managed_by__release', + 'should_be_operated_by__release', + 'is_managed_by__service_instance', + 'provisioning_progress', + 'provisioning_state', + 'download_progress', + 'is_web_accessible', + 'longitude', + 'latitude', + 'location', + 'custom_longitude', + 'custom_latitude', + 'is_locked_until__date', + 'is_accessible_by_support_until__date', + 'created_at', + 'modified_at', + 'is_active', + 'api_heartbeat_state', + 'changed_api_heartbeat_state_on__date', + 'memory_usage', + 'memory_total', + 'storage_block_device', + 'storage_usage', + 'storage_total', + 'cpu_temp', + 'cpu_usage', + 'cpu_id', + 'is_undervolted', + // explicit read + 'overall_status', + 'overall_progress', + 'should_be_running__release', + ], $expand: { device_tag: { $select: ['tag_key', 'value'],