@microsoft/omnichannel-chat-sdk 1.11.6-main.b982edb → 1.11.7-main.3418dc3
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/lib/OmnichannelChatSDK.d.ts +20 -1
- package/lib/OmnichannelChatSDK.js +263 -159
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/core/ChatSDKError.d.ts +3 -1
- package/lib/core/ChatSDKError.js +2 -0
- package/lib/core/ChatSDKError.js.map +1 -1
- package/lib/core/GetPersistentChatHistoryOptionalParams.d.ts +10 -0
- package/lib/core/GetPersistentChatHistoryOptionalParams.js +3 -0
- package/lib/core/GetPersistentChatHistoryOptionalParams.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js.map +1 -1
- package/lib/telemetry/TelemetryEvent.d.ts +2 -1
- package/lib/telemetry/TelemetryEvent.js +1 -0
- package/lib/telemetry/TelemetryEvent.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/exceptionThrowers.d.ts +6 -0
- package/lib/utils/exceptionThrowers.js +8 -2
- package/lib/utils/exceptionThrowers.js.map +1 -1
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
import ACSClient from "./core/messaging/ACSClient";
|
2
2
|
import { VoiceVideoCallingOptionalParams } from "./types/config";
|
3
|
-
import { ChatAdapter, GetAgentAvailabilityResponse, GetCurrentLiveChatContextResponse, GetLiveChatTranscriptResponse, GetMessagesResponse, GetPreChatSurveyResponse, GetVoiceVideoCallingResponse, MaskingRules, UploadFileAttachmentResponse } from "./types/response";
|
3
|
+
import { ChatAdapter, GetAgentAvailabilityResponse, GetCurrentLiveChatContextResponse, GetLiveChatTranscriptResponse, GetMessagesResponse, GetPersistentChatHistoryResponse, GetPreChatSurveyResponse, GetVoiceVideoCallingResponse, MaskingRules, UploadFileAttachmentResponse } from "./types/response";
|
4
4
|
import { ParticipantsRemovedEvent } from '@azure/communication-signaling';
|
5
5
|
import ChatAdapterOptionalParams from "./core/messaging/ChatAdapterOptionalParams";
|
6
6
|
import ChatConfig from "./core/ChatConfig";
|
@@ -21,6 +21,7 @@ import GetChatTokenOptionalParams from "./core/GetChatTokenOptionalParams";
|
|
21
21
|
import GetConversationDetailsOptionalParams from "./core/GetConversationDetailsOptionalParams";
|
22
22
|
import GetLiveChatConfigOptionalParams from "./core/GetLiveChatConfigOptionalParams";
|
23
23
|
import GetLiveChatTranscriptOptionalParams from "./core/GetLiveChatTranscriptOptionalParams";
|
24
|
+
import GetPersistentChatHistoryOptionalParams from "./core/GetPersistentChatHistoryOptionalParams";
|
24
25
|
import IChatToken from "./external/IC3Adapter/IChatToken";
|
25
26
|
import IFileInfo from "@microsoft/omnichannel-ic3core/lib/interfaces/IFileInfo";
|
26
27
|
import IFileMetadata from "@microsoft/omnichannel-ic3core/lib/model/IFileMetadata";
|
@@ -47,6 +48,8 @@ declare class OmnichannelChatSDK {
|
|
47
48
|
localeId: string;
|
48
49
|
requestId: string;
|
49
50
|
sessionId: string | null;
|
51
|
+
private chatOperationInProgress;
|
52
|
+
private pendingOperations;
|
50
53
|
private unqServicesOrgUrl;
|
51
54
|
private coreServicesOrgUrl;
|
52
55
|
private dynamicsLocationCode;
|
@@ -82,6 +85,15 @@ declare class OmnichannelChatSDK {
|
|
82
85
|
private debugACS;
|
83
86
|
private detailedDebugEnabled;
|
84
87
|
constructor(omnichannelConfig: OmnichannelConfig, chatSDKConfig?: ChatSDKConfig);
|
88
|
+
/**
|
89
|
+
* Executes an operation with mutual exclusion to prevent race conditions
|
90
|
+
* between startChat and endChat operations
|
91
|
+
*/
|
92
|
+
private executeWithLock;
|
93
|
+
/**
|
94
|
+
* Processes the next pending operation in the queue
|
95
|
+
*/
|
96
|
+
private processNextOperation;
|
85
97
|
/**
|
86
98
|
*
|
87
99
|
* @param flag Flag to enable/disable debug log telemetry, will be applied to all components
|
@@ -114,8 +126,10 @@ declare class OmnichannelChatSDK {
|
|
114
126
|
private getChatReconnectContextWithReconnectId;
|
115
127
|
getChatReconnectContext(optionalParams?: ChatReconnectOptionalParams): Promise<ChatReconnectContext>;
|
116
128
|
startChat(optionalParams?: StartChatOptionalParams): Promise<void>;
|
129
|
+
private internalStartChat;
|
117
130
|
private closeChat;
|
118
131
|
endChat(endChatOptionalParams?: EndChatOptionalParams): Promise<void>;
|
132
|
+
private internalEndChat;
|
119
133
|
getCurrentLiveChatContext(): Promise<GetCurrentLiveChatContextResponse>;
|
120
134
|
getConversationDetails(optionalParams?: GetConversationDetailsOptionalParams): Promise<LiveWorkItemDetails>;
|
121
135
|
/**
|
@@ -173,5 +187,10 @@ declare class OmnichannelChatSDK {
|
|
173
187
|
* @private
|
174
188
|
*/
|
175
189
|
private handleConversationJoinFailure;
|
190
|
+
/**
|
191
|
+
* Get persistent chat history for authenticated users.
|
192
|
+
* @param getPersistentChatHistoryOptionalParams Optional parameters for persistent chat history retrieval.
|
193
|
+
*/
|
194
|
+
getPersistentChatHistory(getPersistentChatHistoryOptionalParams?: GetPersistentChatHistoryOptionalParams): Promise<GetPersistentChatHistoryResponse | undefined>;
|
176
195
|
}
|
177
196
|
export default OmnichannelChatSDK;
|