Skip to content

Commit 7e732c1

Browse files
authored
Merge pull request #324 from gautamsi/autodiscover-rewrite
Autodiscover rewrite
2 parents 841ca30 + de63c93 commit 7e732c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+10669
-8726
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// TCP/IP address. Default is "localhost".
4747
"address": "localhost",
4848
// Port to attach to.
49-
"port": 5858
49+
"port": 9229
5050
},
5151
{
5252
"name": "Run Mocha Test",

.vscode/tasks.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,13 @@
88

99
{
1010
"version": "0.1.0",
11-
"command": "gulp",
11+
"command": "npm",
1212
"isShellCommand": true,
1313
"args": [
14-
"--no-color"
14+
"run"
1515
],
1616
"tasks": [
1717
{
18-
"taskName": "ts-compile",
19-
"problemMatcher": "$tsc"
20-
},{
21-
"taskName": "ts-wather",
22-
"problemMatcher": "$tsc"
23-
},{
24-
"taskName": "tests",
25-
"args": [],
26-
"isTestCommand": true
27-
},{
2818
"taskName": "build",
2919
"args": [],
3020
"isBuildCommand": true

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ ews-javascript-api
33
==================
44
# CHANGELOG
55

6+
# Whats new v0.10.0
7+
* new/fix: #324 Autodiscover is back again, improved and supports DNS fallback using Autodiscover SRV records
8+
9+
# Whats new v0.9.6
10+
* fix: #316 fixed issue where Update Item operation was failing.
11+
612
# Whats new v0.9.5
713
* fix: #276 You can now use `FolderId` with `uniqueId` string parameter
814
* fix: #300 fix issue with `LegacyfreeBusyStatus` serialization, this also fixes lots of other enum attribute failing to serialize/de-serialize properly.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ You can now use this in Ionic, Cordova, Browser based process (where CORS is dis
1515
# Current State:
1616
* Almost all methods in ExchangeService class is comple with respect to c# counterpart ([based on commit#31951f4 ](https://github.com/OfficeDev/ews-managed-api/commit/31951f456519786e41232fa9ff6a3ab20b56cac3)
1717
* some method skipped as they are not for client side code or are diaognostic methods.
18-
* Roadmap to Beta:
18+
* Roadmap to 1.0 Beta:
1919
* ~ReWrite XHR/Request and Promise see #94~ done
20-
* Rewrite Autodiscover code with fresh Promise approach, this code was my work in very beginning and poorly written, strategy and TypeScript features improved over time which this code isnt taking any advantage of.
20+
* ~Rewrite Autodiscover code with fresh Promise approach, this code was my work in very beginning and poorly written, strategy and TypeScript features improved over time which this code isnt taking any advantage of.~
2121
* Add jsdoc comment to remaining exported class
2222
* Roadmap to 1.0
2323
* fix bugs from Beta
@@ -38,10 +38,8 @@ You can now use this in Ionic, Cordova, Browser based process (where CORS is dis
3838

3939
===========================================================================================
4040

41-
# Whats new v0.9.5
42-
* fix: #276 You can now use `FolderId` with `uniqueId` string parameter
43-
* fix: #300 fix issue with `LegacyfreeBusyStatus` serialization, this also fixes lots of other enum attribute failing to serialize/de-serialize properly.
44-
* fix - general: better detection of enum value in if condition for a value. default enum value of 0 is neglected earlier.
41+
# Whats new v0.10.0 (in progress)
42+
* new/fix: #324 Autodiscover is back again, improved and supports DNS fallback using Autodiscover SRV records
4543

4644
[See older change in CHANGELOG.md](./CHANGELOG.md)
4745

@@ -95,15 +93,15 @@ var exch = new ews.ExchangeService(ews.ExchangeVersion.Exchange2013);
9593
import {ExchangeService, AutodiscoverService, Folder, Item, ExchangeVersion} from "ews-javascript-api";
9694
var exch = new ExchangeService(ExchangeVersion.Exchange2013);
9795
```
98-
## Autodiscover user settings (** not working anymore, needs rewrite)
96+
## Autodiscover user settings (** Working again as of 0.10 **)
9997
```javascript
10098
//import ews module
10199
var ews = require('ews-javascript-api');
102100
//create AutodiscoverService object
103101
var autod = new ews.AutodiscoverService(new ews.Uri("https://autodiscover-s.outlook.com/autodiscover/autodiscover.svc"), ews.ExchangeVersion.Exchange2010);
104102
//you can omit url and it will autodiscover the url, version helps throw error on client side for unsupported operations.example - //var autod = new ews.AutodiscoverService(ews.ExchangeVersion.Exchange2010);
105103
//set credential for service
106-
autod.Credentials = new ews.ExchangeCredentials("userName", "password");
104+
autod.Credentials = new ews.WebCredentials("userName", "password");
107105
//create array to include list of desired settings
108106
var settings = [
109107
ews.UserSettingName.InternalEwsUrl,

0 commit comments

Comments
 (0)