Fresh dist
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2023-02-02 16:14:10 +01:00
parent e996375677
commit ad90844846
43 changed files with 270 additions and 267 deletions

View File

@@ -3,7 +3,7 @@ import type { ApiResult } from './ApiResult';
/**
* Request using fetch client
* @param options The request options from the the service
* @result ApiResult
* @returns ApiResult
* @throws ApiError
*/
export declare function request(options: ApiRequestOptions): Promise<ApiResult>;

View File

@@ -111,6 +111,9 @@ async function sendRequest(options, url) {
headers: await getHeaders(options),
body: getRequestBody(options),
};
if (OpenAPI_1.OpenAPI.WITH_CREDENTIALS) {
request.credentials = 'include';
}
return await fetch(url, request);
}
function getResponseHeader(response, responseHeader) {
@@ -162,7 +165,7 @@ function catchErrors(options, result) {
/**
* Request using fetch client
* @param options The request options from the the service
* @result ApiResult
* @returns ApiResult
* @throws ApiError
*/
async function request(options) {