@microsoft/omnichannel-chat-sdk 1.9.5 → 1.9.6
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 +128 -114
- package/lib/OmnichannelChatSDK.js +2609 -2394
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/api/createVoiceVideoCalling.d.ts +53 -53
- package/lib/api/createVoiceVideoCalling.js +462 -462
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.d.ts +3 -0
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js +14 -0
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js.map +1 -0
- package/lib/config/ocSDKConfiguration.d.ts +7 -7
- package/lib/config/ocSDKConfiguration.js +9 -9
- package/lib/config/settings.d.ts +6 -6
- package/lib/config/settings.js +13 -13
- package/lib/core/AuthSettings.d.ts +5 -5
- package/lib/core/AuthSettings.js +2 -2
- package/lib/core/AxiosErrorCodes.d.ts +4 -4
- package/lib/core/AxiosErrorCodes.js +7 -7
- package/lib/core/CallingOptionsOptionSetNumber.d.ts +6 -6
- package/lib/core/CallingOptionsOptionSetNumber.js +9 -9
- package/lib/core/ChatConfig.d.ts +10 -10
- package/lib/core/ChatConfig.js +2 -2
- package/lib/core/ChatReconnectContext.d.ts +4 -4
- package/lib/core/ChatReconnectContext.js +2 -2
- package/lib/core/ChatReconnectOptionalParams.d.ts +3 -3
- package/lib/core/ChatReconnectOptionalParams.js +2 -2
- package/lib/core/ChatSDKConfig.d.ts +38 -38
- package/lib/core/ChatSDKConfig.js +2 -2
- package/lib/core/ChatSDKError.d.ts +64 -63
- package/lib/core/ChatSDKError.js +73 -72
- package/lib/core/ChatSDKError.js.map +1 -1
- package/lib/core/ChatSDKExceptionDetails.d.ts +13 -13
- package/lib/core/ChatSDKExceptionDetails.js +2 -2
- package/lib/core/ChatTranscriptBody.d.ts +5 -5
- package/lib/core/ChatTranscriptBody.js +2 -2
- package/lib/core/ConversationMode.d.ts +5 -5
- package/lib/core/ConversationMode.js +8 -8
- package/lib/core/EmailLiveChatTranscriptOptionalParams.d.ts +4 -4
- package/lib/core/EmailLiveChatTranscriptOptionalParams.js +2 -2
- package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +13 -13
- package/lib/core/GetAgentAvailabilityOptionalParams.js +2 -2
- package/lib/core/GetChatTokenOptionalParams.d.ts +3 -3
- package/lib/core/GetChatTokenOptionalParams.js +2 -2
- package/lib/core/GetConversationDetailsOptionalParams.d.ts +4 -4
- package/lib/core/GetConversationDetailsOptionalParams.js +2 -2
- package/lib/core/GetLiveChatConfigOptionalParams.d.ts +5 -5
- package/lib/core/GetLiveChatConfigOptionalParams.js +2 -2
- package/lib/core/GetLiveChatTranscriptOptionalParams.d.ts +4 -4
- package/lib/core/GetLiveChatTranscriptOptionalParams.js +2 -2
- package/lib/core/InitializeOptionalParams.d.ts +6 -5
- package/lib/core/InitializeOptionalParams.js +2 -2
- package/lib/core/LiveChatContext.d.ts +14 -14
- package/lib/core/LiveChatContext.js +2 -2
- package/lib/core/LiveChatVersion.d.ts +5 -5
- package/lib/core/LiveChatVersion.js +8 -8
- package/lib/core/LiveWorkItemDetails.d.ts +8 -8
- package/lib/core/LiveWorkItemDetails.js +2 -2
- package/lib/core/LiveWorkItemState.d.ts +8 -8
- package/lib/core/LiveWorkItemState.js +11 -11
- package/lib/core/OmnichannelConfig.d.ts +5 -5
- package/lib/core/OmnichannelConfig.js +2 -2
- package/lib/core/OmnichannelErrorCodes.d.ts +4 -4
- package/lib/core/OmnichannelErrorCodes.js +7 -7
- package/lib/core/PostChatContext.d.ts +8 -8
- package/lib/core/PostChatContext.js +2 -2
- package/lib/core/SetAuthTokenProviderOptionalParams.d.ts +3 -3
- package/lib/core/SetAuthTokenProviderOptionalParams.js +2 -2
- package/lib/core/StartChatOptionalParams.d.ts +18 -18
- package/lib/core/StartChatOptionalParams.js +2 -2
- package/lib/core/messaging/ACSChatMessageType.d.ts +7 -7
- package/lib/core/messaging/ACSChatMessageType.js +10 -10
- package/lib/core/messaging/ACSClient.d.ts +45 -45
- package/lib/core/messaging/ACSClient.js +612 -612
- package/lib/core/messaging/ACSClientConfig.d.ts +5 -5
- package/lib/core/messaging/ACSClientConfig.js +2 -2
- package/lib/core/messaging/ACSParticipantDisplayName.d.ts +6 -6
- package/lib/core/messaging/ACSParticipantDisplayName.js +9 -9
- package/lib/core/messaging/ACSSessionInfo.d.ts +5 -5
- package/lib/core/messaging/ACSSessionInfo.js +2 -2
- package/lib/core/messaging/ChatAdapterConfig.d.ts +8 -8
- package/lib/core/messaging/ChatAdapterConfig.js +2 -2
- package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +24 -24
- package/lib/core/messaging/ChatAdapterOptionalParams.js +2 -2
- package/lib/core/messaging/ChatAdapterProtocols.d.ts +6 -6
- package/lib/core/messaging/ChatAdapterProtocols.js +10 -10
- package/lib/core/messaging/ChatSDKMessage.d.ts +6 -6
- package/lib/core/messaging/ChatSDKMessage.js +2 -2
- package/lib/core/messaging/IC3Config.d.ts +4 -4
- package/lib/core/messaging/IC3Config.js +2 -2
- package/lib/core/messaging/MessageTags.d.ts +3 -3
- package/lib/core/messaging/MessageTags.js +6 -6
- package/lib/core/messaging/OmnichannelMessage.d.ts +64 -64
- package/lib/core/messaging/OmnichannelMessage.js +51 -51
- package/lib/core/messaging/OnNewMessageOptionalParams.d.ts +3 -3
- package/lib/core/messaging/OnNewMessageOptionalParams.js +2 -2
- package/lib/external/ACSAdapter/AMSFileManager.d.ts +76 -76
- package/lib/external/ACSAdapter/AMSFileManager.js +394 -394
- package/lib/external/ACSAdapter/AMSFileScanner.d.ts +36 -36
- package/lib/external/ACSAdapter/AMSFileScanner.js +275 -275
- package/lib/external/ACSAdapter/activityUtils.d.ts +9 -9
- package/lib/external/ACSAdapter/activityUtils.js +79 -79
- package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -5
- package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +33 -33
- package/lib/external/ACSAdapter/createFileScanIngressMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFileScanIngressMiddleware.js +95 -95
- package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.js +30 -30
- package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.js +24 -24
- package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -7
- package/lib/external/CallingSDK/ICallingSDKLogData.js +2 -2
- package/lib/external/IC3Adapter/IChatToken.d.ts +11 -11
- package/lib/external/IC3Adapter/IChatToken.js +3 -3
- package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +22 -22
- package/lib/external/IC3Adapter/IIC3AdapterOptions.js +2 -2
- package/lib/external/IC3Adapter/INotification.d.ts +6 -6
- package/lib/external/IC3Adapter/INotification.js +2 -2
- package/lib/external/IC3Adapter/Notification.d.ts +7 -7
- package/lib/external/IC3Adapter/Notification.js +14 -14
- package/lib/external/IC3Client/IIC3SDKLogData.d.ts +9 -9
- package/lib/external/IC3Client/IIC3SDKLogData.js +2 -2
- package/lib/external/OCSDK/IOCSDKLogData.d.ts +14 -14
- package/lib/external/OCSDK/IOCSDKLogData.js +2 -2
- package/lib/index.d.ts +25 -25
- package/lib/index.js +34 -34
- package/lib/telemetry/AriaTelemetry.d.ts +40 -40
- package/lib/telemetry/AriaTelemetry.js +539 -539
- package/lib/telemetry/EUDomainNames.d.ts +2 -2
- package/lib/telemetry/EUDomainNames.js +16 -16
- package/lib/telemetry/EventMarker.d.ts +3 -3
- package/lib/telemetry/EventMarker.js +12 -12
- package/lib/telemetry/GCCDomainPatterns.d.ts +2 -2
- package/lib/telemetry/GCCDomainPatterns.js +7 -7
- package/lib/telemetry/LogLevel.d.ts +8 -8
- package/lib/telemetry/LogLevel.js +11 -11
- package/lib/telemetry/ScenarioMarker.d.ts +21 -21
- package/lib/telemetry/ScenarioMarker.js +82 -82
- package/lib/telemetry/ScenarioType.d.ts +11 -11
- package/lib/telemetry/ScenarioType.js +14 -14
- package/lib/telemetry/StopWatch.d.ts +6 -6
- package/lib/telemetry/StopWatch.js +14 -14
- package/lib/telemetry/TelemetryEvent.d.ts +46 -42
- package/lib/telemetry/TelemetryEvent.js +49 -45
- package/lib/telemetry/TelemetryEvent.js.map +1 -1
- package/lib/telemetry/retrieveCollectorUri.d.ts +2 -2
- package/lib/telemetry/retrieveCollectorUri.js +25 -25
- package/lib/tsconfig.tsbuildinfo +1976 -1911
- package/lib/utils/AMSClientLoadStates.d.ts +6 -0
- package/lib/utils/AMSClientLoadStates.js +12 -0
- package/lib/utils/AMSClientLoadStates.js.map +1 -0
- package/lib/utils/CoreServicesUtils.d.ts +7 -7
- package/lib/utils/CoreServicesUtils.js +39 -39
- package/lib/utils/WebUtils.d.ts +10 -10
- package/lib/utils/WebUtils.js +128 -128
- package/lib/utils/chatAdapterCreators.d.ts +20 -20
- package/lib/utils/chatAdapterCreators.js +208 -208
- package/lib/utils/createOcSDKConfiguration.d.ts +4 -4
- package/lib/utils/createOcSDKConfiguration.js +22 -22
- package/lib/utils/createOmnichannelMessage.d.ts +11 -11
- package/lib/utils/createOmnichannelMessage.js +77 -77
- package/lib/utils/createTelemetry.d.ts +3 -3
- package/lib/utils/createTelemetry.js +9 -9
- package/lib/utils/exceptionSuppressors.d.ts +29 -29
- package/lib/utils/exceptionSuppressors.js +49 -49
- package/lib/utils/exceptionThrowers.d.ts +119 -119
- package/lib/utils/exceptionThrowers.js +137 -137
- package/lib/utils/fillMobilePlatformData.d.ts +2 -0
- package/lib/utils/fillMobilePlatformData.js +44 -0
- package/lib/utils/fillMobilePlatformData.js.map +1 -0
- package/lib/utils/fillPlatformData.browser.d.ts +2 -0
- package/lib/utils/fillPlatformData.browser.js +8 -0
- package/lib/utils/fillPlatformData.browser.js.map +1 -0
- package/lib/utils/fillPlatformData.d.ts +2 -0
- package/lib/utils/fillPlatformData.js +8 -0
- package/lib/utils/fillPlatformData.js.map +1 -0
- package/lib/utils/fillWebPlatformData.d.ts +2 -0
- package/lib/utils/fillWebPlatformData.js +21 -0
- package/lib/utils/fillWebPlatformData.js.map +1 -0
- package/lib/utils/internalUtils.d.ts +4 -4
- package/lib/utils/internalUtils.js +16 -16
- package/lib/utils/libraries.d.ts +12 -12
- package/lib/utils/libraries.js +34 -34
- package/lib/utils/locale.d.ts +4 -4
- package/lib/utils/locale.js +60 -60
- package/lib/utils/location.d.ts +7 -7
- package/lib/utils/location.js +95 -95
- package/lib/utils/loggerUtils.d.ts +15 -15
- package/lib/utils/loggerUtils.js +55 -55
- package/lib/utils/loggers.d.ts +111 -111
- package/lib/utils/loggers.js +501 -501
- package/lib/utils/parsers.d.ts +6 -6
- package/lib/utils/parsers.js +10 -10
- package/lib/utils/platform.d.ts +9 -9
- package/lib/utils/platform.js +11 -11
- package/lib/utils/setOcUserAgent.d.ts +2 -2
- package/lib/utils/setOcUserAgent.js +21 -21
- package/lib/utils/sleep.d.ts +2 -2
- package/lib/utils/sleep.js +4 -4
- package/lib/utils/urlResolvers.d.ts +10 -10
- package/lib/utils/urlResolvers.js +64 -64
- package/lib/utils/utilities.d.ts +5 -5
- package/lib/utils/utilities.js +36 -36
- package/lib/validators/OmnichannelConfigValidator.d.ts +3 -3
- package/lib/validators/OmnichannelConfigValidator.js +28 -28
- package/lib/validators/SDKConfigValidators.d.ts +5 -5
- package/lib/validators/SDKConfigValidators.js +48 -48
- package/package.json +1 -1
- package/CHANGELOG.md +0 -435
@@ -1,13 +1,13 @@
|
|
1
|
-
/**
|
2
|
-
* Interface for ChatSDK exceptions
|
3
|
-
*
|
4
|
-
* @param response {string} Response of the exception in CamelCase. The format should be easily caught and handle in code. (e.g: ChatConfigRetrievalFailure)
|
5
|
-
* @param message {string} User friendly message. Usually used to be displayed to the users.
|
6
|
-
* @param errorObject {string} Error object in string format. It's useful for investigation.
|
7
|
-
*/
|
8
|
-
interface ChatSDKExceptionDetails {
|
9
|
-
response: string;
|
10
|
-
message?: string;
|
11
|
-
errorObject?: string;
|
12
|
-
}
|
13
|
-
export default ChatSDKExceptionDetails;
|
1
|
+
/**
|
2
|
+
* Interface for ChatSDK exceptions
|
3
|
+
*
|
4
|
+
* @param response {string} Response of the exception in CamelCase. The format should be easily caught and handle in code. (e.g: ChatConfigRetrievalFailure)
|
5
|
+
* @param message {string} User friendly message. Usually used to be displayed to the users.
|
6
|
+
* @param errorObject {string} Error object in string format. It's useful for investigation.
|
7
|
+
*/
|
8
|
+
interface ChatSDKExceptionDetails {
|
9
|
+
response: string;
|
10
|
+
message?: string;
|
11
|
+
errorObject?: string;
|
12
|
+
}
|
13
|
+
export default ChatSDKExceptionDetails;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatSDKExceptionDetails.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export default interface ChatTranscriptBody {
|
2
|
-
emailAddress: string;
|
3
|
-
attachmentMessage: string;
|
4
|
-
locale?: string;
|
5
|
-
}
|
1
|
+
export default interface ChatTranscriptBody {
|
2
|
+
emailAddress: string;
|
3
|
+
attachmentMessage: string;
|
4
|
+
locale?: string;
|
5
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatTranscriptBody.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
declare enum ConversationMode {
|
2
|
-
LiveChat = 192350000,
|
3
|
-
PersistentChat = 192350001
|
4
|
-
}
|
5
|
-
export default ConversationMode;
|
1
|
+
declare enum ConversationMode {
|
2
|
+
LiveChat = 192350000,
|
3
|
+
PersistentChat = 192350001
|
4
|
+
}
|
5
|
+
export default ConversationMode;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var ConversationMode;
|
4
|
-
(function (ConversationMode) {
|
5
|
-
ConversationMode[ConversationMode["LiveChat"] = 192350000] = "LiveChat";
|
6
|
-
ConversationMode[ConversationMode["PersistentChat"] = 192350001] = "PersistentChat";
|
7
|
-
})(ConversationMode || (ConversationMode = {}));
|
8
|
-
exports.default = ConversationMode;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ConversationMode;
|
4
|
+
(function (ConversationMode) {
|
5
|
+
ConversationMode[ConversationMode["LiveChat"] = 192350000] = "LiveChat";
|
6
|
+
ConversationMode[ConversationMode["PersistentChat"] = 192350001] = "PersistentChat";
|
7
|
+
})(ConversationMode || (ConversationMode = {}));
|
8
|
+
exports.default = ConversationMode;
|
9
9
|
//# sourceMappingURL=ConversationMode.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import LiveChatContext from "./LiveChatContext";
|
2
|
-
export default interface EmailLiveChatTranscriptOptionaParams {
|
3
|
-
liveChatContext?: LiveChatContext;
|
4
|
-
}
|
1
|
+
import LiveChatContext from "./LiveChatContext";
|
2
|
+
export default interface EmailLiveChatTranscriptOptionaParams {
|
3
|
+
liveChatContext?: LiveChatContext;
|
4
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=EmailLiveChatTranscriptOptionalParams.js.map
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import InitContext from "@microsoft/ocsdk/lib/Model/InitContext";
|
2
|
-
export default interface GetAgentAvailabilityOptionalParams {
|
3
|
-
preChatResponse?: object;
|
4
|
-
customContext?: object;
|
5
|
-
browser?: string;
|
6
|
-
os?: string;
|
7
|
-
locale?: string;
|
8
|
-
device?: string;
|
9
|
-
initContext?: InitContext;
|
10
|
-
reconnectId?: string;
|
11
|
-
sendDefaultInitContext?: true;
|
12
|
-
portalContactId?: string;
|
13
|
-
}
|
1
|
+
import InitContext from "@microsoft/ocsdk/lib/Model/InitContext";
|
2
|
+
export default interface GetAgentAvailabilityOptionalParams {
|
3
|
+
preChatResponse?: object;
|
4
|
+
customContext?: object;
|
5
|
+
browser?: string;
|
6
|
+
os?: string;
|
7
|
+
locale?: string;
|
8
|
+
device?: string;
|
9
|
+
initContext?: InitContext;
|
10
|
+
reconnectId?: string;
|
11
|
+
sendDefaultInitContext?: true;
|
12
|
+
portalContactId?: string;
|
13
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=GetAgentAvailabilityOptionalParams.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export default interface GetChatTokenOptionalParams {
|
2
|
-
refreshToken?: boolean;
|
3
|
-
}
|
1
|
+
export default interface GetChatTokenOptionalParams {
|
2
|
+
refreshToken?: boolean;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=GetChatTokenOptionalParams.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import LiveChatContext from "./LiveChatContext";
|
2
|
-
export default interface GetConversationDetailsOptionalParams {
|
3
|
-
liveChatContext?: LiveChatContext;
|
4
|
-
}
|
1
|
+
import LiveChatContext from "./LiveChatContext";
|
2
|
+
export default interface GetConversationDetailsOptionalParams {
|
3
|
+
liveChatContext?: LiveChatContext;
|
4
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=GetConversationDetailsOptionalParams.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
interface GetLiveChatConfigOptionalParams {
|
2
|
-
sendCacheHeaders?: boolean;
|
3
|
-
useRuntimeCache?: boolean;
|
4
|
-
}
|
5
|
-
export default GetLiveChatConfigOptionalParams;
|
1
|
+
interface GetLiveChatConfigOptionalParams {
|
2
|
+
sendCacheHeaders?: boolean;
|
3
|
+
useRuntimeCache?: boolean;
|
4
|
+
}
|
5
|
+
export default GetLiveChatConfigOptionalParams;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=GetLiveChatConfigOptionalParams.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import LiveChatContext from "./LiveChatContext";
|
2
|
-
export default interface GetLiveChatTranscriptOptionalParams {
|
3
|
-
liveChatContext?: LiveChatContext;
|
4
|
-
}
|
1
|
+
import LiveChatContext from "./LiveChatContext";
|
2
|
+
export default interface GetLiveChatTranscriptOptionalParams {
|
3
|
+
liveChatContext?: LiveChatContext;
|
4
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=GetLiveChatTranscriptOptionalParams.js.map
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import GetLiveChatConfigOptionalParams from "./GetLiveChatConfigOptionalParams";
|
2
|
-
interface InitializeOptionalParams {
|
3
|
-
getLiveChatConfigOptionalParams?: GetLiveChatConfigOptionalParams;
|
4
|
-
|
5
|
-
|
1
|
+
import GetLiveChatConfigOptionalParams from "./GetLiveChatConfigOptionalParams";
|
2
|
+
interface InitializeOptionalParams {
|
3
|
+
getLiveChatConfigOptionalParams?: GetLiveChatConfigOptionalParams;
|
4
|
+
useParallelLoad?: boolean;
|
5
|
+
}
|
6
|
+
export default InitializeOptionalParams;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=InitializeOptionalParams.js.map
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import IChatToken from "../external/IC3Adapter/IChatToken";
|
2
|
-
/**
|
3
|
-
* Context of a live chat conversation. It contains all the necessary metadata to interact with a conversation.
|
4
|
-
*
|
5
|
-
* chatToken: Omnichannel chat metadata to interact with message/voice client
|
6
|
-
* requestId: Unique ID used to retrieve a conversation
|
7
|
-
* reconnectId: Unique ID used to retrieve conversation for chat reconnect or persistent chat tied to the user
|
8
|
-
*/
|
9
|
-
export default interface LiveChatContext {
|
10
|
-
chatToken: IChatToken;
|
11
|
-
requestId: string;
|
12
|
-
reconnectId?: string;
|
13
|
-
sessionId?: string;
|
14
|
-
}
|
1
|
+
import IChatToken from "../external/IC3Adapter/IChatToken";
|
2
|
+
/**
|
3
|
+
* Context of a live chat conversation. It contains all the necessary metadata to interact with a conversation.
|
4
|
+
*
|
5
|
+
* chatToken: Omnichannel chat metadata to interact with message/voice client
|
6
|
+
* requestId: Unique ID used to retrieve a conversation
|
7
|
+
* reconnectId: Unique ID used to retrieve conversation for chat reconnect or persistent chat tied to the user
|
8
|
+
*/
|
9
|
+
export default interface LiveChatContext {
|
10
|
+
chatToken: IChatToken;
|
11
|
+
requestId: string;
|
12
|
+
reconnectId?: string;
|
13
|
+
sessionId?: string;
|
14
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=LiveChatContext.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
declare enum LiveChatVersion {
|
2
|
-
V1 = 1,
|
3
|
-
V2 = 2
|
4
|
-
}
|
5
|
-
export default LiveChatVersion;
|
1
|
+
declare enum LiveChatVersion {
|
2
|
+
V1 = 1,
|
3
|
+
V2 = 2
|
4
|
+
}
|
5
|
+
export default LiveChatVersion;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var LiveChatVersion;
|
4
|
-
(function (LiveChatVersion) {
|
5
|
-
LiveChatVersion[LiveChatVersion["V1"] = 1] = "V1";
|
6
|
-
LiveChatVersion[LiveChatVersion["V2"] = 2] = "V2";
|
7
|
-
})(LiveChatVersion || (LiveChatVersion = {}));
|
8
|
-
exports.default = LiveChatVersion;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var LiveChatVersion;
|
4
|
+
(function (LiveChatVersion) {
|
5
|
+
LiveChatVersion[LiveChatVersion["V1"] = 1] = "V1";
|
6
|
+
LiveChatVersion[LiveChatVersion["V2"] = 2] = "V2";
|
7
|
+
})(LiveChatVersion || (LiveChatVersion = {}));
|
8
|
+
exports.default = LiveChatVersion;
|
9
9
|
//# sourceMappingURL=LiveChatVersion.js.map
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import LiveWorkItemState from "./LiveWorkItemState";
|
2
|
-
export default interface LiveWorkItemDetails {
|
3
|
-
state: LiveWorkItemState;
|
4
|
-
agentAcceptedOn?: string;
|
5
|
-
conversationId: string;
|
6
|
-
canRenderPostChat?: string;
|
7
|
-
participantType?: string;
|
8
|
-
}
|
1
|
+
import LiveWorkItemState from "./LiveWorkItemState";
|
2
|
+
export default interface LiveWorkItemDetails {
|
3
|
+
state: LiveWorkItemState;
|
4
|
+
agentAcceptedOn?: string;
|
5
|
+
conversationId: string;
|
6
|
+
canRenderPostChat?: string;
|
7
|
+
participantType?: string;
|
8
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=LiveWorkItemDetails.js.map
|
@@ -1,8 +1,8 @@
|
|
1
|
-
declare enum LiveWorkItemState {
|
2
|
-
Active = "Active",
|
3
|
-
Closed = "Closed",
|
4
|
-
Open = "Open",
|
5
|
-
Waiting = "Waiting",
|
6
|
-
WrapUp = "WrapUp"
|
7
|
-
}
|
8
|
-
export default LiveWorkItemState;
|
1
|
+
declare enum LiveWorkItemState {
|
2
|
+
Active = "Active",
|
3
|
+
Closed = "Closed",
|
4
|
+
Open = "Open",
|
5
|
+
Waiting = "Waiting",
|
6
|
+
WrapUp = "WrapUp"
|
7
|
+
}
|
8
|
+
export default LiveWorkItemState;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var LiveWorkItemState;
|
4
|
-
(function (LiveWorkItemState) {
|
5
|
-
LiveWorkItemState["Active"] = "Active";
|
6
|
-
LiveWorkItemState["Closed"] = "Closed";
|
7
|
-
LiveWorkItemState["Open"] = "Open";
|
8
|
-
LiveWorkItemState["Waiting"] = "Waiting";
|
9
|
-
LiveWorkItemState["WrapUp"] = "WrapUp";
|
10
|
-
})(LiveWorkItemState || (LiveWorkItemState = {}));
|
11
|
-
exports.default = LiveWorkItemState;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var LiveWorkItemState;
|
4
|
+
(function (LiveWorkItemState) {
|
5
|
+
LiveWorkItemState["Active"] = "Active";
|
6
|
+
LiveWorkItemState["Closed"] = "Closed";
|
7
|
+
LiveWorkItemState["Open"] = "Open";
|
8
|
+
LiveWorkItemState["Waiting"] = "Waiting";
|
9
|
+
LiveWorkItemState["WrapUp"] = "WrapUp";
|
10
|
+
})(LiveWorkItemState || (LiveWorkItemState = {}));
|
11
|
+
exports.default = LiveWorkItemState;
|
12
12
|
//# sourceMappingURL=LiveWorkItemState.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export default interface OmnichannelConfig {
|
2
|
-
orgId: string;
|
3
|
-
orgUrl: string;
|
4
|
-
widgetId: string;
|
5
|
-
}
|
1
|
+
export default interface OmnichannelConfig {
|
2
|
+
orgId: string;
|
3
|
+
orgUrl: string;
|
4
|
+
widgetId: string;
|
5
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=OmnichannelConfig.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare enum OmnichannelErrorCodes {
|
2
|
-
WidgetUseOutsideOperatingHour = 705
|
3
|
-
}
|
4
|
-
export default OmnichannelErrorCodes;
|
1
|
+
declare enum OmnichannelErrorCodes {
|
2
|
+
WidgetUseOutsideOperatingHour = 705
|
3
|
+
}
|
4
|
+
export default OmnichannelErrorCodes;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var OmnichannelErrorCodes;
|
4
|
-
(function (OmnichannelErrorCodes) {
|
5
|
-
OmnichannelErrorCodes[OmnichannelErrorCodes["WidgetUseOutsideOperatingHour"] = 705] = "WidgetUseOutsideOperatingHour";
|
6
|
-
})(OmnichannelErrorCodes || (OmnichannelErrorCodes = {}));
|
7
|
-
exports.default = OmnichannelErrorCodes;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var OmnichannelErrorCodes;
|
4
|
+
(function (OmnichannelErrorCodes) {
|
5
|
+
OmnichannelErrorCodes[OmnichannelErrorCodes["WidgetUseOutsideOperatingHour"] = 705] = "WidgetUseOutsideOperatingHour";
|
6
|
+
})(OmnichannelErrorCodes || (OmnichannelErrorCodes = {}));
|
7
|
+
exports.default = OmnichannelErrorCodes;
|
8
8
|
//# sourceMappingURL=OmnichannelErrorCodes.js.map
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export default interface PostChatContext {
|
2
|
-
formsProLocale: string;
|
3
|
-
participantJoined: boolean;
|
4
|
-
participantType: string | undefined;
|
5
|
-
surveyInviteLink: string;
|
6
|
-
botFormsProLocale: string;
|
7
|
-
botSurveyInviteLink: string;
|
8
|
-
}
|
1
|
+
export default interface PostChatContext {
|
2
|
+
formsProLocale: string;
|
3
|
+
participantJoined: boolean;
|
4
|
+
participantType: string | undefined;
|
5
|
+
surveyInviteLink: string;
|
6
|
+
botFormsProLocale: string;
|
7
|
+
botSurveyInviteLink: string;
|
8
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=PostChatContext.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export default interface SetAuthTokenProviderOptionalParams {
|
2
|
-
throwError?: boolean;
|
3
|
-
}
|
1
|
+
export default interface SetAuthTokenProviderOptionalParams {
|
2
|
+
throwError?: boolean;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=SetAuthTokenProviderOptionalParams.js.map
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import InitContext from "@microsoft/ocsdk/lib/Model/InitContext";
|
2
|
-
import LiveChatContext from "./LiveChatContext";
|
3
|
-
export default interface StartChatOptionalParams {
|
4
|
-
liveChatContext?: LiveChatContext;
|
5
|
-
preChatResponse?: object;
|
6
|
-
customContext?: object;
|
7
|
-
browser?: string;
|
8
|
-
os?: string;
|
9
|
-
locale?: string;
|
10
|
-
device?: string;
|
11
|
-
initContext?: InitContext;
|
12
|
-
reconnectId?: string;
|
13
|
-
sendDefaultInitContext?: true;
|
14
|
-
isProactiveChat?: boolean;
|
15
|
-
latitude?: string;
|
16
|
-
longitude?: string;
|
17
|
-
portalContactId?: string;
|
18
|
-
}
|
1
|
+
import InitContext from "@microsoft/ocsdk/lib/Model/InitContext";
|
2
|
+
import LiveChatContext from "./LiveChatContext";
|
3
|
+
export default interface StartChatOptionalParams {
|
4
|
+
liveChatContext?: LiveChatContext;
|
5
|
+
preChatResponse?: object;
|
6
|
+
customContext?: object;
|
7
|
+
browser?: string;
|
8
|
+
os?: string;
|
9
|
+
locale?: string;
|
10
|
+
device?: string;
|
11
|
+
initContext?: InitContext;
|
12
|
+
reconnectId?: string;
|
13
|
+
sendDefaultInitContext?: true;
|
14
|
+
isProactiveChat?: boolean;
|
15
|
+
latitude?: string;
|
16
|
+
longitude?: string;
|
17
|
+
portalContactId?: string;
|
18
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=StartChatOptionalParams.js.map
|
@@ -1,7 +1,7 @@
|
|
1
|
-
declare enum ACSChatMessageType {
|
2
|
-
Text = "text",
|
3
|
-
TopicUpdated = "topicUpdated",
|
4
|
-
ParticipantAdded = "participantAdded",
|
5
|
-
ParticipantRemoved = "participantRemoved"
|
6
|
-
}
|
7
|
-
export default ACSChatMessageType;
|
1
|
+
declare enum ACSChatMessageType {
|
2
|
+
Text = "text",
|
3
|
+
TopicUpdated = "topicUpdated",
|
4
|
+
ParticipantAdded = "participantAdded",
|
5
|
+
ParticipantRemoved = "participantRemoved"
|
6
|
+
}
|
7
|
+
export default ACSChatMessageType;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var ACSChatMessageType;
|
4
|
-
(function (ACSChatMessageType) {
|
5
|
-
ACSChatMessageType["Text"] = "text";
|
6
|
-
ACSChatMessageType["TopicUpdated"] = "topicUpdated";
|
7
|
-
ACSChatMessageType["ParticipantAdded"] = "participantAdded";
|
8
|
-
ACSChatMessageType["ParticipantRemoved"] = "participantRemoved";
|
9
|
-
})(ACSChatMessageType || (ACSChatMessageType = {}));
|
10
|
-
exports.default = ACSChatMessageType;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ACSChatMessageType;
|
4
|
+
(function (ACSChatMessageType) {
|
5
|
+
ACSChatMessageType["Text"] = "text";
|
6
|
+
ACSChatMessageType["TopicUpdated"] = "topicUpdated";
|
7
|
+
ACSChatMessageType["ParticipantAdded"] = "participantAdded";
|
8
|
+
ACSChatMessageType["ParticipantRemoved"] = "participantRemoved";
|
9
|
+
})(ACSChatMessageType || (ACSChatMessageType = {}));
|
10
|
+
exports.default = ACSChatMessageType;
|
11
11
|
//# sourceMappingURL=ACSChatMessageType.js.map
|
@@ -1,45 +1,45 @@
|
|
1
|
-
import ACSClientConfig from "./ACSClientConfig";
|
2
|
-
import { ACSClientLogger } from "../../utils/loggers";
|
3
|
-
import ACSSessionInfo from "./ACSSessionInfo";
|
4
|
-
import { ChatClient, ChatParticipant } from "@azure/communication-chat";
|
5
|
-
import { AzureCommunicationTokenCredential } from "@azure/communication-common";
|
6
|
-
import ChatSDKMessage from "./ChatSDKMessage";
|
7
|
-
import OmnichannelMessage from "./OmnichannelMessage";
|
8
|
-
export interface ParticipantMapping {
|
9
|
-
[key: string]: ChatParticipant;
|
10
|
-
}
|
11
|
-
export declare class ACSConversation {
|
12
|
-
private logger;
|
13
|
-
private tokenCredential;
|
14
|
-
private chatClient;
|
15
|
-
private chatThreadClient?;
|
16
|
-
private sessionInfo?;
|
17
|
-
private participantsMapping?;
|
18
|
-
private eventListeners;
|
19
|
-
constructor(tokenCredential: AzureCommunicationTokenCredential, chatClient: ChatClient, logger?: ACSClientLogger | null);
|
20
|
-
initialize(sessionInfo: ACSSessionInfo): Promise<void>;
|
21
|
-
getMessages(): Promise<OmnichannelMessage[]>;
|
22
|
-
getParticipants(): Promise<ChatParticipant[]>;
|
23
|
-
registerOnNewMessage(onNewMessageCallback: CallableFunction): Promise<void>;
|
24
|
-
registerOnThreadUpdate(onThreadUpdateCallback: CallableFunction): Promise<void>;
|
25
|
-
onTypingEvent(onTypingEventCallback: CallableFunction): Promise<void>;
|
26
|
-
sendMessage(message: ChatSDKMessage): Promise<void>;
|
27
|
-
sendTyping(): Promise<void>;
|
28
|
-
sendFileMessage(): Promise<void>;
|
29
|
-
sendFileData(): Promise<void>;
|
30
|
-
uploadFile(): Promise<void>;
|
31
|
-
downloadFile(): Promise<void>;
|
32
|
-
disconnect(): Promise<void>;
|
33
|
-
private createParticipantsMapping;
|
34
|
-
private trackListener;
|
35
|
-
}
|
36
|
-
declare class ACSClient {
|
37
|
-
private logger;
|
38
|
-
private tokenCredential;
|
39
|
-
private chatClient;
|
40
|
-
constructor(logger?: ACSClientLogger | null);
|
41
|
-
initialize(acsClientConfig: ACSClientConfig): Promise<void>;
|
42
|
-
joinConversation(sessionInfo: ACSSessionInfo): Promise<ACSConversation>;
|
43
|
-
getChatClient(): ChatClient | null;
|
44
|
-
}
|
45
|
-
export default ACSClient;
|
1
|
+
import ACSClientConfig from "./ACSClientConfig";
|
2
|
+
import { ACSClientLogger } from "../../utils/loggers";
|
3
|
+
import ACSSessionInfo from "./ACSSessionInfo";
|
4
|
+
import { ChatClient, ChatParticipant } from "@azure/communication-chat";
|
5
|
+
import { AzureCommunicationTokenCredential } from "@azure/communication-common";
|
6
|
+
import ChatSDKMessage from "./ChatSDKMessage";
|
7
|
+
import OmnichannelMessage from "./OmnichannelMessage";
|
8
|
+
export interface ParticipantMapping {
|
9
|
+
[key: string]: ChatParticipant;
|
10
|
+
}
|
11
|
+
export declare class ACSConversation {
|
12
|
+
private logger;
|
13
|
+
private tokenCredential;
|
14
|
+
private chatClient;
|
15
|
+
private chatThreadClient?;
|
16
|
+
private sessionInfo?;
|
17
|
+
private participantsMapping?;
|
18
|
+
private eventListeners;
|
19
|
+
constructor(tokenCredential: AzureCommunicationTokenCredential, chatClient: ChatClient, logger?: ACSClientLogger | null);
|
20
|
+
initialize(sessionInfo: ACSSessionInfo): Promise<void>;
|
21
|
+
getMessages(): Promise<OmnichannelMessage[]>;
|
22
|
+
getParticipants(): Promise<ChatParticipant[]>;
|
23
|
+
registerOnNewMessage(onNewMessageCallback: CallableFunction): Promise<void>;
|
24
|
+
registerOnThreadUpdate(onThreadUpdateCallback: CallableFunction): Promise<void>;
|
25
|
+
onTypingEvent(onTypingEventCallback: CallableFunction): Promise<void>;
|
26
|
+
sendMessage(message: ChatSDKMessage): Promise<void>;
|
27
|
+
sendTyping(): Promise<void>;
|
28
|
+
sendFileMessage(): Promise<void>;
|
29
|
+
sendFileData(): Promise<void>;
|
30
|
+
uploadFile(): Promise<void>;
|
31
|
+
downloadFile(): Promise<void>;
|
32
|
+
disconnect(): Promise<void>;
|
33
|
+
private createParticipantsMapping;
|
34
|
+
private trackListener;
|
35
|
+
}
|
36
|
+
declare class ACSClient {
|
37
|
+
private logger;
|
38
|
+
private tokenCredential;
|
39
|
+
private chatClient;
|
40
|
+
constructor(logger?: ACSClientLogger | null);
|
41
|
+
initialize(acsClientConfig: ACSClientConfig): Promise<void>;
|
42
|
+
joinConversation(sessionInfo: ACSSessionInfo): Promise<ACSConversation>;
|
43
|
+
getChatClient(): ChatClient | null;
|
44
|
+
}
|
45
|
+
export default ACSClient;
|