Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a binding to the Exchange Web Services.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

AcceptGzipEncoding

AcceptGzipEncoding: boolean

ClientRequestId

ClientRequestId: string

ConnectionGroupName

ConnectionGroupName: string

CookieContainer

CookieContainer: any

Credentials

Credentials: ExchangeCredentials

DateTimePrecision

DateTimePrecision: DateTimePrecision

Exchange2007CompatibilityMode

Exchange2007CompatibilityMode: boolean

FileAttachmentContentHandler

FileAttachmentContentHandler: IFileAttachmentContentHandler

HttpHeaders

HttpHeaders: object

Type declaration

  • [index: string]: string

HttpResponseHeaders

HttpResponseHeaders: object

Type declaration

  • [index: string]: string

HttpWebRequestFactory

HttpWebRequestFactory: IEwsHttpWebRequestFactory

ImpersonatedUserId

ImpersonatedUserId: ImpersonatedUserId

KeepAlive

KeepAlive: boolean

ManagementRoles

ManagementRoles: ManagementRoles

PreAuthenticate

PreAuthenticate: boolean

PreferredCulture

PreferredCulture: any

PrivilegedUserId

PrivilegedUserId: PrivilegedUserId

ReturnClientRequestId

ReturnClientRequestId: boolean

SendClientLatencies

SendClientLatencies: boolean

ServerInfo

ServerInfo: ExchangeServerInfo

SuppressXmlVersionHeader

SuppressXmlVersionHeader: boolean

Timeout

Timeout: number

TraceEnablePrettyPrinting

TraceEnablePrettyPrinting: boolean

TraceEnabled

TraceEnabled: boolean

TraceFlags

TraceFlags: TraceFlags

TraceListener

TraceListener: ITraceListener

Url

Url: Uri

UseDefaultCredentials

UseDefaultCredentials: boolean

UserAgent

UserAgent: string

WebProxy

WebProxy: any

XHRApi

XHRApi: IXHRApi

Private renderingMode

renderingMode: RenderingMode

Private targetServerVersion

targetServerVersion: string

Protected timeZone

timeZone: TimeZoneInfo

Private unifiedMessaging

unifiedMessaging: UnifiedMessaging

Private url

url: Uri

Static AccountIsLocked

AccountIsLocked: any

Static SessionKey

SessionKey: any[]

Static Private TargetServerVersionHeaderName

TargetServerVersionHeaderName: string

Accessors

EnableScpLookup

  • get EnableScpLookup(): boolean
  • Returns boolean

GetXHRApi

RenderingMethod

RequestedServerVersion

TargetServerVersion

  • get TargetServerVersion(): string
  • set TargetServerVersion(value: string): void
  • Returns string

  • Parameters

    • value: string

    Returns void

TimeZone

TimeZoneDefinition

UnifiedMessaging

Methods

Private AdjustServiceUriFromCredentials

  • AdjustServiceUriFromCredentials(uri: Uri): Uri
  • Adjusts the service URI based on the current type of credentials.

    Parameters

    • uri: Uri

      The URI.

    Returns Uri

    Adjusted URL.

ArchiveItems

  • Archives multiple items in a single call to EWS.

    Type parameters

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to move.

    • sourceFolderId: FolderId

      The Id of the folder in primary corresponding to which items are being archived to.

    Returns IPromise<ServiceResponseCollection<ArchiveItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

AutodiscoverUrl

  • Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by calling the Autodiscover service.

    Parameters

    • emailAddress: string

      The email address to use.

    Returns IPromise<void>

  • Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by calling the Autodiscover service.

    Parameters

    Returns IPromise<void>

BindToFolder

  • internal

    Binds to folder.

    Parameters

    Returns IPromise<Folder>

    Folder object :Promise.

  • internal

    Binds to folder.

    Type parameters

    Parameters

    • folderId: FolderId

      The folder id.

    • propertySet: PropertySet

      Type to Cast - pass Folder or subclass itself, not an instance

    • folderType: any

    Returns IPromise<TFolder>

    Folder object :Promise.

