@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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/ace-chat-flamingo",
|
|
3
|
-
"version": "1.1.123-rc.
|
|
3
|
+
"version": "1.1.123-rc.45",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.123-rc.
|
|
6
|
-
"@telia-ace/widget-conversation-flamingo": "1.1.123-rc.
|
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.123-rc.45",
|
|
6
|
+
"@telia-ace/widget-conversation-flamingo": "1.1.123-rc.45",
|
|
7
7
|
"rxjs": "^7.8.2",
|
|
8
8
|
"lit": "^3.0.2",
|
|
9
9
|
"@teliads/icons": "^8.4.0",
|
package/provider.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class ChatProvider extends ConversationProvider {
|
|
|
21
21
|
private readonly customerName;
|
|
22
22
|
private readonly pendingMessages;
|
|
23
23
|
private readonly disconnected$;
|
|
24
|
-
private engine
|
|
24
|
+
private engine?;
|
|
25
25
|
private agentUsername;
|
|
26
26
|
private sessionId;
|
|
27
27
|
private contactId;
|
|
@@ -34,7 +34,7 @@ export declare class ChatProvider extends ConversationProvider {
|
|
|
34
34
|
get inVideoCall(): boolean;
|
|
35
35
|
updateHeaderOption(): void;
|
|
36
36
|
showTunnistusAuthCard(state: AuthCardState, tunnistusURL?: string, errorMessage?: string, isAuthenticating?: boolean): ConversationEntry;
|
|
37
|
-
getChatStatus(): Promise<"finished" | "noSession" | "active">;
|
|
37
|
+
getChatStatus(): Promise<"finished" | "noSession" | "active" | undefined>;
|
|
38
38
|
constructor(name: string, component: any);
|
|
39
39
|
private initializeServices;
|
|
40
40
|
connect(conversationOptions?: Record<string, any>): void;
|
|
@@ -48,7 +48,7 @@ export declare class ChatProvider extends ConversationProvider {
|
|
|
48
48
|
private createEngineConfig;
|
|
49
49
|
private initializeChat;
|
|
50
50
|
setupAuthenticationListeners(): void;
|
|
51
|
-
handleWelcomeForm(idhubEIDToken?: string
|
|
51
|
+
handleWelcomeForm(idhubEIDToken?: string): Promise<void>;
|
|
52
52
|
private startChat;
|
|
53
53
|
restartNewChat(): void;
|
|
54
54
|
private handleChatEngineError;
|
package/types.d.ts
CHANGED
|
@@ -2,10 +2,14 @@ export type ChatReadItem = {
|
|
|
2
2
|
objectId: number;
|
|
3
3
|
objectType: string;
|
|
4
4
|
};
|
|
5
|
+
export type EntranceInfo = {
|
|
6
|
+
result: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
};
|
|
5
9
|
export type Info = {
|
|
6
10
|
objectId: number;
|
|
7
11
|
objectType: 'info';
|
|
8
|
-
infoType: 'queue' | 'startup' | 'established' | 'error' | 'afterChat' | 'finished' | 'noSession' | 'prepareVideo' | 'videoPrepared';
|
|
12
|
+
infoType: 'queue' | 'startup' | 'established' | 'error' | 'afterChat' | 'finished' | 'noSession' | 'prepareVideo' | 'pendingJoin' | 'placedInQueue' | 'videoPrepared';
|
|
9
13
|
text: string;
|
|
10
14
|
eqt?: number;
|
|
11
15
|
pos?: number;
|
|
@@ -116,7 +120,7 @@ export declare const isVideoPreparedAction: (action: EngineAction) => action is
|
|
|
116
120
|
export declare const isChatButtonClickedAction: (action: EngineAction) => action is ChatButtonClickedAction;
|
|
117
121
|
export declare const isEndVideoButtonClickedAction: (action: EngineAction) => action is EndVideoButtonClickedAction;
|
|
118
122
|
export declare const isChatEndedAction: (action: EngineAction) => action is ChatEndedAction;
|
|
119
|
-
export type EngineErrorType = 'chat-request-error' | 'chat-join-error' | 'chat-engine-error' | 'chat-write-error' | 'chat-email-session-error' | 'chat-unknown-error';
|
|
123
|
+
export type EngineErrorType = 'chat-request-error' | 'chat-join-error' | 'chat-engine-error' | 'chat-write-error' | 'chat-email-session-error' | 'chat-unknown-error' | 'chat-is-open-error';
|
|
120
124
|
export type EngineConfig = {
|
|
121
125
|
engineUrl: string;
|
|
122
126
|
instance: string;
|