Service for Client entity

Constructors

Methods

  • Finds a client by its ID.

    Parameters

    • id: number

      The ID to find the client.

    Returns Promise<null | Client>

    The found client.

  • Deletes an existing client.

    Parameters

    • id: number

      The ID to find the client to delete.

    Returns Promise<void>

    Void.

  • Updates an existing client.

    Parameters

    • id: number

      The ID to find the client to update.

    • data: Partial<Client>

      The data to update the client with.

    Returns Promise<null | Client>

    The updated client.