@unblu/floating-js-api 8.24.0 → 8.25.1
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/index.d.ts +7 -2
- package/dist/lib/index.js +3 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/internal/module/meta-module.d.ts +4 -1
- package/dist/lib/internal/module/meta-module.js +3 -0
- package/dist/lib/internal/module/meta-module.js.map +1 -1
- package/dist/lib/shared/conversation.d.ts +52 -2
- package/dist/lib/shared/conversation.js +51 -0
- package/dist/lib/shared/conversation.js.map +1 -1
- package/dist/lib/shared/internal/module/conversation-module.d.ts +15 -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/model/collaboration-layer-state.d.ts +19 -0
- package/dist/lib/shared/model/collaboration-layer-state.js +21 -0
- package/dist/lib/shared/model/collaboration-layer-state.js.map +1 -0
- package/dist/lib/shared/model/collaboration-layer-type.d.ts +37 -0
- package/dist/lib/shared/model/collaboration-layer-type.js +39 -0
- package/dist/lib/shared/model/collaboration-layer-type.js.map +1 -0
- package/dist/lib/shared/model/collaboration-layer.d.ts +26 -0
- package/dist/lib/shared/model/collaboration-layer.js +2 -0
- package/dist/lib/shared/model/collaboration-layer.js.map +1 -0
- package/dist/lib/shared/model/connection-state-container.d.ts +23 -0
- package/dist/lib/shared/model/connection-state-container.js +2 -0
- package/dist/lib/shared/model/connection-state-container.js.map +1 -0
- package/dist/lib/shared/model/error-reason.d.ts +42 -0
- package/dist/lib/shared/model/error-reason.js +44 -0
- package/dist/lib/shared/model/error-reason.js.map +1 -0
- package/dist/lib/unblu-api.d.ts +26 -0
- package/dist/lib/unblu-api.js +24 -0
- package/dist/lib/unblu-api.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AgentAvailabilityChangeListener, AgentAvailableChangeListener, ConversationChangeListener, ConversationsChangeListener, NotificationCountChangeListener, PersonActivityListener, PersonChangeListener, UnbluApi, DeinitializationListener } from './unblu-api';
|
|
2
|
-
export { CallStateListener,
|
|
1
|
+
export { AgentAvailabilityChangeListener, AgentAvailableChangeListener, ConversationChangeListener, ConversationsChangeListener, NotificationCountChangeListener, PersonActivityListener, PersonChangeListener, ConnectionStateChangeListener, UnbluApi, DeinitializationListener } from './unblu-api';
|
|
2
|
+
export { CallStateListener, ConversationConnectionStateListener, Conversation, ConversationStateListener, CustomActionInvocationListener, QueueStatusChangeListener, CallConnectionStateChangeListener, DisplayedCollaborationLayerChangeListener, CollaborationLayersChangeListener } from './shared/conversation';
|
|
3
3
|
export { NewConversationInterceptor } from "./shared/new-conversation-interceptor";
|
|
4
4
|
export { NewConversationInterceptorResult } from "./shared/model/new-conversation-interceptor-result";
|
|
5
5
|
export { ApiState } from "./shared/api-state";
|
|
@@ -19,6 +19,11 @@ export { ConversationParticipationType } from "./shared/model/conversation-parti
|
|
|
19
19
|
export { CustomActionInvocation } from "./shared/model/customaction/custom-action-invocation";
|
|
20
20
|
export { CallConnectionState } from "./shared/model/call-connection-state";
|
|
21
21
|
export { ConversationQueueStatus } from "./shared/model/conversation-queue-status";
|
|
22
|
+
export { CollaborationLayer } from "./shared/model/collaboration-layer";
|
|
23
|
+
export { CollaborationLayerState } from "./shared/model/collaboration-layer-state";
|
|
24
|
+
export { CollaborationLayerType } from "./shared/model/collaboration-layer-type";
|
|
25
|
+
export { ConnectionStateContainer } from "./shared/model/connection-state-container";
|
|
26
|
+
export { ErrorReason } from "./shared/model/error-reason";
|
|
22
27
|
import { AgentAvailabilityState } from './shared/model/agent-availability-state';
|
|
23
28
|
import { CallState } from './shared/model/call-state';
|
|
24
29
|
import { ConnectionState } from './shared/model/connection-state';
|
package/dist/lib/index.js
CHANGED
|
@@ -8,6 +8,9 @@ export { UnbluUiApi } from "./unblu-api-ui";
|
|
|
8
8
|
export { ConversationParticipationType } from "./shared/model/conversation-participation-type";
|
|
9
9
|
export { CallConnectionState } from "./shared/model/call-connection-state";
|
|
10
10
|
export { ConversationQueueStatus } from "./shared/model/conversation-queue-status";
|
|
11
|
+
export { CollaborationLayerState } from "./shared/model/collaboration-layer-state";
|
|
12
|
+
export { CollaborationLayerType } from "./shared/model/collaboration-layer-type";
|
|
13
|
+
export { ErrorReason } from "./shared/model/error-reason";
|
|
11
14
|
import { AgentAvailabilityState } from './shared/model/agent-availability-state';
|
|
12
15
|
import { CallState } from './shared/model/call-state';
|
|
13
16
|
import { ConnectionState } from './shared/model/connection-state';
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EASH,QAAQ,EAEX,MAAM,aAAa,CAAA;AACpB,OAAO,EAGH,YAAY,EAOf,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAG3C,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAA;AAEpF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAgE,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAIxG,OAAO,EAAC,6BAA6B,EAAC,MAAM,gDAAgD,CAAA;AAE5F,OAAO,EAAC,mBAAmB,EAAC,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAEjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAC;AAE/E,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAGxD,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAElD,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACjB,CAAA;AAuDD,eAAe;IACX;;OAEG;IACH,GAAG,EAAE,IAAI,cAAc,EAAE;IAEzB,sBAAsB,EAAE,sBAAsB;IAE9C,SAAS,EAAE,SAAS;IAEpB,eAAe,EAAE,eAAe;IAEhC,iBAAiB,EAAE,iBAAiB;IAEpC,gBAAgB,EAAE,gBAAgB;IAElC,cAAc,EAAE,cAAc;CACjC,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { InternalModule } from '../../shared/internal/module/module';
|
|
2
2
|
import { ApiBridge } from '../../shared/internal/api-bridge';
|
|
3
3
|
import { DestroyOptions } from "../../shared/internal/model/destroy-options";
|
|
4
|
-
|
|
4
|
+
import { ConnectionStateContainer } from "../../shared/model/connection-state-container";
|
|
5
|
+
export type MetaEventType = 'upgraded' | 'connectionStateChange' | 'deinitializing' | 'deinitialized';
|
|
5
6
|
declare const enum MetaFunction {
|
|
6
7
|
isUpgraded = "isUpgraded",
|
|
7
8
|
upgrade = "upgrade",
|
|
8
9
|
waitUntilInitialized = "waitUntilInitialized",
|
|
10
|
+
getConnectionState = "getConnectionState",
|
|
9
11
|
deinitialize = "deinitialize"
|
|
10
12
|
}
|
|
11
13
|
export declare class MetaModule extends InternalModule<MetaFunction, MetaEventType> {
|
|
@@ -13,6 +15,7 @@ export declare class MetaModule extends InternalModule<MetaFunction, MetaEventTy
|
|
|
13
15
|
isUpgraded(): Promise<boolean>;
|
|
14
16
|
upgrade(openUi?: boolean): Promise<boolean>;
|
|
15
17
|
waitUntilInitialized(): Promise<void>;
|
|
18
|
+
getConnectionState(): Promise<ConnectionStateContainer>;
|
|
16
19
|
deinitialize(destroyOptions?: DestroyOptions): Promise<boolean>;
|
|
17
20
|
}
|
|
18
21
|
export {};
|
|
@@ -12,6 +12,9 @@ export class MetaModule extends InternalModule {
|
|
|
12
12
|
waitUntilInitialized() {
|
|
13
13
|
return this.callApiFunction("waitUntilInitialized" /* MetaFunction.waitUntilInitialized */, []);
|
|
14
14
|
}
|
|
15
|
+
getConnectionState() {
|
|
16
|
+
return this.callApiFunction("getConnectionState" /* MetaFunction.getConnectionState */, []);
|
|
17
|
+
}
|
|
15
18
|
deinitialize(destroyOptions) {
|
|
16
19
|
return this.callApiFunction("deinitialize" /* MetaFunction.deinitialize */, [destroyOptions]);
|
|
17
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-module.js","sourceRoot":"","sources":["../../../../src/internal/module/meta-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"meta-module.js","sourceRoot":"","sources":["../../../../src/internal/module/meta-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAoBlE,MAAM,OAAO,UAAW,SAAQ,cAA2C;IACvE,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,eAAe,6CAA0B,EAAE,CAAC,CAAA;IAC5D,CAAC;IAEM,OAAO,CAAC,MAAgB;QAC3B,OAAO,IAAI,CAAC,eAAe,uCAAuB,CAAC,MAAM,CAAC,CAAC,CAAA;IAC/D,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,iEAAoC,EAAE,CAAC,CAAA;IACtE,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,CAAC,eAAe,6DAAkC,EAAE,CAAC,CAAA;IACpE,CAAC;IAEM,YAAY,CAAC,cAA+B;QAC/C,OAAO,IAAI,CAAC,eAAe,iDAA4B,CAAC,cAAc,CAAC,CAAC,CAAA;IAC5E,CAAC;CACJ"}
|
|
@@ -6,11 +6,14 @@ import { ConnectionState } from './model/connection-state';
|
|
|
6
6
|
import { CustomActionInvocation } from './model/customaction/custom-action-invocation';
|
|
7
7
|
import { CallConnectionState } from "./model/call-connection-state";
|
|
8
8
|
import { ConversationQueueStatus } from "./model/conversation-queue-status";
|
|
9
|
-
|
|
9
|
+
import { CollaborationLayer } from "./model/collaboration-layer";
|
|
10
|
+
export type ConversationConnectionStateListener = (connectionState: ConnectionState) => void;
|
|
10
11
|
export type ConversationStateListener = (conversationState: ConversationState) => void;
|
|
11
12
|
export type CallStateListener = (callState: CallState) => void;
|
|
12
13
|
export type QueueStatusChangeListener = (conversationQueueStatus: ConversationQueueStatus) => void;
|
|
13
14
|
export type CallConnectionStateChangeListener = (callConnectionState: CallConnectionState) => void;
|
|
15
|
+
export type DisplayedCollaborationLayerChangeListener = (conversationLayer: CollaborationLayer | null) => void;
|
|
16
|
+
export type CollaborationLayersChangeListener = (conversationLayers: CollaborationLayer[]) => void;
|
|
14
17
|
/**
|
|
15
18
|
* Listener called whenever a custom action invocation triggers an API event for the client
|
|
16
19
|
* @param customActionInvocation The details of the custom action invocation
|
|
@@ -59,6 +62,21 @@ export declare class Conversation {
|
|
|
59
62
|
* @see {@link on} for listener registration
|
|
60
63
|
*/
|
|
61
64
|
static readonly CALL_CONNECTION_STATE_CHANGE: 'callConnectionStateChange';
|
|
65
|
+
/**
|
|
66
|
+
* Event emitted when the displayed {@link CollaborationLayer} of the conversation changes
|
|
67
|
+
* @event displayedCollaborationLayerChange
|
|
68
|
+
* @see {@link on} for listener registration
|
|
69
|
+
*/
|
|
70
|
+
static readonly DISPLAYED_COLLABORATION_LAYER_CHANGE: 'displayedCollaborationLayerChange';
|
|
71
|
+
/**
|
|
72
|
+
* Event emitted when the collaboration layers {@link CollaborationLayer} of the conversation change, that is, when:
|
|
73
|
+
* - A collaboration layer is added to or removed from the conversation
|
|
74
|
+
* - A collaboration layer's {@link CollaborationLayerState} or {@link CollaborationLayer.displayed} flag changes
|
|
75
|
+
* @event collaborationLayersChange
|
|
76
|
+
* @see {@link on} for listener registration
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
static readonly COLLABORATION_LAYERS_CHANGE: 'collaborationLayersChange';
|
|
62
80
|
/**
|
|
63
81
|
* Event emitted when the conversation ends.
|
|
64
82
|
* @deprecated The end event is not always available, depending on the configuration. Use the {@link CONVERSATION_STATE_CHANGE} event instead.
|
|
@@ -98,7 +116,7 @@ export declare class Conversation {
|
|
|
98
116
|
* @param listener The listener to be called.
|
|
99
117
|
* @see {@link CONNECTION_STATE_CHANGE}
|
|
100
118
|
*/
|
|
101
|
-
on(event: typeof Conversation.CONNECTION_STATE_CHANGE, listener:
|
|
119
|
+
on(event: typeof Conversation.CONNECTION_STATE_CHANGE, listener: ConversationConnectionStateListener): void;
|
|
102
120
|
/**
|
|
103
121
|
* Registers an event listener for the given event.
|
|
104
122
|
* @param event The conversation state change event.
|
|
@@ -127,6 +145,20 @@ export declare class Conversation {
|
|
|
127
145
|
* @see {@link CALL_CONNECTION_STATE_CHANGE}
|
|
128
146
|
*/
|
|
129
147
|
on(event: typeof Conversation.CALL_CONNECTION_STATE_CHANGE, listener: CallConnectionStateChangeListener): void;
|
|
148
|
+
/**
|
|
149
|
+
* Registers an event listener for the given event
|
|
150
|
+
* @param event The collaboration layers change event
|
|
151
|
+
* @param listener The listener to be called
|
|
152
|
+
* @see {@link COLLABORATION_LAYERS_CHANGE}
|
|
153
|
+
*/
|
|
154
|
+
on(event: typeof Conversation.COLLABORATION_LAYERS_CHANGE, listener: CollaborationLayersChangeListener): void;
|
|
155
|
+
/**
|
|
156
|
+
* Registers an event listener for the given event
|
|
157
|
+
* @param event The displayed collaboration layer change event
|
|
158
|
+
* @param listener The listener to be called
|
|
159
|
+
* @see {@link DISPLAYED_COLLABORATION_LAYER_CHANGE}
|
|
160
|
+
*/
|
|
161
|
+
on(event: typeof Conversation.DISPLAYED_COLLABORATION_LAYER_CHANGE, listener: DisplayedCollaborationLayerChangeListener): void;
|
|
130
162
|
/**
|
|
131
163
|
* Registers an event listener for the given event.
|
|
132
164
|
* @deprecated The end event is not always available, depending on the configuration. Use instead {@link CONVERSATION_STATE_CHANGE} event.
|
|
@@ -208,6 +240,24 @@ export declare class Conversation {
|
|
|
208
240
|
* {@link CallConnectionState.DISCONNECTED} if there's no active call.
|
|
209
241
|
*/
|
|
210
242
|
getCallConnectionState(): Promise<CallConnectionState>;
|
|
243
|
+
/**
|
|
244
|
+
* Gets the currently displayed collaboration layer.
|
|
245
|
+
* The returned value is null if no layer is displayed.
|
|
246
|
+
* @see {@link DISPLAYED_COLLABORATION_LAYER_CHANGE} if you need to listen to changes.
|
|
247
|
+
* @return A promise that either resolves to the currently displayed collaboration layer of the conversation
|
|
248
|
+
* or to null if no layer is displayed.
|
|
249
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
250
|
+
*/
|
|
251
|
+
getDisplayedCollaborationLayer(): Promise<CollaborationLayer | null>;
|
|
252
|
+
/**
|
|
253
|
+
* Returns an immutable snapshot of all the collaboration layers currently present in the conversation, independent of their state.
|
|
254
|
+
* As a conversation unfolds, its collaboration layers can change based on participants and configuration. Subsequent calls to the
|
|
255
|
+
* method may therefore return a different collection.
|
|
256
|
+
* @see {@link COLLABORATION_LAYERS_CHANGE} if you need to listen to changes.
|
|
257
|
+
* @return A promise that resolves to the collaboration layers of the conversation
|
|
258
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
259
|
+
*/
|
|
260
|
+
getCollaborationLayers(): Promise<CollaborationLayer[]>;
|
|
211
261
|
/**
|
|
212
262
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
213
263
|
* data should be stored in the conversation metadata.
|
|
@@ -91,6 +91,18 @@ export class Conversation {
|
|
|
91
91
|
this.eventEmitter.emit(event.name, event.data);
|
|
92
92
|
};
|
|
93
93
|
break;
|
|
94
|
+
case Conversation.COLLABORATION_LAYERS_CHANGE:
|
|
95
|
+
internalListener = (event) => {
|
|
96
|
+
if (event.data.conversationId == this.conversationId)
|
|
97
|
+
this.eventEmitter.emit(event.name, event.data.layers);
|
|
98
|
+
};
|
|
99
|
+
break;
|
|
100
|
+
case Conversation.DISPLAYED_COLLABORATION_LAYER_CHANGE:
|
|
101
|
+
internalListener = (event) => {
|
|
102
|
+
if (event.data.conversationId == this.conversationId)
|
|
103
|
+
this.eventEmitter.emit(event.name, event.data.displayedLayer);
|
|
104
|
+
};
|
|
105
|
+
break;
|
|
94
106
|
default:
|
|
95
107
|
internalListener = (event) => {
|
|
96
108
|
if (event.data == this.conversationId) {
|
|
@@ -185,6 +197,30 @@ export class Conversation {
|
|
|
185
197
|
this.checkNotDestroyed();
|
|
186
198
|
return this.conversationModule.getCallConnectionState(this.conversationId);
|
|
187
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Gets the currently displayed collaboration layer.
|
|
202
|
+
* The returned value is null if no layer is displayed.
|
|
203
|
+
* @see {@link DISPLAYED_COLLABORATION_LAYER_CHANGE} if you need to listen to changes.
|
|
204
|
+
* @return A promise that either resolves to the currently displayed collaboration layer of the conversation
|
|
205
|
+
* or to null if no layer is displayed.
|
|
206
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
207
|
+
*/
|
|
208
|
+
async getDisplayedCollaborationLayer() {
|
|
209
|
+
this.checkNotDestroyed();
|
|
210
|
+
return this.conversationModule.getDisplayedCollaborationLayer(this.conversationId);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Returns an immutable snapshot of all the collaboration layers currently present in the conversation, independent of their state.
|
|
214
|
+
* As a conversation unfolds, its collaboration layers can change based on participants and configuration. Subsequent calls to the
|
|
215
|
+
* method may therefore return a different collection.
|
|
216
|
+
* @see {@link COLLABORATION_LAYERS_CHANGE} if you need to listen to changes.
|
|
217
|
+
* @return A promise that resolves to the collaboration layers of the conversation
|
|
218
|
+
* The promise is rejected with a {@link UnbluApiError} if the call fails.
|
|
219
|
+
*/
|
|
220
|
+
async getCollaborationLayers() {
|
|
221
|
+
this.checkNotDestroyed();
|
|
222
|
+
return this.conversationModule.getCollaborationLayers(this.conversationId);
|
|
223
|
+
}
|
|
188
224
|
/**
|
|
189
225
|
* Set custom visitor data on the conversation. Don't use for confidential information. Security-related
|
|
190
226
|
* data should be stored in the conversation metadata.
|
|
@@ -356,6 +392,21 @@ Conversation.QUEUE_STATUS_CHANGE = 'queueStatusChange';
|
|
|
356
392
|
* @see {@link on} for listener registration
|
|
357
393
|
*/
|
|
358
394
|
Conversation.CALL_CONNECTION_STATE_CHANGE = 'callConnectionStateChange';
|
|
395
|
+
/**
|
|
396
|
+
* Event emitted when the displayed {@link CollaborationLayer} of the conversation changes
|
|
397
|
+
* @event displayedCollaborationLayerChange
|
|
398
|
+
* @see {@link on} for listener registration
|
|
399
|
+
*/
|
|
400
|
+
Conversation.DISPLAYED_COLLABORATION_LAYER_CHANGE = 'displayedCollaborationLayerChange';
|
|
401
|
+
/**
|
|
402
|
+
* Event emitted when the collaboration layers {@link CollaborationLayer} of the conversation change, that is, when:
|
|
403
|
+
* - A collaboration layer is added to or removed from the conversation
|
|
404
|
+
* - A collaboration layer's {@link CollaborationLayerState} or {@link CollaborationLayer.displayed} flag changes
|
|
405
|
+
* @event collaborationLayersChange
|
|
406
|
+
* @see {@link on} for listener registration
|
|
407
|
+
* @private
|
|
408
|
+
*/
|
|
409
|
+
Conversation.COLLABORATION_LAYERS_CHANGE = 'collaborationLayersChange';
|
|
359
410
|
/**
|
|
360
411
|
* Event emitted when the conversation ends.
|
|
361
412
|
* @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":"AAaA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAC,YAAY,EAAW,MAAM,+BAA+B,CAAA;AAKpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mCAAmC,CAAC;AAiB1E;;;;;;;;;GASG;AACH,MAAM,OAAO,YAAY;IAuFrB;;OAEG;IACH,YAAoB,kBAAsC,EAAU,cAAsB;QAAtE,uBAAkB,GAAlB,kBAAkB,CAAoB;QAAU,mBAAc,GAAd,cAAc,CAAQ;QAPlF,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAA;QACjC,sBAAiB,GAAqC,EAAE,CAAA;QACxD,cAAS,GAAG,KAAK,CAAA;QAMrB,4DAA4D;QAC5D,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;IACrD,CAAC;IAoFD;;;;OAIG;IACI,EAAE,CAAC,KAA4B,EAAE,QAAkB;QACtD,IAAI,CAAC,iBAAiB,EAAE,CAAA;QACxB,MAAM,yBAAyB,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QACxE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QACrC,IAAI,yBAAyB;YACzB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;IAC9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CAAmB,GAAwB,mBAAmB,AAA3C,CAA2C;AAErF;;;;GAIG;AACoB,yCAA4B,GAAgC,2BAA2B,AAA3D,CAA2D;AAE9G;;;;GAIG;AACoB,iDAAoC,GAAwC,mCAAmC,AAA3E,CAA2E;AAEtI;;;;;;;GAOG;AACoB,wCAA2B,GAAgC,2BAA2B,AAA3D,CAA2D;AAE7G;;;;;GAKG;AACoB,gBAAG,GAAU,KAAK,AAAf,CAAe;AAEzC;;;;;;;;;GASG;AACoB,kBAAK,GAAY,OAAO,AAAnB,CAAmB;AAE/C;;;;;;GAMG;AACoB,qCAAwB,GAA6B,wBAAwB,AAArD,CAAqD"}
|
|
@@ -4,6 +4,7 @@ import { CallState } from '../../model/call-state';
|
|
|
4
4
|
import { ConversationState } from '../../model/conversation-state';
|
|
5
5
|
import { ConnectionState } from '../../model/connection-state';
|
|
6
6
|
import { CallConnectionState } from "../../model/call-connection-state";
|
|
7
|
+
import { CollaborationLayer } from "../../model/collaboration-layer";
|
|
7
8
|
export interface ConversationCallState {
|
|
8
9
|
conversationId: string;
|
|
9
10
|
callState: CallState;
|
|
@@ -27,11 +28,19 @@ export interface InternalConversationQueueStatus {
|
|
|
27
28
|
*/
|
|
28
29
|
averageWaitingTime?: number | null;
|
|
29
30
|
}
|
|
31
|
+
export type InternalCollaborationLayers = {
|
|
32
|
+
conversationId: string;
|
|
33
|
+
layers: CollaborationLayer[];
|
|
34
|
+
};
|
|
35
|
+
export type InternalDisplayedCollaborationLayer = {
|
|
36
|
+
conversationId: string;
|
|
37
|
+
displayedLayer: CollaborationLayer | null;
|
|
38
|
+
};
|
|
30
39
|
export interface ConversationCallConnectionState {
|
|
31
40
|
conversationId: string;
|
|
32
41
|
callConnectionState: CallConnectionState;
|
|
33
42
|
}
|
|
34
|
-
export type ConversationEventType = 'connectionStateChange' | 'conversationStateChange' | 'end' | 'close' | 'personChange' | 'callStateChange' | 'invitationsChange' | 'customActionInvocation' | 'queueStatusChange' | 'callConnectionStateChange';
|
|
43
|
+
export type ConversationEventType = 'connectionStateChange' | 'conversationStateChange' | 'end' | 'close' | 'personChange' | 'callStateChange' | 'invitationsChange' | 'customActionInvocation' | 'queueStatusChange' | 'callConnectionStateChange' | 'collaborationLayersChange' | 'displayedCollaborationLayerChange';
|
|
35
44
|
declare const enum ConversationFunction {
|
|
36
45
|
getConnectionState = "getConnectionState",
|
|
37
46
|
getConversationState = "getConversationState",
|
|
@@ -44,7 +53,9 @@ declare const enum ConversationFunction {
|
|
|
44
53
|
setVisitorData = "setVisitorData",
|
|
45
54
|
getVisitorData = "getVisitorData",
|
|
46
55
|
getQueueStatus = "getQueueStatus",
|
|
47
|
-
getCallConnectionState = "getCallConnectionState"
|
|
56
|
+
getCallConnectionState = "getCallConnectionState",
|
|
57
|
+
getCollaborationLayers = "getCollaborationLayers",
|
|
58
|
+
getDisplayedCollaborationLayer = "getDisplayedCollaborationLayer"
|
|
48
59
|
}
|
|
49
60
|
export declare class ConversationModule extends InternalModule<ConversationFunction, ConversationEventType> {
|
|
50
61
|
constructor(bridge: ApiBridge);
|
|
@@ -60,5 +71,7 @@ export declare class ConversationModule extends InternalModule<ConversationFunct
|
|
|
60
71
|
getVisitorData(): Promise<String>;
|
|
61
72
|
getQueueStatus(conversationId: string): Promise<InternalConversationQueueStatus | null>;
|
|
62
73
|
getCallConnectionState(conversationId: string): Promise<CallConnectionState>;
|
|
74
|
+
getCollaborationLayers(conversationId: string): Promise<CollaborationLayer[]>;
|
|
75
|
+
getDisplayedCollaborationLayer(conversationId: string): Promise<CollaborationLayer | null>;
|
|
63
76
|
}
|
|
64
77
|
export {};
|
|
@@ -39,5 +39,11 @@ export class ConversationModule extends InternalModule {
|
|
|
39
39
|
async getCallConnectionState(conversationId) {
|
|
40
40
|
return this.callApiFunction("getCallConnectionState" /* ConversationFunction.getCallConnectionState */, [conversationId]);
|
|
41
41
|
}
|
|
42
|
+
async getCollaborationLayers(conversationId) {
|
|
43
|
+
return this.callApiFunction("getCollaborationLayers" /* ConversationFunction.getCollaborationLayers */, [conversationId]);
|
|
44
|
+
}
|
|
45
|
+
async getDisplayedCollaborationLayer(conversationId) {
|
|
46
|
+
return this.callApiFunction("getDisplayedCollaborationLayer" /* ConversationFunction.getDisplayedCollaborationLayer */, [conversationId]);
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
//# 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;AAoFvC,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;IAEM,KAAK,CAAC,sBAAsB,CAAC,cAAsB;QACtD,OAAO,IAAI,CAAC,eAAe,6EAA8C,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/F,CAAC;IAEM,KAAK,CAAC,8BAA8B,CAAC,cAAsB;QAC9D,OAAO,IAAI,CAAC,eAAe,6FAAsD,CAAC,cAAc,CAAC,CAAC,CAAC;IACvG,CAAC;CACJ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum CollaborationLayerState {
|
|
2
|
+
/**
|
|
3
|
+
* The state of a collaboration layer that hasn't been requested or interacted with. This is the case during onboarding at the beginning of a conversation, for example.
|
|
4
|
+
*/
|
|
5
|
+
AVAILABLE = "AVAILABLE",
|
|
6
|
+
/**
|
|
7
|
+
* The layer is waiting for approval from one or more users. This is common for layers that require user consent,
|
|
8
|
+
* such as mobile co-browsing or embedded co-browsing.
|
|
9
|
+
*/
|
|
10
|
+
APPROVING = "APPROVING",
|
|
11
|
+
/**
|
|
12
|
+
* The layer is in the process of being activated. This is a transitional state between approval (if required) and becoming fully active.
|
|
13
|
+
*/
|
|
14
|
+
ACTIVATING = "ACTIVATING",
|
|
15
|
+
/**
|
|
16
|
+
* The layer is fully active and operational. Active collaboration layers appear as tabs in Unblu UIs such as the Agent Desk. Only one active collaboration layer can be displayed at any time.
|
|
17
|
+
*/
|
|
18
|
+
ACTIVE = "ACTIVE"
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export var CollaborationLayerState;
|
|
2
|
+
(function (CollaborationLayerState) {
|
|
3
|
+
/**
|
|
4
|
+
* The state of a collaboration layer that hasn't been requested or interacted with. This is the case during onboarding at the beginning of a conversation, for example.
|
|
5
|
+
*/
|
|
6
|
+
CollaborationLayerState["AVAILABLE"] = "AVAILABLE";
|
|
7
|
+
/**
|
|
8
|
+
* The layer is waiting for approval from one or more users. This is common for layers that require user consent,
|
|
9
|
+
* such as mobile co-browsing or embedded co-browsing.
|
|
10
|
+
*/
|
|
11
|
+
CollaborationLayerState["APPROVING"] = "APPROVING";
|
|
12
|
+
/**
|
|
13
|
+
* The layer is in the process of being activated. This is a transitional state between approval (if required) and becoming fully active.
|
|
14
|
+
*/
|
|
15
|
+
CollaborationLayerState["ACTIVATING"] = "ACTIVATING";
|
|
16
|
+
/**
|
|
17
|
+
* The layer is fully active and operational. Active collaboration layers appear as tabs in Unblu UIs such as the Agent Desk. Only one active collaboration layer can be displayed at any time.
|
|
18
|
+
*/
|
|
19
|
+
CollaborationLayerState["ACTIVE"] = "ACTIVE";
|
|
20
|
+
})(CollaborationLayerState || (CollaborationLayerState = {}));
|
|
21
|
+
//# sourceMappingURL=collaboration-layer-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration-layer-state.js","sourceRoot":"","sources":["../../../../src/shared/model/collaboration-layer-state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,uBAsBX;AAtBD,WAAY,uBAAuB;IAE/B;;OAEG;IACH,kDAAuB,CAAA;IAEvB;;;OAGG;IACH,kDAAuB,CAAA;IAEvB;;OAEG;IACH,oDAAyB,CAAA;IAEzB;;OAEG;IACH,4CAAiB,CAAA;AACrB,CAAC,EAtBW,uBAAuB,KAAvB,uBAAuB,QAsBlC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum CollaborationLayerType {
|
|
2
|
+
/**
|
|
3
|
+
* A screen sharing layer. This is used when a participant shares their entire screen or a
|
|
4
|
+
* specific application window.
|
|
5
|
+
*/
|
|
6
|
+
SCREEN_SHARING = "SCREEN_SHARING",
|
|
7
|
+
/**
|
|
8
|
+
* An embedded co-browsing layer. This is used for co-browsing on a website where the
|
|
9
|
+
* Unblu script is directly integrated.
|
|
10
|
+
*/
|
|
11
|
+
EMBEDDED_COBROWSING = "EMBEDDED_COBROWSING",
|
|
12
|
+
/**
|
|
13
|
+
* A mobile co-browsing layer. This is used for co-browsing within a native mobile
|
|
14
|
+
* application that has the Unblu mobile SDK integrated.
|
|
15
|
+
*/
|
|
16
|
+
MOBILE_COBROWSING = "MOBILE_COBROWSING",
|
|
17
|
+
/**
|
|
18
|
+
* A document co-browsing layer. This is used when a document (e.g., a PDF) is shared
|
|
19
|
+
* and co-browsed by the participants.
|
|
20
|
+
*/
|
|
21
|
+
DOCUMENT_COBROWSING = "DOCUMENT_COBROWSING",
|
|
22
|
+
/**
|
|
23
|
+
* A whiteboard layer. This provides a blank canvas for participants to draw and
|
|
24
|
+
* collaborate on.
|
|
25
|
+
*/
|
|
26
|
+
WHITEBOARD = "WHITEBOARD",
|
|
27
|
+
/**
|
|
28
|
+
* A universal co-browsing layer. This is used for co-browsing on websites that do not
|
|
29
|
+
* have the Unblu script integrated.
|
|
30
|
+
*/
|
|
31
|
+
UNIVERSAL_COBROWSING = "UNIVERSAL_COBROWSING",
|
|
32
|
+
/**
|
|
33
|
+
* A document camera sharing layer. This allows a participant to share a physical
|
|
34
|
+
* document by using their device's camera. Only available in Branch use cases.
|
|
35
|
+
*/
|
|
36
|
+
DOCUMENT_CAMERA_SHARING = "DOCUMENT_CAMERA_SHARING"
|
|
37
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export var CollaborationLayerType;
|
|
2
|
+
(function (CollaborationLayerType) {
|
|
3
|
+
/**
|
|
4
|
+
* A screen sharing layer. This is used when a participant shares their entire screen or a
|
|
5
|
+
* specific application window.
|
|
6
|
+
*/
|
|
7
|
+
CollaborationLayerType["SCREEN_SHARING"] = "SCREEN_SHARING";
|
|
8
|
+
/**
|
|
9
|
+
* An embedded co-browsing layer. This is used for co-browsing on a website where the
|
|
10
|
+
* Unblu script is directly integrated.
|
|
11
|
+
*/
|
|
12
|
+
CollaborationLayerType["EMBEDDED_COBROWSING"] = "EMBEDDED_COBROWSING";
|
|
13
|
+
/**
|
|
14
|
+
* A mobile co-browsing layer. This is used for co-browsing within a native mobile
|
|
15
|
+
* application that has the Unblu mobile SDK integrated.
|
|
16
|
+
*/
|
|
17
|
+
CollaborationLayerType["MOBILE_COBROWSING"] = "MOBILE_COBROWSING";
|
|
18
|
+
/**
|
|
19
|
+
* A document co-browsing layer. This is used when a document (e.g., a PDF) is shared
|
|
20
|
+
* and co-browsed by the participants.
|
|
21
|
+
*/
|
|
22
|
+
CollaborationLayerType["DOCUMENT_COBROWSING"] = "DOCUMENT_COBROWSING";
|
|
23
|
+
/**
|
|
24
|
+
* A whiteboard layer. This provides a blank canvas for participants to draw and
|
|
25
|
+
* collaborate on.
|
|
26
|
+
*/
|
|
27
|
+
CollaborationLayerType["WHITEBOARD"] = "WHITEBOARD";
|
|
28
|
+
/**
|
|
29
|
+
* A universal co-browsing layer. This is used for co-browsing on websites that do not
|
|
30
|
+
* have the Unblu script integrated.
|
|
31
|
+
*/
|
|
32
|
+
CollaborationLayerType["UNIVERSAL_COBROWSING"] = "UNIVERSAL_COBROWSING";
|
|
33
|
+
/**
|
|
34
|
+
* A document camera sharing layer. This allows a participant to share a physical
|
|
35
|
+
* document by using their device's camera. Only available in Branch use cases.
|
|
36
|
+
*/
|
|
37
|
+
CollaborationLayerType["DOCUMENT_CAMERA_SHARING"] = "DOCUMENT_CAMERA_SHARING";
|
|
38
|
+
})(CollaborationLayerType || (CollaborationLayerType = {}));
|
|
39
|
+
//# sourceMappingURL=collaboration-layer-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration-layer-type.js","sourceRoot":"","sources":["../../../../src/shared/model/collaboration-layer-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBA2CX;AA3CD,WAAY,sBAAsB;IAE9B;;;OAGG;IACH,2DAAiC,CAAA;IAEjC;;;OAGG;IACH,qEAA2C,CAAA;IAE3C;;;OAGG;IACH,iEAAuC,CAAA;IAEvC;;;OAGG;IACH,qEAA2C,CAAA;IAE3C;;;OAGG;IACH,mDAAyB,CAAA;IAEzB;;;OAGG;IACH,uEAA6C,CAAA;IAE7C;;;OAGG;IACH,6EAAmD,CAAA;AACvD,CAAC,EA3CW,sBAAsB,KAAtB,sBAAsB,QA2CjC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CollaborationLayerState } from "./collaboration-layer-state";
|
|
2
|
+
export interface CollaborationLayer {
|
|
3
|
+
/**
|
|
4
|
+
* The unique identifier for the layer.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* The type of collaboration layer (e.g. SCREEN_SHARING, WHITEBOARD). This determines the layer's functionality.
|
|
9
|
+
* See {@link CollaborationLayerType} for more information.
|
|
10
|
+
* /
|
|
11
|
+
type: CollaborationLayerType
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The current state of the layer (e.g., ACTIVE, INITIAL, etc.).
|
|
15
|
+
* See {@link CollaborationLayerState} for more information.
|
|
16
|
+
*/
|
|
17
|
+
state: CollaborationLayerState;
|
|
18
|
+
/**
|
|
19
|
+
* `true` if the layer is owned by the current user, `false` otherwise.
|
|
20
|
+
*/
|
|
21
|
+
myLayer: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 'true' if the layer is currently displayed to the user. Only one layer can be displayed at a time.
|
|
24
|
+
*/
|
|
25
|
+
displayed: true;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration-layer.js","sourceRoot":"","sources":["../../../../src/shared/model/collaboration-layer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ConnectionState } from "./connection-state";
|
|
2
|
+
import { ErrorReason } from "./error-reason";
|
|
3
|
+
/**
|
|
4
|
+
* Contains information about the current connection state
|
|
5
|
+
*/
|
|
6
|
+
export interface ConnectionStateContainer {
|
|
7
|
+
/**
|
|
8
|
+
* Current state of the connection
|
|
9
|
+
*/
|
|
10
|
+
state: ConnectionState;
|
|
11
|
+
/**
|
|
12
|
+
* Details about the error state in a human-readable format.
|
|
13
|
+
*
|
|
14
|
+
* Only defined if state is {@link ConnectionState.ERROR}
|
|
15
|
+
*/
|
|
16
|
+
errorDetail?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The reason for the error.
|
|
19
|
+
*
|
|
20
|
+
* Only defined if state is {@link ConnectionState.ERROR}
|
|
21
|
+
*/
|
|
22
|
+
errorReason?: ErrorReason;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-state-container.js","sourceRoot":"","sources":["../../../../src/shared/model/connection-state-container.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare enum ErrorReason {
|
|
2
|
+
/**
|
|
3
|
+
* The JavaScript code loaded in the browser is no longer compatible with the Collaboration Server
|
|
4
|
+
*/
|
|
5
|
+
INCOMPATIBLE_CLIENT = "INCOMPATIBLE_CLIENT",
|
|
6
|
+
/**
|
|
7
|
+
* Due to an authentication issue, the Collaboration Server is no longer reachable
|
|
8
|
+
*/
|
|
9
|
+
AUTHENTICATION = "AUTHENTICATION",
|
|
10
|
+
/**
|
|
11
|
+
* There is most likely a cookie-related issue, as the server-side context is missing
|
|
12
|
+
*/
|
|
13
|
+
CONTEXT_MISSING = "CONTEXT_MISSING",
|
|
14
|
+
/**
|
|
15
|
+
* The used API key isn't valid
|
|
16
|
+
*/
|
|
17
|
+
API_KEY = "API_KEY",
|
|
18
|
+
/**
|
|
19
|
+
* The current user isn't a visitor, but an agent
|
|
20
|
+
*/
|
|
21
|
+
VISITOR_PERSON = "VISITOR_PERSON",
|
|
22
|
+
/**
|
|
23
|
+
* There is an issue caused by user impersonation
|
|
24
|
+
*/
|
|
25
|
+
IMPERSONATION = "IMPERSONATION",
|
|
26
|
+
/**
|
|
27
|
+
* The maximum number of connection retry attempts has been reached; no further attempts will be made
|
|
28
|
+
*/
|
|
29
|
+
MAX_RETRIES = "MAX_RETRIES",
|
|
30
|
+
/**
|
|
31
|
+
* There was an issue with the conversation
|
|
32
|
+
*/
|
|
33
|
+
CONVERSATION_BUSINESS_ERROR = "CONVERSATION_BUSINESS_ERROR",
|
|
34
|
+
/**
|
|
35
|
+
* There was an error from the native JavaScript runtime
|
|
36
|
+
*/
|
|
37
|
+
NATIVE_JS_ERROR = "NATIVE_JS_ERROR",
|
|
38
|
+
/**
|
|
39
|
+
* The reason for the error is unknown
|
|
40
|
+
*/
|
|
41
|
+
UNKNOWN = "UNKNOWN"
|
|
42
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export var ErrorReason;
|
|
2
|
+
(function (ErrorReason) {
|
|
3
|
+
/**
|
|
4
|
+
* The JavaScript code loaded in the browser is no longer compatible with the Collaboration Server
|
|
5
|
+
*/
|
|
6
|
+
ErrorReason["INCOMPATIBLE_CLIENT"] = "INCOMPATIBLE_CLIENT";
|
|
7
|
+
/**
|
|
8
|
+
* Due to an authentication issue, the Collaboration Server is no longer reachable
|
|
9
|
+
*/
|
|
10
|
+
ErrorReason["AUTHENTICATION"] = "AUTHENTICATION";
|
|
11
|
+
/**
|
|
12
|
+
* There is most likely a cookie-related issue, as the server-side context is missing
|
|
13
|
+
*/
|
|
14
|
+
ErrorReason["CONTEXT_MISSING"] = "CONTEXT_MISSING";
|
|
15
|
+
/**
|
|
16
|
+
* The used API key isn't valid
|
|
17
|
+
*/
|
|
18
|
+
ErrorReason["API_KEY"] = "API_KEY";
|
|
19
|
+
/**
|
|
20
|
+
* The current user isn't a visitor, but an agent
|
|
21
|
+
*/
|
|
22
|
+
ErrorReason["VISITOR_PERSON"] = "VISITOR_PERSON";
|
|
23
|
+
/**
|
|
24
|
+
* There is an issue caused by user impersonation
|
|
25
|
+
*/
|
|
26
|
+
ErrorReason["IMPERSONATION"] = "IMPERSONATION";
|
|
27
|
+
/**
|
|
28
|
+
* The maximum number of connection retry attempts has been reached; no further attempts will be made
|
|
29
|
+
*/
|
|
30
|
+
ErrorReason["MAX_RETRIES"] = "MAX_RETRIES";
|
|
31
|
+
/**
|
|
32
|
+
* There was an issue with the conversation
|
|
33
|
+
*/
|
|
34
|
+
ErrorReason["CONVERSATION_BUSINESS_ERROR"] = "CONVERSATION_BUSINESS_ERROR";
|
|
35
|
+
/**
|
|
36
|
+
* There was an error from the native JavaScript runtime
|
|
37
|
+
*/
|
|
38
|
+
ErrorReason["NATIVE_JS_ERROR"] = "NATIVE_JS_ERROR";
|
|
39
|
+
/**
|
|
40
|
+
* The reason for the error is unknown
|
|
41
|
+
*/
|
|
42
|
+
ErrorReason["UNKNOWN"] = "UNKNOWN";
|
|
43
|
+
})(ErrorReason || (ErrorReason = {}));
|
|
44
|
+
//# sourceMappingURL=error-reason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-reason.js","sourceRoot":"","sources":["../../../../src/shared/model/error-reason.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAyCX;AAzCD,WAAY,WAAW;IACnB;;OAEG;IACH,0DAA2C,CAAA;IAC3C;;OAEG;IACH,gDAAiC,CAAA;IACjC;;OAEG;IACH,kDAAmC,CAAA;IACnC;;OAEG;IACH,kCAAmB,CAAA;IACnB;;OAEG;IACH,gDAAiC,CAAA;IACjC;;OAEG;IACH,8CAA+B,CAAA;IAC/B;;OAEG;IACH,0CAA2B,CAAA;IAC3B;;OAEG;IACH,0EAA2D,CAAA;IAC3D;;OAEG;IACH,kDAAmC,CAAA;IACnC;;OAEG;IACH,kCAAmB,CAAA;AACvB,CAAC,EAzCW,WAAW,KAAX,WAAW,QAyCtB"}
|
package/dist/lib/unblu-api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { GeneralEventType } from "./internal/module/general-module";
|
|
|
13
13
|
import { InitializedUnbluApi } from "./shared/internal/initialized-unblu-api";
|
|
14
14
|
import { NewConversationRecipient } from "./shared/model/new-conversation-recipient";
|
|
15
15
|
import { DestroyOptions } from "./shared/internal/model/destroy-options";
|
|
16
|
+
import { ConnectionStateContainer } from "./shared/model/connection-state-container";
|
|
16
17
|
/**
|
|
17
18
|
* Listener called whenever the active conversation changes.
|
|
18
19
|
*
|
|
@@ -50,6 +51,11 @@ export type AgentAvailableChangeListener = (isAvailable: boolean) => void;
|
|
|
50
51
|
* @param availability The new availability state.
|
|
51
52
|
*/
|
|
52
53
|
export type AgentAvailabilityChangeListener = (availability: AgentAvailabilityState) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Listener called whenever the connection state changes.
|
|
56
|
+
* @param connectionState The new connection state.
|
|
57
|
+
*/
|
|
58
|
+
export type ConnectionStateChangeListener = (connectionState: ConnectionStateContainer) => void;
|
|
53
59
|
/**
|
|
54
60
|
* Listener called whenever the UnbluApi gets de-initialized.
|
|
55
61
|
*/
|
|
@@ -135,6 +141,14 @@ export declare class UnbluApi implements InitializedUnbluApi {
|
|
|
135
141
|
* @see {@link AgentAvailabilityChangeListener}
|
|
136
142
|
*/
|
|
137
143
|
static readonly AGENT_AVAILABILITY_CHANGE: 'availabilityChange';
|
|
144
|
+
/**
|
|
145
|
+
* Event emitted every time the connection state changes.
|
|
146
|
+
*
|
|
147
|
+
* @event connectionStateChange
|
|
148
|
+
* @see {@link on} for listener registration
|
|
149
|
+
* @see {@link ConnectionStateChangeListener}
|
|
150
|
+
*/
|
|
151
|
+
static readonly CONNECTION_STATE_CHANGE: 'connectionStateChange';
|
|
138
152
|
/**
|
|
139
153
|
* Event emitted when this instance gets de-initialized and is not usable at the time until it fully got de-initialized.
|
|
140
154
|
*
|
|
@@ -216,6 +230,13 @@ export declare class UnbluApi implements InitializedUnbluApi {
|
|
|
216
230
|
* @see {@link AGENT_AVAILABILITY_CHANGE}
|
|
217
231
|
*/
|
|
218
232
|
on(event: typeof UnbluApi.AGENT_AVAILABILITY_CHANGE, listener: AgentAvailabilityChangeListener): void;
|
|
233
|
+
/**
|
|
234
|
+
* Registers an event listener for the given event.
|
|
235
|
+
* @param event The connectionStateChange event.
|
|
236
|
+
* @param listener The listener to be called.
|
|
237
|
+
* @see {@link CONNECTION_STATE_CHANGE}
|
|
238
|
+
*/
|
|
239
|
+
on(event: typeof UnbluApi.CONNECTION_STATE_CHANGE, listener: ConnectionStateChangeListener): void;
|
|
219
240
|
/**
|
|
220
241
|
* Registers an event listener for the given event.
|
|
221
242
|
* @param event The deinitializing event.
|
|
@@ -284,6 +305,11 @@ export declare class UnbluApi implements InitializedUnbluApi {
|
|
|
284
305
|
* @return A promise that resolves to the current number of unread messages.
|
|
285
306
|
*/
|
|
286
307
|
getNotificationCount(): Promise<number>;
|
|
308
|
+
/**
|
|
309
|
+
* Returns the current connection state.
|
|
310
|
+
* @return A promise that resolves to the current connection state.
|
|
311
|
+
*/
|
|
312
|
+
getConnectionState(): Promise<ConnectionStateContainer>;
|
|
287
313
|
/**
|
|
288
314
|
* Starts a new Conversation and places it into the inbound conversation queue.
|
|
289
315
|
*
|
package/dist/lib/unblu-api.js
CHANGED
|
@@ -91,6 +91,13 @@ export class UnbluApi {
|
|
|
91
91
|
internalModule = this.internalApi.general;
|
|
92
92
|
needsUpgrade = true;
|
|
93
93
|
break;
|
|
94
|
+
case UnbluApi.CONNECTION_STATE_CHANGE:
|
|
95
|
+
internalListener = (event) => {
|
|
96
|
+
this.eventEmitter.emit(event.name, event.data);
|
|
97
|
+
};
|
|
98
|
+
internalModule = this.internalApi.meta;
|
|
99
|
+
needsUpgrade = true;
|
|
100
|
+
break;
|
|
94
101
|
case UnbluApi.DEINITIALIZING:
|
|
95
102
|
case UnbluApi.DEINITIALIZED:
|
|
96
103
|
internalListener = (event) => {
|
|
@@ -124,6 +131,7 @@ export class UnbluApi {
|
|
|
124
131
|
case UnbluApi.AGENT_AVAILABILITY_CHANGE:
|
|
125
132
|
internalModule = this.internalApi.agentAvailability;
|
|
126
133
|
break;
|
|
134
|
+
case UnbluApi.CONNECTION_STATE_CHANGE:
|
|
127
135
|
case UnbluApi.DEINITIALIZING:
|
|
128
136
|
case UnbluApi.DEINITIALIZED:
|
|
129
137
|
internalModule = this.internalApi.meta;
|
|
@@ -214,6 +222,14 @@ export class UnbluApi {
|
|
|
214
222
|
return this.internalApi.generalLazy.getNotificationCount();
|
|
215
223
|
}
|
|
216
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Returns the current connection state.
|
|
227
|
+
* @return A promise that resolves to the current connection state.
|
|
228
|
+
*/
|
|
229
|
+
async getConnectionState() {
|
|
230
|
+
this.assertNotDeinitialized();
|
|
231
|
+
return this.internalApi.meta.getConnectionState();
|
|
232
|
+
}
|
|
217
233
|
// Conversation
|
|
218
234
|
/**
|
|
219
235
|
* Starts a new Conversation and places it into the inbound conversation queue.
|
|
@@ -430,6 +446,14 @@ UnbluApi.AGENT_AVAILABLE_CHANGE = 'availableChange';
|
|
|
430
446
|
* @see {@link AgentAvailabilityChangeListener}
|
|
431
447
|
*/
|
|
432
448
|
UnbluApi.AGENT_AVAILABILITY_CHANGE = 'availabilityChange';
|
|
449
|
+
/**
|
|
450
|
+
* Event emitted every time the connection state changes.
|
|
451
|
+
*
|
|
452
|
+
* @event connectionStateChange
|
|
453
|
+
* @see {@link on} for listener registration
|
|
454
|
+
* @see {@link ConnectionStateChangeListener}
|
|
455
|
+
*/
|
|
456
|
+
UnbluApi.CONNECTION_STATE_CHANGE = 'connectionStateChange';
|
|
433
457
|
/**
|
|
434
458
|
* Event emitted when this instance gets de-initialized and is not usable at the time until it fully got de-initialized.
|
|
435
459
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unblu-api.js","sourceRoot":"","sources":["../../src/unblu-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAGlD,OAAO,EAAC,YAAY,EAAW,MAAM,sCAAsC,CAAA;AAK3E,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"unblu-api.js","sourceRoot":"","sources":["../../src/unblu-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAA;AAGlD,OAAO,EAAC,YAAY,EAAW,MAAM,sCAAsC,CAAA;AAK3E,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAqDvD;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,QAAQ;IA4GjB;;OAEG;IACH,YAAoB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QANpC,sBAAiB,GAAqC,EAAE,CAAA;QACxD,iBAAY,GAAG,IAAI,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
|
2
2
|
"name": "@unblu/floating-js-api",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.25.1",
|
|
4
4
|
"description": "Unblu Floating JavaScript API allowing to control the Unblu Floating UI",
|
|
5
5
|
"homepage": "https://www.unblu.com/en/docs/latest/reference/unblu-floating-js-api/",
|
|
6
6
|
"author": "David Eberlein",
|