MCPcopy Create free account
hub / github.com/simstudioai/sim / isAllDayEvent

Function isAllDayEvent

apps/sim/connectors/google-calendar/google-calendar.ts:81–83  ·  view source on GitHub ↗

* Determines whether the event is all-day based on whether `date` (not `dateTime`) is used.

(event: CalendarEvent)

Source from the content-addressed store, hash-verified

79 * Determines whether the event is all-day based on whether `date` (not `dateTime`) is used.
80 */
81function isAllDayEvent(event: CalendarEvent): boolean {
82 return Boolean(event.start?.date && !event.start?.dateTime)
83}
84
85/**
86 * Formats attendees into a comma-separated list of names/emails.

Callers 2

eventToContentFunction · 0.85
eventToDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected