@sap-ai-sdk/core
Version:
**This package is designed for internal usage and should not be consumed directly.**
24 lines • 1.48 kB
TypeScript
import { OpenApiRequestBuilder as CloudSDKOpenApiRequestBuilder } from '@sap-cloud-sdk/openapi';
import type { HttpDestinationOrFetchOptions } from '@sap-cloud-sdk/connectivity';
import type { OpenApiRequestParameters } from '@sap-cloud-sdk/openapi';
import type { HttpResponse, Method } from '@sap-cloud-sdk/http-client';
/**
* Request builder for OpenAPI requests.
* @typeParam ResponseT - Type of the response for the request.
*/
export declare class OpenApiRequestBuilder<ResponseT> extends CloudSDKOpenApiRequestBuilder<ResponseT> {
constructor(method: Method, pathPattern: string, parameters?: OpenApiRequestParameters, basePath?: string);
/**
* Execute request and get the response data. Use this to conveniently access the data of a service without technical information about the response.
* @param destination - The destination to execute the request against.
* @returns A promise resolving to an HttpResponse.
*/
executeRaw(destination?: HttpDestinationOrFetchOptions): Promise<HttpResponse>;
/**
* Execute request and get the response data. Use this to conveniently access the data of a service without technical information about the response.
* @param destination - The destination to execute the request against.
* @returns A promise resolving to the requested return type.
*/
execute(destination?: HttpDestinationOrFetchOptions): Promise<ResponseT>;
}
//# sourceMappingURL=openapi-request-builder.d.ts.map