Comparing version 0.12.0 to 0.12.1-beta.1
@@ -6,2 +6,8 @@ All notable changes to this project will be documented in this file. | ||
## [0.12.1-beta.1] - 2021-09-22 | ||
### Fixed | ||
- missing types for error `details` property | ||
### Dev | ||
- some deps updates | ||
## [0.12.0] - 2021-06-17 | ||
@@ -8,0 +14,0 @@ ### Changed |
@@ -23,3 +23,3 @@ import type { CustomError } from "better-custom-error"; | ||
static stringifyResponse(response: PossibleResponses | PossibleCustomErrorsThrown, space?: string | number): string; | ||
static parseStringifiedReponse<T>(string: string): CustomError | import("./response/response.js").AbortedResponse | import("./response/response.js").InformationalResponse | import("./response/response.js").SuccessResponse | import("./response/response.js").RedirectResponse | ClientErrorResponse | ServerErrorResponse; | ||
static parseStringifiedReponse<T>(string: string): import("./response/response.js").AbortedResponse | import("./response/response.js").InformationalResponse | import("./response/response.js").SuccessResponse | import("./response/response.js").RedirectResponse | ClientErrorResponse | ServerErrorResponse | CustomError<import("./errors.js").TypeMismatchDetails>; | ||
} | ||
@@ -26,0 +26,0 @@ declare const configure: (options: ConfigureOptions) => void; |
@@ -260,3 +260,5 @@ "use strict"; | ||
if (fineOptions.shouldCacheResponse(error)) { | ||
fineOptions.cache.set(cacheKey, ApiClient.stringifyResponse(error)).catch(noop); | ||
fineOptions.cache | ||
.set(cacheKey, ApiClient.stringifyResponse(error)) | ||
.catch(noop); | ||
} | ||
@@ -342,3 +344,4 @@ }); | ||
} | ||
return new errors_js_1.ResponseDataTypeMismatchError(parsedData.message, Object.assign(Object.assign({}, parsedData.details), { response })); | ||
const details = Object.assign(Object.assign({}, parsedData.details), { response }); | ||
return new errors_js_1.ResponseDataTypeMismatchError(parsedData.message, details); | ||
} | ||
@@ -345,0 +348,0 @@ } |
@@ -1,9 +0,20 @@ | ||
declare const HttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ClientHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ServerHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const TimeoutHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const AbortedHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ResponseDataTypeMismatchError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const DownloadError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
import type { ApiResponse } from "./response/response"; | ||
import type { RequestType } from "./const"; | ||
import type { AbortErrorDetails } from "./types"; | ||
interface ErrorDetails { | ||
response: ApiResponse; | ||
[key: string]: unknown; | ||
} | ||
interface TypeMismatchDetails extends ErrorDetails { | ||
expectedType: RequestType; | ||
} | ||
declare const HttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const ClientHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const ServerHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const TimeoutHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<AbortErrorDetails>; | ||
declare const AbortedHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<AbortErrorDetails>; | ||
declare const ResponseDataTypeMismatchError: import("better-custom-error/esm/types").CustomErrorConstructor<TypeMismatchDetails>; | ||
declare const DownloadError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
export { HttpError, ClientHttpError, ServerHttpError, TimeoutHttpError, AbortedHttpError, ResponseDataTypeMismatchError, DownloadError, }; | ||
export type { ErrorDetails, TypeMismatchDetails, }; | ||
//# sourceMappingURL=errors.d.ts.map |
@@ -1,1 +0,1 @@ | ||
window.searchData = {"kinds":{"4":"Enumeration","16":"Enumeration member","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal"},"rows":[{"id":0,"kind":4,"name":"RequestType","url":"enums/requesttype.html","classes":"tsd-kind-enum"},{"id":1,"kind":16,"name":"json","url":"enums/requesttype.html#json","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":2,"kind":16,"name":"text","url":"enums/requesttype.html#text","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":3,"kind":16,"name":"binary","url":"enums/requesttype.html#binary","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":4,"kind":16,"name":"stream","url":"enums/requesttype.html#stream","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":5,"kind":128,"name":"AbortedResponse","url":"classes/abortedresponse.html","classes":"tsd-kind-class"},{"id":6,"kind":512,"name":"constructor","url":"classes/abortedresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":7,"kind":1024,"name":"status","url":"classes/abortedresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":8,"kind":1024,"name":"statusText","url":"classes/abortedresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":9,"kind":1024,"name":"headers","url":"classes/abortedresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":10,"kind":1024,"name":"request","url":"classes/abortedresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":11,"kind":1024,"name":"body","url":"classes/abortedresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":12,"kind":1024,"name":"rawBody","url":"classes/abortedresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":13,"kind":1024,"name":"type","url":"classes/abortedresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":14,"kind":128,"name":"InformationalResponse","url":"classes/informationalresponse.html","classes":"tsd-kind-class"},{"id":15,"kind":512,"name":"constructor","url":"classes/informationalresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":16,"kind":1024,"name":"status","url":"classes/informationalresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":17,"kind":1024,"name":"statusText","url":"classes/informationalresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":18,"kind":1024,"name":"headers","url":"classes/informationalresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":19,"kind":1024,"name":"request","url":"classes/informationalresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":20,"kind":1024,"name":"body","url":"classes/informationalresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":21,"kind":1024,"name":"rawBody","url":"classes/informationalresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":22,"kind":1024,"name":"type","url":"classes/informationalresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":23,"kind":128,"name":"SuccessResponse","url":"classes/successresponse.html","classes":"tsd-kind-class"},{"id":24,"kind":512,"name":"constructor","url":"classes/successresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":25,"kind":1024,"name":"status","url":"classes/successresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":26,"kind":1024,"name":"statusText","url":"classes/successresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":27,"kind":1024,"name":"headers","url":"classes/successresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":28,"kind":1024,"name":"request","url":"classes/successresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":29,"kind":1024,"name":"body","url":"classes/successresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":30,"kind":1024,"name":"rawBody","url":"classes/successresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":31,"kind":1024,"name":"type","url":"classes/successresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":32,"kind":128,"name":"RedirectResponse","url":"classes/redirectresponse.html","classes":"tsd-kind-class"},{"id":33,"kind":512,"name":"constructor","url":"classes/redirectresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":34,"kind":1024,"name":"status","url":"classes/redirectresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":35,"kind":1024,"name":"statusText","url":"classes/redirectresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":36,"kind":1024,"name":"headers","url":"classes/redirectresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":37,"kind":1024,"name":"request","url":"classes/redirectresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":38,"kind":1024,"name":"body","url":"classes/redirectresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":39,"kind":1024,"name":"rawBody","url":"classes/redirectresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":40,"kind":1024,"name":"type","url":"classes/redirectresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":41,"kind":128,"name":"ClientErrorResponse","url":"classes/clienterrorresponse.html","classes":"tsd-kind-class"},{"id":42,"kind":512,"name":"constructor","url":"classes/clienterrorresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":43,"kind":1024,"name":"status","url":"classes/clienterrorresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":44,"kind":1024,"name":"statusText","url":"classes/clienterrorresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":45,"kind":1024,"name":"headers","url":"classes/clienterrorresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":46,"kind":1024,"name":"request","url":"classes/clienterrorresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":47,"kind":1024,"name":"body","url":"classes/clienterrorresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":48,"kind":1024,"name":"rawBody","url":"classes/clienterrorresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":49,"kind":1024,"name":"type","url":"classes/clienterrorresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":50,"kind":128,"name":"ServerErrorResponse","url":"classes/servererrorresponse.html","classes":"tsd-kind-class"},{"id":51,"kind":512,"name":"constructor","url":"classes/servererrorresponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":52,"kind":1024,"name":"status","url":"classes/servererrorresponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":53,"kind":1024,"name":"statusText","url":"classes/servererrorresponse.html#statustext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":54,"kind":1024,"name":"headers","url":"classes/servererrorresponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":55,"kind":1024,"name":"request","url":"classes/servererrorresponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":56,"kind":1024,"name":"body","url":"classes/servererrorresponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":57,"kind":1024,"name":"rawBody","url":"classes/servererrorresponse.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":58,"kind":1024,"name":"type","url":"classes/servererrorresponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":59,"kind":256,"name":"Options","url":"interfaces/options.html","classes":"tsd-kind-interface"},{"id":60,"kind":1024,"name":"base","url":"interfaces/options.html#base","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":61,"kind":1024,"name":"type","url":"interfaces/options.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":62,"kind":1024,"name":"retry","url":"interfaces/options.html#retry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":63,"kind":1024,"name":"retryInterval","url":"interfaces/options.html#retryinterval","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":64,"kind":1024,"name":"retryPolicy","url":"interfaces/options.html#retrypolicy","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":65,"kind":65536,"name":"__type","url":"interfaces/options.html#__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"Options"},{"id":66,"kind":1024,"name":"retryWaitPolicy","url":"interfaces/options.html#retrywaitpolicy","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":67,"kind":65536,"name":"__type","url":"interfaces/options.html#__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"Options"},{"id":68,"kind":1024,"name":"timeout","url":"interfaces/options.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":69,"kind":1024,"name":"totalTimeout","url":"interfaces/options.html#totaltimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":70,"kind":1024,"name":"cache","url":"interfaces/options.html#cache","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":71,"kind":1024,"name":"cacheKey","url":"interfaces/options.html#cachekey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":72,"kind":1024,"name":"shouldCacheResponse","url":"interfaces/options.html#shouldcacheresponse","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":73,"kind":1024,"name":"fetchOptions","url":"interfaces/options.html#fetchoptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":74,"kind":65536,"name":"__type","url":"interfaces/options.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"Options"},{"id":75,"kind":1024,"name":"headers","url":"interfaces/options.html#__type.headers","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Options.__type"},{"id":76,"kind":256,"name":"ResponseDataJSON","url":"interfaces/responsedatajson.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":77,"kind":1024,"name":"type","url":"interfaces/responsedatajson.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataJSON"},{"id":78,"kind":1024,"name":"body","url":"interfaces/responsedatajson.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataJSON"},{"id":79,"kind":256,"name":"ResponseDataText","url":"interfaces/responsedatatext.html","classes":"tsd-kind-interface"},{"id":80,"kind":1024,"name":"type","url":"interfaces/responsedatatext.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":81,"kind":1024,"name":"body","url":"interfaces/responsedatatext.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":82,"kind":1024,"name":"rawBody","url":"interfaces/responsedatatext.html#rawbody","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":83,"kind":256,"name":"ResponseDataBinary","url":"interfaces/responsedatabinary.html","classes":"tsd-kind-interface"},{"id":84,"kind":1024,"name":"type","url":"interfaces/responsedatabinary.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataBinary"},{"id":85,"kind":1024,"name":"body","url":"interfaces/responsedatabinary.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataBinary"},{"id":86,"kind":256,"name":"ResponseDataStream","url":"interfaces/responsedatastream.html","classes":"tsd-kind-interface"},{"id":87,"kind":1024,"name":"type","url":"interfaces/responsedatastream.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataStream"},{"id":88,"kind":1024,"name":"body","url":"interfaces/responsedatastream.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataStream"},{"id":89,"kind":128,"name":"ApiClient","url":"classes/apiclient.html","classes":"tsd-kind-class"},{"id":90,"kind":2048,"name":"_serveResponse","url":"classes/apiclient.html#_serveresponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private tsd-is-static","parent":"ApiClient"},{"id":91,"kind":2048,"name":"stringifyResponse","url":"classes/apiclient.html#stringifyresponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ApiClient"},{"id":92,"kind":2048,"name":"parseStringifiedReponse","url":"classes/apiclient.html#parsestringifiedreponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"ApiClient"},{"id":93,"kind":512,"name":"constructor","url":"classes/apiclient.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ApiClient"},{"id":94,"kind":1024,"name":"_options","url":"classes/apiclient.html#_options","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":95,"kind":2048,"name":"_getType","url":"classes/apiclient.html#_gettype","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":96,"kind":2048,"name":"_getContentType","url":"classes/apiclient.html#_getcontenttype","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":97,"kind":2048,"name":"_getBody","url":"classes/apiclient.html#_getbody","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":98,"kind":2048,"name":"_buildFetchOptions","url":"classes/apiclient.html#_buildfetchoptions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":99,"kind":2048,"name":"_buildUrlBase","url":"classes/apiclient.html#_buildurlbase","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":100,"kind":2048,"name":"_buildUrl","url":"classes/apiclient.html#_buildurl","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":101,"kind":2048,"name":"get","url":"classes/apiclient.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":102,"kind":2048,"name":"post","url":"classes/apiclient.html#post","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":103,"kind":2048,"name":"patch","url":"classes/apiclient.html#patch","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":104,"kind":2048,"name":"delete","url":"classes/apiclient.html#delete","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":105,"kind":2048,"name":"head","url":"classes/apiclient.html#head","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":106,"kind":2048,"name":"request","url":"classes/apiclient.html#request","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":107,"kind":2048,"name":"_request","url":"classes/apiclient.html#_request","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private","parent":"ApiClient"},{"id":108,"kind":64,"name":"configure","url":"modules.html#configure","classes":"tsd-kind-function"},{"id":109,"kind":64,"name":"download","url":"modules.html#download","classes":"tsd-kind-function"},{"id":110,"kind":32,"name":"HttpError","url":"modules.html#httperror","classes":"tsd-kind-variable"},{"id":111,"kind":32,"name":"ClientHttpError","url":"modules.html#clienthttperror","classes":"tsd-kind-variable"},{"id":112,"kind":32,"name":"ServerHttpError","url":"modules.html#serverhttperror","classes":"tsd-kind-variable"},{"id":113,"kind":32,"name":"TimeoutHttpError","url":"modules.html#timeouthttperror","classes":"tsd-kind-variable"},{"id":114,"kind":32,"name":"AbortedHttpError","url":"modules.html#abortedhttperror","classes":"tsd-kind-variable"},{"id":115,"kind":32,"name":"ResponseDataTypeMismatchError","url":"modules.html#responsedatatypemismatcherror","classes":"tsd-kind-variable"},{"id":116,"kind":32,"name":"DownloadError","url":"modules.html#downloaderror","classes":"tsd-kind-variable"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,30.659]],["parent/0",[]],["name/1",[1,43.652]],["parent/1",[0,2.801]],["name/2",[2,43.652]],["parent/2",[0,2.801]],["name/3",[3,43.652]],["parent/3",[0,2.801]],["name/4",[4,43.652]],["parent/4",[0,2.801]],["name/5",[5,25.194]],["parent/5",[]],["name/6",[6,27.558]],["parent/6",[5,2.301]],["name/7",[7,28.989]],["parent/7",[5,2.301]],["name/8",[8,28.989]],["parent/8",[5,2.301]],["name/9",[9,27.558]],["parent/9",[5,2.301]],["name/10",[10,27.558]],["parent/10",[5,2.301]],["name/11",[11,24.193]],["parent/11",[5,2.301]],["name/12",[12,27.558]],["parent/12",[5,2.301]],["name/13",[13,23.283]],["parent/13",[5,2.301]],["name/14",[14,25.194]],["parent/14",[]],["name/15",[6,27.558]],["parent/15",[14,2.301]],["name/16",[7,28.989]],["parent/16",[14,2.301]],["name/17",[8,28.989]],["parent/17",[14,2.301]],["name/18",[9,27.558]],["parent/18",[14,2.301]],["name/19",[10,27.558]],["parent/19",[14,2.301]],["name/20",[11,24.193]],["parent/20",[14,2.301]],["name/21",[12,27.558]],["parent/21",[14,2.301]],["name/22",[13,23.283]],["parent/22",[14,2.301]],["name/23",[15,25.194]],["parent/23",[]],["name/24",[6,27.558]],["parent/24",[15,2.301]],["name/25",[7,28.989]],["parent/25",[15,2.301]],["name/26",[8,28.989]],["parent/26",[15,2.301]],["name/27",[9,27.558]],["parent/27",[15,2.301]],["name/28",[10,27.558]],["parent/28",[15,2.301]],["name/29",[11,24.193]],["parent/29",[15,2.301]],["name/30",[12,27.558]],["parent/30",[15,2.301]],["name/31",[13,23.283]],["parent/31",[15,2.301]],["name/32",[16,25.194]],["parent/32",[]],["name/33",[6,27.558]],["parent/33",[16,2.301]],["name/34",[7,28.989]],["parent/34",[16,2.301]],["name/35",[8,28.989]],["parent/35",[16,2.301]],["name/36",[9,27.558]],["parent/36",[16,2.301]],["name/37",[10,27.558]],["parent/37",[16,2.301]],["name/38",[11,24.193]],["parent/38",[16,2.301]],["name/39",[12,27.558]],["parent/39",[16,2.301]],["name/40",[13,23.283]],["parent/40",[16,2.301]],["name/41",[17,25.194]],["parent/41",[]],["name/42",[6,27.558]],["parent/42",[17,2.301]],["name/43",[7,28.989]],["parent/43",[17,2.301]],["name/44",[8,28.989]],["parent/44",[17,2.301]],["name/45",[9,27.558]],["parent/45",[17,2.301]],["name/46",[10,27.558]],["parent/46",[17,2.301]],["name/47",[11,24.193]],["parent/47",[17,2.301]],["name/48",[12,27.558]],["parent/48",[17,2.301]],["name/49",[13,23.283]],["parent/49",[17,2.301]],["name/50",[18,25.194]],["parent/50",[]],["name/51",[6,27.558]],["parent/51",[18,2.301]],["name/52",[7,28.989]],["parent/52",[18,2.301]],["name/53",[8,28.989]],["parent/53",[18,2.301]],["name/54",[9,27.558]],["parent/54",[18,2.301]],["name/55",[10,27.558]],["parent/55",[18,2.301]],["name/56",[11,24.193]],["parent/56",[18,2.301]],["name/57",[12,27.558]],["parent/57",[18,2.301]],["name/58",[13,23.283]],["parent/58",[18,2.301]],["name/59",[19,19.673]],["parent/59",[]],["name/60",[20,43.652]],["parent/60",[19,1.797]],["name/61",[13,23.283]],["parent/61",[19,1.797]],["name/62",[21,43.652]],["parent/62",[19,1.797]],["name/63",[22,43.652]],["parent/63",[19,1.797]],["name/64",[23,43.652]],["parent/64",[19,1.797]],["name/65",[24,35.179]],["parent/65",[19,1.797]],["name/66",[25,43.652]],["parent/66",[19,1.797]],["name/67",[24,35.179]],["parent/67",[19,1.797]],["name/68",[26,43.652]],["parent/68",[19,1.797]],["name/69",[27,43.652]],["parent/69",[19,1.797]],["name/70",[28,43.652]],["parent/70",[19,1.797]],["name/71",[29,43.652]],["parent/71",[19,1.797]],["name/72",[30,43.652]],["parent/72",[19,1.797]],["name/73",[31,43.652]],["parent/73",[19,1.797]],["name/74",[24,35.179]],["parent/74",[19,1.797]],["name/75",[9,27.558]],["parent/75",[32,3.987]],["name/76",[33,35.179]],["parent/76",[]],["name/77",[13,23.283]],["parent/77",[33,3.213]],["name/78",[11,24.193]],["parent/78",[33,3.213]],["name/79",[34,32.666]],["parent/79",[]],["name/80",[13,23.283]],["parent/80",[34,2.984]],["name/81",[11,24.193]],["parent/81",[34,2.984]],["name/82",[12,27.558]],["parent/82",[34,2.984]],["name/83",[35,35.179]],["parent/83",[]],["name/84",[13,23.283]],["parent/84",[35,3.213]],["name/85",[11,24.193]],["parent/85",[35,3.213]],["name/86",[36,35.179]],["parent/86",[]],["name/87",[13,23.283]],["parent/87",[36,3.213]],["name/88",[11,24.193]],["parent/88",[36,3.213]],["name/89",[37,18.003]],["parent/89",[]],["name/90",[38,43.652]],["parent/90",[37,1.644]],["name/91",[39,43.652]],["parent/91",[37,1.644]],["name/92",[40,43.652]],["parent/92",[37,1.644]],["name/93",[6,27.558]],["parent/93",[37,1.644]],["name/94",[41,43.652]],["parent/94",[37,1.644]],["name/95",[42,43.652]],["parent/95",[37,1.644]],["name/96",[43,43.652]],["parent/96",[37,1.644]],["name/97",[44,43.652]],["parent/97",[37,1.644]],["name/98",[45,43.652]],["parent/98",[37,1.644]],["name/99",[46,43.652]],["parent/99",[37,1.644]],["name/100",[47,43.652]],["parent/100",[37,1.644]],["name/101",[48,43.652]],["parent/101",[37,1.644]],["name/102",[49,43.652]],["parent/102",[37,1.644]],["name/103",[50,43.652]],["parent/103",[37,1.644]],["name/104",[51,43.652]],["parent/104",[37,1.644]],["name/105",[52,43.652]],["parent/105",[37,1.644]],["name/106",[10,27.558]],["parent/106",[37,1.644]],["name/107",[53,43.652]],["parent/107",[37,1.644]],["name/108",[54,43.652]],["parent/108",[]],["name/109",[55,43.652]],["parent/109",[]],["name/110",[56,43.652]],["parent/110",[]],["name/111",[57,43.652]],["parent/111",[]],["name/112",[58,43.652]],["parent/112",[]],["name/113",[59,43.652]],["parent/113",[]],["name/114",[60,43.652]],["parent/114",[]],["name/115",[61,43.652]],["parent/115",[]],["name/116",[62,43.652]],["parent/116",[]]],"invertedIndex":[["__type",{"_index":24,"name":{"65":{},"67":{},"74":{}},"parent":{}}],["_buildfetchoptions",{"_index":45,"name":{"98":{}},"parent":{}}],["_buildurl",{"_index":47,"name":{"100":{}},"parent":{}}],["_buildurlbase",{"_index":46,"name":{"99":{}},"parent":{}}],["_getbody",{"_index":44,"name":{"97":{}},"parent":{}}],["_getcontenttype",{"_index":43,"name":{"96":{}},"parent":{}}],["_gettype",{"_index":42,"name":{"95":{}},"parent":{}}],["_options",{"_index":41,"name":{"94":{}},"parent":{}}],["_request",{"_index":53,"name":{"107":{}},"parent":{}}],["_serveresponse",{"_index":38,"name":{"90":{}},"parent":{}}],["abortedhttperror",{"_index":60,"name":{"114":{}},"parent":{}}],["abortedresponse",{"_index":5,"name":{"5":{}},"parent":{"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{}}}],["apiclient",{"_index":37,"name":{"89":{}},"parent":{"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{},"106":{},"107":{}}}],["base",{"_index":20,"name":{"60":{}},"parent":{}}],["binary",{"_index":3,"name":{"3":{}},"parent":{}}],["body",{"_index":11,"name":{"11":{},"20":{},"29":{},"38":{},"47":{},"56":{},"78":{},"81":{},"85":{},"88":{}},"parent":{}}],["cache",{"_index":28,"name":{"70":{}},"parent":{}}],["cachekey",{"_index":29,"name":{"71":{}},"parent":{}}],["clienterrorresponse",{"_index":17,"name":{"41":{}},"parent":{"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{}}}],["clienthttperror",{"_index":57,"name":{"111":{}},"parent":{}}],["configure",{"_index":54,"name":{"108":{}},"parent":{}}],["constructor",{"_index":6,"name":{"6":{},"15":{},"24":{},"33":{},"42":{},"51":{},"93":{}},"parent":{}}],["delete",{"_index":51,"name":{"104":{}},"parent":{}}],["download",{"_index":55,"name":{"109":{}},"parent":{}}],["downloaderror",{"_index":62,"name":{"116":{}},"parent":{}}],["fetchoptions",{"_index":31,"name":{"73":{}},"parent":{}}],["get",{"_index":48,"name":{"101":{}},"parent":{}}],["head",{"_index":52,"name":{"105":{}},"parent":{}}],["headers",{"_index":9,"name":{"9":{},"18":{},"27":{},"36":{},"45":{},"54":{},"75":{}},"parent":{}}],["httperror",{"_index":56,"name":{"110":{}},"parent":{}}],["informationalresponse",{"_index":14,"name":{"14":{}},"parent":{"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{}}}],["json",{"_index":1,"name":{"1":{}},"parent":{}}],["options",{"_index":19,"name":{"59":{}},"parent":{"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{}}}],["options.__type",{"_index":32,"name":{},"parent":{"75":{}}}],["parsestringifiedreponse",{"_index":40,"name":{"92":{}},"parent":{}}],["patch",{"_index":50,"name":{"103":{}},"parent":{}}],["post",{"_index":49,"name":{"102":{}},"parent":{}}],["rawbody",{"_index":12,"name":{"12":{},"21":{},"30":{},"39":{},"48":{},"57":{},"82":{}},"parent":{}}],["redirectresponse",{"_index":16,"name":{"32":{}},"parent":{"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{}}}],["request",{"_index":10,"name":{"10":{},"19":{},"28":{},"37":{},"46":{},"55":{},"106":{}},"parent":{}}],["requesttype",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{}}}],["responsedatabinary",{"_index":35,"name":{"83":{}},"parent":{"84":{},"85":{}}}],["responsedatajson",{"_index":33,"name":{"76":{}},"parent":{"77":{},"78":{}}}],["responsedatastream",{"_index":36,"name":{"86":{}},"parent":{"87":{},"88":{}}}],["responsedatatext",{"_index":34,"name":{"79":{}},"parent":{"80":{},"81":{},"82":{}}}],["responsedatatypemismatcherror",{"_index":61,"name":{"115":{}},"parent":{}}],["retry",{"_index":21,"name":{"62":{}},"parent":{}}],["retryinterval",{"_index":22,"name":{"63":{}},"parent":{}}],["retrypolicy",{"_index":23,"name":{"64":{}},"parent":{}}],["retrywaitpolicy",{"_index":25,"name":{"66":{}},"parent":{}}],["servererrorresponse",{"_index":18,"name":{"50":{}},"parent":{"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{}}}],["serverhttperror",{"_index":58,"name":{"112":{}},"parent":{}}],["shouldcacheresponse",{"_index":30,"name":{"72":{}},"parent":{}}],["status",{"_index":7,"name":{"7":{},"16":{},"25":{},"34":{},"43":{},"52":{}},"parent":{}}],["statustext",{"_index":8,"name":{"8":{},"17":{},"26":{},"35":{},"44":{},"53":{}},"parent":{}}],["stream",{"_index":4,"name":{"4":{}},"parent":{}}],["stringifyresponse",{"_index":39,"name":{"91":{}},"parent":{}}],["successresponse",{"_index":15,"name":{"23":{}},"parent":{"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{}}}],["text",{"_index":2,"name":{"2":{}},"parent":{}}],["timeout",{"_index":26,"name":{"68":{}},"parent":{}}],["timeouthttperror",{"_index":59,"name":{"113":{}},"parent":{}}],["totaltimeout",{"_index":27,"name":{"69":{}},"parent":{}}],["type",{"_index":13,"name":{"13":{},"22":{},"31":{},"40":{},"49":{},"58":{},"61":{},"77":{},"80":{},"84":{},"87":{}},"parent":{}}]],"pipeline":[]}} | ||
window.searchData = {"kinds":{"4":"Enumeration","16":"Enumeration member","32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal"},"rows":[{"id":0,"kind":4,"name":"RequestType","url":"enums/RequestType.html","classes":"tsd-kind-enum"},{"id":1,"kind":16,"name":"json","url":"enums/RequestType.html#json","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":2,"kind":16,"name":"text","url":"enums/RequestType.html#text","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":3,"kind":16,"name":"binary","url":"enums/RequestType.html#binary","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":4,"kind":16,"name":"stream","url":"enums/RequestType.html#stream","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"RequestType"},{"id":5,"kind":128,"name":"AbortedResponse","url":"classes/AbortedResponse.html","classes":"tsd-kind-class"},{"id":6,"kind":512,"name":"constructor","url":"classes/AbortedResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":7,"kind":1024,"name":"status","url":"classes/AbortedResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":8,"kind":1024,"name":"statusText","url":"classes/AbortedResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":9,"kind":1024,"name":"headers","url":"classes/AbortedResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":10,"kind":1024,"name":"request","url":"classes/AbortedResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":11,"kind":1024,"name":"body","url":"classes/AbortedResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":12,"kind":1024,"name":"rawBody","url":"classes/AbortedResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":13,"kind":1024,"name":"type","url":"classes/AbortedResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AbortedResponse"},{"id":14,"kind":128,"name":"InformationalResponse","url":"classes/InformationalResponse.html","classes":"tsd-kind-class"},{"id":15,"kind":512,"name":"constructor","url":"classes/InformationalResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":16,"kind":1024,"name":"status","url":"classes/InformationalResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":17,"kind":1024,"name":"statusText","url":"classes/InformationalResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":18,"kind":1024,"name":"headers","url":"classes/InformationalResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":19,"kind":1024,"name":"request","url":"classes/InformationalResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":20,"kind":1024,"name":"body","url":"classes/InformationalResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":21,"kind":1024,"name":"rawBody","url":"classes/InformationalResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":22,"kind":1024,"name":"type","url":"classes/InformationalResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"InformationalResponse"},{"id":23,"kind":128,"name":"SuccessResponse","url":"classes/SuccessResponse.html","classes":"tsd-kind-class"},{"id":24,"kind":512,"name":"constructor","url":"classes/SuccessResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":25,"kind":1024,"name":"status","url":"classes/SuccessResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":26,"kind":1024,"name":"statusText","url":"classes/SuccessResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":27,"kind":1024,"name":"headers","url":"classes/SuccessResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":28,"kind":1024,"name":"request","url":"classes/SuccessResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":29,"kind":1024,"name":"body","url":"classes/SuccessResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":30,"kind":1024,"name":"rawBody","url":"classes/SuccessResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":31,"kind":1024,"name":"type","url":"classes/SuccessResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SuccessResponse"},{"id":32,"kind":128,"name":"RedirectResponse","url":"classes/RedirectResponse.html","classes":"tsd-kind-class"},{"id":33,"kind":512,"name":"constructor","url":"classes/RedirectResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":34,"kind":1024,"name":"status","url":"classes/RedirectResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":35,"kind":1024,"name":"statusText","url":"classes/RedirectResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":36,"kind":1024,"name":"headers","url":"classes/RedirectResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":37,"kind":1024,"name":"request","url":"classes/RedirectResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":38,"kind":1024,"name":"body","url":"classes/RedirectResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":39,"kind":1024,"name":"rawBody","url":"classes/RedirectResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":40,"kind":1024,"name":"type","url":"classes/RedirectResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"RedirectResponse"},{"id":41,"kind":128,"name":"ClientErrorResponse","url":"classes/ClientErrorResponse.html","classes":"tsd-kind-class"},{"id":42,"kind":512,"name":"constructor","url":"classes/ClientErrorResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":43,"kind":1024,"name":"status","url":"classes/ClientErrorResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":44,"kind":1024,"name":"statusText","url":"classes/ClientErrorResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":45,"kind":1024,"name":"headers","url":"classes/ClientErrorResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":46,"kind":1024,"name":"request","url":"classes/ClientErrorResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":47,"kind":1024,"name":"body","url":"classes/ClientErrorResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":48,"kind":1024,"name":"rawBody","url":"classes/ClientErrorResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":49,"kind":1024,"name":"type","url":"classes/ClientErrorResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClientErrorResponse"},{"id":50,"kind":128,"name":"ServerErrorResponse","url":"classes/ServerErrorResponse.html","classes":"tsd-kind-class"},{"id":51,"kind":512,"name":"constructor","url":"classes/ServerErrorResponse.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":52,"kind":1024,"name":"status","url":"classes/ServerErrorResponse.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":53,"kind":1024,"name":"statusText","url":"classes/ServerErrorResponse.html#statusText","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":54,"kind":1024,"name":"headers","url":"classes/ServerErrorResponse.html#headers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":55,"kind":1024,"name":"request","url":"classes/ServerErrorResponse.html#request","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":56,"kind":1024,"name":"body","url":"classes/ServerErrorResponse.html#body","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":57,"kind":1024,"name":"rawBody","url":"classes/ServerErrorResponse.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":58,"kind":1024,"name":"type","url":"classes/ServerErrorResponse.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ServerErrorResponse"},{"id":59,"kind":256,"name":"Options","url":"interfaces/Options.html","classes":"tsd-kind-interface"},{"id":60,"kind":1024,"name":"base","url":"interfaces/Options.html#base","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":61,"kind":1024,"name":"type","url":"interfaces/Options.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":62,"kind":1024,"name":"retry","url":"interfaces/Options.html#retry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":63,"kind":1024,"name":"retryInterval","url":"interfaces/Options.html#retryInterval","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":64,"kind":2048,"name":"retryPolicy","url":"interfaces/Options.html#retryPolicy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Options"},{"id":65,"kind":2048,"name":"retryWaitPolicy","url":"interfaces/Options.html#retryWaitPolicy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Options"},{"id":66,"kind":1024,"name":"timeout","url":"interfaces/Options.html#timeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":67,"kind":1024,"name":"totalTimeout","url":"interfaces/Options.html#totalTimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":68,"kind":1024,"name":"cache","url":"interfaces/Options.html#cache","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":69,"kind":1024,"name":"cacheKey","url":"interfaces/Options.html#cacheKey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":70,"kind":1024,"name":"shouldCacheResponse","url":"interfaces/Options.html#shouldCacheResponse","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":71,"kind":1024,"name":"fetchOptions","url":"interfaces/Options.html#fetchOptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":72,"kind":65536,"name":"__type","url":"interfaces/Options.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"Options"},{"id":73,"kind":1024,"name":"headers","url":"interfaces/Options.html#__type.headers","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Options.__type"},{"id":74,"kind":256,"name":"ResponseDataJSON","url":"interfaces/ResponseDataJSON.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":75,"kind":1024,"name":"type","url":"interfaces/ResponseDataJSON.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataJSON"},{"id":76,"kind":1024,"name":"body","url":"interfaces/ResponseDataJSON.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataJSON"},{"id":77,"kind":256,"name":"ResponseDataText","url":"interfaces/ResponseDataText.html","classes":"tsd-kind-interface"},{"id":78,"kind":1024,"name":"type","url":"interfaces/ResponseDataText.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":79,"kind":1024,"name":"body","url":"interfaces/ResponseDataText.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":80,"kind":1024,"name":"rawBody","url":"interfaces/ResponseDataText.html#rawBody","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataText"},{"id":81,"kind":256,"name":"ResponseDataBinary","url":"interfaces/ResponseDataBinary.html","classes":"tsd-kind-interface"},{"id":82,"kind":1024,"name":"type","url":"interfaces/ResponseDataBinary.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataBinary"},{"id":83,"kind":1024,"name":"body","url":"interfaces/ResponseDataBinary.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataBinary"},{"id":84,"kind":256,"name":"ResponseDataStream","url":"interfaces/ResponseDataStream.html","classes":"tsd-kind-interface"},{"id":85,"kind":1024,"name":"type","url":"interfaces/ResponseDataStream.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataStream"},{"id":86,"kind":1024,"name":"body","url":"interfaces/ResponseDataStream.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseDataStream"},{"id":87,"kind":128,"name":"ApiClient","url":"classes/ApiClient.html","classes":"tsd-kind-class"},{"id":88,"kind":2048,"name":"_serveResponse","url":"classes/ApiClient.html#_serveResponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private tsd-is-static","parent":"ApiClient"},{"id":89,"kind":2048,"name":"stringifyResponse","url":"classes/ApiClient.html#stringifyResponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ApiClient"},{"id":90,"kind":2048,"name":"parseStringifiedReponse","url":"classes/ApiClient.html#parseStringifiedReponse","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"ApiClient"},{"id":91,"kind":512,"name":"constructor","url":"classes/ApiClient.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ApiClient"},{"id":92,"kind":1024,"name":"_options","url":"classes/ApiClient.html#_options","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":93,"kind":2048,"name":"_getType","url":"classes/ApiClient.html#_getType","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":94,"kind":2048,"name":"_getContentType","url":"classes/ApiClient.html#_getContentType","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":95,"kind":2048,"name":"_getBody","url":"classes/ApiClient.html#_getBody","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":96,"kind":2048,"name":"_buildFetchOptions","url":"classes/ApiClient.html#_buildFetchOptions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":97,"kind":2048,"name":"_buildUrlBase","url":"classes/ApiClient.html#_buildUrlBase","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":98,"kind":2048,"name":"_buildUrl","url":"classes/ApiClient.html#_buildUrl","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"ApiClient"},{"id":99,"kind":2048,"name":"get","url":"classes/ApiClient.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":100,"kind":2048,"name":"post","url":"classes/ApiClient.html#post","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":101,"kind":2048,"name":"patch","url":"classes/ApiClient.html#patch","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":102,"kind":2048,"name":"delete","url":"classes/ApiClient.html#delete","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":103,"kind":2048,"name":"head","url":"classes/ApiClient.html#head","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":104,"kind":2048,"name":"request","url":"classes/ApiClient.html#request","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"ApiClient"},{"id":105,"kind":2048,"name":"_request","url":"classes/ApiClient.html#_request","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-private","parent":"ApiClient"},{"id":106,"kind":64,"name":"configure","url":"modules.html#configure","classes":"tsd-kind-function"},{"id":107,"kind":64,"name":"download","url":"modules.html#download","classes":"tsd-kind-function"},{"id":108,"kind":32,"name":"HttpError","url":"modules.html#HttpError","classes":"tsd-kind-variable"},{"id":109,"kind":32,"name":"ClientHttpError","url":"modules.html#ClientHttpError","classes":"tsd-kind-variable"},{"id":110,"kind":32,"name":"ServerHttpError","url":"modules.html#ServerHttpError","classes":"tsd-kind-variable"},{"id":111,"kind":32,"name":"TimeoutHttpError","url":"modules.html#TimeoutHttpError","classes":"tsd-kind-variable"},{"id":112,"kind":32,"name":"AbortedHttpError","url":"modules.html#AbortedHttpError","classes":"tsd-kind-variable"},{"id":113,"kind":32,"name":"ResponseDataTypeMismatchError","url":"modules.html#ResponseDataTypeMismatchError","classes":"tsd-kind-variable"},{"id":114,"kind":32,"name":"DownloadError","url":"modules.html#DownloadError","classes":"tsd-kind-variable"},{"id":115,"kind":256,"name":"ErrorDetails","url":"interfaces/ErrorDetails.html","classes":"tsd-kind-interface"},{"id":116,"kind":1024,"name":"response","url":"interfaces/ErrorDetails.html#response","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ErrorDetails"},{"id":117,"kind":256,"name":"TypeMismatchDetails","url":"interfaces/TypeMismatchDetails.html","classes":"tsd-kind-interface"},{"id":118,"kind":1024,"name":"expectedType","url":"interfaces/TypeMismatchDetails.html#expectedType","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TypeMismatchDetails"},{"id":119,"kind":1024,"name":"response","url":"interfaces/TypeMismatchDetails.html#response","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"TypeMismatchDetails"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,30.91]],["parent/0",[]],["name/1",[1,43.903]],["parent/1",[0,2.804]],["name/2",[2,43.903]],["parent/2",[0,2.804]],["name/3",[3,43.903]],["parent/3",[0,2.804]],["name/4",[4,43.903]],["parent/4",[0,2.804]],["name/5",[5,25.445]],["parent/5",[]],["name/6",[6,27.809]],["parent/6",[5,2.308]],["name/7",[7,29.24]],["parent/7",[5,2.308]],["name/8",[8,29.24]],["parent/8",[5,2.308]],["name/9",[9,27.809]],["parent/9",[5,2.308]],["name/10",[10,27.809]],["parent/10",[5,2.308]],["name/11",[11,24.444]],["parent/11",[5,2.308]],["name/12",[12,27.809]],["parent/12",[5,2.308]],["name/13",[13,23.534]],["parent/13",[5,2.308]],["name/14",[14,25.445]],["parent/14",[]],["name/15",[6,27.809]],["parent/15",[14,2.308]],["name/16",[7,29.24]],["parent/16",[14,2.308]],["name/17",[8,29.24]],["parent/17",[14,2.308]],["name/18",[9,27.809]],["parent/18",[14,2.308]],["name/19",[10,27.809]],["parent/19",[14,2.308]],["name/20",[11,24.444]],["parent/20",[14,2.308]],["name/21",[12,27.809]],["parent/21",[14,2.308]],["name/22",[13,23.534]],["parent/22",[14,2.308]],["name/23",[15,25.445]],["parent/23",[]],["name/24",[6,27.809]],["parent/24",[15,2.308]],["name/25",[7,29.24]],["parent/25",[15,2.308]],["name/26",[8,29.24]],["parent/26",[15,2.308]],["name/27",[9,27.809]],["parent/27",[15,2.308]],["name/28",[10,27.809]],["parent/28",[15,2.308]],["name/29",[11,24.444]],["parent/29",[15,2.308]],["name/30",[12,27.809]],["parent/30",[15,2.308]],["name/31",[13,23.534]],["parent/31",[15,2.308]],["name/32",[16,25.445]],["parent/32",[]],["name/33",[6,27.809]],["parent/33",[16,2.308]],["name/34",[7,29.24]],["parent/34",[16,2.308]],["name/35",[8,29.24]],["parent/35",[16,2.308]],["name/36",[9,27.809]],["parent/36",[16,2.308]],["name/37",[10,27.809]],["parent/37",[16,2.308]],["name/38",[11,24.444]],["parent/38",[16,2.308]],["name/39",[12,27.809]],["parent/39",[16,2.308]],["name/40",[13,23.534]],["parent/40",[16,2.308]],["name/41",[17,25.445]],["parent/41",[]],["name/42",[6,27.809]],["parent/42",[17,2.308]],["name/43",[7,29.24]],["parent/43",[17,2.308]],["name/44",[8,29.24]],["parent/44",[17,2.308]],["name/45",[9,27.809]],["parent/45",[17,2.308]],["name/46",[10,27.809]],["parent/46",[17,2.308]],["name/47",[11,24.444]],["parent/47",[17,2.308]],["name/48",[12,27.809]],["parent/48",[17,2.308]],["name/49",[13,23.534]],["parent/49",[17,2.308]],["name/50",[18,25.445]],["parent/50",[]],["name/51",[6,27.809]],["parent/51",[18,2.308]],["name/52",[7,29.24]],["parent/52",[18,2.308]],["name/53",[8,29.24]],["parent/53",[18,2.308]],["name/54",[9,27.809]],["parent/54",[18,2.308]],["name/55",[10,27.809]],["parent/55",[18,2.308]],["name/56",[11,24.444]],["parent/56",[18,2.308]],["name/57",[12,27.809]],["parent/57",[18,2.308]],["name/58",[13,23.534]],["parent/58",[18,2.308]],["name/59",[19,21.216]],["parent/59",[]],["name/60",[20,43.903]],["parent/60",[19,1.925]],["name/61",[13,23.534]],["parent/61",[19,1.925]],["name/62",[21,43.903]],["parent/62",[19,1.925]],["name/63",[22,43.903]],["parent/63",[19,1.925]],["name/64",[23,43.903]],["parent/64",[19,1.925]],["name/65",[24,43.903]],["parent/65",[19,1.925]],["name/66",[25,43.903]],["parent/66",[19,1.925]],["name/67",[26,43.903]],["parent/67",[19,1.925]],["name/68",[27,43.903]],["parent/68",[19,1.925]],["name/69",[28,43.903]],["parent/69",[19,1.925]],["name/70",[29,43.903]],["parent/70",[19,1.925]],["name/71",[30,43.903]],["parent/71",[19,1.925]],["name/72",[31,43.903]],["parent/72",[19,1.925]],["name/73",[9,27.809]],["parent/73",[32,3.983]],["name/74",[33,35.43]],["parent/74",[]],["name/75",[13,23.534]],["parent/75",[33,3.214]],["name/76",[11,24.444]],["parent/76",[33,3.214]],["name/77",[34,32.917]],["parent/77",[]],["name/78",[13,23.534]],["parent/78",[34,2.986]],["name/79",[11,24.444]],["parent/79",[34,2.986]],["name/80",[12,27.809]],["parent/80",[34,2.986]],["name/81",[35,35.43]],["parent/81",[]],["name/82",[13,23.534]],["parent/82",[35,3.214]],["name/83",[11,24.444]],["parent/83",[35,3.214]],["name/84",[36,35.43]],["parent/84",[]],["name/85",[13,23.534]],["parent/85",[36,3.214]],["name/86",[11,24.444]],["parent/86",[36,3.214]],["name/87",[37,18.254]],["parent/87",[]],["name/88",[38,43.903]],["parent/88",[37,1.656]],["name/89",[39,43.903]],["parent/89",[37,1.656]],["name/90",[40,43.903]],["parent/90",[37,1.656]],["name/91",[6,27.809]],["parent/91",[37,1.656]],["name/92",[41,43.903]],["parent/92",[37,1.656]],["name/93",[42,43.903]],["parent/93",[37,1.656]],["name/94",[43,43.903]],["parent/94",[37,1.656]],["name/95",[44,43.903]],["parent/95",[37,1.656]],["name/96",[45,43.903]],["parent/96",[37,1.656]],["name/97",[46,43.903]],["parent/97",[37,1.656]],["name/98",[47,43.903]],["parent/98",[37,1.656]],["name/99",[48,43.903]],["parent/99",[37,1.656]],["name/100",[49,43.903]],["parent/100",[37,1.656]],["name/101",[50,43.903]],["parent/101",[37,1.656]],["name/102",[51,43.903]],["parent/102",[37,1.656]],["name/103",[52,43.903]],["parent/103",[37,1.656]],["name/104",[10,27.809]],["parent/104",[37,1.656]],["name/105",[53,43.903]],["parent/105",[37,1.656]],["name/106",[54,43.903]],["parent/106",[]],["name/107",[55,43.903]],["parent/107",[]],["name/108",[56,43.903]],["parent/108",[]],["name/109",[57,43.903]],["parent/109",[]],["name/110",[58,43.903]],["parent/110",[]],["name/111",[59,43.903]],["parent/111",[]],["name/112",[60,43.903]],["parent/112",[]],["name/113",[61,43.903]],["parent/113",[]],["name/114",[62,43.903]],["parent/114",[]],["name/115",[63,38.795]],["parent/115",[]],["name/116",[64,38.795]],["parent/116",[63,3.52]],["name/117",[65,35.43]],["parent/117",[]],["name/118",[66,43.903]],["parent/118",[65,3.214]],["name/119",[64,38.795]],["parent/119",[65,3.214]]],"invertedIndex":[["__type",{"_index":31,"name":{"72":{}},"parent":{}}],["_buildfetchoptions",{"_index":45,"name":{"96":{}},"parent":{}}],["_buildurl",{"_index":47,"name":{"98":{}},"parent":{}}],["_buildurlbase",{"_index":46,"name":{"97":{}},"parent":{}}],["_getbody",{"_index":44,"name":{"95":{}},"parent":{}}],["_getcontenttype",{"_index":43,"name":{"94":{}},"parent":{}}],["_gettype",{"_index":42,"name":{"93":{}},"parent":{}}],["_options",{"_index":41,"name":{"92":{}},"parent":{}}],["_request",{"_index":53,"name":{"105":{}},"parent":{}}],["_serveresponse",{"_index":38,"name":{"88":{}},"parent":{}}],["abortedhttperror",{"_index":60,"name":{"112":{}},"parent":{}}],["abortedresponse",{"_index":5,"name":{"5":{}},"parent":{"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{}}}],["apiclient",{"_index":37,"name":{"87":{}},"parent":{"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{}}}],["base",{"_index":20,"name":{"60":{}},"parent":{}}],["binary",{"_index":3,"name":{"3":{}},"parent":{}}],["body",{"_index":11,"name":{"11":{},"20":{},"29":{},"38":{},"47":{},"56":{},"76":{},"79":{},"83":{},"86":{}},"parent":{}}],["cache",{"_index":27,"name":{"68":{}},"parent":{}}],["cachekey",{"_index":28,"name":{"69":{}},"parent":{}}],["clienterrorresponse",{"_index":17,"name":{"41":{}},"parent":{"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{}}}],["clienthttperror",{"_index":57,"name":{"109":{}},"parent":{}}],["configure",{"_index":54,"name":{"106":{}},"parent":{}}],["constructor",{"_index":6,"name":{"6":{},"15":{},"24":{},"33":{},"42":{},"51":{},"91":{}},"parent":{}}],["delete",{"_index":51,"name":{"102":{}},"parent":{}}],["download",{"_index":55,"name":{"107":{}},"parent":{}}],["downloaderror",{"_index":62,"name":{"114":{}},"parent":{}}],["errordetails",{"_index":63,"name":{"115":{}},"parent":{"116":{}}}],["expectedtype",{"_index":66,"name":{"118":{}},"parent":{}}],["fetchoptions",{"_index":30,"name":{"71":{}},"parent":{}}],["get",{"_index":48,"name":{"99":{}},"parent":{}}],["head",{"_index":52,"name":{"103":{}},"parent":{}}],["headers",{"_index":9,"name":{"9":{},"18":{},"27":{},"36":{},"45":{},"54":{},"73":{}},"parent":{}}],["httperror",{"_index":56,"name":{"108":{}},"parent":{}}],["informationalresponse",{"_index":14,"name":{"14":{}},"parent":{"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{}}}],["json",{"_index":1,"name":{"1":{}},"parent":{}}],["options",{"_index":19,"name":{"59":{}},"parent":{"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{}}}],["options.__type",{"_index":32,"name":{},"parent":{"73":{}}}],["parsestringifiedreponse",{"_index":40,"name":{"90":{}},"parent":{}}],["patch",{"_index":50,"name":{"101":{}},"parent":{}}],["post",{"_index":49,"name":{"100":{}},"parent":{}}],["rawbody",{"_index":12,"name":{"12":{},"21":{},"30":{},"39":{},"48":{},"57":{},"80":{}},"parent":{}}],["redirectresponse",{"_index":16,"name":{"32":{}},"parent":{"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{}}}],["request",{"_index":10,"name":{"10":{},"19":{},"28":{},"37":{},"46":{},"55":{},"104":{}},"parent":{}}],["requesttype",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{}}}],["response",{"_index":64,"name":{"116":{},"119":{}},"parent":{}}],["responsedatabinary",{"_index":35,"name":{"81":{}},"parent":{"82":{},"83":{}}}],["responsedatajson",{"_index":33,"name":{"74":{}},"parent":{"75":{},"76":{}}}],["responsedatastream",{"_index":36,"name":{"84":{}},"parent":{"85":{},"86":{}}}],["responsedatatext",{"_index":34,"name":{"77":{}},"parent":{"78":{},"79":{},"80":{}}}],["responsedatatypemismatcherror",{"_index":61,"name":{"113":{}},"parent":{}}],["retry",{"_index":21,"name":{"62":{}},"parent":{}}],["retryinterval",{"_index":22,"name":{"63":{}},"parent":{}}],["retrypolicy",{"_index":23,"name":{"64":{}},"parent":{}}],["retrywaitpolicy",{"_index":24,"name":{"65":{}},"parent":{}}],["servererrorresponse",{"_index":18,"name":{"50":{}},"parent":{"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{}}}],["serverhttperror",{"_index":58,"name":{"110":{}},"parent":{}}],["shouldcacheresponse",{"_index":29,"name":{"70":{}},"parent":{}}],["status",{"_index":7,"name":{"7":{},"16":{},"25":{},"34":{},"43":{},"52":{}},"parent":{}}],["statustext",{"_index":8,"name":{"8":{},"17":{},"26":{},"35":{},"44":{},"53":{}},"parent":{}}],["stream",{"_index":4,"name":{"4":{}},"parent":{}}],["stringifyresponse",{"_index":39,"name":{"89":{}},"parent":{}}],["successresponse",{"_index":15,"name":{"23":{}},"parent":{"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{}}}],["text",{"_index":2,"name":{"2":{}},"parent":{}}],["timeout",{"_index":25,"name":{"66":{}},"parent":{}}],["timeouthttperror",{"_index":59,"name":{"111":{}},"parent":{}}],["totaltimeout",{"_index":26,"name":{"67":{}},"parent":{}}],["type",{"_index":13,"name":{"13":{},"22":{},"31":{},"40":{},"49":{},"58":{},"61":{},"75":{},"78":{},"82":{},"85":{}},"parent":{}}],["typemismatchdetails",{"_index":65,"name":{"117":{}},"parent":{"118":{},"119":{}}}]],"pipeline":[]}} |
@@ -23,3 +23,3 @@ import type { CustomError } from "better-custom-error"; | ||
static stringifyResponse(response: PossibleResponses | PossibleCustomErrorsThrown, space?: string | number): string; | ||
static parseStringifiedReponse<T>(string: string): CustomError | import("./response/response.js").AbortedResponse | import("./response/response.js").InformationalResponse | import("./response/response.js").SuccessResponse | import("./response/response.js").RedirectResponse | ClientErrorResponse | ServerErrorResponse; | ||
static parseStringifiedReponse<T>(string: string): import("./response/response.js").AbortedResponse | import("./response/response.js").InformationalResponse | import("./response/response.js").SuccessResponse | import("./response/response.js").RedirectResponse | ClientErrorResponse | ServerErrorResponse | CustomError<import("./errors.js").TypeMismatchDetails>; | ||
} | ||
@@ -26,0 +26,0 @@ declare const configure: (options: ConfigureOptions) => void; |
@@ -7,3 +7,3 @@ import f, { Headers } from "light-isomorphic-fetch"; | ||
import hasher from "node-object-hash"; | ||
import { ClientHttpError, ServerHttpError, ResponseDataTypeMismatchError, AbortedHttpError, TimeoutHttpError } from "./errors.js"; | ||
import { ClientHttpError, ServerHttpError, ResponseDataTypeMismatchError, AbortedHttpError, TimeoutHttpError, } from "./errors.js"; | ||
import { ClientErrorResponse, createResponse, createResponseWithData, ServerErrorResponse, } from "./response/response.js"; | ||
@@ -249,3 +249,5 @@ import { contentTypeMap, RequestType } from "./const.js"; | ||
if (fineOptions.shouldCacheResponse(error)) { | ||
fineOptions.cache.set(cacheKey, ApiClient.stringifyResponse(error)).catch(noop); | ||
fineOptions.cache | ||
.set(cacheKey, ApiClient.stringifyResponse(error)) | ||
.catch(noop); | ||
} | ||
@@ -337,6 +339,7 @@ }); | ||
} | ||
return new ResponseDataTypeMismatchError(parsedData.message, { | ||
const details = { | ||
...parsedData.details, | ||
response, | ||
}); | ||
}; | ||
return new ResponseDataTypeMismatchError(parsedData.message, details); | ||
} | ||
@@ -343,0 +346,0 @@ } |
@@ -1,9 +0,20 @@ | ||
declare const HttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ClientHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ServerHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const TimeoutHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const AbortedHttpError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const ResponseDataTypeMismatchError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
declare const DownloadError: import("better-custom-error/esm/types").CustomErrorConstructor; | ||
import type { ApiResponse } from "./response/response"; | ||
import type { RequestType } from "./const"; | ||
import type { AbortErrorDetails } from "./types"; | ||
interface ErrorDetails { | ||
response: ApiResponse; | ||
[key: string]: unknown; | ||
} | ||
interface TypeMismatchDetails extends ErrorDetails { | ||
expectedType: RequestType; | ||
} | ||
declare const HttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const ClientHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const ServerHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
declare const TimeoutHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<AbortErrorDetails>; | ||
declare const AbortedHttpError: import("better-custom-error/esm/types").CustomErrorConstructor<AbortErrorDetails>; | ||
declare const ResponseDataTypeMismatchError: import("better-custom-error/esm/types").CustomErrorConstructor<TypeMismatchDetails>; | ||
declare const DownloadError: import("better-custom-error/esm/types").CustomErrorConstructor<ErrorDetails>; | ||
export { HttpError, ClientHttpError, ServerHttpError, TimeoutHttpError, AbortedHttpError, ResponseDataTypeMismatchError, DownloadError, }; | ||
export type { ErrorDetails, TypeMismatchDetails, }; | ||
//# sourceMappingURL=errors.d.ts.map |
{ | ||
"name": "api-reach", | ||
"version": "0.12.0", | ||
"version": "0.12.1-beta.1", | ||
"repository": "git@github.com:dzek69/api-reach.git", | ||
@@ -9,5 +9,5 @@ "author": "Jacek Nowacki @dzek69 <git-public@dzek.eu>", | ||
"test": "NODE_ENV=test jest", | ||
"docs": "typedoc src/index.ts --out docs --listInvalidSymbolLinks --includes tutorials", | ||
"docs": "typedoc src/index.ts --out docs --listInvalidSymbolLinks --includes tutorials --theme pages-plugin --includeVersion", | ||
"compile": "yarn compile:esm && yarn compile:cjs", | ||
"compile:esm": "rm -rf esm && tsc && node ./build-scripts/compile.esm.after.mjs", | ||
"compile:esm": "rm -rf esm && tsc --project tsconfig.esm.json && node ./build-scripts/compile.esm.after.mjs", | ||
"compile:cjs": "rm -rf dist && tsc --project tsconfig.cjs.json && node ./build-scripts/compile.cjs.after.mjs", | ||
@@ -34,3 +34,3 @@ "typecheck": "tsc --noEmit", | ||
"abort-controller": "^3.0.0", | ||
"better-custom-error": "^4.0.5", | ||
"better-custom-error": "^4.1.2", | ||
"isomorphic-abort-controller": "^2.0.0-beta.3", | ||
@@ -47,4 +47,4 @@ "light-isomorphic-fetch": "^2.0.0-beta.3", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@dzek69/eslint-config-base": "^2.0.0", | ||
"@dzek69/eslint-config-typescript": "^0.3.2", | ||
"@dzek69/eslint-config-base": "^2.1.0", | ||
"@dzek69/eslint-config-typescript": "^0.4.0", | ||
"@keyv/sqlite": "^2.0.2", | ||
@@ -58,6 +58,6 @@ "@types/keyv": "^3.1.1", | ||
"babel-plugin-module-extension": "^0.1.3", | ||
"eslint": "^7.14.0", | ||
"eslint": "^7.32.0", | ||
"fs-extra": "^9.0.1", | ||
"husky": "^4.3.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.0.6", | ||
"keyv": "^4.0.3", | ||
@@ -68,4 +68,6 @@ "must": "^0.13.4", | ||
"ts-node": "^9.0.0", | ||
"typedoc": "^0.20.35", | ||
"typescript": "^4.2.4" | ||
"typedoc": "^0.21.2", | ||
"typescript": "^4.2.4", | ||
"@types/jest": "^26.0.23", | ||
"typedoc-plugin-pages-fork-fork": "^0.0.3" | ||
}, | ||
@@ -81,3 +83,3 @@ "peerDependencies": { | ||
"libraryTemplate": { | ||
"version": "3.1.1", | ||
"version": "3.4.0", | ||
"language": "typescript", | ||
@@ -84,0 +86,0 @@ "fixDefaultForCommonJS": true, |
@@ -28,3 +28,12 @@ /* eslint-disable max-lines */ | ||
import { ClientHttpError, ServerHttpError, ResponseDataTypeMismatchError, AbortedHttpError, TimeoutHttpError } | ||
import type { | ||
ErrorDetails, | ||
} from "./errors.js"; | ||
import { | ||
ClientHttpError, | ||
ServerHttpError, | ||
ResponseDataTypeMismatchError, | ||
AbortedHttpError, | ||
TimeoutHttpError, | ||
} | ||
from "./errors.js"; | ||
@@ -438,4 +447,6 @@ import { | ||
} | ||
if (fineOptions.shouldCacheResponse(error as CustomError)) { | ||
fineOptions.cache.set(cacheKey, ApiClient.stringifyResponse(error as CustomError)).catch(noop); | ||
if (fineOptions.shouldCacheResponse(error as CustomError<ErrorDetails>)) { | ||
fineOptions.cache | ||
.set(cacheKey, ApiClient.stringifyResponse(error as CustomError<ErrorDetails>)) | ||
.catch(noop); | ||
} | ||
@@ -564,6 +575,9 @@ }); | ||
// @TODO return correct error type! | ||
return new ResponseDataTypeMismatchError(parsedData.message, { | ||
const details = { | ||
...parsedData.details, | ||
response, | ||
}); | ||
}; | ||
// @ts-expect-error Should not return DataMismatch here? see TODO above | ||
// and ts is complaining because datamismatch expects `expectedType` in details? | ||
return new ResponseDataTypeMismatchError(parsedData.message, details); | ||
} | ||
@@ -570,0 +584,0 @@ } |
import { createError } from "better-custom-error"; | ||
import type { ApiResponse } from "./response/response"; | ||
import type { RequestType } from "./const"; | ||
import type { AbortErrorDetails } from "./types"; | ||
@@ -12,2 +15,11 @@ /** | ||
interface ErrorDetails { | ||
response: ApiResponse; | ||
[key: string]: unknown; | ||
} | ||
interface TypeMismatchDetails extends ErrorDetails { | ||
expectedType: RequestType; | ||
} | ||
/** | ||
@@ -19,3 +31,3 @@ * Non-success response custom error | ||
*/ | ||
const HttpError = createError("HttpError"); | ||
const HttpError = createError<ErrorDetails>("HttpError"); | ||
/** | ||
@@ -28,3 +40,3 @@ * Response 4xx error | ||
*/ | ||
const ClientHttpError = createError("ClientHttpError", HttpError); | ||
const ClientHttpError = createError<ErrorDetails>("ClientHttpError", HttpError); | ||
/** | ||
@@ -37,3 +49,3 @@ * Response 5xx error | ||
*/ | ||
const ServerHttpError = createError("ServerHttpError", HttpError); | ||
const ServerHttpError = createError<ErrorDetails>("ServerHttpError", HttpError); | ||
/** | ||
@@ -47,3 +59,3 @@ * Response timeout error | ||
*/ | ||
const TimeoutHttpError = createError("TimeoutHttpError", ServerHttpError); | ||
const TimeoutHttpError = createError<AbortErrorDetails>("TimeoutHttpError", ServerHttpError); | ||
/** | ||
@@ -57,3 +69,3 @@ * Response aborted error | ||
*/ | ||
const AbortedHttpError = createError("AbortedHttpError", ClientHttpError); | ||
const AbortedHttpError = createError<AbortErrorDetails>("AbortedHttpError", ClientHttpError); | ||
/** | ||
@@ -65,3 +77,3 @@ * Response data type was different than expected | ||
*/ | ||
const ResponseDataTypeMismatchError = createError("ResponseDataTypeMismatchError"); | ||
const ResponseDataTypeMismatchError = createError<TypeMismatchDetails>("ResponseDataTypeMismatchError"); | ||
/** | ||
@@ -73,3 +85,3 @@ * Downloading failed during stream | ||
*/ | ||
const DownloadError = createError("DownloadError"); | ||
const DownloadError = createError<ErrorDetails>("DownloadError"); | ||
@@ -85,1 +97,6 @@ export { | ||
}; | ||
export type { | ||
ErrorDetails, | ||
TypeMismatchDetails, | ||
}; |
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
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
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
771296
138
26
5294
3
Updatedbetter-custom-error@^4.1.2