interface ContactsModule {
    addContactToGroup(command): Promise<void>;
    addNewEmailAddress(command): Promise<string>;
    addNewPhoneNumber(command): Promise<string>;
    createAddressBook(command): Promise<string>;
    createNewContact(command): Promise<string>;
    createNewGroup(command): Promise<string>;
    listAddressBooks(webId): Promise<AddressBookLists>;
    readAddressBook(uri): Promise<AddressBook>;
    readContact(uri): Promise<FullContact>;
    readGroup(uri): Promise<FullGroup>;
    removeContactFromGroup(command): Promise<void>;
    removeEmailAddress(command): Promise<void>;
    removePhoneNumber(command): Promise<void>;
    renameContact(command): Promise<void>;
}

Implemented by

Methods

  • Adds a new email address to the given contact

    Parameters

    Returns Promise<string>

    The URI of the newly created email address resource

  • Adds a new phone number to the given contact

    Parameters

    Returns Promise<string>

    The URI of the newly created phone number resource

  • Creates a new address book in the given container

    Parameters

    Returns Promise<string>

    The URI of the newly created address book

  • Creates a new contact within a given address book

    Parameters

    Returns Promise<string>

    The URI of the newly created contact

  • Creates a new group within a given address book

    Parameters

    Returns Promise<string>

    The URI of the newly created group

  • Lists all known address books of the given Solid user. Private instances will only be listed, if the fetcher has access to the preferences document and the private type index, otherwise only public instances will be returned and the privateUris will be an empty array.

    Parameters

    • webId: string

      The WebID of the user whose address books to list

    Returns Promise<AddressBookLists>

    The URIs of the address books grouped by public (listed) and private (unlisted) instances

  • Fetch the index data of address book identified by the given URI

    Parameters

    • uri: string

      The URI of the address book to read

    Returns Promise<AddressBook>

    The address book title and all known people and groups in that address book

  • Fetches the given contact and returns available information

    Parameters

    • uri: string

      The URI of the contact to read

    Returns Promise<FullContact>

    FullContact name, email addresses and phone numbers

  • Fetches the given group and returns available information

    Parameters

    • uri: string

      The URI of the contact to read

    Returns Promise<FullGroup>

    FullGroup name and list of group members

  • Removes the given email address from the given contact

    Parameters

    Returns Promise<void>

  • Removes the given phone number from the given contact

    Parameters

    Returns Promise<void>

  • Changes the name of the given contact to a new value

    Parameters

    Returns Promise<void>

Generated using TypeDoc