import type { ApiClient } from '../../core/ApiClient' import type { HasCreate } from '../../core/types' import type { ClientFeedback, CreateClientFeedbackPayload } from './types' export class ClientFeedbackApi implements HasCreate { private readonly client: ApiClient private readonly basePath = '/client-feedback' constructor(client: ApiClient) { this.client = client } /** Creates a client feedback record for a ticket (accountId, ticketId, and feedback text are required). */ create( body: CreateClientFeedbackPayload, headers?: Record, ): Promise { return this.client.post( this.basePath, body, headers, ) } }