@microsoft/omnichannel-chat-sdk
Advanced tools
Comparing version 0.2.1-main.221a5d4 to 0.2.1-main.331c6ce
@@ -8,2 +8,3 @@ # Changelog | ||
- Add `getCallingToken` | ||
- Send `ChannelId-lcw` message tag | ||
@@ -10,0 +11,0 @@ ## [0.2.0] - 2021-04-30 |
@@ -11,5 +11,10 @@ import ChatAdapterConfig from "./ChatAdapterConfig"; | ||
} | ||
interface PersistentChatConfig { | ||
disable: boolean; | ||
tokenUpdateTime: number; | ||
} | ||
interface IChatSDKConfig { | ||
dataMasking?: IDataMaskingSDKConfig; | ||
telemetry?: TelemetrySDKConfig; | ||
persistentChat?: PersistentChatConfig; | ||
getAuthToken?: () => Promise<string | null>; | ||
@@ -16,0 +21,0 @@ ic3Config?: IC3Config; |
@@ -14,4 +14,4 @@ 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"; | ||
declare class OmnichannelChatSDK { | ||
@@ -40,2 +40,4 @@ private debug; | ||
private isPersistentChat; | ||
private reconnectId; | ||
private refreshTokenTimer; | ||
constructor(omnichannelConfig: IOmnichannelConfig, chatSDKConfig?: IChatSDKConfig); | ||
@@ -73,3 +75,4 @@ setDebug(flag: boolean): void; | ||
private resolveChatAdapterUrl; | ||
private updateChatToken; | ||
} | ||
export default OmnichannelChatSDK; |
@@ -25,3 +25,4 @@ declare enum TelemetryEvent { | ||
StopCall = "StopCall", | ||
OnCallDisconnected = "OnCallDisconnected" | ||
OnCallDisconnected = "OnCallDisconnected", | ||
UpdateChatToken = "UpdateChatToken" | ||
} | ||
@@ -28,0 +29,0 @@ export declare const startEvent: (event: TelemetryEvent) => string; |
@@ -30,2 +30,3 @@ "use strict"; | ||
TelemetryEvent["OnCallDisconnected"] = "OnCallDisconnected"; | ||
TelemetryEvent["UpdateChatToken"] = "UpdateChatToken"; | ||
})(TelemetryEvent || (TelemetryEvent = {})); | ||
@@ -32,0 +33,0 @@ exports.startEvent = function (event) { |
@@ -13,2 +13,6 @@ "use strict"; | ||
ariaTelemetryKey: settings_1.ariaTelemetryKey | ||
}, | ||
persistentChat: { | ||
disable: true, | ||
tokenUpdateTime: 21600000 | ||
} | ||
@@ -15,0 +19,0 @@ }; |
{ | ||
"name": "@microsoft/omnichannel-chat-sdk", | ||
"version": "0.2.1-main.221a5d4", | ||
"version": "0.2.1-main.331c6ce", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
732939
192
9023