@microsoft/omnichannel-chat-widget 1.7.8-main.50111af → 1.7.8-main.8428c08
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/cjs/common/Constants.js +9 -2
- package/lib/cjs/common/facades/FacadeChatSDK.js +21 -17
- package/lib/cjs/common/telemetry/ScenarioMarker.js +66 -0
- package/lib/cjs/common/telemetry/TelemetryConstants.js +53 -45
- package/lib/cjs/common/telemetry/TelemetryHelper.js +62 -69
- package/lib/cjs/common/telemetry/TelemetryManager.js +22 -9
- package/lib/cjs/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +11 -0
- package/lib/cjs/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
- package/lib/cjs/common/telemetry/loggers/appInsightsLogger.js +119 -0
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +13 -9
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +5 -4
- package/lib/cjs/components/footerstateful/FooterStateful.js +13 -8
- package/lib/cjs/components/headerstateful/HeaderStateful.js +21 -9
- package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
- package/lib/cjs/components/livechatwidget/common/renderSurveyHelpers.js +7 -4
- package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -3
- package/lib/cjs/components/livechatwidget/common/startChat.js +3 -3
- package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +7 -6
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +11 -9
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +9 -4
- package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
- package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +9 -7
- package/lib/cjs/firstresponselatency/FirstMessageTrackerFromBot.js +2 -2
- package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +1 -1
- package/lib/cjs/plugins/newMessageEventHandler.js +8 -8
- package/lib/esm/common/Constants.js +7 -1
- package/lib/esm/common/facades/FacadeChatSDK.js +21 -17
- package/lib/esm/common/telemetry/ScenarioMarker.js +59 -0
- package/lib/esm/common/telemetry/TelemetryConstants.js +53 -45
- package/lib/esm/common/telemetry/TelemetryHelper.js +62 -69
- package/lib/esm/common/telemetry/TelemetryManager.js +22 -9
- package/lib/esm/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +4 -0
- package/lib/esm/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
- package/lib/esm/common/telemetry/loggers/appInsightsLogger.js +111 -0
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +13 -9
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +5 -4
- package/lib/esm/components/footerstateful/FooterStateful.js +13 -8
- package/lib/esm/components/headerstateful/HeaderStateful.js +21 -9
- package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
- package/lib/esm/components/livechatwidget/common/renderSurveyHelpers.js +7 -4
- package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -3
- package/lib/esm/components/livechatwidget/common/startChat.js +3 -3
- package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +7 -6
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +11 -9
- package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +9 -4
- package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
- package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +9 -7
- package/lib/esm/firstresponselatency/FirstMessageTrackerFromBot.js +2 -2
- package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +1 -1
- package/lib/esm/plugins/newMessageEventHandler.js +8 -8
- package/lib/types/common/Constants.d.ts +5 -0
- package/lib/types/common/telemetry/ScenarioMarker.d.ts +19 -0
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +40 -32
- package/lib/types/common/telemetry/TelemetryHelper.d.ts +5 -0
- package/lib/types/common/telemetry/defaultConfigs/defaultAppInsightsConfig.d.ts +2 -0
- package/lib/types/common/telemetry/interfaces/IAppInsightsConfig.d.ts +4 -0
- package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +1 -0
- package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +2 -0
- package/lib/types/common/telemetry/loggers/appInsightsLogger.d.ts +5 -0
- package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +2 -1
- package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +2 -1
- package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +2 -1
- package/lib/types/components/dimlayer/DimLayer.d.ts +2 -1
- package/lib/types/components/draggable/DraggableChatWidget.d.ts +2 -2
- package/lib/types/components/draggable/DraggableEventEmitter.d.ts +2 -2
- package/lib/types/components/draggable/DraggableEventReceiver.d.ts +2 -2
- package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +2 -1
- package/lib/types/components/footerstateful/FooterStateful.d.ts +2 -1
- package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +2 -1
- package/lib/types/components/headerstateful/HeaderStateful.d.ts +2 -1
- package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +2 -1
- package/lib/types/components/livechatwidget/common/createFooter.d.ts +2 -1
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +2 -0
- package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +2 -1
- package/lib/types/components/notificationpanestateful/NotificationPaneStateful.d.ts +2 -1
- package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +2 -1
- package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +2 -1
- package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +2 -1
- package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +2 -1
- package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +2 -1
- package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +2 -1
- package/lib/types/components/startchaterrorpanestateful/StartChatErrorPaneStateful.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentContent.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentIcon.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Spinner.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +1 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +2 -1
- package/package.json +10 -8
|
@@ -106,8 +106,9 @@ const logWidgetLoadFailed = ex => {
|
|
|
106
106
|
if (ex !== null && ex !== void 0 && ex.httpResponseStatusCode) {
|
|
107
107
|
exDetails.HttpResponseStatusCode = ex.httpResponseStatusCode;
|
|
108
108
|
}
|
|
109
|
-
TelemetryHelper.
|
|
110
|
-
Event: TelemetryEvent.
|
|
109
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.ERROR, {
|
|
110
|
+
Event: TelemetryEvent.WidgetStartChatFailed,
|
|
111
|
+
Description: "Widget load complete with error",
|
|
111
112
|
ExceptionDetails: exDetails,
|
|
112
113
|
ElapsedTimeInMilliseconds: TelemetryTimers === null || TelemetryTimers === void 0 ? void 0 : (_TelemetryTimers$Widg = TelemetryTimers.WidgetLoadTimer) === null || _TelemetryTimers$Widg === void 0 ? void 0 : _TelemetryTimers$Widg.milliSecondsElapsed
|
|
113
114
|
});
|
|
@@ -118,8 +119,8 @@ export const logWidgetLoadComplete = additionalMessage => {
|
|
|
118
119
|
if (additionalMessage) {
|
|
119
120
|
descriptionString += `. ${additionalMessage}`;
|
|
120
121
|
}
|
|
121
|
-
TelemetryHelper.
|
|
122
|
-
Event: TelemetryEvent.
|
|
122
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
123
|
+
Event: TelemetryEvent.WidgetStartChatCompleted,
|
|
123
124
|
Description: descriptionString,
|
|
124
125
|
ElapsedTimeInMilliseconds: TelemetryTimers === null || TelemetryTimers === void 0 ? void 0 : (_TelemetryTimers$Widg2 = TelemetryTimers.WidgetLoadTimer) === null || _TelemetryTimers$Widg2 === void 0 ? void 0 : _TelemetryTimers$Widg2.milliSecondsElapsed
|
|
125
126
|
});
|
|
@@ -133,8 +134,8 @@ const logWidgetLoadCompleteWithError = ex => {
|
|
|
133
134
|
if (ex !== null && ex !== void 0 && ex.httpResponseStatusCode) {
|
|
134
135
|
exDetails.HttpResponseStatusCode = ex.httpResponseStatusCode;
|
|
135
136
|
}
|
|
136
|
-
TelemetryHelper.
|
|
137
|
-
Event: TelemetryEvent.
|
|
137
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.ERROR, {
|
|
138
|
+
Event: TelemetryEvent.WidgetStartChatFailed,
|
|
138
139
|
Description: "Widget load complete with error",
|
|
139
140
|
ExceptionDetails: exDetails,
|
|
140
141
|
ElapsedTimeInMilliseconds: TelemetryTimers === null || TelemetryTimers === void 0 ? void 0 : (_TelemetryTimers$Widg3 = TelemetryTimers.WidgetLoadTimer) === null || _TelemetryTimers$Widg3 === void 0 ? void 0 : _TelemetryTimers$Widg3.milliSecondsElapsed
|
|
@@ -59,8 +59,9 @@ export const LiveChatWidgetStateful = props => {
|
|
|
59
59
|
var _props$webChatContain, _props$styleProps, _props$webChatContain2, _props$webChatContain3, _props$controlProps, _props$controlProps3, _state$appStates7, _props$webChatContain7, _state$appStates14, _props$webChatContain9, _props$webChatContain10, _props$controlProps12, _props$draggableChatW, _props$draggableChatW2, _props$draggableChatW3, _props$draggableChatW4, _props$draggableChatW5, _livechatProps$webCha, _props$webChatContain11, _props$webChatContain12, _props$webChatContain13, _props$webChatContain14, _props$webChatContain15, _props$webChatContain16, _props$webChatContain17, _props$webChatContain18, _livechatProps$styleP, _livechatProps$contro, _livechatProps$contro2, _livechatProps$compon, _livechatProps$contro3, _livechatProps$compon2, _livechatProps$contro4, _livechatProps$compon3, _livechatProps$contro5, _livechatProps$compon4, _livechatProps$contro6, _livechatProps$compon5, _livechatProps$contro7, _livechatProps$compon6, _livechatProps$contro8, _livechatProps$compon7, _livechatProps$contro9, _livechatProps$compon8, _livechatProps$contro10, _livechatProps$contro11, _livechatProps$compon9, _livechatProps$contro12, _livechatProps$compon10, _livechatProps$contro13, _livechatProps$compon11, _livechatProps$compon12, _livechatProps$compon13;
|
|
60
60
|
useEffect(() => {
|
|
61
61
|
uiTimer = createTimer();
|
|
62
|
-
TelemetryHelper.
|
|
63
|
-
Event: TelemetryEvent.
|
|
62
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
63
|
+
Event: TelemetryEvent.UXLiveChatWidgetStart,
|
|
64
|
+
Description: "Live chat widget loading started."
|
|
64
65
|
});
|
|
65
66
|
}, []);
|
|
66
67
|
const [state, dispatch] = useChatContextStore();
|
|
@@ -311,7 +312,7 @@ export const LiveChatWidgetStateful = props => {
|
|
|
311
312
|
});
|
|
312
313
|
});
|
|
313
314
|
BroadcastService.getMessageByEventName(BroadcastEvent.StartProactiveChat).subscribe(msg => {
|
|
314
|
-
TelemetryHelper.
|
|
315
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
315
316
|
Event: TelemetryEvent.StartProactiveChatEventReceived,
|
|
316
317
|
Description: "Start proactive chat event received."
|
|
317
318
|
});
|
|
@@ -428,7 +429,7 @@ export const LiveChatWidgetStateful = props => {
|
|
|
428
429
|
}
|
|
429
430
|
if (msg !== null && msg !== void 0 && (_msg$payload7 = msg.payload) !== null && _msg$payload7 !== void 0 && _msg$payload7.customContext) {
|
|
430
431
|
var _msg$payload8;
|
|
431
|
-
TelemetryHelper.
|
|
432
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
432
433
|
Event: TelemetryEvent.CustomContextReceived,
|
|
433
434
|
Description: "CustomContext received through startChat event."
|
|
434
435
|
});
|
|
@@ -437,8 +438,8 @@ export const LiveChatWidgetStateful = props => {
|
|
|
437
438
|
payload: msg === null || msg === void 0 ? void 0 : (_msg$payload8 = msg.payload) === null || _msg$payload8 === void 0 ? void 0 : _msg$payload8.customContext
|
|
438
439
|
});
|
|
439
440
|
}
|
|
440
|
-
TelemetryHelper.
|
|
441
|
-
Event: TelemetryEvent.
|
|
441
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
442
|
+
Event: TelemetryEvent.StartChatEventReceived,
|
|
442
443
|
Description: "Start chat event received."
|
|
443
444
|
});
|
|
444
445
|
const inMemoryState = executeReducer(state, {
|
|
@@ -482,7 +483,7 @@ export const LiveChatWidgetStateful = props => {
|
|
|
482
483
|
|
|
483
484
|
// End chat
|
|
484
485
|
BroadcastService.getMessageByEventName(BroadcastEvent.InitiateEndChat).subscribe(async () => {
|
|
485
|
-
TelemetryHelper.
|
|
486
|
+
TelemetryHelper.logSDKEventToAllTelemetry(LogLevel.INFO, {
|
|
486
487
|
Event: TelemetryEvent.EndChatEventReceived,
|
|
487
488
|
Description: "Received InitiateEndChat BroadcastEvent."
|
|
488
489
|
});
|
|
@@ -768,8 +769,9 @@ export const LiveChatWidgetStateful = props => {
|
|
|
768
769
|
});
|
|
769
770
|
}, [(_props$webChatContain9 = props.webChatContainerProps) === null || _props$webChatContain9 === void 0 ? void 0 : _props$webChatContain9.renderingMiddlewareProps]);
|
|
770
771
|
useEffect(() => {
|
|
771
|
-
TelemetryHelper.
|
|
772
|
-
Event: TelemetryEvent.
|
|
772
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
773
|
+
Event: TelemetryEvent.UXLiveChatWidgetCompleted,
|
|
774
|
+
Description: "Live chat widget loading completed.",
|
|
773
775
|
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed
|
|
774
776
|
});
|
|
775
777
|
}, []);
|
|
@@ -11,8 +11,9 @@ export const OutOfOfficeHoursPaneStateful = props => {
|
|
|
11
11
|
var _props$styleProps;
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
uiTimer = createTimer();
|
|
14
|
-
TelemetryHelper.
|
|
15
|
-
Event: TelemetryEvent.
|
|
14
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
15
|
+
Event: TelemetryEvent.UXOutOfOfficeHoursPaneStart,
|
|
16
|
+
Description: "Out of office hours pane loading started."
|
|
16
17
|
});
|
|
17
18
|
}, []);
|
|
18
19
|
const [state] = useChatContextStore();
|
|
@@ -38,8 +39,9 @@ export const OutOfOfficeHoursPaneStateful = props => {
|
|
|
38
39
|
TelemetryHelper.logLoadingEvent(LogLevel.INFO, {
|
|
39
40
|
Event: TelemetryEvent.OutOfOfficePaneLoaded
|
|
40
41
|
});
|
|
41
|
-
TelemetryHelper.
|
|
42
|
-
Event: TelemetryEvent.
|
|
42
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
43
|
+
Event: TelemetryEvent.UXOutOfOfficeHoursPaneCompleted,
|
|
44
|
+
Description: "Out of office hours pane loading completed.",
|
|
43
45
|
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed
|
|
44
46
|
});
|
|
45
47
|
}, []);
|
|
@@ -84,12 +84,17 @@ export const PostChatSurveyPaneStateful = props => {
|
|
|
84
84
|
Event: TelemetryEvent.CustomerVoiceResponsePageLoaded
|
|
85
85
|
});
|
|
86
86
|
} else if (data === CustomerVoiceEvents.FormResponseSubmitted) {
|
|
87
|
-
TelemetryHelper.
|
|
88
|
-
Event: TelemetryEvent.CustomerVoiceFormResponseSubmitted
|
|
87
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
88
|
+
Event: TelemetryEvent.CustomerVoiceFormResponseSubmitted,
|
|
89
|
+
Description: "Customer Voice form response submitted."
|
|
89
90
|
});
|
|
90
91
|
} else if (data === CustomerVoiceEvents.FormResponseError) {
|
|
91
|
-
TelemetryHelper.
|
|
92
|
-
Event: TelemetryEvent.CustomerVoiceFormResponseError
|
|
92
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.ERROR, {
|
|
93
|
+
Event: TelemetryEvent.CustomerVoiceFormResponseError,
|
|
94
|
+
Description: "Customer Voice form response error.",
|
|
95
|
+
ExceptionDetails: {
|
|
96
|
+
message: "Customer Voice form response error."
|
|
97
|
+
}
|
|
93
98
|
});
|
|
94
99
|
}
|
|
95
100
|
});
|
|
@@ -17,8 +17,9 @@ export const PreChatSurveyPaneStateful = props => {
|
|
|
17
17
|
var _surveyProps$stylePro, _props$surveyProps, _props$surveyProps$co;
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
uiTimer = createTimer();
|
|
20
|
-
TelemetryHelper.
|
|
21
|
-
Event: TelemetryEvent.UXPrechatPaneStart
|
|
20
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
21
|
+
Event: TelemetryEvent.UXPrechatPaneStart,
|
|
22
|
+
Description: "Prechat survey pane loading started."
|
|
22
23
|
});
|
|
23
24
|
}, []);
|
|
24
25
|
|
|
@@ -67,8 +68,9 @@ export const PreChatSurveyPaneStateful = props => {
|
|
|
67
68
|
payload: getAdaptiveCardPayload(state.domainStates.preChatSurveyResponse, requiredFieldMissingMessage),
|
|
68
69
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
70
|
onSubmit: async values => {
|
|
70
|
-
TelemetryHelper.
|
|
71
|
-
Event: TelemetryEvent.
|
|
71
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
72
|
+
Event: TelemetryEvent.PrechatSubmitCompleted,
|
|
73
|
+
Description: "Prechat survey submitted."
|
|
72
74
|
});
|
|
73
75
|
dispatch({
|
|
74
76
|
type: LiveChatWidgetActionType.SET_CONVERSATION_STATE,
|
|
@@ -139,9 +141,10 @@ export const PreChatSurveyPaneStateful = props => {
|
|
|
139
141
|
TelemetryHelper.logLoadingEvent(LogLevel.INFO, {
|
|
140
142
|
Event: TelemetryEvent.PrechatSurveyLoaded
|
|
141
143
|
});
|
|
142
|
-
TelemetryHelper.
|
|
144
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
143
145
|
Event: TelemetryEvent.UXPrechatPaneCompleted,
|
|
144
|
-
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed
|
|
146
|
+
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed,
|
|
147
|
+
Description: "Prechat survey pane loading completed."
|
|
145
148
|
});
|
|
146
149
|
}, []);
|
|
147
150
|
|
|
@@ -16,8 +16,9 @@ export const ProactiveChatPaneStateful = props => {
|
|
|
16
16
|
var _proactiveChatProps$c;
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
uiTimer = createTimer();
|
|
19
|
-
TelemetryHelper.
|
|
20
|
-
Event: TelemetryEvent.UXProactiveChatPaneStart
|
|
19
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
20
|
+
Event: TelemetryEvent.UXProactiveChatPaneStart,
|
|
21
|
+
Description: "Proactive chat pane loading started."
|
|
21
22
|
});
|
|
22
23
|
}, []);
|
|
23
24
|
const [state, dispatch] = useChatContextStore();
|
|
@@ -42,8 +43,8 @@ export const ProactiveChatPaneStateful = props => {
|
|
|
42
43
|
type: LiveChatWidgetActionType.SET_CONVERSATION_STATE,
|
|
43
44
|
payload: ConversationState.Closed
|
|
44
45
|
});
|
|
45
|
-
TelemetryHelper.
|
|
46
|
-
Event: TelemetryEvent.
|
|
46
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
47
|
+
Event: TelemetryEvent.ProactiveChatTimeOutCompleted,
|
|
47
48
|
ElapsedTimeInMilliseconds: TelemetryTimers.LcwLoadToChatButtonTimer.milliSecondsElapsed,
|
|
48
49
|
Description: "Proactive chat invitation timed out."
|
|
49
50
|
});
|
|
@@ -121,9 +122,10 @@ export const ProactiveChatPaneStateful = props => {
|
|
|
121
122
|
TelemetryHelper.logLoadingEvent(LogLevel.INFO, {
|
|
122
123
|
Event: TelemetryEvent.ProactiveChatPaneLoaded
|
|
123
124
|
});
|
|
124
|
-
TelemetryHelper.
|
|
125
|
-
Event: TelemetryEvent.
|
|
126
|
-
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed
|
|
125
|
+
TelemetryHelper.logLoadingEventToAllTelemetry(LogLevel.INFO, {
|
|
126
|
+
Event: TelemetryEvent.UXProactiveChatPaneCompleted,
|
|
127
|
+
ElapsedTimeInMilliseconds: uiTimer.milliSecondsElapsed,
|
|
128
|
+
Description: "Proactive chat pane loading completed."
|
|
127
129
|
});
|
|
128
130
|
return () => {
|
|
129
131
|
clearTimeout(timeoutEvent);
|
|
@@ -21,7 +21,7 @@ export const createTrackingForFirstMessage = () => {
|
|
|
21
21
|
}
|
|
22
22
|
return true;
|
|
23
23
|
};
|
|
24
|
-
const widgetLoadListener = BroadcastService.getMessageByEventName(TelemetryEvent.
|
|
24
|
+
const widgetLoadListener = BroadcastService.getMessageByEventName(TelemetryEvent.WidgetStartChatCompleted).subscribe(() => {
|
|
25
25
|
if (startTracking) return;
|
|
26
26
|
startTracking = true;
|
|
27
27
|
startTime = new Date().getTime();
|
|
@@ -78,7 +78,7 @@ export const createTrackingForFirstMessage = () => {
|
|
|
78
78
|
|
|
79
79
|
// Rehydrate message is received when the widget is reloaded, this is to ensure that we are not tracking messages that are not part of the current conversation
|
|
80
80
|
// No need to keep listerning for tracking, enforcing disconnection for the listners
|
|
81
|
-
const rehydrateListener = BroadcastService.getMessageByEventName(TelemetryEvent.
|
|
81
|
+
const rehydrateListener = BroadcastService.getMessageByEventName(TelemetryEvent.RehydrateMessageReceivedCompleted).subscribe(() => {
|
|
82
82
|
startTracking = false;
|
|
83
83
|
stopTracking = false;
|
|
84
84
|
disconnectListener();
|
|
@@ -33,7 +33,7 @@ export let FirstResponseLatencyTracker = /*#__PURE__*/function () {
|
|
|
33
33
|
}));
|
|
34
34
|
// Rehydrate message is received when the widget is reloaded, this is to ensure that we are not tracking messages that are not part of the current conversation
|
|
35
35
|
// No need to keep listerning for tracking, enforcing disconnection for the listners
|
|
36
|
-
_defineProperty(this, "rehydrateListener", BroadcastService.getMessageByEventName(TelemetryEvent.
|
|
36
|
+
_defineProperty(this, "rehydrateListener", BroadcastService.getMessageByEventName(TelemetryEvent.RehydrateMessageReceivedCompleted).subscribe(() => {
|
|
37
37
|
this.isReady = true;
|
|
38
38
|
}));
|
|
39
39
|
// Rehydrate message is received when the widget is reloaded, this is to ensure that we are not tracking messages that are not part of the current conversation
|
|
@@ -30,8 +30,8 @@ export const createOnNewAdapterActivityHandler = (chatId, userId) => {
|
|
|
30
30
|
if (!isHistoryMessage(activity, startTime)) {
|
|
31
31
|
firstResponseLatencyTracker.startClock(payload);
|
|
32
32
|
}
|
|
33
|
-
TelemetryHelper.
|
|
34
|
-
Event: TelemetryEvent.
|
|
33
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
34
|
+
Event: TelemetryEvent.MessageSentCompleted,
|
|
35
35
|
Description: "New message sent"
|
|
36
36
|
});
|
|
37
37
|
};
|
|
@@ -39,8 +39,8 @@ export const createOnNewAdapterActivityHandler = (chatId, userId) => {
|
|
|
39
39
|
const payload = buildMessagePayload(activity, userId);
|
|
40
40
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
41
|
payload.messageType = Constants.systemMessageTag;
|
|
42
|
-
TelemetryHelper.
|
|
43
|
-
Event: TelemetryEvent.
|
|
42
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
43
|
+
Event: TelemetryEvent.SystemMessageReceivedCompleted,
|
|
44
44
|
Description: "System message received"
|
|
45
45
|
});
|
|
46
46
|
};
|
|
@@ -53,8 +53,8 @@ export const createOnNewAdapterActivityHandler = (chatId, userId) => {
|
|
|
53
53
|
if (!isHistoryMessageReceivedEventRaised) {
|
|
54
54
|
// this is needed for reload scenarios, it helps to identify the last message received before the reload
|
|
55
55
|
isHistoryMessageReceivedEventRaised = true;
|
|
56
|
-
TelemetryHelper.
|
|
57
|
-
Event: TelemetryEvent.
|
|
56
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
57
|
+
Event: TelemetryEvent.RehydrateMessageReceivedCompleted,
|
|
58
58
|
Description: "History message received",
|
|
59
59
|
CustomProperties: payload
|
|
60
60
|
});
|
|
@@ -90,8 +90,8 @@ export const createOnNewAdapterActivityHandler = (chatId, userId) => {
|
|
|
90
90
|
payload: polyfillMessagePayloadForEvent(activity, payload, (_TelemetryManager$Int3 = TelemetryManager.InternalTelemetryData) === null || _TelemetryManager$Int3 === void 0 ? void 0 : _TelemetryManager$Int3.conversationId)
|
|
91
91
|
};
|
|
92
92
|
BroadcastService.postMessage(newMessageReceivedEvent);
|
|
93
|
-
TelemetryHelper.
|
|
94
|
-
Event: TelemetryEvent.
|
|
93
|
+
TelemetryHelper.logActionEventToAllTelemetry(LogLevel.INFO, {
|
|
94
|
+
Event: TelemetryEvent.MessageReceivedCompleted,
|
|
95
95
|
Description: "New message received",
|
|
96
96
|
CustomProperties: payload
|
|
97
97
|
});
|
|
@@ -274,4 +274,9 @@ export declare class PrepareEndChatDescriptionConstants {
|
|
|
274
274
|
export declare class PostChatSurveyTelemetryMessage {
|
|
275
275
|
static readonly PostChatContextCallFailed = "Failed to get post chat context.";
|
|
276
276
|
static readonly PostChatContextCallSucceed = "Postchat context call succeed.";
|
|
277
|
+
static readonly PostChatContextCallStarted = "Postchat context call started.";
|
|
278
|
+
}
|
|
279
|
+
export declare class AppInsightsTelemetryMessage {
|
|
280
|
+
static readonly AppInsightsInitialized = "Application Insights initialized successfully.";
|
|
281
|
+
static readonly AppInsightsInitError = "Error initializing Application Insights";
|
|
277
282
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare class ScenarioMarker {
|
|
2
|
+
/**
|
|
3
|
+
* Formats the event name for the "Started" state of a scenario.
|
|
4
|
+
*/
|
|
5
|
+
static startScenario(event: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Formats the event name for the "Failed" state of a scenario.
|
|
8
|
+
*/
|
|
9
|
+
static failScenario(event: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Formats the event name for the "Completed" state of a scenario.
|
|
12
|
+
*/
|
|
13
|
+
static completeScenario(event: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Formats the event name for the "Warn" state of a scenario.
|
|
16
|
+
*/
|
|
17
|
+
static warnScenario(event: string): string;
|
|
18
|
+
}
|
|
19
|
+
export default ScenarioMarker;
|
|
@@ -102,28 +102,27 @@ export declare enum TelemetryEvent {
|
|
|
102
102
|
EndChatFailed = "EndChatFailed",
|
|
103
103
|
SettingCustomContext = "SettingCustomContext",
|
|
104
104
|
WebChatLoaded = "WebChatLoaded",
|
|
105
|
-
|
|
105
|
+
LCWChatButtonActionCompleted = "LCWChatButtonActionCompleted",
|
|
106
|
+
LCWChatButtonActionStarted = "LCWChatButtonActionStarted",
|
|
106
107
|
LCWChatButtonShow = "LCWChatButtonShow",
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
WidgetStartChatStarted = "WidgetStartChatStarted",
|
|
109
|
+
WidgetStartChatCompleted = "WidgetStartChatCompleted",
|
|
110
|
+
WidgetStartChatFailed = "WidgetStartChatFailed",
|
|
110
111
|
StartChatMethodException = "StartChatMethodException",
|
|
111
112
|
CloseChatCall = "CloseChatCall",
|
|
112
113
|
CloseChatMethodException = "CloseChatMethodException",
|
|
113
114
|
PrechatSurveyLoaded = "PrechatSurveyLoaded",
|
|
114
115
|
PrechatSurveyExpected = "PrechatSurveyExpected",
|
|
115
|
-
|
|
116
|
+
PrechatSubmitCompleted = "PrechatSubmitCompleted",
|
|
116
117
|
StartChatSDKCall = "StartChatCall",
|
|
117
|
-
|
|
118
|
+
StartChatEventReceived = "StartChatEventReceivedCompleted",
|
|
118
119
|
EndChatSDKCall = "EndChatSDKCall",
|
|
119
120
|
PrepareEndChat = "PrepareEndChat",
|
|
120
|
-
EndChatEventReceived = "
|
|
121
|
+
EndChatEventReceived = "EndChatEventReceivedCompleted",
|
|
121
122
|
WindowClosed = "WindowClosed",
|
|
122
123
|
OnNewMessageFailed = "OnNewMessageFailed",
|
|
123
124
|
OnNewMessageAudioNotificationFailed = "OnNewMessageAudioNotificationFailed",
|
|
124
125
|
DownloadTranscriptResponseNullOrUndefined = "DownloadTranscriptResponseNullOrUndefined",
|
|
125
|
-
EmailTranscriptSent = "EmailTranscriptSent",
|
|
126
|
-
EmailTranscriptFailed = "EmailTranscriptFailed",
|
|
127
126
|
ErrorUIPaneLoaded = "ErrorUIPaneLoaded",
|
|
128
127
|
DownloadTranscriptFailed = "DownloadTranscriptFailed",
|
|
129
128
|
StartChatFailed = "StartChatFailed",
|
|
@@ -137,12 +136,18 @@ export declare enum TelemetryEvent {
|
|
|
137
136
|
ConfirmationPaneLoaded = "ConfirmationPaneLoaded",
|
|
138
137
|
ProactiveChatPaneLoaded = "ProactiveChatPaneLoaded",
|
|
139
138
|
ReconnectChatPaneLoaded = "ReconnectChatPaneLoaded",
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
CloseChatActionStarted = "CloseChatActionStarted",
|
|
140
|
+
CloseChatActionCompleted = "CloseChatActionCompleted",
|
|
141
|
+
MinimizeChatActionStarted = "MinimizeChatActionStarted",
|
|
142
|
+
MinimizeChatActionCompleted = "MinimizeChatActionCompleted",
|
|
142
143
|
NotificationCloseChatButtonClicked = "NotificationCloseChatButtonClicked",
|
|
143
144
|
NotificationDismissButtonClicked = "NotificationDismissButtonClicked",
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
DownloadTranscriptActionStarted = "DownloadTranscriptActionStarted",
|
|
146
|
+
DownloadTranscriptActionCompleted = "DownloadTranscriptActionCompleted",
|
|
147
|
+
DownloadTranscriptActionFailed = "DownloadTranscriptActionFailed",
|
|
148
|
+
EmailTranscriptActionStarted = "EmailTranscriptActionStarted",
|
|
149
|
+
EmailTranscriptActionCompleted = "EmailTranscriptActionCompleted",
|
|
150
|
+
EmailTranscriptActionFailed = "EmailTranscriptActionFailed",
|
|
146
151
|
EmailTranscriptCancelButtonClicked = "EmailTranscriptCancelButtonClicked",
|
|
147
152
|
AudioToggleButtonClicked = "AudioToggleButtonClicked",
|
|
148
153
|
SuppressBotMagicCodeSucceeded = "SuppressBotMagicCodeSucceeded",
|
|
@@ -154,7 +159,7 @@ export declare enum TelemetryEvent {
|
|
|
154
159
|
GetAuthTokenFailed = "GetAuthTokenFailed",
|
|
155
160
|
ReceivedNullOrEmptyToken = "ReceivedNullOrEmptyToken",
|
|
156
161
|
CustomerVoiceResponsePageLoaded = "CustomerVoiceResponsePageLoaded",
|
|
157
|
-
CustomerVoiceFormResponseSubmitted = "
|
|
162
|
+
CustomerVoiceFormResponseSubmitted = "CustomerVoiceFormResponseSubmitCompleted",
|
|
158
163
|
CustomerVoiceFormResponseError = "CustomerVoiceFormResponseError",
|
|
159
164
|
BotAuthActivityEmptySasUrl = "BotAuthActivityEmptySasUrl",
|
|
160
165
|
SetBotAuthProviderFetchConfig = "SetBotAuthProviderFetchConfig",
|
|
@@ -183,25 +188,25 @@ export declare enum TelemetryEvent {
|
|
|
183
188
|
FacadeChatSDKEvent = "FacadeChatSDKEvent",
|
|
184
189
|
PreChatSurveyStartChatMethodFailed = "PreChatSurveyStartChatMethodFailed",
|
|
185
190
|
ChatAlreadyTriggered = "ChatAlreadyTriggered",
|
|
186
|
-
StartProactiveChatEventReceived = "
|
|
191
|
+
StartProactiveChatEventReceived = "StartProactiveChatEventReceivedCompleted",
|
|
187
192
|
StartProactiveChatMethodFailed = "StartProactiveChatMethodFailed",
|
|
188
193
|
ProactiveChatAccepted = "ProactiveChatAccepted",
|
|
189
|
-
|
|
194
|
+
ProactiveChatTimeOutCompleted = "ProactiveChatTimeOutCompleted",
|
|
190
195
|
IncomingProactiveChatScreenLoaded = "IncomingProactiveChatScreenLoaded",
|
|
191
196
|
ProactiveChatClosed = "ProactiveChatClosed",
|
|
192
197
|
ReconnectChatContinueConversation = "ReconnectChatContinueConversation",
|
|
193
198
|
ReconnectChatStartNewConversation = "ReconnectChatStartNewConversation",
|
|
194
199
|
ReconnectChatMinimize = "ReconnectChatMinimize",
|
|
195
|
-
|
|
196
|
-
|
|
200
|
+
MessageSentCompleted = "MessageSentCompleted",
|
|
201
|
+
MessageReceivedCompleted = "MessageReceivedCompleted",
|
|
197
202
|
MessageLapTrack = "MessageLapTrack",
|
|
198
203
|
BotFirstMessageLapTrack = "BotFirstMessageLapTrack",
|
|
199
204
|
BotFirstMessageLapTrackError = "BotFirstMessageLapTrackError",
|
|
200
205
|
MessageStartLapTrackError = "MessageStartLapTrackError",
|
|
201
206
|
MessageStopLapTrackError = "MessageStopLapTrackError",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
CustomContextReceived = "
|
|
207
|
+
SystemMessageReceivedCompleted = "SystemMessageReceivedCompleted",
|
|
208
|
+
RehydrateMessageReceivedCompleted = "RehydrateMessageReceivedCompleted",
|
|
209
|
+
CustomContextReceived = "CustomContextReceivedCompleted",
|
|
205
210
|
NetworkDisconnected = "NetworkDisconnected",
|
|
206
211
|
NetworkReconnected = "NetworkReconnected",
|
|
207
212
|
LinkModePostChatWorkflowStarted = "LinkModePostChatWorkflowStarted",
|
|
@@ -209,7 +214,8 @@ export declare enum TelemetryEvent {
|
|
|
209
214
|
PostChatWorkflowFromCustomer = "PostChatWorkflowFromCustomer",
|
|
210
215
|
PostChatWorkflowFromAgent = "PostChatWorkflowFromAgent",
|
|
211
216
|
PostChatWorkflowFromBot = "PostChatWorkflowFromBot",
|
|
212
|
-
|
|
217
|
+
PostChatContextCallStarted = "PostChatContextCallStarted",
|
|
218
|
+
PostChatContextCallCompleted = "PostChatContextCallCompleted",
|
|
213
219
|
PostChatContextCallFailed = "PostChatContextCallFailed",
|
|
214
220
|
PostChatSurveyLoadingPaneLoaded = "PostChatSurveyLoadingPaneLoaded",
|
|
215
221
|
PostChatSurveyLoaded = "PostChatSurveyLoaded",
|
|
@@ -218,9 +224,9 @@ export declare enum TelemetryEvent {
|
|
|
218
224
|
ChatDisconnectThreadEventReceived = "ChatDisconnectThreadEventReceived",
|
|
219
225
|
HiddenAdaptiveCardMessageReceived = "HiddenAdaptiveCardMessageReceived",
|
|
220
226
|
EndingAdapterAfterDisconnectionError = "EndingAdapterAfterDisconnectionError",
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
227
|
+
NewTokenValidationStarted = "NewTokenValidationStarted",
|
|
228
|
+
NewTokenValidationCompleted = "NewTokenValidationCompleted",
|
|
229
|
+
NewTokenValidationFailed = "NewTokenValidationFailed",
|
|
224
230
|
TokenEmptyOrSame = "TokenEmptyOrSame",
|
|
225
231
|
UXFooterStart = "UXFooterStart",
|
|
226
232
|
UXFooterCompleted = "UXFooterCompleted",
|
|
@@ -230,14 +236,14 @@ export declare enum TelemetryEvent {
|
|
|
230
236
|
UXLoadingPaneCompleted = "UXLoadingPaneCompleted",
|
|
231
237
|
UXNotificationPaneStart = "UXNotificationPaneStart",
|
|
232
238
|
UXNotificationPaneCompleted = "UXNotificationPaneCompleted",
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
UXOutOfOfficeHoursPaneStart = "UXOutOfOfficeHoursPaneStart",
|
|
240
|
+
UXOutOfOfficeHoursPaneCompleted = "UXOutOfOfficeHoursPaneCompleted",
|
|
235
241
|
UXPostChatLoadingPaneStart = "UXPostChatLoadingPaneStart",
|
|
236
242
|
UXPostChatLoadingPaneCompleted = "UXPostChatLoadingPaneCompleted",
|
|
237
243
|
UXPrechatPaneStart = "UXPrechatPaneStart",
|
|
238
244
|
UXPrechatPaneCompleted = "UXPrechatPaneCompleted",
|
|
239
245
|
UXProactiveChatPaneStart = "UXProactiveChatPaneStart",
|
|
240
|
-
|
|
246
|
+
UXProactiveChatPaneCompleted = "UXProactiveChatPaneCompleted",
|
|
241
247
|
UXReconnectChatPaneStart = "UXReconnectChatPaneStart",
|
|
242
248
|
UXReconnectChatCompleted = "UXReconnectChatCompleted",
|
|
243
249
|
UXStartChatErrorPaneStart = "UXStartChatErrorPaneStart",
|
|
@@ -246,12 +252,14 @@ export declare enum TelemetryEvent {
|
|
|
246
252
|
UXEmailTranscriptPaneCompleted = "UXEmailTranscriptPaneCompleted",
|
|
247
253
|
UXWebchatContainerStart = "UXWebchatContainerStart",
|
|
248
254
|
UXWebchatContainerCompleted = "UXWebchatContainerCompleted",
|
|
249
|
-
|
|
250
|
-
|
|
255
|
+
UXLCWChatButtonLoadingStart = "UXLCWChatButtonLoadingStart",
|
|
256
|
+
UXLCWChatButtonLoadingCompleted = "UXLCWChatButtonLoadingCompleted",
|
|
251
257
|
UXConfirmationPaneStart = "UXConfirmationPaneStart",
|
|
252
258
|
UXConfirmationPaneCompleted = "UXConfirmationPaneCompleted",
|
|
253
|
-
|
|
254
|
-
|
|
259
|
+
UXLiveChatWidgetStart = "UXLiveChatWidgetStart",
|
|
260
|
+
UXLiveChatWidgetCompleted = "UXLiveChatWidgetCompleted",
|
|
261
|
+
AppInsightsInitialized = "AppInsightsInitialized",
|
|
262
|
+
AppInsightsInitFailed = "AppInsightsInitFailed"
|
|
255
263
|
}
|
|
256
264
|
export interface TelemetryInput {
|
|
257
265
|
scenarioType: ScenarioType;
|
|
@@ -32,6 +32,7 @@ export declare class TelemetryHelper {
|
|
|
32
32
|
static addWidgetDataToTelemetry(telemetryConfig: ITelemetryConfig, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
33
33
|
static addSessionDataToTelemetry(chatSession: LiveChatContext, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
34
34
|
static addConversationDataToTelemetry(liveWorkItem: LiveWorkItemDetails, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
35
|
+
private static postTelemetryEvent;
|
|
35
36
|
static logCallingEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper, callId?: string) => void;
|
|
36
37
|
static logLoadingEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
37
38
|
static logUIEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
@@ -40,4 +41,8 @@ export declare class TelemetryHelper {
|
|
|
40
41
|
static logConfigDataEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
41
42
|
static logWebChatEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
42
43
|
static logFacadeChatSDKEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
44
|
+
static logLoadingEventToAllTelemetry: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
45
|
+
static logActionEventToAllTelemetry: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
46
|
+
static logFacadeChatSDKEventToAllTelemetry: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
47
|
+
static logSDKEventToAllTelemetry: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
43
48
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { IAppInsightsConfig } from "./IAppInsightsConfig";
|
|
1
2
|
import { IAriaConfigurations } from "./IAriaConfigurations";
|
|
2
3
|
import { ITelemetryConfig } from "./ITelemetryConfig";
|
|
3
4
|
export interface IInternalTelemetryData {
|
|
4
5
|
telemetryConfig?: ITelemetryConfig;
|
|
5
6
|
ariaConfig?: IAriaConfigurations;
|
|
7
|
+
appInsightsConfig?: IAppInsightsConfig;
|
|
6
8
|
widgetId?: string;
|
|
7
9
|
chatId?: string;
|
|
8
10
|
conversationId?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ICallingContainerStatefulProps } from "./ICallingContainerStatefulProps";
|
|
2
|
-
export declare const CallingContainerStateful: (props: ICallingContainerStatefulProps) => JSX.Element;
|
|
3
|
+
export declare const CallingContainerStateful: (props: ICallingContainerStatefulProps) => React.JSX.Element;
|
|
3
4
|
export default CallingContainerStateful;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IChatButtonStatefulParams } from "./interfaces/IChatButtonStatefulParams";
|
|
2
|
-
export declare const ChatButtonStateful: (props: IChatButtonStatefulParams) => JSX.Element;
|
|
3
|
+
export declare const ChatButtonStateful: (props: IChatButtonStatefulParams) => React.JSX.Element;
|
|
3
4
|
export default ChatButtonStateful;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IConfirmationPaneStatefulParams } from "./interfaces/IConfirmationPaneStatefulParams";
|
|
2
|
-
export declare const ConfirmationPaneStateful: (props: IConfirmationPaneStatefulParams) => JSX.Element;
|
|
3
|
+
export declare const ConfirmationPaneStateful: (props: IConfirmationPaneStatefulParams) => React.JSX.Element;
|
|
3
4
|
export default ConfirmationPaneStateful;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface DimLayerInterface {
|
|
2
3
|
brightness: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const DimLayer: ({ brightness }: DimLayerInterface) => JSX.Element;
|
|
5
|
+
export declare const DimLayer: ({ brightness }: DimLayerInterface) => React.JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
interface IDraggableChatWidgetInternalProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
channel?: string;
|
|
5
5
|
elementId: string;
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const DraggableChatWidget: (props: IDraggableChatWidgetInternalProps) => JSX.Element;
|
|
8
|
+
declare const DraggableChatWidget: (props: IDraggableChatWidgetInternalProps) => React.JSX.Element;
|
|
9
9
|
export default DraggableChatWidget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
interface IDraggableEventEmitterProps {
|
|
3
3
|
/**
|
|
4
4
|
* Unique channel name to send/receive draggable events to prevent event collisions
|
|
@@ -23,5 +23,5 @@ interface IDraggableEventEmitterProps {
|
|
|
23
23
|
* @param props IDraggableEventEmitterProps
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
declare const DraggableEventEmitter: (props: IDraggableEventEmitterProps) => JSX.Element;
|
|
26
|
+
declare const DraggableEventEmitter: (props: IDraggableEventEmitterProps) => React.JSX.Element;
|
|
27
27
|
export default DraggableEventEmitter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import IDraggableEvent from "./IDraggableEvent";
|
|
3
3
|
interface IDraggableEventReceiverProps {
|
|
4
4
|
/**
|
|
@@ -23,5 +23,5 @@ interface IDraggableEventReceiverProps {
|
|
|
23
23
|
* @param props IDraggableEventReceiverProps
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
|
-
declare const DraggableEventReceiver: (props: IDraggableEventReceiverProps) => JSX.Element;
|
|
26
|
+
declare const DraggableEventReceiver: (props: IDraggableEventReceiverProps) => React.JSX.Element;
|
|
27
27
|
export default DraggableEventReceiver;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { IEmailTranscriptPaneProps } from "./interfaces/IEmailTranscriptPaneProps";
|
|
2
|
-
export declare const EmailTranscriptPaneStateful: (props: IEmailTranscriptPaneProps) => JSX.Element;
|
|
3
|
+
export declare const EmailTranscriptPaneStateful: (props: IEmailTranscriptPaneProps) => React.JSX.Element;
|
|
3
4
|
export default EmailTranscriptPaneStateful;
|