BindToGroupItems

  • Binds to multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to bind to.

    • propertySet: PropertySet

      The set of properties to load.

    • anchorMailbox: string

      The SmtpAddress of mailbox that hosts all items we need to bind to

    Returns IPromise<ServiceResponseCollection<GetItemResponse>>

    A ServiceResponseCollection providing results for each of the specified item Ids :Promise.

BindToItem

  • internal

    Binds to item.

    Parameters

    Returns IPromise<Item>

    Item :Promise.

  • internal

    Binds to item.

    Type parameters

    Parameters

    • itemId: ItemId

      The item id.

    • propertySet: PropertySet

      The property set.

    • itemType: any

      Item type class ex: Item, EmailMessage etc..

    Returns IPromise<TItem>

    Item :Promise.

BindToItems

  • Binds to multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to bind to.

    • propertySet: PropertySet

      The set of properties to load.

    Returns IPromise<ServiceResponseCollection<GetItemResponse>>

    A ServiceResponseCollection providing results for each of the specified item Ids :Promise.

ConvertDateTimeToUniversalDateTimeString

  • ConvertDateTimeToUniversalDateTimeString(value: DateTime): string

ConvertStartDateToUnspecifiedDateTime

  • ConvertStartDateToUnspecifiedDateTime(value: string): DateTime

ConvertUniversalDateTimeStringToLocalDateTime

  • ConvertUniversalDateTimeStringToLocalDateTime(value: string): DateTime

CopyFolder

  • internal

    Copies a folder. Calling this method results in a call to EWS.

    Parameters

    • folderId: FolderId

      The folder id.

    • destinationFolderId: FolderId

      The destination folder id.

    Returns IPromise<Folder>

    Copy of folder :Promise.

CopyItem

  • internal

    Copies an item. Calling this method results in a call to EWS.

    Parameters

    • itemId: ItemId

      The Id of the item to copy.

    • destinationFolderId: FolderId

      The Id of the folder to copy the item to.

    Returns IPromise<Item>

    The copy of the item :Promise.

CopyItems

  • Copies multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to copy.

    • destinationFolderId: FolderId

      The Id of the folder to copy the items to.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

  • Copies multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to copy.

    • destinationFolderId: FolderId

      The Id of the folder to copy the items to.

    • returnNewItemIds: boolean

      Flag indicating whether service should return new ItemIds or not.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

CreateAttachments

CreateFolder

  • internal

    Creates a folder. Calling this method results in a call to EWS.

    Parameters

    • folder: Folder

      The folder.

    • parentFolderId: FolderId

      The parent folder id.

    Returns IPromise<void>

CreateItem

  • internal

    Creates an item. Calling this method results in a call to EWS.

    Parameters

    • item: Item

      The item to create.

    • parentFolderId: FolderId

      The Id of the folder in which to place the newly created item. If null, the item is created in its default folders.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for items of type EmailMessage. Required if item is an EmailMessage instance.

    • sendInvitationsMode: SendInvitationsMode

      Indicates if and how invitations should be sent for item of type Appointment. Required if item is an Appointment instance.

    Returns IPromise<void>

CreateItems

  • Creates multiple items in a single EWS call. Supported item classes are EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems does not support items that have unsaved attachments.

    Parameters

    • items: Item[]

      The items to create.

    • parentFolderId: FolderId

      The Id of the folder in which to place the newly created items. If null, items are created in their default folders.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance.

    • sendInvitationsMode: SendInvitationsMode

      Indicates if and how invitations should be sent for items of type Appointment. Required if items contains at least one Appointment instance.

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing creation results for each of the specified items :Promise.

