@microsoft/ocsdk 0.4.1-main.127976d → 0.4.1-main.3ea0706
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/CHANGELOG.md +8 -0
- package/dist/SDK.js +3040 -993
- package/dist/SDK.min.js +5 -5
- package/lib/Common/RequestTimeoutConfig.d.ts +1 -1
- package/lib/Interfaces/ISDK.d.ts +2 -2
- package/lib/SDK.d.ts +2 -2
- package/lib/SDK.js +21 -16
- package/lib/SDK.js.map +1 -1
- package/lib/Utils/CustomContextData.js.map +1 -1
- package/lib/Utils/LoggingSanitizer.js.map +1 -1
- package/lib/Utils/axiosRetry.js.map +1 -1
- package/lib/Utils/isExpectedAxiosError.d.ts +3 -0
- package/lib/Utils/isExpectedAxiosError.js +26 -0
- package/lib/Utils/isExpectedAxiosError.js.map +1 -0
- package/lib/Utils/throwClientHTTPError.js.map +1 -1
- package/lib/Utils/uuid.js.map +1 -1
- package/lib/index.js +3 -4
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
package/lib/Interfaces/ISDK.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export default interface ISDK {
|
|
|
8
8
|
getChatToken(requestId: string): Promise<FetchChatTokenResponse>;
|
|
9
9
|
sessionInit(requestId: string): Promise<void>;
|
|
10
10
|
sessionClose(requestId: string): Promise<void>;
|
|
11
|
-
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<object>;
|
|
12
|
-
getReconnectAvailability(reconnectId: string): Promise<object>;
|
|
11
|
+
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<object | void>;
|
|
12
|
+
getReconnectAvailability(reconnectId: string): Promise<object | void>;
|
|
13
13
|
submitPostChatResponse(requestId: string, postChatResponse: object): Promise<void>;
|
|
14
14
|
getSurveyInviteLink(surveyOwnerId: string, surveyInviteAPIRequestBody: object): Promise<object>;
|
|
15
15
|
getChatTranscripts(requestId: string, chatId: string, token: string): Promise<string>;
|
package/lib/SDK.d.ts
CHANGED
|
@@ -49,12 +49,12 @@ export default class SDK implements ISDK {
|
|
|
49
49
|
* Fetches the reconnectable chats from omnichannel from the given user information in JWT token(claim name: sub).
|
|
50
50
|
* @param reconnectableChatsParams Mandate parameters for get reconnectable chats.
|
|
51
51
|
*/
|
|
52
|
-
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<ReconnectMappingRecord>;
|
|
52
|
+
getReconnectableChats(reconnectableChatsParams: IReconnectableChatsParams): Promise<ReconnectMappingRecord | void>;
|
|
53
53
|
/**
|
|
54
54
|
* Fetches the reconnectable chats from omnichannel from the given user information in JWT token(claim name: sub).
|
|
55
55
|
* @param reconnectableChatsParams Mandate parameters for get reconnectable chats.
|
|
56
56
|
*/
|
|
57
|
-
getReconnectAvailability(reconnectId: string): Promise<ReconnectAvailability>;
|
|
57
|
+
getReconnectAvailability(reconnectId: string): Promise<ReconnectAvailability | void>;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @param requestId: RequestId to use for session init.
|