@microsoft/omnichannel-chat-sdk
Advanced tools
Comparing version 0.2.1-main.5ef43b1 to 0.2.1-main.8648fe2
@@ -8,2 +8,3 @@ # Changelog | ||
- Add `getCallingToken` | ||
- Send `ChannelId-lcw` message tag | ||
@@ -10,0 +11,0 @@ ## [0.2.0] - 2021-04-30 |
@@ -15,2 +15,5 @@ import ChatAdapterConfig from "./ChatAdapterConfig"; | ||
} | ||
interface ChatReconnectConfig { | ||
disable: boolean; | ||
} | ||
interface IChatSDKConfig { | ||
@@ -20,2 +23,3 @@ dataMasking?: IDataMaskingSDKConfig; | ||
persistentChat?: PersistentChatConfig; | ||
chatReconnect?: ChatReconnectConfig; | ||
getAuthToken?: () => Promise<string | null>; | ||
@@ -22,0 +26,0 @@ ic3Config?: IC3Config; |
@@ -12,2 +12,3 @@ import InitContext from "@microsoft/ocsdk/lib/Model/InitContext"; | ||
initContext?: InitContext; | ||
reconnectId?: string; | ||
} |
@@ -14,4 +14,6 @@ import IChatConfig from "./core/IChatConfig"; | ||
import IStartChatOptionalParams from "./core/IStartChatOptionalParams"; | ||
import LiveWorkItemDetails from "./core/LiveWorkItemDetails"; | ||
import OnNewMessageOptionalParams from "./core/OnNewMessageOptionalParams"; | ||
import LiveWorkItemDetails from "./core/LiveWorkItemDetails"; | ||
import ChatReconnectOptionalParams from "./core/ChatReconnectOptionalParams"; | ||
import ChatReconnectContext from "./core/ChatReconnectContext"; | ||
declare class OmnichannelChatSDK { | ||
@@ -40,5 +42,9 @@ private debug; | ||
private isPersistentChat; | ||
private isChatReconnect; | ||
private reconnectId; | ||
private refreshTokenTimer; | ||
constructor(omnichannelConfig: IOmnichannelConfig, chatSDKConfig?: IChatSDKConfig); | ||
setDebug(flag: boolean): void; | ||
initialize(): Promise<IChatConfig>; | ||
getChatReconnectContext(optionalParams?: ChatReconnectOptionalParams): Promise<ChatReconnectContext>; | ||
startChat(optionalParams?: IStartChatOptionalParams): Promise<void>; | ||
@@ -73,3 +79,4 @@ endChat(): Promise<void>; | ||
private resolveChatAdapterUrl; | ||
private updateChatToken; | ||
} | ||
export default OmnichannelChatSDK; |
@@ -25,3 +25,5 @@ declare enum TelemetryEvent { | ||
StopCall = "StopCall", | ||
OnCallDisconnected = "OnCallDisconnected" | ||
OnCallDisconnected = "OnCallDisconnected", | ||
UpdateChatToken = "UpdateChatToken", | ||
GetChatReconnectContext = "GetChatReconnectContext" | ||
} | ||
@@ -28,0 +30,0 @@ export declare const startEvent: (event: TelemetryEvent) => string; |
@@ -30,2 +30,4 @@ "use strict"; | ||
TelemetryEvent["OnCallDisconnected"] = "OnCallDisconnected"; | ||
TelemetryEvent["UpdateChatToken"] = "UpdateChatToken"; | ||
TelemetryEvent["GetChatReconnectContext"] = "GetChatReconnectContext"; | ||
})(TelemetryEvent || (TelemetryEvent = {})); | ||
@@ -32,0 +34,0 @@ exports.startEvent = function (event) { |
@@ -17,2 +17,5 @@ "use strict"; | ||
tokenUpdateTime: 21600000 | ||
}, | ||
chatReconnect: { | ||
disable: true, | ||
} | ||
@@ -19,0 +22,0 @@ }; |
{ | ||
"name": "@microsoft/omnichannel-chat-sdk", | ||
"version": "0.2.1-main.5ef43b1", | ||
"version": "0.2.1-main.8648fe2", | ||
"description": "Microsoft Omnichannel Chat SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
744938
198
9149