Private DefaultAutodiscoverRedirectionUrlValidationCallback

  • DefaultAutodiscoverRedirectionUrlValidationCallback(redirectionUrl: string): boolean
  • Default implementation of AutodiscoverRedirectionUrlValidationCallback. Always returns true indicating that the URL can be used.

    Parameters

    • redirectionUrl: string

      The redirection URL.

    Returns boolean

    Returns true.

DeleteAttachments

DeleteFolder

  • internal

    Deletes a folder. Calling this method results in a call to EWS.

    Parameters

    Returns IPromise<void>

DeleteItem

  • internal

    Deletes an item. Calling this method results in a call to EWS.

    Parameters

    • itemId: ItemId

      The Id of the item to delete.

    • deleteMode: DeleteMode

      The deletion mode.

    • sendCancellationsMode: SendCancellationsMode

      Indicates whether cancellation messages should be sent. Required if the item Id represents an Appointment.

    • affectedTaskOccurrences: AffectedTaskOccurrence

      Indicates which instance of a recurring task should be deleted. Required if item Id represents a Task.

    Returns IPromise<void>

  • internal

    Deletes an item. Calling this method results in a call to EWS.

    Parameters

    • itemId: ItemId

      The Id of the item to delete.

    • deleteMode: DeleteMode

      The deletion mode.

    • sendCancellationsMode: SendCancellationsMode

      Indicates whether cancellation messages should be sent. Required if the item Id represents an Appointment.

    • affectedTaskOccurrences: AffectedTaskOccurrence

      Indicates which instance of a recurring task should be deleted. Required if item Id represents a Task.

    • suppressReadReceipts: boolean

      Whether to suppress read receipts

    Returns IPromise<void>

DeleteItems

  • Deletes multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to delete.

    • deleteMode: DeleteMode

      The deletion mode.

    • sendCancellationsMode: SendCancellationsMode

      Indicates whether cancellation messages should be sent. Required if the item Id represents an Appointment.

    • affectedTaskOccurrences: AffectedTaskOccurrence

      Indicates which instance of a recurring task should be deleted. Required if item Id represents a Task.

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing deletion results for each of the specified item Ids :Promise.

  • Deletes multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to delete.

    • deleteMode: DeleteMode

      The deletion mode.

    • sendCancellationsMode: SendCancellationsMode

      Indicates whether cancellation messages should be sent. Required if the item Id represents an Appointment.

    • affectedTaskOccurrences: AffectedTaskOccurrence

      Indicates which instance of a recurring task should be deleted. Required if item Id represents a Task.

    • suppressReadReceipt: boolean

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing deletion results for each of the specified item Ids :Promise.

DoOnSerializeCustomSoapHeaders

  • DoOnSerializeCustomSoapHeaders(writer: any): void

EmptyFolder

  • internal

    Empties a folder. Calling this method results in a call to EWS.

    Parameters

    • folderId: FolderId

      The folder id.

    • deleteMode: DeleteMode

      The delete mode.

    • deleteSubFolders: boolean

      if set to true empty folder should also delete sub folders.

    Returns IPromise<void>

ExpandGroup

  • Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.

    Parameters

    • groupId: ItemId

      The Id of the group to expand.

    Returns IPromise<ExpandGroupResults>

    An ExpandGroupResults containing the members of the group :Promise.

  • Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.

    Parameters

    • smtpAddress: string

      The SMTP address of the group to expand.

    Returns IPromise<ExpandGroupResults>

    An ExpandGroupResults containing the members of the group :Promise.

  • Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.

    Parameters

    • emailAddress: EmailAddress

      The e-mail address of the group.

    Returns IPromise<ExpandGroupResults>

    An ExpandGroupResults containing the members of the group :Promise.

  • Expands a group by retrieving a list of its members. Calling this method results in a call to EWS.

    Parameters

    • address: string

      The SMTP address of the group to expand.

    • routingType: string

      The routing type of the address of the group to expand.

    Returns IPromise<ExpandGroupResults>

    An ExpandGroupResults containing the members of the group :Promise.

