interface DeviceQuery {
    amount?: number;
    fields?: ("type" | "id" | "active" | "network" | "name" | "visible" | "description" | "created_at" | "profile" | "updated_at" | "tags" | "connector" | "last_input" | "bucket" | "payload_decoder" | "rpm")[];
    filter?: RecursivePartial<DeviceInfo>;
    orderBy?: ["active" | "name" | "visible" | "created_at" | "updated_at" | "last_input", "desc" | "asc"];
    page?: number;
    resolveBucketName?: boolean;
    resolveConnectorName?: boolean;
    serial?: string;
}

Hierarchy (view full)

  • Query<DeviceInfo, "name" | "visible" | "active" | "last_input" | "created_at" | "updated_at">
    • DeviceQuery

Properties

amount?: number

Amount of items will return.

fields?: ("type" | "id" | "active" | "network" | "name" | "visible" | "description" | "created_at" | "profile" | "updated_at" | "tags" | "connector" | "last_input" | "bucket" | "payload_decoder" | "rpm")[]

Array of field names.

Filter object.

orderBy?: ["active" | "name" | "visible" | "created_at" | "updated_at" | "last_input", "desc" | "asc"]

Tuple with a field and an order

page?: number

Page of list starting from 1

resolveBucketName?: boolean
resolveConnectorName?: boolean
serial?: string