Builds a facade manager bound to the given API client; facades it returns share this reference, and the backing registry is the client's own — a caller can no longer pair a manager with a foreign registry.
Classic API client.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Optionalinstance: ClassicDevice<T>
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Optionalinstance: ClassicFloor | ClassicArea<number | null>
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Optionalinstance: ClassicBuilding
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Optionalinstance: ClassicDeviceAny
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the cached facade for the given model, lazily creating one
on first access; passing undefined returns null.
Optionalinstance: BaseModel
Registry model to wrap, or undefined.
The facade, or null when no instance was supplied.
Returns the registry's hierarchical building zone tree, optionally filtered to a single device type.
Optionalparams: { type?: ClassicDeviceType }
Optional filter.
Optionaltype?: ClassicDeviceTypeRestrict to a single device type.
The building zone tree.
Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.
Registry collection to look in.
Entity identifier.
The facade, or null when the id is unknown.
Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.
Registry collection to look in.
Entity identifier.
The facade, or null when the id is unknown.
Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.
Registry collection to look in.
Entity identifier.
The facade, or null when the id is unknown.
Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.
Registry collection to look in.
Entity identifier.
The facade, or null when the id is unknown.
Returns the flattened list of every registry zone (buildings, floors, areas, devices), optionally filtered to a single device type.
Optionalparams: { type?: ClassicDeviceType }
Optional filter.
Optionaltype?: ClassicDeviceTypeRestrict to a single device type.
Every zone, name-sorted.
Lazily creates and caches facade instances using a WeakMap keyed by model reference. Ensures each model instance maps to exactly one facade throughout its lifetime.