@microsoft/omnichannel-amsclient
Advanced tools
Comparing version 0.1.0-main.3cc1da3 to 0.1.0-main.49c5c11
@@ -8,2 +8,3 @@ # Changelog | ||
- Prevent multiple iframes being loaded | ||
- Add `dispose()` on `FramedClient` | ||
- Add `dispose()` on `FramedClient` | ||
- Use `amsEndpoint` property by default |
@@ -97,3 +97,3 @@ "use strict"; | ||
patchChatToken(chatToken); | ||
url = ((_b = chatToken.regionGTMS) === null || _b === void 0 ? void 0 : _b.ams) + "/v1/skypetokenauth"; | ||
url = (chatToken.amsEndpoint || ((_b = chatToken.regionGTMS) === null || _b === void 0 ? void 0 : _b.ams)) + "/v1/skypetokenauth"; | ||
headers = (_a = {}, | ||
@@ -142,3 +142,3 @@ _a[HeadersName.Authorization] = "skype_token " + chatToken.token, | ||
patchChatToken(chatToken); | ||
url = ((_c = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _c === void 0 ? void 0 : _c.ams) + "/v1/objects"; | ||
url = (chatToken.amsEndpoint || ((_c = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _c === void 0 ? void 0 : _c.ams)) + "/v1/objects"; | ||
headers = __assign(__assign({}, createDefaultHeaders(chatToken.token)), (_b = {}, _b[HeadersName.ContentType] = MIMEType.applicationJson, _b)); | ||
@@ -178,3 +178,3 @@ request = { | ||
patchChatToken(chatToken); | ||
url = ((_b = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _b === void 0 ? void 0 : _b.ams) + "/v1/objects/" + documentId + "/content/" + (file.type.includes('image') ? 'imgpsh' : 'original'); | ||
url = (chatToken.amsEndpoint || ((_b = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _b === void 0 ? void 0 : _b.ams)) + "/v1/objects/" + documentId + "/content/" + (file.type.includes('image') ? 'imgpsh' : 'original'); | ||
headers = __assign(__assign({}, createDefaultHeaders(chatToken.token)), (_a = {}, _a[HeadersName.ContentType] = MIMEType.applicationFormUrlEncoded, _a)); | ||
@@ -217,3 +217,3 @@ request = { | ||
patchChatToken(chatToken); | ||
url = ((_a = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _a === void 0 ? void 0 : _a.ams) + "/v1/objects/" + fileMetadata.id + "/views/" + (validImageTypes.includes(fileMetadata.type) ? 'imgpsh_fullsize_anim' : 'original') + "/status"; | ||
url = (chatToken.amsEndpoint || ((_a = chatToken === null || chatToken === void 0 ? void 0 : chatToken.regionGTMS) === null || _a === void 0 ? void 0 : _a.ams)) + "/v1/objects/" + fileMetadata.id + "/views/" + (validImageTypes.includes(fileMetadata.type) ? 'imgpsh_fullsize_anim' : 'original') + "/status"; | ||
headers = createDefaultHeaders(chatToken.token); | ||
@@ -220,0 +220,0 @@ request = { |
@@ -1,1 +0,1 @@ | ||
exports.baseUrl = 'https://comms.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.3cc1da3'; | ||
exports.baseUrl = 'https://comms.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.49c5c11'; |
@@ -9,3 +9,4 @@ interface OmnichannelChatToken { | ||
voiceVideoCallToken?: string; | ||
amsEndpoint?: string; | ||
} | ||
export default OmnichannelChatToken; |
{ | ||
"name": "@microsoft/omnichannel-amsclient", | ||
"version": "0.1.0-main.3cc1da3", | ||
"version": "0.1.0-main.49c5c11", | ||
"description": "Microsoft Omnichannel AMSClient", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
209082
1629