<?php

declare(strict_types=1);

namespace ApiModel\Domain\Repository;

interface ContactRepositoryInterface
{
    public function findById(string $id): ?array;

    public function findByTaxId(string $companyId, string $taxId): ?array;

    /** @return list<array<string, mixed>> */
    public function listByCompany(string $companyId, ?string $type = null): array;

    public function insert(
        string $id,
        string $companyId,
        string $type,
        string $name,
        ?string $taxId,
        ?string $email,
        ?string $phone,
        ?string $address
    ): void;

    public function update(
        string $id,
        string $type,
        string $name,
        ?string $taxId,
        ?string $email,
        ?string $phone,
        ?string $address,
        bool $isActive
    ): void;

    public function delete(string $id): void;
}
