Kind: Class
Source: Outlook_plugin/src/calendar/calendar.model.ts (line 207)
Part of: Calendar
Simplified class for creating calendar events
CreateEventRequest is a request model for calendar event creation in the Outlook plugin. It carries event data from calendar-facing code to the event creation flow.
Properties
| Property | Type |
|---|---|
subject | string |
start | `{ dateTime: string |
end | `{ dateTime: string |
body | `{ contentType?: 'text' |
location | { displayName: string; address?: { street?: string; city?: string; state?: string; postalCode?: string; countryOrRegion?: string; }; } |
attendees | `{ emailAddress: { address: string; name?: string; }; type?: 'required' |
isAllDay | boolean |
importance | `'low' |
showAs | `'free' |
sensitivity | `'normal' |
reminderMinutesBeforeStart | number |
isReminderOn | boolean |
categories | string[] |
isOnlineMeeting | boolean |
onlineMeetingProvider | `'teamsForBusiness' |
allowNewTimeProposals | boolean |
responseRequested | boolean |
recurrence | `{ pattern: { type: 'daily' |
Diagram
mermaidgraph LR Client[Calendar UI or command] --> Request[CreateEventRequest] Request --> CalendarFlow[Calendar event creation flow] CalendarFlow --> Outlook[Outlook calendar]
Usage
tsimport { CreateEventRequest } from './calendar.model';
const request = new CreateEventRequest();
// Set the event fields declared by CreateEventRequest.
await calendarService.createEvent(request);
AI Coding Instructions
- Keep event creation input in
CreateEventRequestrather than passing unrelated objects into calendar code. - Match field names and value types already declared in
calendar.model.ts. - Validate required event data before sending the request to the calendar service.
- Keep Outlook-specific API mapping in the calendar integration layer, not in UI code.
Was this page helpful?