Skip to content

Commit 956f206

Browse files
fix(directline): add new changes from master
1 parent a7ce93a commit 956f206

13 files changed

Lines changed: 1416 additions & 74 deletions

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1515

1616
## [Unreleased]
1717

18+
### Changed
19+
- Update DirectLine to rxjs v6 pipeable operators, PR [#102](https://github.com/Microsoft/BotFramework-DirectLineJS/pull/102/files)
20+
1821
### Breaking Changes
1922

2023
- Build folders updated
@@ -61,6 +64,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6164
- [`webpack@4.39.3`](https://npmjs.com/package/webpack)
6265
- [`webpack-cli@3.3.8`](https://npmjs.com/package/webpack-cli)
6366

67+
6468
## [0.11.4] - 2019-03-04
6569
### Changed
6670
- Change reconnect delay to be a random amount between 3s and 15s, by [@mingweiw](https://github.com/mingweiw) in PR [#164](https://github.com/Microsoft/BotFramework-DirectLineJS/pull/164)
@@ -108,10 +112,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
108112
- `deep-extend` from `0.4.2` to `0.5.1`
109113
- `randomatic` from `1.1.7` to `3.1.0`
110114

111-
## [1.0.0]
112-
### Changed
113-
- Update DirectLine to rxjs v6 pipeable operators
114-
115115
## [0.9.17] - 2018-08-31
116116
### Changed
117117
- Add handling of 403/500 for `getSessionId`, in [#87](https://github.com/Microsoft/BotFramework-DirectLineJS/pull/87)

built/directLine.d.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { BehaviorSubject, Observable } from 'rxjs';
2+
import { Activity, DirectLineOptions, Conversation, IBotConnection } from './directLine';
3+
import { ConnectionStatus } from './directline.enum';
4+
export * from './directline.interface';
5+
export * from './directline.enum';
6+
export declare class DirectLine implements IBotConnection {
7+
connectionStatus$: BehaviorSubject<ConnectionStatus>;
8+
activity$: Observable<Activity>;
9+
private domain;
10+
private webSocket;
11+
conversationId: string;
12+
private expiredTokenExhaustion;
13+
private secret;
14+
private token;
15+
private watermark;
16+
private streamUrl;
17+
private _botAgent;
18+
private _userAgent;
19+
referenceGrammarId: string;
20+
private pollingInterval;
21+
private tokenRefreshSubscription;
22+
constructor(options: DirectLineOptions);
23+
private checkConnection;
24+
setConnectionStatusFallback(connectionStatusFrom: ConnectionStatus, connectionStatusTo: ConnectionStatus, maxAttempts?: number): (status: ConnectionStatus) => ConnectionStatus;
25+
private expiredToken;
26+
private startConversation;
27+
private refreshTokenLoop;
28+
private refreshToken;
29+
reconnect(conversation: Conversation): void;
30+
end(): void;
31+
getSessionId(): Observable<string>;
32+
postActivity(activity: Activity): Observable<string>;
33+
private postMessageWithAttachments;
34+
private catchPostError;
35+
private catchExpiredToken;
36+
private pollingGetActivity$;
37+
private observableFromActivityGroup;
38+
private webSocketActivity$;
39+
private getRetryDelay;
40+
private observableWebSocket;
41+
private reconnectToConversation;
42+
private commonHeaders;
43+
private getBotAgent;
44+
}

0 commit comments

Comments
 (0)