Skip to content

Commit

Permalink
Merge pull request #118 from tago-io/SRV-172_Device_Serial_find
Browse files Browse the repository at this point in the history
Created a route to get a list of devices by serial and network id
  • Loading branch information
FabianoEger authored Sep 24, 2024
2 parents 70bdbac + 24dccbe commit f392772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/Resources/Devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class Devices extends TagoIOModule<GenericModuleParams> {
orderBy: queryObj?.orderBy ? `${queryObj.orderBy[0]},${queryObj.orderBy[1]}` : "name,asc",
resolveBucketName: queryObj?.resolveBucketName || false,
resolveConnectorName: queryObj?.resolveConnectorName || false,
serial: queryObj?.serial,
},
});

Expand Down
1 change: 1 addition & 0 deletions src/modules/Resources/devices.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface DeviceQuery
extends Query<DeviceInfo, "name" | "visible" | "active" | "last_input" | "created_at" | "updated_at"> {
resolveBucketName?: boolean;
resolveConnectorName?: boolean;
serial?: string;
}

interface DeviceCreateInfoBasic {
Expand Down

0 comments on commit f392772

Please sign in to comment.