FindAppointments

  • Obtains a list of appointments by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the calendar folder in which to search for items.

    • calendarView: CalendarView

      The calendar view controlling the number of appointments returned.

    Returns IPromise<FindItemsResults<Appointment>>

    A collection of appointments representing the contents of the specified folder :Promise.

  • Obtains a list of appointments by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The id of the calendar folder in which to search for items.

    • calendarView: CalendarView

      The calendar view controlling the number of appointments returned.

    Returns IPromise<FindItemsResults<Appointment>>

    A collection of appointments representing the contents of the specified folder :Promise.

FindFolders

  • Obtains a list of folders by searching the sub-folders of the specified folder.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for folders.

    • view: FolderView

      The view controlling the number of folders returned.

    Returns IPromise<FindFoldersResults>

    An object representing the results of the search operation :Promise.

  • Obtains a list of folders by searching the sub-folders of the specified folder.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for folders.

    • view: FolderView

      The view controlling the number of folders returned.

    Returns IPromise<FindFoldersResults>

    An object representing the results of the search operation :Promise.

  • Obtains a list of folders by searching the sub-folders of the specified folder.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for folders.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: FolderView

      The view controlling the number of folders returned.

    Returns IPromise<FindFoldersResults>

    An object representing the results of the search operation :Promise.

  • Obtains a list of folders by searching the sub-folders of the specified folder.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for folders.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: FolderView

      The view controlling the number of folders returned.

    Returns IPromise<FindFoldersResults>

    An object representing the results of the search operation :Promise.

FindItems

  • Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for items.

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Along with conversations, a list of highlight terms are returned. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    A collection of grouped items representing the contents of the specified :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Along with conversations, a list of highlight terms are returned. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • queryString: string

      The search string to be used for indexed search, if any.

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for items.

    • queryString: string

      The search string to be used for indexed search, if any.

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for items.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    A collection of grouped items representing the contents of the specified :Promise.

  • Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • queryString: string

      The search string to be used for indexed search, if any.

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    A collection of grouped items representing the contents of the specified :Promise.

  • Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for items.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    A collection of grouped items representing the contents of the specified :Promise.

  • Obtains a grouped list of items by searching the contents of a specific folder. Calling this method results in a call to EWS.

    Parameters

    • parentFolderName: WellKnownFolderName

      The name of the folder in which to search for items.

    • queryString: string

      The search string to be used for indexed search, if any.

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    A collection of grouped items representing the contents of the specified :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Along with conversations, a list of highlight terms are returned. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • queryString: string

      the search string to be used for indexed search, if any.

    • returnHighlightTerms: boolean

      Flag indicating if highlight terms should be returned in the response

    • view: ViewBase

      The view controlling the number of items returned.

    Returns IPromise<FindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • Obtains a list of items by searching the contents of a specific folder. Along with conversations, a list of highlight terms are returned. Calling this method results in a call to EWS.

    Parameters

    • parentFolderId: FolderId

      The Id of the folder in which to search for items.

    • queryString: string

      the search string to be used for indexed search, if any.

    • returnHighlightTerms: boolean

      Flag indicating if highlight terms should be returned in the response

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by clause.

    Returns IPromise<GroupedFindItemsResults<Item>>

    An object representing the results of the search operation :Promise.

  • internal

    Finds items.

    Type parameters

    Parameters

    • parentFolderIds: FolderId[]

      The parent folder ids.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • queryString: string

      query string to be used for indexed search.

    • view: ViewBase

      The view controlling the number of items returned.

    • groupBy: Grouping

      The group by.

    • errorHandlingMode: ServiceErrorHandling

      Indicates the type of error handling should be done.

    Returns IPromise<ServiceResponseCollection<FindItemResponse<TItem>>>

    Service response collection :Promise.

GetAttachment

  • internal

    Gets an attachment.

    Parameters

    Returns IPromise<void>

GetAttachments

Private GetAutodiscoverUrl

