@lautmaler/crm-connectors
Version:
Provides connectors to various CRM systems and calendar services.
22 lines • 1.25 kB
TypeScript
import { Appointment, CRMBackend, HubSpotApiResponse } from "../crm.interfaces.js";
export declare class HubSpotBackend implements CRMBackend {
private logger;
private hubspotApiKey;
private calenderBackend;
private hubspotOwners;
private employee;
constructor(backend?: string, hubspotOwners?: any[], employee?: string);
private getHeaders;
fetchAvailableSlots(timestamp: string, attendees: string[]): Promise<string[]>;
fetchAppointmentTypes(): Promise<string[]>;
getContactIdByName(contactName: string): Promise<string | null>;
createContact(contactName: string): Promise<string>;
appointmentCreationCall(appointment: Appointment, contactId: string, timestampMs: number, employee: any): Promise<HubSpotApiResponse>;
bookAppointment(appointment: Appointment): Promise<string>;
modifyAppointment(id: string, updatedInfo: Partial<Appointment>): Promise<Appointment>;
findAppointmentByContactName(name: string): Promise<Appointment>;
findAppointmentByTimestamp(timestamp: string): Promise<Appointment | null>;
findAppointmentById(id: string): Promise<Appointment | null>;
createEventToSms(appointment: Appointment): Promise<string>;
}
//# sourceMappingURL=HubspotBackend.d.ts.map