You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that #1326 is implemented (hopefully), and we have an internal API that manages event attendance status, we need a JMAP API that acts as a wrapper around that API.
How?
We would add two JMAP methods for managing local user's event attendance status:
CalendarEventAttendance/set
CalendarEventAttendance/get
We do not need to introduce a new capability and can use the exiting com:linagora:params:calendar:event capability to advertise that the server supports calling these new methods.
CalendarEvent/accept, CalendarEvent/reject, and CalendarEvent/maybe would need to be deprecated, but kept for now for backward compatibility. (it acts on blobId while we need to act on emailId to leverage flags as a way to store event attendance).
Below is the proposed API format:
We introduce the CalendarEventAttendance object:
id: Id. Must correspond to an id of an Email object.
evantAttendanceStatus: String. Represent the attendance status of the connected user to the event embedded as an attachment of the current email. Possible values:
Accepted
Declined
Tentative
Delegated
NeedsAction
CalendarEventAttendance/get is a standard /get method.
It would return an error when called on an email that do not have an ICS attachment with method REQUEST (invalidArguments).
CalendarEventAttendance/set is a standard /set method supporting only the update operation. Only supported values are Accept, Decline, Tentative.
It takes language as an optional argument, must be one of the configured supported language.
Why?
Now that #1326 is implemented (hopefully), and we have an internal API that manages event attendance status, we need a JMAP API that acts as a wrapper around that API.
How?
We would add two JMAP methods for managing local user's event attendance status:
We do not need to introduce a new capability and can use the exiting
com:linagora:params:calendar:event
capability to advertise that the server supports calling these new methods.CalendarEvent/accept
,CalendarEvent/reject
, andCalendarEvent/maybe
would need to be deprecated, but kept for now for backward compatibility. (it acts on blobId while we need to act on emailId to leverage flags as a way to store event attendance).Below is the proposed API format:
We introduce the
CalendarEventAttendance
object:id
: Id. Must correspond to an id of an Email object.evantAttendanceStatus
:String
. Represent the attendance status of the connected user to the event embedded as an attachment of the current email. Possible values:CalendarEventAttendance/get
is a standard/get
method.It would return an error when called on an email that do not have an ICS attachment with method
REQUEST
(invalidArguments).CalendarEventAttendance/set
is a standard/set
method supporting only the update operation. Only supported values are Accept, Decline, Tentative.It takes
language
as an optional argument, must be one of the configured supported language.Examples:
DoD
The text was updated successfully, but these errors were encountered: