UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

54 lines (49 loc) 1.47 kB
/** * Google Calendar Node - Version 1.1 * Discriminator: resource=calendar, operation=availability */ interface Credentials { googleCalendarOAuth2Api: CredentialReference; } /** If a time-slot is available in a calendar */ export type GoogleCalendarV11CalendarAvailabilityParams = { resource: 'calendar'; operation: 'availability'; /** * Google Calendar to operate on * @default {"mode":"list","value":""} */ calendar?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Start of the interval */ timeMin?: string | Expression<string>; /** * End of the interval */ timeMax?: string | Expression<string>; /** * Options * @default {} */ options?: { /** The format to return the data in * @default availability */ outputFormat?: 'availability' | 'bookedSlots' | 'raw' | Expression<string>; /** Time zone used in the response. By default n8n timezone is used. * @default {"mode":"list","value":""} */ timezone?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; }; }; export type GoogleCalendarV11CalendarAvailabilityOutput = { available?: boolean; }; export type GoogleCalendarV11CalendarAvailabilityNode = { type: 'n8n-nodes-base.googleCalendar'; version: 1.1; credentials?: Credentials; config: NodeConfig<GoogleCalendarV11CalendarAvailabilityParams>; output?: Items<GoogleCalendarV11CalendarAvailabilityOutput>; };