Private GetEwsUrlFromResponse

  • Gets the EWS URL from Autodiscover GetUserSettings response.

    Parameters

    • response: GetUserSettingsResponse

      The response.

    • isExternal: boolean

      If true, Autodiscover call was made externally.

    Returns Uri

    EWS URL.

GetPasswordExpirationDate

  • Get the password expiration date

    Parameters

    • mailboxSmtpAddress: string

      The e-mail address of the user.

    Returns IPromise<DateTime>

    The password expiration date :Promise.

GetUserAvailability

  • Gets detailed information about the availability of a set of users, rooms, and resources within a specified time window.

    Parameters

    • attendees: AttendeeInfo[]

      The attendees for which to retrieve availability information.

    • timeWindow: TimeWindow

      The time window in which to retrieve user availability information.

    • requestedData: AvailabilityData

      The requested data (free/busy and/or suggestions).

    Returns IPromise<GetUserAvailabilityResults>

    The availability information for each user appears in a unique FreeBusyResponse object. The order of users in the request determines the order of availability data for each user in the response :Promise.

  • Gets detailed information about the availability of a set of users, rooms, and resources within a specified time window.

    Parameters

    • attendees: AttendeeInfo[]

      The attendees for which to retrieve availability information.

    • timeWindow: TimeWindow

      The time window in which to retrieve user availability information.

    • requestedData: AvailabilityData

      The requested data (free/busy and/or suggestions).

    • options: AvailabilityOptions

      The options controlling the information returned.

    Returns IPromise<GetUserAvailabilityResults>

    The availability information for each user appears in a unique FreeBusyResponse object. The order of users in the request determines the order of availability data for each user in the response :Promise.

Private InternalBindToItems

  • Binds to multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to bind to.

    • propertySet: PropertySet

      The set of properties to load.

    • anchorMailbox: string

      The SmtpAddress of mailbox that hosts all items we need to bind to

    • errorHandling: ServiceErrorHandling

      Type of error handling to perform.

    Returns IPromise<ServiceResponseCollection<GetItemResponse>>

    A ServiceResponseCollection providing results for each of the specified item Ids :Promise.

Private InternalCopyItems

  • Copies multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to bind to.

    • destinationFolderId: FolderId

      The Id of the folder to copy the items to.

    • returnNewItemIds: boolean

      Flag indicating whether service should return new ItemIds or not.

    • errorHandling: ServiceErrorHandling

      What type of error handling should be performed.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

Private InternalCreateItems

  • Creates multiple items in a single EWS call. Supported item classes are EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems does not support items that have unsaved attachments.

    Parameters

    • items: Item[]

      The items to create.

    • parentFolderId: FolderId

      The Id of the folder in which to place the newly created items. If null, items are created in their default folders.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance.

    • sendInvitationsMode: SendInvitationsMode

      Indicates if and how invitations should be sent for items of type Appointment. Required if items contains at least one Appointment instance.

    • errorHandling: ServiceErrorHandling

      What type of error handling should be performed.

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing creation results for each of the specified items :Promise.

InternalCreateResponseObject

  • internal

    Create response object.

    Parameters

    Returns IPromise<Item[]>

    The list of items created or modified as a result of the "creation" of the response object :Promise.

Private InternalDeleteItems

  • Deletes multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to delete.

    • deleteMode: DeleteMode

      The deletion mode.

    • sendCancellationsMode: SendCancellationsMode

      Indicates whether cancellation messages should be sent. Required if any of the item Ids represents an Appointment.

    • affectedTaskOccurrences: AffectedTaskOccurrence

      Indicates which instance of a recurring task should be deleted. Required if any of the item Ids represents a Task.

    • errorHandling: ServiceErrorHandling

      Type of error handling to perform.

    • suppressReadReceipts: boolean

      Whether to suppress read receipts

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing deletion results for each of the specified item Ids :Promise.

