import { hubspot } from "@hubspot/ui-extensions";

export const createHubspotContact = async (params: {
  firstname?: string;
  lastname?: string;
  email: string;
  cuil: string;
  phone?: string;
  emailType?: string;
  emailStatusArca?: string;
  phoneType?: string;
  mobilePhone?: string;
  whatsapp?: string;
}) => {
  const response = await hubspot.serverless('create_contact_function', {
    parameters: params,
  });

  return response;
};