forked from jshor/datebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): adds support for attendees
Adds an array of CalendarAttendee objects to each calendar type which describes attendee name, email, and ICS-specific options. Implements jshor#131
- Loading branch information
Showing
7 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import ICSAttendeeOptions from './ICSAttendeeOptions' | ||
/** | ||
* Basic Attendee Object | ||
*/ | ||
|
||
type CalendarAttendee = { | ||
/** The attendee's email address */ | ||
email: string | ||
/** The attendee's name (optional) */ | ||
name?: string | ||
/** Advanced options for use with ics format (optional). See {@link ICSAttendeeOptions}. */ | ||
icsOptions?: ICSAttendeeOptions | ||
} | ||
|
||
export default CalendarAttendee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* advanced attendee options for use with the ics format | ||
*/ | ||
|
||
// TODO comments on props | ||
// TODO: Consult @jshor about modifications to this hierarchy to accommodate OWA | ||
type ICSAttendeeOptions = { | ||
partStat?: string | ||
role?: string | ||
rsvp?: boolean | ||
delegatedFrom?: string | ||
sentBy?: string | ||
} | ||
|
||
export default ICSAttendeeOptions |