@telia-ace/ace-chat-flamingo 1.1.123-rc.43 → 1.1.123-rc.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.ts +13 -6
- package/engine.d.ts +7 -6
- package/index.js +99 -99
- package/index.mjs +674 -652
- package/package.json +3 -3
- package/provider.d.ts +3 -3
- package/types.d.ts +6 -2
package/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatReadItem } from './types';
|
|
2
|
-
export type
|
|
2
|
+
export type ChatEngineResponse = {
|
|
3
3
|
dataObjects: ChatReadItem[];
|
|
4
4
|
maxObjectId: number;
|
|
5
5
|
};
|
|
@@ -41,8 +41,7 @@ export declare class Client {
|
|
|
41
41
|
instance: string;
|
|
42
42
|
entrance: string;
|
|
43
43
|
maxObjectId: number;
|
|
44
|
-
|
|
45
|
-
}): Promise<ChatReadResponse>;
|
|
44
|
+
}): Promise<ChatEngineResponse>;
|
|
46
45
|
sendPenStatusOn(payload: {
|
|
47
46
|
uid: string;
|
|
48
47
|
instance: string;
|
|
@@ -57,7 +56,7 @@ export declare class Client {
|
|
|
57
56
|
instance: string;
|
|
58
57
|
clockstamp: string;
|
|
59
58
|
message: string;
|
|
60
|
-
}): Promise<
|
|
59
|
+
}): Promise<ChatEngineResponse>;
|
|
61
60
|
chatQuit(payload: {
|
|
62
61
|
uid: string;
|
|
63
62
|
instance: string;
|
|
@@ -65,12 +64,20 @@ export declare class Client {
|
|
|
65
64
|
chatCheckSession(payload: {
|
|
66
65
|
uid: string;
|
|
67
66
|
instance: string;
|
|
68
|
-
}): Promise<
|
|
67
|
+
}): Promise<ChatEngineResponse | null>;
|
|
69
68
|
chatEmailSession(payload: {
|
|
70
69
|
uid: string;
|
|
71
70
|
instance: string;
|
|
72
71
|
emailAddress: string;
|
|
73
|
-
}): Promise<
|
|
72
|
+
}): Promise<ChatEngineResponse>;
|
|
73
|
+
isOpenEntrance(payload: {
|
|
74
|
+
uid: string;
|
|
75
|
+
instance: string;
|
|
76
|
+
entrance: string;
|
|
77
|
+
}): Promise<{
|
|
78
|
+
open: boolean;
|
|
79
|
+
result: string;
|
|
80
|
+
}>;
|
|
74
81
|
private sendRequest;
|
|
75
82
|
static removeTrailingSlashes(text: string): string;
|
|
76
83
|
}
|
package/engine.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EngineAction, EngineConfig } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { ChatEngineResponse } from './client';
|
|
4
4
|
type ReceiveMessage = {
|
|
5
5
|
text: string;
|
|
6
6
|
source: string;
|
|
@@ -20,7 +20,7 @@ export declare class Engine {
|
|
|
20
20
|
chatJoin(payload: {
|
|
21
21
|
customerName: string;
|
|
22
22
|
invitationUid: string;
|
|
23
|
-
}): Observable<
|
|
23
|
+
}): Observable<ChatEngineResponse>;
|
|
24
24
|
chatRequest(payload: {
|
|
25
25
|
customerName: string;
|
|
26
26
|
customerEmailAddress: string;
|
|
@@ -28,16 +28,17 @@ export declare class Engine {
|
|
|
28
28
|
customData: Record<string, any>;
|
|
29
29
|
errand: string;
|
|
30
30
|
authToken?: string;
|
|
31
|
-
}): Observable<
|
|
32
|
-
reconnect(): Observable<
|
|
33
|
-
poll(): Observable<
|
|
31
|
+
}): Observable<ChatEngineResponse>;
|
|
32
|
+
reconnect(): Observable<ChatEngineResponse>;
|
|
33
|
+
poll(): Observable<ChatEngineResponse>;
|
|
34
34
|
chatWrite(message: string): Promise<void>;
|
|
35
35
|
sendPenStatusOn(key: string): void;
|
|
36
36
|
videoPrepared(result: string): Promise<void>;
|
|
37
37
|
chatQuit(): Promise<void>;
|
|
38
38
|
chatEmailSession(emailAddress: string): Promise<void>;
|
|
39
|
+
isOpenEntrance(entrance: string): Promise<boolean>;
|
|
39
40
|
private processMessages;
|
|
40
41
|
getChatStatus(): Promise<"finished" | "noSession" | "active">;
|
|
41
|
-
rehydrate(): Promise<
|
|
42
|
+
rehydrate(): Promise<ChatEngineResponse | null>;
|
|
42
43
|
}
|
|
43
44
|
export {};
|