[Office-js] Add mailbox.addHandlerAsync and EventType.ItemChanged

This commit is contained in:
Andrew Nichols
2017-07-05 10:19:41 -07:00
parent ab4871f427
commit 3c9162bef3
+12
View File
@@ -288,6 +288,10 @@ declare namespace Office {
* Triggers when a document level selection happens
*/
DocumentSelectionChanged,
/**
* Triggers when the active item changes
*/
ItemChanged,
/**
* Triggers when a customXmlPart node was deleted
*/
@@ -1897,6 +1901,14 @@ declare namespace Office {
ewsUrl: string;
item: Item;
userProfile: UserProfile;
/**
* Adds an event handler for a supported event
* @param eventType The event that should invoke the handler
* @param handler The function to handle the event
* @param options Any optional parameters or state data passed to the method
* @param callback The optional method to call when the handler is added
*/
addHandlerAsync(eventType: Office.EventType, handler: (type: Office.EventType) => void, options?: any, callback?: (result: AsyncResult) => void): void;
/**
* Converts an item ID formatted for REST into EWS format.
* @param itemId An item ID formatted for the Outlook REST APIs