Private InternalFindFolders

  • Finds folders.

    Parameters

    • parentFolderIds: FolderId[]

      The parent folder ids.

    • searchFilter: SearchFilter

      The search filter. Available search filter classes include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and SearchFilter.SearchFilterCollection

    • view: FolderView

      The view controlling the number of folders returned.

    • errorHandlingMode: ServiceErrorHandling

      Indicates the type of error handling should be done.

    Returns IPromise<ServiceResponseCollection<FindFolderResponse>>

    Collection of service responses :Promise.

Private InternalGetAttachments

InternalLoadPropertiesForItems

  • internal

    Loads the properties of multiple items in a single call to EWS.

    Parameters

    • items: Item[]

      The items to load the properties of.

    • propertySet: PropertySet

      The set of properties to load.

    • errorHandling: ServiceErrorHandling

      Indicates the type of error handling should be done.

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing results for each of the specified items :Promise.

Private InternalMoveItems

  • Moves multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to move.

    • destinationFolderId: FolderId

      The Id of the folder to move the items to.

    • returnNewItemIds: boolean

      Flag indicating whether service should return new ItemIds or not.

    • errorHandling: ServiceErrorHandling

      What type of error handling should be performed.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

InternalProcessHttpErrorResponse

  • InternalProcessHttpErrorResponse(httpWebResponse: any, webException: any, responseHeadersTraceFlag: TraceFlags, responseTraceFlag: TraceFlags): any

Private InternalUpdateItems

  • Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.

    Parameters

    • items: Item[]

      The items to update.

    • savedItemsDestinationFolderId: FolderId

      The folder in which to save sent messages, meeting invitations or cancellations. If null, the messages, meeting invitation or cancellations are saved in the Sent Items folder.

    • conflictResolution: ConflictResolutionMode

      The conflict resolution mode.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for items of type EmailMessage. Required if items contains at least one EmailMessage instance.

    • sendInvitationsOrCancellationsMode: SendInvitationsOrCancellationsMode

      Indicates if and how invitations and/or cancellations should be sent for items of type Appointment. Required if items contains at least one Appointment instance.

    • errorHandling: ServiceErrorHandling

      What type of error handling should be performed.

    • suppressReadReceipt: boolean

      Whether to suppress read receipts

    Returns IPromise<ServiceResponseCollection<UpdateItemResponse>>

    A ServiceResponseCollection providing update results for each of the specified items :Promise.

IsTraceEnabledFor

  • IsTraceEnabledFor(traceFlags: TraceFlags): boolean

LoadPropertiesForFolder

  • internal

    Load specified properties for a folder.

    Parameters

    Returns IPromise<void>

LoadPropertiesForItems

  • Loads the properties of multiple items in a single call to EWS. Unstable for Extended Properties

    Parameters

    • items: Item[]

      The items to load the properties of.

    • propertySet: PropertySet

      The set of properties to load.

    Returns IPromise<ServiceResponseCollection<ServiceResponse>>

    A ServiceResponseCollection providing results for each of the specified items :Promise.

MarkAllItemsAsRead

  • MarkAllItemsAsRead(folderId: FolderId, readFlag: boolean, suppressReadReceipts: boolean): IPromise<void>
  • internal

    Marks all items in folder as read/unread. Calling this method results in a call to EWS.

    Parameters

    • folderId: FolderId

      The folder id.

    • readFlag: boolean

      If true, items marked as read, otherwise unread.

    • suppressReadReceipts: boolean

      If true, suppress read receipts for items.

    Returns IPromise<void>

MarkAsJunk

  • Mark items as junk.

    Parameters

    • itemIds: ItemId[]

      ItemIds for the items to mark

    • isJunk: boolean

      Whether the items are junk. If true, senders are add to blocked sender list. If false, senders are removed.

    • moveItem: boolean

      Whether to move the item. Items are moved to junk folder if isJunk is true, inbox if isJunk is false.

    Returns IPromise<ServiceResponseCollection<MarkAsJunkResponse>>

    A ServiceResponseCollection providing itemIds for each of the moved items :Promise.

