@unblu/embedded-app-component 8.14.4 → 8.16.2
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/dist/lib/shared/conversation.d.ts +53 -4
- package/dist/lib/shared/conversation.js +53 -3
- package/dist/lib/shared/conversation.js.map +1 -1
- package/dist/lib/shared/internal/module/base-general-module.d.ts +1 -1
- package/dist/lib/shared/internal/module/base-general-module.js +2 -2
- package/dist/lib/shared/internal/module/base-general-module.js.map +1 -1
- package/dist/lib/shared/internal/module/conversation-module.d.ts +22 -2
- package/dist/lib/shared/internal/module/conversation-module.js +6 -0
- package/dist/lib/shared/internal/module/conversation-module.js.map +1 -1
- package/dist/lib/shared/internal/unblu-util.d.ts +10 -2
- package/dist/lib/shared/internal/unblu-util.js +17 -0
- package/dist/lib/shared/internal/unblu-util.js.map +1 -1
- package/dist/lib/shared/model/branchclient/language.d.ts +14 -0
- package/dist/lib/shared/model/branchclient/language.js +2 -0
- package/dist/lib/shared/model/branchclient/language.js.map +1 -0
- package/dist/lib/shared/model/branchclient/named-area-agent-availability.d.ts +19 -0
- package/dist/lib/shared/model/branchclient/named-area-agent-availability.js +2 -0
- package/dist/lib/shared/model/branchclient/named-area-agent-availability.js.map +1 -0
- package/dist/lib/shared/model/call-connection-state.d.ts +18 -0
- package/dist/lib/shared/model/call-connection-state.js +20 -0
- package/dist/lib/shared/model/call-connection-state.js.map +1 -0
- package/dist/lib/shared/model/call-state.d.ts +5 -1
- package/dist/lib/shared/model/call-state.js +5 -1
- package/dist/lib/shared/model/call-state.js.map +1 -1
- package/dist/lib/shared/model/configuration.d.ts +7 -0
- package/dist/lib/shared/model/conversation-type.d.ts +5 -1
- package/dist/lib/shared/model/conversation-type.js +4 -0
- package/dist/lib/shared/model/conversation-type.js.map +1 -1
- package/dist/lib/unblu-embedded-api.d.ts +1 -1
- package/dist/lib/unblu-embedded-api.js +1 -1
- package/dist/lib/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { CallState } from './model/call-state';
|
|
2
|
-
import { ConversationEventType, ConversationModule } from './internal/module/conversation-module';
|
|
2
|
+
import { ConversationEventType, ConversationModule, ConversationQueueStatus } from './internal/module/conversation-module';
|
|
3
3
|
import { Listener } from './internal/util/event-emitter';
|
|
4
4
|
import { ConversationState } from './model/conversation-state';
|
|
5
5
|
import { ConnectionState } from './model/connection-state';
|
|
6
6
|
import { CustomActionInvocation } from './model/customaction/custom-action-invocation';
|
|
7
|
+
import { CallConnectionState } from "./model/call-connection-state";
|
|
7
8
|
export type ConnectionStateListener = (connectionState: ConnectionState) => void;
|
|
8
9
|
export type ConversationStateListener = (conversationState: ConversationState) => void;
|
|
9
10
|
export type CallStateListener = (callState: CallState) => void;
|
|
11
|
+
export type QueueStatusChangeListener = (conversationQueueStatus: ConversationQueueStatus) => void;
|
|
12
|
+
export type CallConnectionStateChangeListener = (callConnectionState: CallConnectionState) => void;
|
|
10
13
|
/**
|
|
11
14
|
* Listener called whenever a custom action invocation triggers an API event for the client
|
|
12
15
|
* @param customActionInvocation The details of the custom action invocation
|
|
@@ -42,6 +45,18 @@ export declare class Conversation {
|
|
|
42
45
|
* @see {@link on} for listener registration
|
|
43
46
|
*/
|
|
44
47
|
static readonly CALL_STATE_CHANGE: 'callStateChange';
|
|
48
|
+
/**
|
|
49
|
+
* Event emitted when the queue status of this conversation changes.
|
|
50
|
+
* @event queueStatusChange
|
|
51
|
+
* @see {@link on} for listener registration
|
|
52
|
+
*/
|
|
53
|
+
static readonly QUEUE_STATUS_CHANGE: 'queueStatusChange';
|
|
54
|
+
/**
|
|
55
|
+
* Event emitted when the {@link CallConnectionState} of the conversation changes
|
|
56
|
+
* @event callConnectionStateChange
|
|
57
|
+
* @see {@link on} for listener registration
|
|
58
|
+
*/
|
|
59
|
+
static readonly CALL_CONNECTION_STATE_CHANGE: 'callConnectionStateChange';
|
|
45
60
|
/**
|
|
46
61
|
* Event emitted when the conversation ends.
|
|
47
62
|
* @deprecated The end event is not always available, depending on the configuration. Use the {@link CONVERSATION_STATE_CHANGE} event instead.
|
|
@@ -94,6 +109,20 @@ export declare class Conversation {
|
|
|
94
109
|
* @see {@link CALL_STATE_CHANGE}
|
|
95
110
|
*/
|
|
96
111
|
on(event: typeof Conversation.CALL_STATE_CHANGE, listener: CallStateListener): void;
|
|
112
|
+
/**
|
|
113
|
+
* Registers an event listener for the given event
|
|
114
|
+
* @param event The call state change event
|
|
115
|
+
* @param listener The listener to be called
|
|
116
|
+
* @see {@link QUEUE_STATUS_CHANGE}
|
|
117
|
+
*/
|
|
118
|
+
on(event: typeof Conversation.QUEUE_STATUS_CHANGE, listener: QueueStatusChangeListener): void;
|
|
119
|
+
/**
|
|
120
|
+
* Registers an event listener for the given event
|
|
121
|
+
* @param event The call connection state change event
|
|
122
|
+
* @param listener The listener to be called
|
|
123
|
+
* @see {@link CALL_CONNECTION_STATE_CHANGE}
|
|
124
|
+
*/
|
|
125
|
+
on(event: typeof Conversation.CALL_CONNECTION_STATE_CHANGE, listener: CallConnectionStateChangeListener): void;
|
|
97
126
|
/**
|
|
98
127
|
* Registers an event listener for the given event.
|
|
99
128
|
* @deprecated The end event is not always available, depending on the configuration. Use instead {@link CONVERSATION_STATE_CHANGE} event.
|
|
@@ -150,11 +179,31 @@ export declare class Conversation {
|
|
|
150
179
|
*/
|
|
151
180
|
getConversationState(): Promise<ConversationState>;
|
|
152
181
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
182
|
+
* Gets the conversation's call state the local participant has, check {@link CallState}
|
|
183
|
+
* for possible states.
|
|
184
|
+
* @see {@link CALL_STATE_CHANGE} if you need to listen to changes
|
|
185
|
+
* @return A promise that resolves to the current call state of the local participant
|
|
156
186
|
*/
|
|
157
187
|
getCallState(): Promise<CallState>;
|
|
188
|
+
/**
|
|
189
|
+
* Gets the conversation's queue status. The position and/or averageWaitingTime
|
|
190
|
+
* of the return value can be null, if the
|
|
191
|
+
* feature is disabled for them in the {@link https://www.unblu.com/en/docs/latest/reference/configuration-properties.html#com-unblu-conversation-queuestatus-queuestatusdisplaymode configuration}.
|
|
192
|
+
* @see {@link QUEUE_STATUS_CHANGE} if you need to listen to changes.
|
|
193
|
+
* @return A promise that either resolves to the current queue status of the conversation
|
|
194
|
+
* or resolves empty if the conversation isn't queued.
|
|
195
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
196
|
+
*/
|
|
197
|
+
getQueueStatus(): Promise<ConversationQueueStatus>;
|
|
198
|
+
/**
|
|
199
|
+
* Gets the call connection state for the current active call of the local participant.
|
|
200
|
+
* Check {@link CallConnectionState} for possible states.
|
|
201
|
+
* @see {@link CALL_CONNECTION_STATE_CHANGE} if you need to listen to changes.
|
|
202
|
+
* @return A promise that resolves to the current call connection state of the conversation
|
|
203
|
+
* or is rejected with a {@link UnbluApiError} if the call fails. The promise resolves to
|
|
204
|
+
* {@link CallConnectionState.DISCONNECTED} if there's no active call.
|
|
205
|
+
*/
|
|
206
|
+
getCallConnectionState(): Promise<CallConnectionState>;
|
|
158
207
|
/**
|
|
159
208
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
160
209
|
* data should be stored in the conversation metadata.
|
|
@@ -67,6 +67,18 @@ export class Conversation {
|
|
|
67
67
|
this.eventEmitter.emit(event.name, event.data.callState);
|
|
68
68
|
};
|
|
69
69
|
break;
|
|
70
|
+
case Conversation.QUEUE_STATUS_CHANGE:
|
|
71
|
+
internalListener = (event) => {
|
|
72
|
+
if (event.data.conversationId == this.conversationId)
|
|
73
|
+
this.eventEmitter.emit(event.name, event.data);
|
|
74
|
+
};
|
|
75
|
+
break;
|
|
76
|
+
case Conversation.CALL_CONNECTION_STATE_CHANGE:
|
|
77
|
+
internalListener = (event) => {
|
|
78
|
+
if (event.data.conversationId == this.conversationId)
|
|
79
|
+
this.eventEmitter.emit(event.name, event.data.callConnectionState);
|
|
80
|
+
};
|
|
81
|
+
break;
|
|
70
82
|
case Conversation.CUSTOM_ACTION_INVOCATION:
|
|
71
83
|
internalListener = (event) => {
|
|
72
84
|
if (event.data.conversation.id == this.conversationId)
|
|
@@ -125,14 +137,40 @@ export class Conversation {
|
|
|
125
137
|
return this.conversationModule.getConversationState(this.conversationId);
|
|
126
138
|
}
|
|
127
139
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
140
|
+
* Gets the conversation's call state the local participant has, check {@link CallState}
|
|
141
|
+
* for possible states.
|
|
142
|
+
* @see {@link CALL_STATE_CHANGE} if you need to listen to changes
|
|
143
|
+
* @return A promise that resolves to the current call state of the local participant
|
|
131
144
|
*/
|
|
132
145
|
async getCallState() {
|
|
133
146
|
this.checkNotDestroyed();
|
|
134
147
|
return this.conversationModule.getCallState(this.conversationId);
|
|
135
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Gets the conversation's queue status. The position and/or averageWaitingTime
|
|
151
|
+
* of the return value can be null, if the
|
|
152
|
+
* feature is disabled for them in the {@link https://www.unblu.com/en/docs/latest/reference/configuration-properties.html#com-unblu-conversation-queuestatus-queuestatusdisplaymode configuration}.
|
|
153
|
+
* @see {@link QUEUE_STATUS_CHANGE} if you need to listen to changes.
|
|
154
|
+
* @return A promise that either resolves to the current queue status of the conversation
|
|
155
|
+
* or resolves empty if the conversation isn't queued.
|
|
156
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
157
|
+
*/
|
|
158
|
+
async getQueueStatus() {
|
|
159
|
+
this.checkNotDestroyed();
|
|
160
|
+
return this.conversationModule.getQueueStatus(this.conversationId);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Gets the call connection state for the current active call of the local participant.
|
|
164
|
+
* Check {@link CallConnectionState} for possible states.
|
|
165
|
+
* @see {@link CALL_CONNECTION_STATE_CHANGE} if you need to listen to changes.
|
|
166
|
+
* @return A promise that resolves to the current call connection state of the conversation
|
|
167
|
+
* or is rejected with a {@link UnbluApiError} if the call fails. The promise resolves to
|
|
168
|
+
* {@link CallConnectionState.DISCONNECTED} if there's no active call.
|
|
169
|
+
*/
|
|
170
|
+
async getCallConnectionState() {
|
|
171
|
+
this.checkNotDestroyed();
|
|
172
|
+
return this.conversationModule.getCallConnectionState(this.conversationId);
|
|
173
|
+
}
|
|
136
174
|
/**
|
|
137
175
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
138
176
|
* data should be stored in the conversation metadata.
|
|
@@ -292,6 +330,18 @@ Conversation.CONVERSATION_STATE_CHANGE = 'conversationStateChange';
|
|
|
292
330
|
* @see {@link on} for listener registration
|
|
293
331
|
*/
|
|
294
332
|
Conversation.CALL_STATE_CHANGE = 'callStateChange';
|
|
333
|
+
/**
|
|
334
|
+
* Event emitted when the queue status of this conversation changes.
|
|
335
|
+
* @event queueStatusChange
|
|
336
|
+
* @see {@link on} for listener registration
|
|
337
|
+
*/
|
|
338
|
+
Conversation.QUEUE_STATUS_CHANGE = 'queueStatusChange';
|
|
339
|
+
/**
|
|
340
|
+
* Event emitted when the {@link CallConnectionState} of the conversation changes
|
|
341
|
+
* @event callConnectionStateChange
|
|
342
|
+
* @see {@link on} for listener registration
|
|
343
|
+
*/
|
|
344
|
+
Conversation.CALL_CONNECTION_STATE_CHANGE = 'callConnectionStateChange';
|
|
295
345
|
/**
|
|
296
346
|
* Event emitted when the conversation ends.
|
|
297
347
|
* @deprecated The end event is not always available, depending on the configuration. Use the {@link CONVERSATION_STATE_CHANGE} event instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/shared/conversation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/shared/conversation.ts"],"names":[],"mappings":"AAWA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAC,YAAY,EAAW,MAAM,+BAA+B,CAAA;AAiBpE;;;;;;;;GA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CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACI,OAAO;QACV,IAAI,IAAI,CAAC,SAAS;YAAE,OAAM;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAA;QACzB,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACtC,IAAI,CAAC,WAAW,CAAC,KAA8B,CAAC,CAAA;SACnD;IACL,CAAC;;AA7bD;;;;GAIG;AACoB,oCAAuB,GAA4B,uBAAuB,AAAnD,CAAmD;AAEjG;;;;GAIG;AACoB,sCAAyB,GAA8B,yBAAyB,AAAvD,CAAuD;AAEvG;;;;GAIG;AACoB,8BAAiB,GAAsB,iBAAiB,AAAvC,CAAuC;AAE/E;;;;GAIG;AACoB,gCAAmB,GAAwB,mBAAmB,AAA3C,CAA2C;AAErF;;;;GAIG;AACoB,yCAA4B,GAAgC,2BAA2B,AAA3D,CAA2D;AAE9G;;;;;GAKG;AACoB,gBAAG,GAAU,KAAK,AAAf,CAAe;AAEzC;;;;;;;GAOG;AACoB,kBAAK,GAAY,OAAO,AAAnB,CAAmB;AAE/C;;;;;;GAMG;AACoB,qCAAwB,GAA6B,wBAAwB,AAArD,CAAqD"}
|
|
@@ -21,7 +21,7 @@ export declare enum BaseGeneralFunction {
|
|
|
21
21
|
}
|
|
22
22
|
export declare class BaseGeneralModule<T extends string | BaseGeneralFunction, E extends BaseGeneralEventType | string> extends InternalModule<BaseGeneralFunction | T, E> {
|
|
23
23
|
constructor(bridge: ApiBridge);
|
|
24
|
-
startConversation(type: ConversationType, visitorName?: string, visitorData?: string, recipient?: NewConversationRecipient): Promise<string>;
|
|
24
|
+
startConversation(type: ConversationType, visitorName?: string, visitorData?: string, recipient?: NewConversationRecipient, languageTag?: string): Promise<string>;
|
|
25
25
|
setNewConversationInterceptor(callback: NewConversationInterceptor): Promise<void>;
|
|
26
26
|
joinConversation(pin: string, visitorName?: string): Promise<string>;
|
|
27
27
|
openConversation(conversationId: string): Promise<void>;
|
|
@@ -17,8 +17,8 @@ export class BaseGeneralModule extends InternalModule {
|
|
|
17
17
|
constructor(bridge) {
|
|
18
18
|
super(bridge, 'general');
|
|
19
19
|
}
|
|
20
|
-
startConversation(type, visitorName, visitorData, recipient) {
|
|
21
|
-
return this.callApiFunction(BaseGeneralFunction.startConversation, [type, visitorName, visitorData, recipient]);
|
|
20
|
+
startConversation(type, visitorName, visitorData, recipient, languageTag) {
|
|
21
|
+
return this.callApiFunction(BaseGeneralFunction.startConversation, [type, visitorName, visitorData, recipient, languageTag]);
|
|
22
22
|
}
|
|
23
23
|
setNewConversationInterceptor(callback) {
|
|
24
24
|
return this.callApiFunction(BaseGeneralFunction.setNewConversationInterceptor, [callback]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-general-module.js","sourceRoot":"","sources":["../../../../../src/shared/internal/module/base-general-module.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAcvC,MAAM,CAAN,IAAY,mBAYX;AAZD,WAAY,mBAAmB;IAC3B,8DAAuC,CAAA;IACvC,sFAA+D,CAAA;IAC/D,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;IACrC,sEAA+C,CAAA;IAC/C,4DAAqC,CAAA;IACrC,oEAA6C,CAAA;IAC7C,sDAA+B,CAAA;IAC/B,8DAAuC,CAAA;IACvC,wDAAiC,CAAA;IACjC,8DAAuC,CAAA;AAC3C,CAAC,EAZW,mBAAmB,KAAnB,mBAAmB,QAY9B;AAED,MAAM,OAAO,iBAAmG,SAAQ,cAA0C;IAC9J,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAC5B,CAAC;IAEM,iBAAiB,CAAC,IAAsB,EAAE,WAAoB,EAAE,WAAoB,EAAE,SAAoC;
|
|
1
|
+
{"version":3,"file":"base-general-module.js","sourceRoot":"","sources":["../../../../../src/sh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IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAA;IAC9E,CAAC;IAEM,gBAAgB;QACnB,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAA;IACzE,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;IAC7E,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC;IAEM,iBAAiB,CAAC,QAAgB;QACrC,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAClF,CAAC;IAEM,cAAc,CAAC,SAAiB;QACnC,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,cAAc,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAChF,CAAC;IAEM,iBAAiB,CAAC,SAAiB;QACtC,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IACnF,CAAC;CACJ"}
|
|
@@ -3,6 +3,7 @@ import { ApiBridge } from '../api-bridge';
|
|
|
3
3
|
import { CallState } from '../../model/call-state';
|
|
4
4
|
import { ConversationState } from '../../model/conversation-state';
|
|
5
5
|
import { ConnectionState } from '../../model/connection-state';
|
|
6
|
+
import { CallConnectionState } from "../../model/call-connection-state";
|
|
6
7
|
export interface ConversationCallState {
|
|
7
8
|
conversationId: string;
|
|
8
9
|
callState: CallState;
|
|
@@ -15,7 +16,22 @@ export interface ConversationWithState {
|
|
|
15
16
|
conversationId: string;
|
|
16
17
|
conversationState: ConversationState;
|
|
17
18
|
}
|
|
18
|
-
export
|
|
19
|
+
export interface ConversationQueueStatus {
|
|
20
|
+
conversationId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Current position in the queue, can be null or left out if feature is disabled
|
|
23
|
+
*/
|
|
24
|
+
position?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
* Calculated waiting time in milliseconds, can be null or left out if feature is disabled
|
|
27
|
+
*/
|
|
28
|
+
averageWaitingTime?: number | null;
|
|
29
|
+
}
|
|
30
|
+
export interface ConversationCallConnectionState {
|
|
31
|
+
conversationId: string;
|
|
32
|
+
callConnectionState: ConversationState;
|
|
33
|
+
}
|
|
34
|
+
export type ConversationEventType = 'connectionStateChange' | 'conversationStateChange' | 'end' | 'close' | 'personChange' | 'callStateChange' | 'invitationsChange' | 'customActionInvocation' | 'queueStatusChange' | 'callConnectionStateChange';
|
|
19
35
|
declare const enum ConversationFunction {
|
|
20
36
|
getConnectionState = "getConnectionState",
|
|
21
37
|
getConversationState = "getConversationState",
|
|
@@ -26,7 +42,9 @@ declare const enum ConversationFunction {
|
|
|
26
42
|
leaveConversation = "leaveConversation",
|
|
27
43
|
closeConversation = "closeConversation",
|
|
28
44
|
setVisitorData = "setVisitorData",
|
|
29
|
-
getVisitorData = "getVisitorData"
|
|
45
|
+
getVisitorData = "getVisitorData",
|
|
46
|
+
getQueueStatus = "getQueueStatus",
|
|
47
|
+
getCallConnectionState = "getCallConnectionState"
|
|
30
48
|
}
|
|
31
49
|
export declare class ConversationModule extends InternalModule<ConversationFunction, ConversationEventType> {
|
|
32
50
|
constructor(bridge: ApiBridge);
|
|
@@ -40,5 +58,7 @@ export declare class ConversationModule extends InternalModule<ConversationFunct
|
|
|
40
58
|
closeConversation(conversationId: string): Promise<void>;
|
|
41
59
|
setVisitorData(visitorData: String): Promise<void>;
|
|
42
60
|
getVisitorData(): Promise<String>;
|
|
61
|
+
getQueueStatus(conversationId: string): Promise<ConversationQueueStatus>;
|
|
62
|
+
getCallConnectionState(conversationId: string): Promise<CallConnectionState>;
|
|
43
63
|
}
|
|
44
64
|
export {};
|
|
@@ -33,5 +33,11 @@ export class ConversationModule extends InternalModule {
|
|
|
33
33
|
async getVisitorData() {
|
|
34
34
|
return this.callApiFunction("getVisitorData" /* ConversationFunction.getVisitorData */, null);
|
|
35
35
|
}
|
|
36
|
+
async getQueueStatus(conversationId) {
|
|
37
|
+
return this.callApiFunction("getQueueStatus" /* ConversationFunction.getQueueStatus */, [conversationId]);
|
|
38
|
+
}
|
|
39
|
+
async getCallConnectionState(conversationId) {
|
|
40
|
+
return this.callApiFunction("getCallConnectionState" /* ConversationFunction.getCallConnectionState */, [conversationId]);
|
|
41
|
+
}
|
|
36
42
|
}
|
|
37
43
|
//# sourceMappingURL=conversation-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-module.js","sourceRoot":"","sources":["../../../../../src/shared/internal/module/conversation-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"conversation-module.js","sourceRoot":"","sources":["../../../../../src/shared/internal/module/conversation-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAqEvC,MAAM,OAAO,kBAAmB,SAAQ,cAA2D;IAC/F,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACjC,CAAC;IAEM,kBAAkB,CAAC,cAAsB;QAC5C,OAAO,IAAI,CAAC,eAAe,qEAA0C,CAAC,cAAc,CAAC,CAAC,CAAA;IAC1F,CAAC;IAEM,oBAAoB,CAAC,cAAsB;QAC9C,OAAO,IAAI,CAAC,eAAe,yEAA4C,CAAC,cAAc,CAAC,CAAC,CAAA;IAC5F,CAAC;IAEM,YAAY,CAAC,cAAsB;QACtC,OAAO,IAAI,CAAC,eAAe,yDAAoC,CAAC,cAAc,CAAC,CAAC,CAAA;IACpF,CAAC;IAEM,cAAc,CAAC,cAAsB;QACxC,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAA;IACtF,CAAC;IAEM,cAAc,CAAC,cAAsB;QACxC,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAA;IACtF,CAAC;IAEM,eAAe,CAAC,cAAsB;QACzC,OAAO,IAAI,CAAC,eAAe,+DAAuC,CAAC,cAAc,CAAC,CAAC,CAAA;IACvF,CAAC;IAEM,iBAAiB,CAAC,cAAsB;QAC3C,OAAO,IAAI,CAAC,eAAe,mEAAyC,CAAC,cAAc,CAAC,CAAC,CAAA;IACzF,CAAC;IAEM,iBAAiB,CAAC,cAAsB;QAC3C,OAAO,IAAI,CAAC,eAAe,mEAAyC,CAAC,cAAc,CAAC,CAAC,CAAA;IACzF,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAAmB;QAC3C,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,WAAW,CAAC,CAAC,CAAC;IACpF,CAAC;IAEM,KAAK,CAAC,cAAc;QACvB,OAAO,IAAI,CAAC,eAAe,6DAAsC,IAAI,CAAC,CAAC;IAC3E,CAAC;IACM,KAAK,CAAC,cAAc,CAAC,cAAsB;QAC9C,OAAO,IAAI,CAAC,eAAe,6DAAsC,CAAC,cAAc,CAAC,CAAC,CAAC;IACvF,CAAC;IAEM,KAAK,CAAC,sBAAsB,CAAC,cAAsB;QACtD,OAAO,IAAI,CAAC,eAAe,6EAA8C,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/F,CAAC;CACJ"}
|
|
@@ -3,12 +3,14 @@ import { Configuration } from "../model/configuration";
|
|
|
3
3
|
import { UnbluFloatingApi } from "./unblu-floating-api";
|
|
4
4
|
export declare enum IntegrationType {
|
|
5
5
|
embedded = "embedded",
|
|
6
|
-
floating = "floating"
|
|
6
|
+
floating = "floating",
|
|
7
|
+
branchClient = "branch-client"
|
|
7
8
|
}
|
|
8
9
|
declare enum EntryPoint {
|
|
9
10
|
siteIntegrationGreedyMain = "SiteIntegrationGreedyMain",
|
|
10
11
|
siteIntegrationLazyMain = "SiteIntegrationLazyMain",
|
|
11
|
-
siteEmbeddedMain = "SiteEmbeddedMain"
|
|
12
|
+
siteEmbeddedMain = "SiteEmbeddedMain",
|
|
13
|
+
branchClientMain = "BranchClientMain"
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Internal type definition of the unblu object.
|
|
@@ -20,6 +22,11 @@ export interface UnbluObject {
|
|
|
20
22
|
* @hidden
|
|
21
23
|
*/
|
|
22
24
|
APIKEY?: string;
|
|
25
|
+
/**
|
|
26
|
+
* internal unblu field
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
BRANCHCLIENTTOKEN?: string;
|
|
23
30
|
/**
|
|
24
31
|
* internal unblu field
|
|
25
32
|
* @hidden
|
|
@@ -63,6 +70,7 @@ export declare class UnbluUtil {
|
|
|
63
70
|
static getOrCreateUnbluObject(): UnbluObject;
|
|
64
71
|
static deinitializeFloatingIfNeeded(): Promise<void>;
|
|
65
72
|
static deinitializeEmbeddedIfNeeded(excludedAppElement?: InitializedUnbluElement): Promise<void>;
|
|
73
|
+
static deinitializeBranchClientIfNeeded(excludedAppElement?: InitializedUnbluElement): Promise<void>;
|
|
66
74
|
static sanitizeParameter(param: string): string;
|
|
67
75
|
}
|
|
68
76
|
export {};
|
|
@@ -9,12 +9,14 @@ export var IntegrationType;
|
|
|
9
9
|
(function (IntegrationType) {
|
|
10
10
|
IntegrationType["embedded"] = "embedded";
|
|
11
11
|
IntegrationType["floating"] = "floating";
|
|
12
|
+
IntegrationType["branchClient"] = "branch-client";
|
|
12
13
|
})(IntegrationType || (IntegrationType = {}));
|
|
13
14
|
var EntryPoint;
|
|
14
15
|
(function (EntryPoint) {
|
|
15
16
|
EntryPoint["siteIntegrationGreedyMain"] = "SiteIntegrationGreedyMain";
|
|
16
17
|
EntryPoint["siteIntegrationLazyMain"] = "SiteIntegrationLazyMain";
|
|
17
18
|
EntryPoint["siteEmbeddedMain"] = "SiteEmbeddedMain";
|
|
19
|
+
EntryPoint["branchClientMain"] = "BranchClientMain";
|
|
18
20
|
})(EntryPoint || (EntryPoint = {}));
|
|
19
21
|
class NamedAreaMetaTag extends Element {
|
|
20
22
|
}
|
|
@@ -160,6 +162,7 @@ export class UnbluUtil {
|
|
|
160
162
|
const unbluInternal = window[unblu.globalPrefix];
|
|
161
163
|
return {
|
|
162
164
|
apiKey: unblu.APIKEY,
|
|
165
|
+
branchClientToken: unblu.BRANCHCLIENTTOKEN,
|
|
163
166
|
serverUrl: unblu.SERVER,
|
|
164
167
|
entryPath: unbluInternal === null || unbluInternal === void 0 ? void 0 : unbluInternal.$_baseCfg.entryPath,
|
|
165
168
|
locale: unblu.l,
|
|
@@ -173,6 +176,9 @@ export class UnbluUtil {
|
|
|
173
176
|
else if (integrationType === IntegrationType.floating) {
|
|
174
177
|
return UnbluUtil.getUnbluObject().entryPoint === EntryPoint.siteIntegrationGreedyMain || UnbluUtil.getUnbluObject().entryPoint === EntryPoint.siteIntegrationLazyMain;
|
|
175
178
|
}
|
|
179
|
+
else if (integrationType === IntegrationType.branchClient) {
|
|
180
|
+
return UnbluUtil.getUnbluObject().entryPoint === EntryPoint.branchClientMain;
|
|
181
|
+
}
|
|
176
182
|
else {
|
|
177
183
|
return false;
|
|
178
184
|
}
|
|
@@ -217,6 +223,17 @@ export class UnbluUtil {
|
|
|
217
223
|
await appElement.deinitialize({ destroyMode: DestroyMode.REINIT });
|
|
218
224
|
}
|
|
219
225
|
}
|
|
226
|
+
static async deinitializeBranchClientIfNeeded(excludedAppElement) {
|
|
227
|
+
const unbluAppElements = document.getElementsByTagName('unblu-branch-client-app');
|
|
228
|
+
for (let i = 0; i < unbluAppElements.length; i++) {
|
|
229
|
+
const appElement = unbluAppElements[i];
|
|
230
|
+
if (appElement === excludedAppElement) {
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
console.log("Deinitializing existing branch client integration:", appElement);
|
|
234
|
+
await appElement.deinitialize();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
220
237
|
static sanitizeParameter(param) {
|
|
221
238
|
if (!param || !param.trim()) {
|
|
222
239
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unblu-util.js","sourceRoot":"","sources":["../../../../src/shared/internal/unblu-util.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAClB;;GAEG;AACH,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAA;AAGrC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGjD,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"unblu-util.js","sourceRoot":"","sources":["../../../../src/shared/internal/unblu-util.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAClB;;GAEG;AACH,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAA;AAGrC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGjD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,iDAA8B,CAAA;AAClC,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,IAAK,UAKJ;AALD,WAAK,UAAU;IACX,qEAAuD,CAAA;IACvD,iEAAmD,CAAA;IACnD,mDAAqC,CAAA;IACrC,mDAAqC,CAAA;AACzC,CAAC,EALI,UAAU,KAAV,UAAU,QAKd;AA6CD,MAAM,gBAAiB,SAAQ,OAAO;CAErC;AAUD,MAAM,OAAO,SAAS;IAClB,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,OAAe;QAChD,MAAM,WAAW,GAAG,OAAO,IAAI,KAAK,CAAA;QACpC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa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* Name of the language in the current locale
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Native name of the language localized with the language of this instance
|
|
12
|
+
*/
|
|
13
|
+
nativeName: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../../../../src/shared/model/branchclient/language.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AgentAvailabilityState } from "../agent-availability-state";
|
|
2
|
+
export interface NamedAreaAgentAvailability {
|
|
3
|
+
/**
|
|
4
|
+
* Display name of named area
|
|
5
|
+
*/
|
|
6
|
+
displayName: string;
|
|
7
|
+
/**
|
|
8
|
+
* Description of named area
|
|
9
|
+
*/
|
|
10
|
+
description: string;
|
|
11
|
+
/**
|
|
12
|
+
* Site ID of named area
|
|
13
|
+
*/
|
|
14
|
+
namedAreaSiteId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Agent availability state of named area
|
|
17
|
+
*/
|
|
18
|
+
availability: AgentAvailabilityState;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"named-area-agent-availability.js","sourceRoot":"","sources":["../../../../../src/shared/model/branchclient/named-area-agent-availability.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum CallConnectionState {
|
|
2
|
+
/**
|
|
3
|
+
* Call is connecting to call service
|
|
4
|
+
*/
|
|
5
|
+
CONNECTING = "CONNECTING",
|
|
6
|
+
/**
|
|
7
|
+
* Call is connected to call service
|
|
8
|
+
*/
|
|
9
|
+
CONNECTED = "CONNECTED",
|
|
10
|
+
/**
|
|
11
|
+
* Call is reconnecting to call service, possibly due to poor internet connectivity
|
|
12
|
+
*/
|
|
13
|
+
RECONNECTING = "RECONNECTING",
|
|
14
|
+
/**
|
|
15
|
+
* Call is disconnected, either because there is no call in the conversation or it isn't joined
|
|
16
|
+
*/
|
|
17
|
+
DISCONNECTED = "DISCONNECTED"
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var CallConnectionState;
|
|
2
|
+
(function (CallConnectionState) {
|
|
3
|
+
/**
|
|
4
|
+
* Call is connecting to call service
|
|
5
|
+
*/
|
|
6
|
+
CallConnectionState["CONNECTING"] = "CONNECTING";
|
|
7
|
+
/**
|
|
8
|
+
* Call is connected to call service
|
|
9
|
+
*/
|
|
10
|
+
CallConnectionState["CONNECTED"] = "CONNECTED";
|
|
11
|
+
/**
|
|
12
|
+
* Call is reconnecting to call service, possibly due to poor internet connectivity
|
|
13
|
+
*/
|
|
14
|
+
CallConnectionState["RECONNECTING"] = "RECONNECTING";
|
|
15
|
+
/**
|
|
16
|
+
* Call is disconnected, either because there is no call in the conversation or it isn't joined
|
|
17
|
+
*/
|
|
18
|
+
CallConnectionState["DISCONNECTED"] = "DISCONNECTED";
|
|
19
|
+
})(CallConnectionState || (CallConnectionState = {}));
|
|
20
|
+
//# sourceMappingURL=call-connection-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-connection-state.js","sourceRoot":"","sources":["../../../../src/shared/model/call-connection-state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAiBX;AAjBD,WAAY,mBAAmB;IAC3B;;OAEG;IACH,gDAAyB,CAAA;IACzB;;OAEG;IACH,8CAAuB,CAAA;IACvB;;OAEG;IACH,oDAA6B,CAAA;IAC7B;;OAEG;IACH,oDAA6B,CAAA;AACjC,CAAC,EAjBW,mBAAmB,KAAnB,mBAAmB,QAiB9B"}
|
|
@@ -8,7 +8,11 @@ export declare enum CallState {
|
|
|
8
8
|
*/
|
|
9
9
|
OUTBOUND = "OUTBOUND",
|
|
10
10
|
/**
|
|
11
|
-
* A call is active and the local tab is connected to the call.
|
|
11
|
+
* A call is active and the local tab is connected to the call, however there is currently no other participant in the call.
|
|
12
|
+
*/
|
|
13
|
+
ACTIVE_JOINED_ALONE = "ACTIVE_JOINED_ALONE",
|
|
14
|
+
/**
|
|
15
|
+
* A call is active and the local tab is connected to the call and there is at least one other participant to which the connection is established.
|
|
12
16
|
*/
|
|
13
17
|
ACTIVE_JOINED = "ACTIVE_JOINED",
|
|
14
18
|
/**
|
|
@@ -9,7 +9,11 @@ export var CallState;
|
|
|
9
9
|
*/
|
|
10
10
|
CallState["OUTBOUND"] = "OUTBOUND";
|
|
11
11
|
/**
|
|
12
|
-
* A call is active and the local tab is connected to the call.
|
|
12
|
+
* A call is active and the local tab is connected to the call, however there is currently no other participant in the call.
|
|
13
|
+
*/
|
|
14
|
+
CallState["ACTIVE_JOINED_ALONE"] = "ACTIVE_JOINED_ALONE";
|
|
15
|
+
/**
|
|
16
|
+
* A call is active and the local tab is connected to the call and there is at least one other participant to which the connection is established.
|
|
13
17
|
*/
|
|
14
18
|
CallState["ACTIVE_JOINED"] = "ACTIVE_JOINED";
|
|
15
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-state.js","sourceRoot":"","sources":["../../../../src/shared/model/call-state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"call-state.js","sourceRoot":"","sources":["../../../../src/shared/model/call-state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACjB;;OAEG;IACH,gCAAmB,CAAA;IACnB;;OAEG;IACH,kCAAqB,CAAA;IACrB;;OAEG;IACH,wDAA2C,CAAA;IAC3C;;OAEG;IACH,4CAA+B,CAAA;IAC/B;;OAEG;IACH,oDAAuC,CAAA;IACvC;;OAEG;IACH,gEAAmD,CAAA;IACnD;;OAEG;IACH,0BAAa,CAAA;AACjB,CAAC,EA7BW,SAAS,KAAT,SAAS,QA6BpB"}
|
|
@@ -7,6 +7,13 @@ export interface Configuration {
|
|
|
7
7
|
* This requires the `ADMIN` user role.
|
|
8
8
|
*/
|
|
9
9
|
apiKey: string;
|
|
10
|
+
/**
|
|
11
|
+
* The BranchClient token to use.
|
|
12
|
+
* This is a mandatory configuration for the branch client. When branch clients are defined in the branch client
|
|
13
|
+
* configuration on the collaboration server, the token will be generated and can be retrieved from there.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
branchClientToken?: string;
|
|
10
17
|
/**
|
|
11
18
|
* The URL of the Unblu server to connect to.
|
|
12
19
|
*
|
|
@@ -39,5 +39,9 @@ export declare enum ConversationType {
|
|
|
39
39
|
* (Api initiated, visitor centered) A visitor creates a conversation via API which is not added to the queue and where he can invite other visitor to do
|
|
40
40
|
* embedded
|
|
41
41
|
*/
|
|
42
|
-
VISITOR_COBROWSING = "VISITOR_COBROWSING"
|
|
42
|
+
VISITOR_COBROWSING = "VISITOR_COBROWSING",
|
|
43
|
+
/**
|
|
44
|
+
* (Visitor initiated, visitor centered) A visitor creates an incoming branch client conversation.
|
|
45
|
+
*/
|
|
46
|
+
BRANCH_CLIENT_REQUEST = "BRANCH_CLIENT_REQUEST"
|
|
43
47
|
}
|
|
@@ -41,5 +41,9 @@ export var ConversationType;
|
|
|
41
41
|
* embedded
|
|
42
42
|
*/
|
|
43
43
|
ConversationType["VISITOR_COBROWSING"] = "VISITOR_COBROWSING";
|
|
44
|
+
/**
|
|
45
|
+
* (Visitor initiated, visitor centered) A visitor creates an incoming branch client conversation.
|
|
46
|
+
*/
|
|
47
|
+
ConversationType["BRANCH_CLIENT_REQUEST"] = "BRANCH_CLIENT_REQUEST";
|
|
44
48
|
})(ConversationType || (ConversationType = {}));
|
|
45
49
|
//# sourceMappingURL=conversation-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-type.js","sourceRoot":"","sources":["../../../../src/shared/model/conversation-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"conversation-type.js","sourceRoot":"","sources":["../../../../src/shared/model/conversation-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBA8CX;AA9CD,WAAY,gBAAgB;IACxB;;OAEG;IACH,iDAA6B,CAAA;IAC7B;;OAEG;IACH,iEAA6C,CAAA;IAC7C;;OAEG;IACH,mDAA+B,CAAA;IAC/B;;OAEG;IACH,mDAA+B,CAAA;IAC/B;;OAEG;IACH,yEAAqD,CAAA;IACrD;;OAEG;IACH,qEAAiD,CAAA;IACjD;;OAEG;IACH,2EAAuD,CAAA;IACvD;;OAEG;IACH,6DAAyC,CAAA;IACzC;;OAEG;IACH,qEAAiD,CAAA;IACjD;;;OAGG;IACH,6DAAyC,CAAA;IACzC;;OAEG;IACH,mEAA+C,CAAA;AACnD,CAAC,EA9CW,gBAAgB,KAAhB,gBAAgB,QA8C3B"}
|
|
@@ -413,7 +413,7 @@ export declare class UnbluEmbeddedApi implements InitializedUnbluApi {
|
|
|
413
413
|
* @default false
|
|
414
414
|
* @return A promise that resolves with true if the UI is in fullscreen mode, false otherwise
|
|
415
415
|
*
|
|
416
|
-
* @see {@link setFullscreen} to set the value and for further details on the
|
|
416
|
+
* @see {@link setFullscreen} to set the value and for further details on the fullscreen mode
|
|
417
417
|
* @see {@link UnbluEmbeddedAppElement.fullscreen} for the corresponding property on the element
|
|
418
418
|
*
|
|
419
419
|
* @throws {@link UnbluApiError} with type {@link UnbluErrorType.ILLEGAL_STATE} when the API instance is deinitialized.
|
|
@@ -193,7 +193,7 @@ export class UnbluEmbeddedApi {
|
|
|
193
193
|
* @default false
|
|
194
194
|
* @return A promise that resolves with true if the UI is in fullscreen mode, false otherwise
|
|
195
195
|
*
|
|
196
|
-
* @see {@link setFullscreen} to set the value and for further details on the
|
|
196
|
+
* @see {@link setFullscreen} to set the value and for further details on the fullscreen mode
|
|
197
197
|
* @see {@link UnbluEmbeddedAppElement.fullscreen} for the corresponding property on the element
|
|
198
198
|
*
|
|
199
199
|
* @throws {@link UnbluApiError} with type {@link UnbluErrorType.ILLEGAL_STATE} when the API instance is deinitialized.
|
package/dist/lib/web-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@unblu/embedded-app-component","version":"8.14.4","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"unblu-embedded-app","description":"Unblu Embedded App Component allows to integrate Unblu into a website using a web component","attributes":[{"name":"server-url","description":"The URL to the collaboration server.\n\nIf not specified it is assumed that the server is reachable on the domain of the current webpage at the defined {@link UnbluEmbeddedAppElement.entryPath}\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.serverUrl} to set or get this via a property\n"},{"name":"entry-path","description":"The path pointing to the root of the Unblu collaboration server.\n\n@default \"/unblu\".\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.entryPath} to set or get this via a property\n"},{"name":"api-key","description":"The API Key to connect this app with a specific Unblu account\nThis is the minimum configuration that has to be done to trigger the initialization of Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.apiKey} to set or get this via a property\n"},{"name":"locale","description":"The locale (language) used for all Unblu UIs.\nIf not specified this is derived from the webpage or the browser.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see [https://www.unblu.com/en/docs/4.3/articles/installation-and-operation/selecting-the-language.html | Setting the Language / Locale] for more information on the detection.\n@see {@link UnbluEmbeddedAppElement.locale} to set or get this via a property\n"},{"name":"named-area","description":"The named area for which the configuration should be loaded and with which new queue requests will be labeled.\nIf not specified this can be derived from the corresponding meta tag on the webpage or the domain.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\nIf this is not desired it can be prevented by changing the named area via a meta tag, however in this case this will only effect the queue routing and not the configuration.\nAlternatively you can disable the automatic initialization.\n\n@see {@link https://www.unblu.com/en/docs/latest/knowledge-base/named-areas.html | Named Area} for further details.\n@see {@link UnbluEmbeddedAppElement.namedArea} to set or get this via a property\n"},{"name":"access-token","description":"The access token used to log the user in before initializing Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.accessToken} to set or get this via a property\n"},{"name":"conversation-id","description":"Opens the conversation with the specified ID.\nIf Unblu is not initialized yet, it will wait for the initialization and then automatically open the specified conversation.\nIf Unblu is already initialized, the conversation will be opened directly.\n\nIf the conversation doesn't exist or the user doesn't have the right to access it, a dialog will be displayed with the respective error message.\n\n@see {@link UnbluEmbeddedAppElement.openConversation} to set this value and also retrieve a promise to know, when the conversation was opened.\n@see {@link UnbluEmbeddedAppElement.conversationId} to read the value as property. This will always represent the currently opened conversation.\n"},{"name":"view-mode","description":"Sets the view mode of the embedded app element.\n\nDepending on the view mode the UI is displayed the following way:\n- {@link ViewMode.SPLIT}: The UI will be divided into two parts.\nThe list of conversations is displayed on the left and the active conversation on the right side.\n\n- {@link ViewMode.SINGLE}: Both the conversation list and the active conversation will be displayed in the same view using UI navigation to switch between them.\n\n- {@link ViewMode.AUTO}: The UI will automatically switch back and forth between the two other modes depending on the available width.\nThe trigger point when to switch between the two modes can be configured on the Unblu collaboration server.\n\nThis value can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n@see {@link UnbluEmbeddedAppElement.viewMode} to set or get this via a property\n@default {@link ViewMode.AUTO}\n"},{"name":"fullscreen","description":"When this attribute is set to true, the embedded app will ignore the position and size set to its element and will used fixed positioning to display itself to cover the whole website.\n\nThis is useful when the user is currently in a call.\n\nThis can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n**Note**: The user itself can also toggle this inside the UI.\n\n@see {@link UnbluEmbeddedAppElement.fullscreen} to set or get this via a property\n@default false\n"},{"name":"init-timeout","description":"The timeout im milliseconds that should be waited for the Unblu integration to load.\n\n@default 30'000 (30 seconds).\n\n@see {@link UnbluEmbeddedAppElement.initTimeout} to set or get this via a property\n"},{"name":"auto-init","description":"Defines if Unblu automatically tries to (re-)initialize as soon as an attribute or property changes that triggers (re-)initialization.\n\nTo trigger a initialization at least the attribute {@link ATTR_API_KEY} or property {@link UnbluEmbeddedAppElement.apiKey}.\n\n@default true.\n\n@see {@link UnbluEmbeddedAppElement.autoInit} to set or get this via a property\n"}],"js":{"events":[{"name":"stateChange","description":"Event emitted whenever the API state changes\n\n@see {@link StateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"ready","description":"Event emitted as soon as the API is initialized.\n\nIt usually makes sense to use this event to wait for APIs on this element to be ready. E.g. the {@link UnbluEmbeddedAppElement.personInfo} or {@link UnbluEmbeddedAppElement.agentAvailable}.\nYou will find a note in the documentation of the properties when they are only available after initialization.\n\n@see {@link ReadyEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"error","description":"Event emitted if the API initialization fails.\n\nIt usually makes sense to use this event if there is some general action that has to be triggered when the API initialization fails.\n\n@see {@link ErrorEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"deinitializing","description":"Event emitted when the de-initialization of the API is started..\n\nIt usually makes sense to use this event to clean up resources and/or unregistering of listeners so they don't try to use the API again until it is initialized again.\n\n@see {@link DeinitializationStartedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZING} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"deinitialized","description":"Event emitted when the de-initialization of the API has finished.\n\nIt usually makes sense to use this event if a re-initialization is required after de-init.\n\n@see {@link DeinitializationFinishedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZED} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"activeConversationChange","description":"Event emitted every time one of the conversations accessible to the current user changes or one is added or removed.\n\n@see {@link ActiveConversationChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.ACTIVE_CONVERSATION_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"fullscreenChange","description":"Event emitted every time the embedded app switches to fullscreen mode or back.\n\n@see {@link UnbluEmbeddedAppElement.FULLSCREEN_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.FULLSCREEN_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"viewModeChange","description":"Event emitted every time the view mode changes.\n\n@see {@link UnbluEmbeddedAppElement.VIEW_MODE_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.VIEW_MODE_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"}]}}]}}}
|
|
1
|
+
{"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@unblu/embedded-app-component","version":"8.16.2","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"unblu-embedded-app","description":"Unblu Embedded App Component allows to integrate Unblu into a website using a web component","attributes":[{"name":"server-url","description":"The URL to the collaboration server.\n\nIf not specified it is assumed that the server is reachable on the domain of the current webpage at the defined {@link UnbluEmbeddedAppElement.entryPath}\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.serverUrl} to set or get this via a property\n"},{"name":"entry-path","description":"The path pointing to the root of the Unblu collaboration server.\n\n@default \"/unblu\".\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.entryPath} to set or get this via a property\n"},{"name":"api-key","description":"The API Key to connect this app with a specific Unblu account\nThis is the minimum configuration that has to be done to trigger the initialization of Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.apiKey} to set or get this via a property\n"},{"name":"locale","description":"The locale (language) used for all Unblu UIs.\nIf not specified this is derived from the webpage or the browser.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see [https://www.unblu.com/en/docs/4.3/articles/installation-and-operation/selecting-the-language.html | Setting the Language / Locale] for more information on the detection.\n@see {@link UnbluEmbeddedAppElement.locale} to set or get this via a property\n"},{"name":"named-area","description":"The named area for which the configuration should be loaded and with which new queue requests will be labeled.\nIf not specified this can be derived from the corresponding meta tag on the webpage or the domain.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\nIf this is not desired it can be prevented by changing the named area via a meta tag, however in this case this will only effect the queue routing and not the configuration.\nAlternatively you can disable the automatic initialization.\n\n@see {@link https://www.unblu.com/en/docs/latest/knowledge-base/named-areas.html | Named Area} for further details.\n@see {@link UnbluEmbeddedAppElement.namedArea} to set or get this via a property\n"},{"name":"access-token","description":"The access token used to log the user in before initializing Unblu.\n\n**Note**: Changes to this attribute trigger a reinitialization of Unblu if {@link UnbluEmbeddedAppElement.ATTR_AUTO_INIT} is true.\n\n@see {@link UnbluEmbeddedAppElement.accessToken} to set or get this via a property\n"},{"name":"conversation-id","description":"Opens the conversation with the specified ID.\nIf Unblu is not initialized yet, it will wait for the initialization and then automatically open the specified conversation.\nIf Unblu is already initialized, the conversation will be opened directly.\n\nIf the conversation doesn't exist or the user doesn't have the right to access it, a dialog will be displayed with the respective error message.\n\n@see {@link UnbluEmbeddedAppElement.openConversation} to set this value and also retrieve a promise to know, when the conversation was opened.\n@see {@link UnbluEmbeddedAppElement.conversationId} to read the value as property. This will always represent the currently opened conversation.\n"},{"name":"view-mode","description":"Sets the view mode of the embedded app element.\n\nDepending on the view mode the UI is displayed the following way:\n- {@link ViewMode.SPLIT}: The UI will be divided into two parts.\nThe list of conversations is displayed on the left and the active conversation on the right side.\n\n- {@link ViewMode.SINGLE}: Both the conversation list and the active conversation will be displayed in the same view using UI navigation to switch between them.\n\n- {@link ViewMode.AUTO}: The UI will automatically switch back and forth between the two other modes depending on the available width.\nThe trigger point when to switch between the two modes can be configured on the Unblu collaboration server.\n\nThis value can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n@see {@link UnbluEmbeddedAppElement.viewMode} to set or get this via a property\n@default {@link ViewMode.AUTO}\n"},{"name":"fullscreen","description":"When this attribute is set to true, the embedded app will ignore the position and size set to its element and will used fixed positioning to display itself to cover the whole website.\n\nThis is useful when the user is currently in a call.\n\nThis can be set even if the API is not initialized yet.\nThe value will then be applied on initialization.\n\n**Note**: The user itself can also toggle this inside the UI.\n\n@see {@link UnbluEmbeddedAppElement.fullscreen} to set or get this via a property\n@default false\n"},{"name":"init-timeout","description":"The timeout im milliseconds that should be waited for the Unblu integration to load.\n\n@default 30'000 (30 seconds).\n\n@see {@link UnbluEmbeddedAppElement.initTimeout} to set or get this via a property\n"},{"name":"auto-init","description":"Defines if Unblu automatically tries to (re-)initialize as soon as an attribute or property changes that triggers (re-)initialization.\n\nTo trigger a initialization at least the attribute {@link ATTR_API_KEY} or property {@link UnbluEmbeddedAppElement.apiKey}.\n\n@default true.\n\n@see {@link UnbluEmbeddedAppElement.autoInit} to set or get this via a property\n"}],"js":{"events":[{"name":"stateChange","description":"Event emitted whenever the API state changes\n\n@see {@link StateChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"ready","description":"Event emitted as soon as the API is initialized.\n\nIt usually makes sense to use this event to wait for APIs on this element to be ready. E.g. the {@link UnbluEmbeddedAppElement.personInfo} or {@link UnbluEmbeddedAppElement.agentAvailable}.\nYou will find a note in the documentation of the properties when they are only available after initialization.\n\n@see {@link ReadyEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"error","description":"Event emitted if the API initialization fails.\n\nIt usually makes sense to use this event if there is some general action that has to be triggered when the API initialization fails.\n\n@see {@link ErrorEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n"},{"name":"deinitializing","description":"Event emitted when the de-initialization of the API is started..\n\nIt usually makes sense to use this event to clean up resources and/or unregistering of listeners so they don't try to use the API again until it is initialized again.\n\n@see {@link DeinitializationStartedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZING} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"deinitialized","description":"Event emitted when the de-initialization of the API has finished.\n\nIt usually makes sense to use this event if a re-initialization is required after de-init.\n\n@see {@link DeinitializationFinishedEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.DEINITIALIZED} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"activeConversationChange","description":"Event emitted every time one of the conversations accessible to the current user changes or one is added or removed.\n\n@see {@link ActiveConversationChangeEvent} for the event type\n@see {@link UnbluEmbeddedAppElement.addEventListener} for listener registration\n@see {@link UnbluEmbeddedAppElement.removeEventListener} to remove a listener\n@see {@link UnbluEmbeddedApi.ACTIVE_CONVERSATION_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"fullscreenChange","description":"Event emitted every time the embedded app switches to fullscreen mode or back.\n\n@see {@link UnbluEmbeddedAppElement.FULLSCREEN_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.FULLSCREEN_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"},{"name":"viewModeChange","description":"Event emitted every time the view mode changes.\n\n@see {@link UnbluEmbeddedAppElement.VIEW_MODE_CHANGE}\n@see {@link UnbluEmbeddedAppElement.addEventListener}\n@see {@link UnbluEmbeddedAppElement.removeEventListener}\n@see {@link UnbluEmbeddedApi.VIEW_MODE_CHANGE} for the event on the initialized {@link UnbluEmbeddedApi} instance\n"}]}}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblu/embedded-app-component",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.16.2",
|
|
4
4
|
"description": "Unblu Embedded App Component allows to integrate Unblu into a website using a web component",
|
|
5
5
|
"homepage": "https://www.unblu.com/en/docs/latest/reference/unblu-embedded-js-api/",
|
|
6
6
|
"author": "Denis Trueby",
|