@orchestree/scheduling
v1.2.0
Published
Scheduling module — Calendar views, booking pages, team scheduling, availability
Maintainers
Readme
@orchestree/scheduling
Calendar and booking management for Orchestree. Schedule events, find availability, and manage bookings across multiple calendars.
Installation
npm install @orchestree/schedulingQuick Start
const { SchedulingClient } = require('@orchestree/scheduling');
const client = new SchedulingClient({
apiKey: 'your-api-key',
});
// Create event
const event = await client.createEvent({
title: 'Team Standup',
startTime: '2024-04-15T10:00:00Z',
endTime: '2024-04-15T10:30:00Z',
attendees: ['[email protected]'],
});
// Check availability
const availability = await client.getAvailability('user-123', {
startDate: '2024-04-15',
endDate: '2024-04-20',
});
// Create booking page
const bookingPage = await client.createBookingPage({
title: 'One-on-One',
duration: 30,
});API Reference
SchedulingClient
createEvent(eventDef)
Create a calendar event.
const event = await client.createEvent({
title: 'Meeting',
startTime: '2024-04-15T14:00:00Z',
endTime: '2024-04-15T15:00:00Z',
attendees: ['[email protected]'],
});getAvailability(userId, dateRange)
Get user availability.
const availability = await client.getAvailability('user-123', {
startDate: '2024-04-15',
endDate: '2024-04-22',
});createBookingPage(bookingDef)
Create a booking page.
const page = await client.createBookingPage({
title: 'Consultation',
duration: 60,
});findFreeSlots(userId, duration, dateRange)
Find available time slots.
const slots = await client.findFreeSlots('user-123', 30, {
startDate: '2024-04-15',
endDate: '2024-04-22',
});License
MIT