MoveFolder

  • internal

    Move a folder.

    Parameters

    • folderId: FolderId

      The folder id.

    • destinationFolderId: FolderId

      The destination folder id.

    Returns IPromise<Folder>

    Moved folder :Promise.

MoveItem

  • internal

    Move an item.

    Parameters

    • itemId: ItemId

      The Id of the item to move.

    • destinationFolderId: FolderId

      The Id of the folder to move the item to.

    Returns IPromise<Item>

    The moved item :Promise.

MoveItems

  • Moves multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to move.

    • destinationFolderId: FolderId

      The Id of the folder to move the items to.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

  • Moves multiple items in a single call to EWS.

    Parameters

    • itemIds: ItemId[]

      The Ids of the items to move.

    • destinationFolderId: FolderId

      The Id of the folder to move the items to.

    • returnNewItemIds: boolean

      Flag indicating whether service should return new ItemIds or not.

    Returns IPromise<ServiceResponseCollection<MoveCopyItemResponse>>

    A ServiceResponseCollection providing copy results for each of the specified item Ids :Promise.

PrepareHttpWebRequest

  • PrepareHttpWebRequest(methodName: string): IXHROptions
  • internal

    Creates an IXHROptions instance and initializes it with the appropriate parameters, based on the configuration of this service object.

    Parameters

    • methodName: string

      Name of the method.

    Returns IXHROptions

    An instance of IXHROptions to call web service with.

PrepareHttpWebRequestForUrl

  • PrepareHttpWebRequestForUrl(url: Uri, acceptGzipEncoding: boolean, allowAutoRedirect: boolean): IXHROptions

ProcessHttpErrorResponse

  • ProcessHttpErrorResponse(httpWebResponse: XMLHttpRequest, webException: any): void

ProcessHttpResponseHeaders

  • ProcessHttpResponseHeaders(traceType: TraceFlags, response: any): void

ResolveName

  • Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. Calling this method results in a call to EWS.

    Parameters

    • nameToResolve: string

      The name to resolve.

    Returns IPromise<NameResolutionCollection>

    A collection of name resolutions whose names match the one passed as a parameter :Promise.

  • Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. Calling this method results in a call to EWS.

    Parameters

    • nameToResolve: string

      The name to resolve.

    • searchScope: ResolveNameSearchLocation

      The scope of the search.

    • returnContactDetails: boolean

      Indicates whether full contact information should be returned for each of the found contacts.

    Returns IPromise<NameResolutionCollection>

    A collection of name resolutions whose names match the one passed as a parameter :Promise.

  • Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. Calling this method results in a call to EWS.

    Parameters

    • nameToResolve: string

      The name to resolve.

    • searchScope: ResolveNameSearchLocation

      The scope of the search.

    • returnContactDetails: boolean

      Indicates whether full contact information should be returned for each of the found contacts.

    • contactDataPropertySet: PropertySet

      The property set for the contct details

    Returns IPromise<NameResolutionCollection>

    A collection of name resolutions whose names match the one passed as a parameter :Promise.

  • Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. Calling this method results in a call to EWS.

    Parameters

    • nameToResolve: string

      The name to resolve.

    • parentFolderIds: FolderId[]

      The Ids of the contact folders in which to look for matching contacts.

    • searchScope: ResolveNameSearchLocation

      The scope of the search.

    • returnContactDetails: boolean

      Indicates whether full contact information should be returned for each of the found contacts.

    Returns IPromise<NameResolutionCollection>

    A collection of name resolutions whose names match the one passed as a parameter :Promise.

  • Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. Calling this method results in a call to EWS.

    Parameters

    • nameToResolve: string

      The name to resolve.

    • parentFolderIds: FolderId[]

      The Ids of the contact folders in which to look for matching contacts.

    • searchScope: ResolveNameSearchLocation

      The scope of the search.

    • returnContactDetails: boolean

      Indicates whether full contact information should be returned for each of the found contacts.

    • contactDataPropertySet: PropertySet

      The property set for the contct details

    Returns IPromise<NameResolutionCollection>

    A collection of name resolutions whose names match the one passed as a parameter :Promise.

