Interface PlaceModuleQueryOptions

Mapping of available query parameters for the modules index endpoint

interface PlaceModuleQueryOptions {
    _poll?: boolean;
    as_of?: number;
    cache?: number;
    connected?: boolean;
    control_system_id?: string;
    driver_id?: string;
    fields?: string;
    limit?: number;
    no_logic?: boolean;
    offset?: number;
    q?: string;
    ref?: string;
    running?: boolean;
}

Hierarchy (View Summary)

Properties

_poll?: boolean

Whether the request is a API poll request

as_of?: number

Only return modules updated before this time (unix epoch)

cache?: number

Number of milliseconds to cache the query response

connected?: boolean

Return results that connected state matches this value

control_system_id?: string

Only return modules running in this system (query params are ignored if this is provided)

driver_id?: string

Only return instances of this driver

fields?: string

Ignored by the server since PlaceOS moved search to PostgreSQL (PPT-2644)

limit?: number

Number of results to return. Defaults to 20. Max 10000

no_logic?: boolean

Do not return logic modules (return only modules that can exist in multiple systems)

offset?: number

Offset of the results to return. Max 1000000

q?: string

Free-text search filter. Words match as prefixes against the resource's searchable fields (PostgreSQL full-text search); all words must match.

ref?: string

Ignored by the server; pagination follows the Link header's offset

running?: boolean

Return only running modules