import { InquiryType } from '../../src/common/enums/inquiry-type.enum'; export interface TestClientConfig { clientId: string; apiKey: string; providerBaseUrl: string; credentials: Record; requiresVpn: boolean; allowedInquiries: InquiryType[]; } export function createClientConfig( overrides: Partial = {}, ): TestClientConfig { return { clientId: 'default-client', apiKey: 'test-api-key', providerBaseUrl: 'https://provider.test', credentials: { username: 'provider-user', password: 'provider-password', }, requiresVpn: false, allowedInquiries: Object.values(InquiryType), ...overrides, }; } export function resolveClientConfig( clients: TestClientConfig[], clientId: string, ): TestClientConfig { const client = clients.find((candidate) => candidate.clientId === clientId); if (!client) { throw new Error(`No test client config found for ${clientId}`); } return client; }