@microsoft/ocsdk
Advanced tools
Comparing version 0.3.2 to 0.3.3-main.35b6997
@@ -5,2 +5,5 @@ # Changelog | ||
## [Unreleased] | ||
### Fix | ||
- Added `requestTimeoutConfig` and `defaultRequestTimeout` to set timeouts on endpoints. | ||
- Throw `ClientHTTPTimeoutError` exception in case of timeouts. | ||
@@ -7,0 +10,0 @@ ## [0.3.2] - 2022-11-03 |
@@ -19,2 +19,3 @@ import { ChannelId } from "./Enums"; | ||
static readonly hiddenContentPlaceholder = "*content hidden*"; | ||
static readonly axiosTimeoutErrorCode = "ECONNABORTED"; | ||
} |
@@ -37,2 +37,3 @@ "use strict"; | ||
(0, _defineProperty2["default"])(Constants, "hiddenContentPlaceholder", "*content hidden*"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vQ29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbIkNvbnN0YW50cyIsIkNoYW5uZWxJZCIsIkxDVyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBOztJQUVxQkEsUzs7Ozs7aUNBQUFBLFMsZ0RBQ2lELENBQUMsUUFBRCxFQUFXLE9BQVgsRUFBb0IsVUFBcEIsQztpQ0FEakRBLFMsb0JBRXFCO0FBQ3RDLGtCQUFnQjtBQURzQixDO2lDQUZyQkEsUyx3QkFLeUI7QUFDMUMsbUJBQWlCLHFDQUR5QjtBQUUxQyxxQkFBbUI7QUFGdUIsQztpQ0FMekJBLFMsc0JBU3VCQyxpQkFBVUMsRztpQ0FUakNGLFMsbUJBVW9CLE87aUNBVnBCQSxTLHlCQVcwQixHO2lDQVgxQkEsUywrQkFZZ0MsRztpQ0FaaENBLFMseUJBYTBCLENBQUMsd0JBQUQsQztpQ0FiMUJBLFMsbUJBY29CLGdCO2lDQWRwQkEsUyx5QkFlMEIscUI7aUNBZjFCQSxTLDhCQWdCK0Isa0IiLCJzb3VyY2VS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gdHJhbnNhY3Rpb25pZCA9IFwidHJhbnNhY3Rpb24taWRcIjtcbiAgcHVibGljIHN0YXRpYyByZWFkb25seSBjdXN0b21lckRpc3BsYXlOYW1lID0gXCJjdXN0b21lckRpc3BsYXlOYW1lXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyID0gXCIqY29udGVudCBoaWRkZW4qXCI7XG59XG4iXX0= | ||
(0, _defineProperty2["default"])(Constants, "axiosTimeoutErrorCode", "ECONNABORTED"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vQ29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbIkNvbnN0YW50cyIsIkNoYW5uZWxJZCIsIkxDVyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBOztJQUVxQkEsUzs7Ozs7aUNBQUFBLFMsZ0RBQ2lELENBQUMsUUFBRCxFQUFXLE9BQVgsRUFBb0IsVUFBcEIsQztpQ0FEakRBLFMsb0JBRXFCO0FBQ3RDLGtCQUFnQjtBQURzQixDO2lDQUZyQkEsUyx3QkFLeUI7QUFDMUMsbUJBQWlCLHFDQUR5QjtBQUUxQyxxQkFBbUI7QUFGdUIsQztpQ0FMekJBLFMsc0JBU3VCQyxpQkFBVUMsRztpQ0FUakNGLFMsbUJBVW9CLE87aUNBVnBCQSxTLHlCQVcwQixHO2lDQVgxQkEsUywrQkFZZ0MsRztpQ0FaaENBLFMseUJBYTBCLENBQUMsd0JBQUQsQztpQ0FiMUJBLFMsbUJBY29CLGdCO2lDQWRwQkEsUyx5QkFlMEIscUI7aUNBZjFCQSxTLDhCQWdCK0Isa0I7aUNBaEIvQkEsUywyQkFpQjRCLGMiLCJzb3VyY2VSb290Ijoib2NzZGs6Ly8vIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2h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0YXRpYyByZWFkb25seSBjdXN0b21lckRpc3BsYXlOYW1lID0gXCJjdXN0b21lckRpc3BsYXlOYW1lXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyID0gXCIqY29udGVudCBoaWRkZW4qXCI7XG4gIHB1YmxpYyBzdGF0aWMgcmVhZG9ubHkgYXhpb3NUaW1lb3V0RXJyb3JDb2RlID0gXCJFQ09OTkFCT1JURURcIjtcbn1cbiJdfQ== |
@@ -88,1 +88,5 @@ export declare enum BrowserVendor { | ||
} | ||
export declare enum SDKError { | ||
ClientHTTPTimeoutErrorName = "ClientHTTPTimeoutError", | ||
ClientHTTPTimeoutErrorMessage = "Server took too long to respond" | ||
} |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.LiveChatVersion = exports.OCSDKTelemetryEvent = exports.ChannelId = exports.OperatingSystem = exports.DeviceType = exports.Browser = exports.BrowserVendor = void 0; | ||
exports.SDKError = exports.LiveChatVersion = exports.OCSDKTelemetryEvent = exports.ChannelId = exports.OperatingSystem = exports.DeviceType = exports.Browser = exports.BrowserVendor = void 0; | ||
var BrowserVendor; | ||
@@ -122,2 +122,10 @@ exports.BrowserVendor = BrowserVendor; | ||
})(LiveChatVersion || (exports.LiveChatVersion = LiveChatVersion = {})); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vRW51bXMudHMiXSwibmFtZXMiOlsiQnJvd3NlclZlbmRvciIsIkJyb3dzZXIiLCJEZXZpY2VUeXBlIiwiT3BlcmF0aW5nU3lzdGVtIiwiQ2hhbm5lbElkIiwiT0NTREtUZWxlbWV0cnlFdmVudCIsIkxpdmVDaGF0VmVyc2lvbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBQVlBLGE7OztXQUFBQSxhO0FBQUFBLEVBQUFBLGE7QUFBQUEsRUFBQ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MSA9IDEsXG4gIFxuICAvLyBBQ1MgbGl2ZSBjaGF0XG4gIFYyID0gMlxufVxuIl19 | ||
var SDKError; | ||
exports.SDKError = SDKError; | ||
(function (SDKError) { | ||
SDKError["ClientHTTPTimeoutErrorName"] = "ClientHTTPTimeoutError"; | ||
SDKError["ClientHTTPTimeoutErrorMessage"] = "Server took too long to respond"; | ||
})(SDKError || (exports.SDKError = SDKError = {})); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db21tb24vRW51bXMudHMiXSwibmFtZXMiOlsiQnJvd3NlclZlbmRvciIsIkJyb3dzZXIiLCJEZXZpY2VUeXBlIiwiT3BlcmF0aW5nU3lzdGVtIiwiQ2hhbm5lbElkIiwiT0NTREtUZWxlbWV0cnlFdmVudCIsIkxpdmVDaGF0VmVyc2lvbiIsIlNES0Vycm9yIl0sIm1hcHBpbmdzIjoiOzs7Ozs7SUFBWUEsYTs7O1dBQUFBLGE7QUFBQUEsRUFBQUEsYTtBQUFBQSxFQUFBQSxhO0FBQUFBLEVBQUFBLGE7QUFBQUEsRUFBQUEsYTtBQUFBQSxFQUFBQSxhO0FBQUFBLEVBQUFBLGE7QUFBQUEsRUFBQUEsYTtBQUFBQSxFQUFBQSxhO0dBQUFBLGEsNkJBQUFBLGE7O0lBV0FDLE87OztXQUFBQSxPO0FBQUFBLEVBQUFBLE8sQ0FBQUEsTztBQUFBQSxFQUFBQSxPLENBQUFBLE87QUFBQUEsRUFBQUEsTyxDQUFBQSxPO0FBQUFBLEVBQUFBLE8sQ0FBQUEsTztBQUFBQSxFQUFBQSxPLENBQUFBLE87QUFBQUEsRUFBQUEsTyxDQUFBQSxPO0dBQUFBLE8sdUJBQUFBLE87O0lBU0FDLFU7OztXQUFBQSxVO0FBQUFBLEVBQUFBLFU7QUFBQUEsRUFBQUEsVTtBQUFBQSxFQUFBQSxVO0dBQUFBLFUsMEJBQUFBLFU7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CA9IFwiVmFsaWRhdGVBdXRoQ2hhdFJlY29yZFN1Y2NlZWRlZFwiLFxuICBWQUxJREFURUFVVEhDSEFUUkVDT1JERkFJTEVEID0gXCJWYWxpZGF0ZUF1dGhDaGF0UmVjb3JkRmFpbGVkXCIsXG4gIEdFVEFHRU5UQVZBSUxBQklMSVRZU1RBUlRFRCA9IFwiR2V0QWdlbnRBdmFpbGFiaWxpdHlTdGFydGVkXCIsXG4gIEdFVEFHRU5UQVZBSUxBQklMSVRZU1VDQ0VFREVEID0gXCJHZXRBZ2VudEF2YWlsYWJpbGl0eVN1Y2NlZWRlZFwiLFxuICBHRVRBR0VOVEFWQUlMQUJJTElUWUZBSUxFRCA9IFwiR2V0QWdlbnRBdmFpbGFiaWxpdHlGYWlsZWRcIixcbiAgU0VORFRZUElOR0lORElDQVRPUkZBSUxFRCA9IFwiU2VuZFR5cGluZ0luZGljYXRvckZhaWxlZFwiLFxuICBTRU5EVFlQSU5HSU5ESUNBVE9SU1VDQ0VFREVEID0gXCJTZW5kVHlwaW5nSW5kaWNhdG9yU3VjY2VlZGVkXCJcbn1cblxuZXhwb3J0IGVudW0gTGl2ZUNoYXRWZXJzaW9uIHtcbiAgLy8gSUMzIGxpdmUgY2hhdFxuICBWMSA9IDEsXG4gIFxuICAvLyBBQ1MgbGl2ZSBjaGF0XG4gIFYyID0gMlxufVxuXG5leHBvcnQgZW51bSBTREtFcnJvciB7XG4gIENsaWVudEhUVFBUaW1lb3V0RXJyb3JOYW1lID0gXCJDbGllbnRIVFRQVGltZW91dEVycm9yXCIsXG4gIENsaWVudEhUVFBUaW1lb3V0RXJyb3JNZXNzYWdlID0gXCJTZXJ2ZXIgdG9vayB0b28gbG9uZyB0byByZXNwb25kXCJcbn0iXX0= |
@@ -0,3 +1,4 @@ | ||
import { RequestTimeoutConfig } from "../Common/RequestTimeoutConfig"; | ||
export default interface ISDKConfiguration { | ||
[key: string]: number | string | boolean | undefined; | ||
[key: string]: number | string | boolean | RequestTimeoutConfig | undefined; | ||
/** | ||
@@ -19,2 +20,10 @@ * Number of times a getchattoken request is retried. | ||
maxRequestRetriesOnFailure: number; | ||
/** | ||
* Default timeout for all requests | ||
*/ | ||
defaultRequestTimeout: number | undefined; | ||
/** | ||
* Individual Request timeouts | ||
*/ | ||
requestTimeoutConfig: RequestTimeoutConfig; | ||
} |
@@ -27,2 +27,3 @@ import FetchChatTokenResponse from "./Model/FetchChatTokenResponse"; | ||
private logger?; | ||
private static defaultRequestTimeoutConfig; | ||
private static defaultConfiguration; | ||
@@ -29,0 +30,0 @@ liveChatVersion: number; |
{ | ||
"name": "@microsoft/ocsdk", | ||
"version": "0.3.2", | ||
"version": "0.3.3-main.35b6997", | ||
"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 too big to display
Sorry, the diff of this file is not supported yet
5737069
171
6661