BookingsApi
Defined in: packages/sdk/src/resources/BookingsApi.ts:10
Cal.com-backed bookings widget. enable flips the feature on +
stores the merchant’s Cal username; disable flips it back off
(Cal account stays intact — Vantage just stops embedding it).
Extends
Section titled “Extends”Resource
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BookingsApi(
opts):BookingsApi
Defined in: packages/sdk/src/request.ts:93
Parameters
Section titled “Parameters”Returns
Section titled “Returns”BookingsApi
Inherited from
Section titled “Inherited from”Resource.constructor
Methods
Section titled “Methods”disable()
Section titled “disable()”disable(
websiteId):Promise<{website:Website; }>
Defined in: packages/sdk/src/resources/BookingsApi.ts:17
Parameters
Section titled “Parameters”websiteId
Section titled “websiteId”string
Returns
Section titled “Returns”Promise<{ website: Website; }>
enable()
Section titled “enable()”enable(
websiteId,input):Promise<{calUsername:string;publicUrl:string;website:Website; }>
Defined in: packages/sdk/src/resources/BookingsApi.ts:11
Parameters
Section titled “Parameters”websiteId
Section titled “websiteId”string
brandColor?
Section titled “brandColor?”string
calUsername
Section titled “calUsername”string
Returns
Section titled “Returns”Promise<{ calUsername: string; publicUrl: string; website: Website; }>