* move types to types file * Create salesforce routing form components * Save salesforce data to routing form * Fixes * Add event type service * Change commenting * Pass data from routing form to CRM * Init Salesforce routing form booking form handler * Salesforce find user associated with lookup field * Add looking up the contact owner * If salesforce is disabled then don't change the Salesforce option * Small refactor * Refactor getting event type app metadata * Refactor eventType service * Type fix * Clean up * Add translations Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com> --------- Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com>
15 lines
482 B
TypeScript
15 lines
482 B
TypeScript
import routingFormBookingFormHandler from "../salesforce/lib/routingFormBookingFormHandler";
|
|
import type { AttributeRoutingConfig } from "./types/types";
|
|
|
|
type AppBookingFormHandler = (
|
|
attendeeEmail: string,
|
|
attributeRoutingConfig: AttributeRoutingConfig,
|
|
eventTypeId: number
|
|
) => Promise<{ email: string | null }>;
|
|
|
|
const appBookingFormHandler: Record<string, AppBookingFormHandler> = {
|
|
salesforce: routingFormBookingFormHandler,
|
|
};
|
|
|
|
export default appBookingFormHandler;
|