Directory
Directory interface for managing addresses
This is the public API contract for address directory functionality. It provides access to addresses, loading capabilities, and search functionality.
Extends
AddressProvider<Address>(seeAddress)
Properties
addresses
Current snapshot of all addresses in the directory
addresses$
Observable stream of all addresses in the directory Emits a new array whenever addresses are added, removed, or updated
hasMore$
Observable indicating whether more addresses can be loaded from the server
loading
Whether the directory is currently loading.
loading$
Observable indicating the current loading state Emits true when loading, false when idle
Methods
findAddressIdByURI()
Find an address ID by searching for a name
Parameters
uri
The address name to search for
Returns
Promise<string | undefined>
Promise resolving to the address ID, or undefined if not found
get()
Get a specific address by ID
Parameters
addressId
The address ID to retrieve
Returns
Address | undefined
The address instance, or undefined if not found
get$()
Get an observable stream for a specific address by ID
Parameters
id
The address ID to retrieve
Returns
Observable<Address> | undefined
Observable of the address, or undefined if not found
Inherited from
AddressProvider.get$
loadMore()
Load more addresses from the server
Only loads if hasMore is true
Returns
void