SaveHttpResponseHeaders

SendItem

  • internal

    Sends an item.

    Parameters

    • item: Item

      The item.

    • savedCopyDestinationFolderId: FolderId

      The saved copy destination folder id.

    Returns IPromise<void>

SetContentType

SetCustomUserAgent

  • SetCustomUserAgent(userAgent: string): any

TraceHttpRequestHeaders

  • TraceHttpRequestHeaders(traceType: TraceFlags, request: any): any

TraceHttpResponseHeaders

  • TraceHttpResponseHeaders(traceType: TraceFlags, response: any): any

TraceMessage

  • TraceMessage(traceType: TraceFlags, logEntry: string): any

TraceXml

  • TraceXml(traceType: TraceFlags, stream: any): any

UpdateFolder

  • internal

    Updates a folder.

    Parameters

    Returns IPromise<void>

UpdateItem

  • internal

    Updates an item.

    Parameters

    • item: Item

      The item to update.

    • savedItemsDestinationFolderId: FolderId

      The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder.

    • conflictResolution: ConflictResolutionMode

      The conflict resolution mode.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance.

    • sendInvitationsOrCancellationsMode: SendInvitationsOrCancellationsMode

      Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance.

    Returns IPromise<Item>

    Updated item : Promise.

  • internal

    Updates an item.

    Parameters

    • item: Item

      The item to update.

    • savedItemsDestinationFolderId: FolderId

      The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder.

    • conflictResolution: ConflictResolutionMode

      The conflict resolution mode.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance.

    • sendInvitationsOrCancellationsMode: SendInvitationsOrCancellationsMode

      Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance.

    • suppressReadReceipts: boolean

      Whether to suppress read receipts

    Returns IPromise<Item>

    Updated item : Promise.

UpdateItems

  • Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.

    Parameters

    • items: Item[]

      The items to update.

    • savedItemsDestinationFolderId: FolderId

      The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder.

    • conflictResolution: ConflictResolutionMode

      The conflict resolution mode.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance.

    • sendInvitationsOrCancellationsMode: SendInvitationsOrCancellationsMode

      Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance.

    Returns IPromise<ServiceResponseCollection<UpdateItemResponse>>

    A ServiceResponseCollection providing update results for each of the specified items : Promise.

  • Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.

    Parameters

    • items: Item[]

      The items to update.

    • savedItemsDestinationFolderId: FolderId

      The folder in which to save sent messages, meeting invitations or cancellations. If null, the message, meeting invitation or cancellation is saved in the Sent Items folder.

    • conflictResolution: ConflictResolutionMode

      The conflict resolution mode.

    • messageDisposition: MessageDisposition

      Indicates the disposition mode for an item of type EmailMessage. Required if item is an EmailMessage instance.

    • sendInvitationsOrCancellationsMode: SendInvitationsOrCancellationsMode

      Indicates if and how invitations and/or cancellations should be sent for ian tem of type Appointment. Required if item is an Appointment instance.

    • suppressReadReceipts: boolean

      Whether to suppress read receipts

    Returns IPromise<ServiceResponseCollection<UpdateItemResponse>>

    A ServiceResponseCollection providing update results for each of the specified items : Promise.

Validate

  • Validate(): void

Static IsMajorMinor

  • IsMajorMinor(versionPart: string): boolean
  • Parameters

    • versionPart: string

    Returns boolean

Static ValidateTargetVersion

  • ValidateTargetVersion(version: string): void
  • internal

    Validates a new-style version string. This validation is not as strict as server-side validation.

    Parameters

    • version: string

      the version string

    Returns void

Generated using TypeDoc