@yoshteq/ti365-ts-sdk
    Preparing search index...

    Class VzdService

    Service for interacting with the TI-VZD (Telematik Infrastructure Directory Service). Provides methods to search and retrieve entries from the directory service using both structured queries and raw LDAP queries. Includes caching functionality for frequently accessed entries.

    The service handles connection management, query construction, and result mapping for directory service operations. It implements caching to improve performance for repeated lookups.

    Index

    Methods

    • escape a search string to prevent LDAP-injection

      Parameters

      • value: string

        the search string to be escaped

      Returns string

      the escaped string

    • Searches the VZD directory using a raw LDAP query string.

      Parameters

      • query: string

        The raw LDAP query string

      • Optionaloptions: VzdLdapSearchOptions

        Optional search parameters like attributes and timeout

      Returns Promise<VzdEntry[]>

      A Promise that resolves to an array of matching VZD entries

    • Fetches a VZD entry by email address with optional caching.

      Parameters

      • mailAddress: string

        The email address to search for

      • noCache: boolean = false

        If true, bypasses the cache and performs a fresh search

      Returns Promise<undefined | VzdEntry>

      A Promise that resolves to the found VZD entry or undefined

    • Fetches multiple VZD entries by their email addresses.

      Parameters

      • mails: string[]

        Array of email addresses to search for

      Returns Promise<VzdEntry[]>

      A Promise that resolves to an array of found VZD entries