Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/cal-com

src/get-event-type.js

15 lines · 575 B · JavaScript
import { getEventType } from './cal-com.js'

/**
 * Read one Cal.com event type by id.
 * @param {Object} input
 * @param {number|string} input.id Event type id (`eventTypeId` accepted as alias).
 * @returns {Promise<Record<string, unknown>>} Event type detail payload.
 * @example
 * import getEventType from 'kody:@kody/cal-com/get-event-type'
 * const result = await getEventType({ eventTypeId: 123 })
 * // => { id: 123, title: '30 Min Meeting', length: 30, ... }
 */
export default async function getEventTypeEntrypoint(input = {}) {
	return await getEventType(input)
}