@microsoft/ocsdk
Advanced tools
Comparing version 0.3.4-main.d567f89 to 0.3.4
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
## [Unreleased] | ||
## [0.3.4] - 2023-03-24 | ||
### Added | ||
- `livechatconnector/v3/getchattoken` endpoint | ||
- `livechatconnector/v3/auth/getchattoken` endpoint | ||
- Stop retry when the error is related to out of office hours. | ||
- Send and receive `AuthCodeNonce` header in order to be compliant with Omnichannel's OAuth 2.0 requirement | ||
- Increasing request timeout and add error handling for OAuth 2.0 | ||
@@ -8,0 +12,0 @@ ## [0.3.3] - 2023-01-09 |
@@ -15,2 +15,4 @@ import { ChannelId } from "./Enums"; | ||
static readonly tooManyRequestsStatusCode = 429; | ||
static readonly badRequestStatusCode = 400; | ||
static readonly outOfOfficeErrorCode = 705; | ||
static readonly sensitiveProperties: string[]; | ||
@@ -17,0 +19,0 @@ static readonly transactionid = "transaction-id"; |
@@ -33,2 +33,4 @@ "use strict"; | ||
(0, _defineProperty2["default"])(Constants, "tooManyRequestsStatusCode", 429); | ||
(0, _defineProperty2["default"])(Constants, "badRequestStatusCode", 400); | ||
(0, _defineProperty2["default"])(Constants, "outOfOfficeErrorCode", 705); | ||
(0, _defineProperty2["default"])(Constants, "sensitiveProperties", ["AuthenticatedUserToken"]); | ||
@@ -39,2 +41,2 @@ (0, _defineProperty2["default"])(Constants, "transactionid", "transaction-id"); | ||
(0, _defineProperty2["default"])(Constants, "axiosTimeoutErrorCode", "ECONNABORTED"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vQ29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbIkNvbnN0YW50cyIsIkNoYW5uZWxJZCIsIkxDVyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBOztJQUVxQkEsUzs7Ozs7aUNBQUFBLFMsZ0RBQ2lELENBQUMsUUFBRCxFQUFXLE9BQ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ogXCJuby1zdG9yZVwiXG4gIH07XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgZGVmYXVsdENoYW5uZWxJZCA9IENoYW5uZWxJZC5MQ1c7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgZGVmYXVsdExvY2FsZSA9IFwiZW4tdXNcIjtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBub0NvbnRlbnRTdGF0dXNDb2RlID0gMjA0O1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IHRvb01hbnlSZXF1ZXN0c1N0YXR1c0NvZGUgPSA0Mjk7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgYmFkUmVxdWVzdFN0YXR1c0NvZGUgPSA0MDA7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgb3V0T2ZPZmZpY2VFcnJvckNvZGUgPSA3MDU7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgc2Vuc2l0aXZlUHJvcGVydGllcyA9IFtcIkF1dGhlbnRpY2F0ZWRVc2VyVG9rZW5cIl07XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgdHJhbnNhY3Rpb25pZCA9IFwidHJhbnNhY3Rpb24taWRcIjtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBjdXN0b21lckRpc3BsYXlOYW1lID0gXCJjdXN0b21lckRpc3BsYXlOYW1lXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyID0gXCIqY29udGVudCBoaWRkZW4qXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgYXhpb3NUaW1lb3V0RXJyb3JDb2RlID0gXCJFQ09OTkFCT1JURURcIjtcbn1cbiJdfQ== |
@@ -10,2 +10,3 @@ export default class OmnichannelEndpoints { | ||
static readonly LiveChatv2AuthGetChatTokenPath = "livechatconnector/v2/auth/getchattoken"; | ||
static readonly LiveChatv3AuthGetChatTokenPath = "livechatconnector/v3/auth/getchattoken"; | ||
static readonly LiveChatSessionClosePath = "livechatconnector/sessionclose"; | ||
@@ -12,0 +13,0 @@ static readonly LiveChatAuthSessionClosePath = "livechatconnector/auth/sessionclose"; |
@@ -27,2 +27,3 @@ "use strict"; | ||
(0, _defineProperty2["default"])(OmnichannelEndpoints, "LiveChatv2AuthGetChatTokenPath", "livechatconnector/v2/auth/getchattoken"); | ||
(0, _defineProperty2["default"])(OmnichannelEndpoints, "LiveChatv3AuthGetChatTokenPath", "livechatconnector/v3/auth/getchattoken"); | ||
(0, _defineProperty2["default"])(OmnichannelEndpoints, "LiveChatSessionClosePath", "livechatconnector/sessionclose"); | ||
@@ -50,2 +51,2 @@ (0, _defineProperty2["default"])(OmnichannelEndpoints, "LiveChatAuthSessionClosePath", "livechatconnector/auth/sessionclose"); | ||
(0, _defineProperty2["default"])(OmnichannelEndpoints, "SendTypingIndicatorPath", "inbound/typingindicator/livechat/sendtypingindicator"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vT21uaWNoYW5uZWxFbmRwb2ludHMudHMiXSwibmFtZXMiOlsiT21uaWNoYW5uZWxFbmRwb2ludHMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7SUFBcUJBLG9COzs7OztpQ0FBQUEsb0Isd0JBQ3lCLDBCO2lDQUR6QkEsb0IsNkJBRThCLCtCO2lDQUY5QkEsb0IsaUNBR2tDLG9DO2lDQUhsQ0Esb0IsOEJBSStCLGdDO2lDQUovQkEsb0IsZ0NBS2lDLG1DO2lDQUxqQ0Esb0IsZ0NBTWlDLG1DO2lDQU5qQ0Esb0Isa0NBT21DLHFDO2lDQVBuQ0Esb0Isb0NBUXFDLHdDO2lDQVJyQ0Esb0IsOEJBUytCLGdDO2lDQVQvQkEsb0Isa0NBVW1DLHFDO2lDQVZuQ0Esb0IsZ0NBV2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Zld29ya2l0ZW1kZXRhaWxzXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgTGl2ZUNoYXRHZXRSZWNvbm5lY3RhYmxlQ2hhdHNQYXRoID0gXCJsaXZlY2hhdGNvbm5lY3Rvci9hdXRoL3JlY29ubmVjdGFibGVjaGF0c1wiO1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IExpdmVDaGF0UmVjb25uZWN0QXZhaWxhYmlsaXR5UGF0aCA9IFwibGl2ZWNoYXRjb25uZWN0b3IvcmVjb25uZWN0XCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgTGl2ZUNoYXRWYWxpZGF0ZUF1dGhDaGF0TWFwUmVjb3JkUGF0aCA9IFwibGl2ZWNoYXRjb25uZWN0b3IvYXV0aC92YWxpZGF0ZWF1dGhjaGF0bWFwcmVjb3JkXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgR2V0QWdlbnRBdmFpbGFiaWxpdHlQYXRoID0gXCJsaXZlY2hhdGNvbm5lY3Rvci9hdXRoL2dldGFnZW50YXZhaWxhYmlsaXR5XCJcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBTZW5kVHlwaW5nSW5kaWNhdG9yUGF0aCA9IFwiaW5ib3VuZC90eXBpbmdpbmRpY2F0b3IvbGl2ZWNoYXQvc2VuZHR5cGluZ2luZGljYXRvclwiO1xufVxuIl19 |
@@ -7,2 +7,3 @@ export default class OmnichannelHTTPHeaders { | ||
static readonly requestId = "Request-Id"; | ||
static readonly authCodeNonce = "AuthCodeNonce"; | ||
} |
@@ -24,2 +24,3 @@ "use strict"; | ||
(0, _defineProperty2["default"])(OmnichannelHTTPHeaders, "requestId", "Request-Id"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vT21uaWNoYW5uZWxIVFRQSGVhZGVycy50cyJdLCJuYW1lcyI6WyJPbW5pY2hhbm5lbEhUVFBIZWFkZXJzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQXFCQSxzQjs7Ozs7aUNBQUFBLHNCO2lDQUFBQSxzQjtpQ0FBQUEsc0I7aUNBQUFBLHNCO2lDQUFBQSxzQiIsInNvdXJjZVJvb3QiOiJvY3NkazovLy8iLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBjbGFzcyBPbW5pY2hhbm5lbEhUVFBIZWFkZXJzIHtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBhdXRoZW50aWNhdGVkVXNlclRva2VuID0gYEF1dGhlbnRpY2F0ZWRVc2VyVG9rZW5gO1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IGF1dGhvcml6YXRpb24gPSBgQXV0aG9yaXphdGlvbmA7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgb3JnYW5pemF0aW9uSWQgPSBgT3JnYW5pemF0aW9uSWRgO1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IHdpZGdldEFwcElkID0gYHdpZGdldEFwcElkYDtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSByZXF1ZXN0SWQgPSBgUmVxdWVzdC1JZGA7XG59XG4iXX0= | ||
(0, _defineProperty2["default"])(OmnichannelHTTPHeaders, "authCodeNonce", "AuthCodeNonce"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vT21uaWNoYW5uZWxIVFRQSGVhZGVycy50cyJdLCJuYW1lcyI6WyJPbW5pY2hhbm5lbEhUVFBIZWFkZXJzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQXFCQSxzQjs7Ozs7aUNBQUFBLHNCO2lDQUFBQSxzQjtpQ0FBQUEsc0I7aUNBQUFBLHNCO2lDQUFBQSxzQjtpQ0FBQUEsc0IiLCJzb3VyY2VSb290Ijoib2NzZGs6Ly8vIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgY2xhc3MgT21uaWNoYW5uZWxIVFRQSGVhZGVycyB7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgYXV0aGVudGljYXRlZFVzZXJUb2tlbiA9IGBBdXRoZW50aWNhdGVkVXNlclRva2VuYDtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBhdXRob3JpemF0aW9uID0gYEF1dGhvcml6YXRpb25gO1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IG9yZ2FuaXphdGlvbklkID0gYE9yZ2FuaXphdGlvbklkYDtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSB3aWRnZXRBcHBJZCA9IGB3aWRnZXRBcHBJZGA7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgcmVxdWVzdElkID0gYFJlcXVlc3QtSWRgO1xuICBwdWJsaWMgc3RhdGljIHJlYWRvbmx5IGF1dGhDb2RlTm9uY2UgPSBgQXV0aENvZGVOb25jZWA7XG59XG4iXX0= |
@@ -10,2 +10,11 @@ export default interface IAxiosRetryOptions { | ||
retryOn429?: boolean | true; | ||
/** | ||
* | ||
* Function to handle logic and evaluate if retry should continue based on response results. | ||
*/ | ||
shouldRetry?(response?: any, axiosRetryOptions?: IAxiosRetryOptions): boolean; | ||
/** | ||
* Overwrite request headers on demand based on response headers of the same name | ||
*/ | ||
headerOverwrites?: string[]; | ||
} |
@@ -28,2 +28,6 @@ import { RequestTimeoutConfig } from "../Common/RequestTimeoutConfig"; | ||
requestTimeoutConfig: RequestTimeoutConfig; | ||
/** | ||
* Nonce for Auth V2 requests | ||
*/ | ||
authCodeNonce: string; | ||
} |
@@ -143,2 +143,3 @@ import FetchChatTokenResponse from "./Model/FetchChatTokenResponse"; | ||
private logWithLogger; | ||
private setAuthCodeNonce; | ||
} |
@@ -14,2 +14,8 @@ "use strict"; | ||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
/** | ||
@@ -30,8 +36,20 @@ * Custom handler for HTTP calls with Axios. Handler allows to retry HTTP calls if failed. | ||
var retries = axiosRetryOptions.retries; | ||
var retries = axiosRetryOptions.retries, | ||
headerOverwrites = axiosRetryOptions.headerOverwrites; | ||
var currentTry = 1; // Executed as soon as after 1st try | ||
// Method to intercepts responses within range of 2xx | ||
var onSuccess = undefined; // Method to intercepts responses outside range of 2xx | ||
var onSuccess = undefined; // define default behaviour for 429 retries in case the handler was not included by the caller. | ||
if (!axiosRetryOptions.shouldRetry) { | ||
axiosRetryOptions.shouldRetry = function (response) { | ||
if (response && response.status && response.status === _Constants["default"].tooManyRequestsStatusCode && axiosRetryOptions.retryOn429 === false) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
} // Method to intercepts responses outside range of 2xx | ||
var onError = function onError(error) { | ||
@@ -43,6 +61,6 @@ var config = error.config, | ||
return Promise.reject(error); | ||
} // Stop retry on 429 if set | ||
} // Evaluates if execution should stop according to the conditions defined in the handler | ||
if (response && response.status === _Constants["default"].tooManyRequestsStatusCode && axiosRetryOptions.retryOn429 === false) { | ||
if (axiosRetryOptions.shouldRetry && !axiosRetryOptions.shouldRetry(response)) { | ||
return Promise.reject(error); | ||
@@ -56,2 +74,24 @@ } // Retry request if below threshold | ||
currentTry++; | ||
if (headerOverwrites && response !== null && response !== void 0 && response.headers) { | ||
var _iterator = _createForOfIteratorHelper(headerOverwrites), | ||
_step; | ||
try { | ||
for (_iterator.s(); !(_step = _iterator.n()).done;) { | ||
var headerName = _step.value; | ||
var responseHeader = response === null || response === void 0 ? void 0 : response.headers[headerName.toLocaleLowerCase()]; | ||
if (responseHeader) { | ||
// eslint-disable-next-line security/detect-object-injection | ||
config.headers[headerName] = responseHeader; | ||
} | ||
} | ||
} catch (err) { | ||
_iterator.e(err); | ||
} finally { | ||
_iterator.f(); | ||
} | ||
} | ||
return new Promise(function (resolve) { | ||
@@ -72,2 +112,2 @@ return (0, _sleep["default"])(retryInterval).then(function () { | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9heGlvc1JldHJ5LnRzIl0sIm5hbWVzIjpbImF4aW9zUmV0cnkiLCJheGlvcyIsImF4aW9zUmV0cnlPcHRpb25zIiwicmV0cnlJbnRlcnZhbCIsInJldHJ5T240MjkiLCJ1bmRlZmluZWQiLCJyZXRyaWVzIiwiY3VycmVudFRyeSIsIm9uU3VjY2VzcyIsIm9uRXJyb3IiLCJlcnJvciIsImNvbmZpZyIsInJlc3BvbnNlI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Nwb25zZT8uaGVhZGVyc1toZWFkZXJOYW1lLnRvTG9jYWxlTG93ZXJDYXNlKCldO1xuICAgICAgICAgIGlmIChyZXNwb25zZUhlYWRlcikge1xuICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICBjb25maWcuaGVhZGVyc1toZWFkZXJOYW1lXSA9IHJlc3BvbnNlSGVhZGVyO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUpID0+IHNsZWVwKHJldHJ5SW50ZXJ2YWwgYXMgbnVtYmVyIHwgMTAwMCkudGhlbigoKSA9PiByZXNvbHZlKGF4aW9zKGNvbmZpZykpKSk7XG4gICAgfVxuICAgIHJldHVybiBQcm9taXNlLnJlamVjdChlcnJvcik7XG4gIH07XG5cbiAgYXhpb3MuaW50ZXJjZXB0b3JzLnJlc3BvbnNlLnVzZShvblN1Y2Nlc3MsIG9uRXJyb3IpOyAvLyBJbnRlcmNlcHQgcmVzcG9uc2UgYmVmb3JlIHJldHVybmluZ1xufTtcbmV4cG9ydCBkZWZhdWx0IGF4aW9zUmV0cnk7Il19 |
@@ -20,3 +20,3 @@ "use strict"; | ||
var endpointsMapping = (_endpointsMapping = {}, (0, _defineProperty2["default"])(_endpointsMapping, _Enums.LiveChatVersion.V1, _OmnichannelEndpoints["default"].LiveChatGetChatTokenPath), (0, _defineProperty2["default"])(_endpointsMapping, _Enums.LiveChatVersion.V2, _OmnichannelEndpoints["default"].LiveChatv2GetChatTokenPath), (0, _defineProperty2["default"])(_endpointsMapping, _Enums.LiveChatVersion.V3, _OmnichannelEndpoints["default"].LiveChatv3GetChatTokenPath), _endpointsMapping); | ||
var authEndpointsMapping = (_authEndpointsMapping = {}, (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V1, _OmnichannelEndpoints["default"].LiveChatAuthGetChatTokenPath), (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V2, _OmnichannelEndpoints["default"].LiveChatv2AuthGetChatTokenPath), (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V3, _OmnichannelEndpoints["default"].LiveChatv3GetChatTokenPath), _authEndpointsMapping); | ||
var authEndpointsMapping = (_authEndpointsMapping = {}, (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V1, _OmnichannelEndpoints["default"].LiveChatAuthGetChatTokenPath), (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V2, _OmnichannelEndpoints["default"].LiveChatv2AuthGetChatTokenPath), (0, _defineProperty2["default"])(_authEndpointsMapping, _Enums.LiveChatVersion.V3, _OmnichannelEndpoints["default"].LiveChatv3AuthGetChatTokenPath), _authEndpointsMapping); | ||
@@ -31,2 +31,2 @@ if (Object.values(_Enums.LiveChatVersion).includes(liveChatVersion)) { | ||
exports.createGetChatTokenEndpoint = createGetChatTokenEndpoint; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9lbmRwb2ludHNDcmVhdG9ycy50cyJdLCJuYW1lcyI6WyJjcmVhdGVHZXRDaGF0VG9rZW5FbmRwb2ludCIsImxpdmVDaGF0VmVyc2lvbiIsImF1dGgiLCJlbmRwb2ludHNNYXBwaW5nIiwiTGl2ZUNoYXRWZXJzaW9uIiwiVjEiLCJPbW5pY2hhbm5lbEVuZHBvaW50cyIsIkxpdmVDaGF0R2V0Q2hhdFRva2VuUGF0aCIsIlYyIiwiTGl2ZUNoYXR2MkdldENoYXRUb2tlblBhdGgiLCJWMyIsIkxpdmVDaGF0djNHZXRDaGF0VG9rZW5QYXRoIiwiYXV0aEVuZHBvaW50c01hcHBpbmciLCJMaXZlQ2hhdEF1dGhHZXRDaGF0VG9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Gl2ZUNoYXRWZXJzaW9uLlYzXTogT21uaWNoYW5uZWxFbmRwb2ludHMuTGl2ZUNoYXR2M0F1dGhHZXRDaGF0VG9rZW5QYXRoLFxuICB9O1xuXG4gIGlmIChPYmplY3QudmFsdWVzKExpdmVDaGF0VmVyc2lvbikuaW5jbHVkZXMobGl2ZUNoYXRWZXJzaW9uKSkge1xuICAgIHJldHVybiBhdXRoPyBhdXRoRW5kcG9pbnRzTWFwcGluZ1sobGl2ZUNoYXRWZXJzaW9uIGFzIExpdmVDaGF0VmVyc2lvbildOiBlbmRwb2ludHNNYXBwaW5nWyhsaXZlQ2hhdFZlcnNpb24gYXMgTGl2ZUNoYXRWZXJzaW9uKV07XG4gIH1cblxuICByZXR1cm4gYXV0aD8gYXV0aEVuZHBvaW50c01hcHBpbmdbTGl2ZUNoYXRWZXJzaW9uLlYyXTogZW5kcG9pbnRzTWFwcGluZ1tMaXZlQ2hhdFZlcnNpb24uVjJdO1xufVxuXG5leHBvcnQge1xuICBjcmVhdGVHZXRDaGF0VG9rZW5FbmRwb2ludFxufVxuIl19 |
@@ -26,12 +26,14 @@ "use strict"; | ||
value: function stripCustomContextDataValues(customContextData) { | ||
var _Object$keys; | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
(_Object$keys = Object.keys(customContextData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.forEach(function (contextKey) { | ||
var _customContextData$; | ||
if (customContextData) { | ||
var _Object$keys; | ||
if ((_customContextData$ = customContextData["".concat(contextKey)]) !== null && _customContextData$ !== void 0 && _customContextData$.value) { | ||
customContextData["".concat(contextKey)].value = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
}); | ||
(_Object$keys = Object.keys(customContextData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.forEach(function (contextKey) { | ||
var _customContextData$; | ||
if ((_customContextData$ = customContextData["".concat(contextKey)]) !== null && _customContextData$ !== void 0 && _customContextData$.value) { | ||
customContextData["".concat(contextKey)].value = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -42,7 +44,9 @@ }, { | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
Object.keys(preChatResponse).forEach(function (responseKey) { | ||
if (preChatResponse["".concat(responseKey)] && responseKey !== 'Type') { | ||
preChatResponse["".concat(responseKey)] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
}); | ||
if (preChatResponse) { | ||
Object.keys(preChatResponse).forEach(function (responseKey) { | ||
if (preChatResponse["".concat(responseKey)] && responseKey !== 'Type') { | ||
preChatResponse["".concat(responseKey)] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
}); | ||
} | ||
} | ||
@@ -53,8 +57,10 @@ }, { | ||
// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types | ||
if (Object.keys(data).includes('longitude')) { | ||
data['longitude'] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
if (data) { | ||
if (Object.keys(data).includes('longitude')) { | ||
data['longitude'] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
if (Object.keys(data).includes('latitude')) { | ||
data['latitude'] = _Constants["default"].hiddenContentPlaceholder; | ||
if (Object.keys(data).includes('latitude')) { | ||
data['latitude'] = _Constants["default"].hiddenContentPlaceholder; | ||
} | ||
} | ||
@@ -118,2 +124,2 @@ } | ||
exports.LoggingSanitizer = LoggingSanitizer; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyLnRzIl0sIm5hbWVzIjpbIkxvZ2dpbmdTYW5pdGl6ZXIiLCJjdXN0b21Db250ZXh0RGF0YSIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiY29udGV4dEtleSIsInZhbHVlIiwiQ29uc3RhbnRzIiwiaGlkZGVu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HlwZXNcbiAgICBpZihlcnJvck9iamVjdCAmJiB0eXBlb2YgZXJyb3JPYmplY3QgPT09ICdvYmplY3QnICYmIE9iamVjdC5rZXlzKGVycm9yT2JqZWN0KT8ubGVuZ3RoID4gMCkge1xuICAgICAgT2JqZWN0LmtleXMoZXJyb3JPYmplY3QpPy5mb3JFYWNoKChrZXkpID0+IHtcbiAgICAgICAgICBpZiAoQ29uc3RhbnRzLnNlbnNpdGl2ZVByb3BlcnRpZXMuaW5kZXhPZihrZXkpICE9PSAtMSkge1xuICAgICAgICAgICAgLy8gcmVtb3ZlIHNlbnNpdGl2ZSBwcm9wZXJ0aWVzIGZyb20gZXJyb3Igb2JqZWN0XG4gICAgICAgICAgICBkZWxldGUgZXJyb3JPYmplY3RbYCR7a2V5fWBdO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChrZXkgPT09ICdkYXRhJykge1xuICAgICAgICAgICAgbGV0IGRhdGE7XG4gICAgICAgICAgICBpZiAodHlwZW9mIGVycm9yT2JqZWN0W2tleV0gPT09ICdzdHJpbmcnKSB7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgc2VjdXJpdHkvZGV0ZWN0LW9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICBkYXRhID0gSlNPTi5wYXJzZShlcnJvck9iamVjdFtrZXldKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBzZWN1cml0eS9kZXRlY3Qtb2JqZWN0LWluamVjdGlvblxuICAgICAgICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICAgICAgICBkYXRhID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygncHJlQ2hhdFJlc3BvbnNlJykpIHtcbiAgICAgICAgICAgICAgICBMb2dnaW5nU2FuaXRpemVyLnN0cmlwUHJlQ2hhdFJlc3BvbnNlKGRhdGEucHJlQ2hhdFJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygnY3VzdG9tQ29udGV4dERhdGEnKSkge1xuICAgICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBDdXN0b21Db250ZXh0RGF0YVZhbHVlcyhkYXRhLmN1c3RvbUNvbnRleHREYXRhKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBHZW9sb2NhdGlvbihkYXRhKTtcbiAgICAgICAgICAgICAgZXJyb3JPYmplY3Rba2V5XSA9IEpTT04uc3RyaW5naWZ5KGRhdGEpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGVycm9yT2JqZWN0W2Ake2tleX1gXSAhPT0gbnVsbCAmJiB0eXBlb2YgZXJyb3JPYmplY3RbYCR7a2V5fWBdID09PSAnb2JqZWN0Jykge1xuICAgICAgICAgICAgLy8gY2hlY2sgc2Vuc2l0aXZlIHByb3BlcnRpZXMgaW4gbmVzdGVkIGVycm9yIG9iamVjdFxuICAgICAgICAgICAgdGhpcy5zdHJpcEVycm9yU2Vuc2l0aXZlUHJvcGVydGllcyhlcnJvck9iamVjdFtgJHtrZXl9YF0pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyL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9iamVjdC1pbmplY3Rpb25cbiAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICBkYXRhID0gSlNPTi5wYXJzZShlcnJvck9iamVjdFtrZXldKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBzZWN1cml0eS9kZXRlY3Qtb2JqZWN0LWluamVjdGlvblxuICAgICAgICAgICAgICB9IGNhdGNoIHtcbiAgICAgICAgICAgICAgICBkYXRhID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygncHJlQ2hhdFJlc3BvbnNlJykpIHtcbiAgICAgICAgICAgICAgICBMb2dnaW5nU2FuaXRpemVyLnN0cmlwUHJlQ2hhdFJlc3BvbnNlKGRhdGEucHJlQ2hhdFJlc3BvbnNlKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGlmIChPYmplY3Qua2V5cyhkYXRhKS5pbmNsdWRlcygnY3VzdG9tQ29udGV4dERhdGEnKSkge1xuICAgICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBDdXN0b21Db250ZXh0RGF0YVZhbHVlcyhkYXRhLmN1c3RvbUNvbnRleHREYXRhKTtcbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIExvZ2dpbmdTYW5pdGl6ZXIuc3RyaXBHZW9sb2NhdGlvbihkYXRhKTtcbiAgICAgICAgICAgICAgZXJyb3JPYmplY3Rba2V5XSA9IEpTT04uc3RyaW5naWZ5KGRhdGEpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKGVycm9yT2JqZWN0W2Ake2tleX1gXSAhPT0gbnVsbCAmJiB0eXBlb2YgZXJyb3JPYmplY3RbYCR7a2V5fWBdID09PSAnb2JqZWN0Jykge1xuICAgICAgICAgICAgLy8gY2hlY2sgc2Vuc2l0aXZlIHByb3BlcnRpZXMgaW4gbmVzdGVkIGVycm9yIG9iamVjdFxuICAgICAgICAgICAgdGhpcy5zdHJpcEVycm9yU2Vuc2l0aXZlUHJvcGVydGllcyhlcnJvck9iamVjdFtgJHtrZXl9YF0pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cbiAgfVxufSJdfQ== |
{ | ||
"name": "@microsoft/ocsdk", | ||
"version": "0.3.4-main.d567f89", | ||
"version": "0.3.4", | ||
"description": "Microsoft Omnichannel SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
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 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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
5838811
180
6902
0