UNPKG

1.32 kBTypeScriptView Raw
1import { FunctionImportParameters, RequestMethodType, ActionFunctionImportRequestBuilder as ActionFunctionImportRequestBuilderBase } from '../../odata-common';
2/**
3 * Create OData request to execute a function import.
4 * @typeparam ParametersT - Type of the function import parameters
5 * @typeparam ReturnT - Type of the function import return value
6 */
7export declare class FunctionImportRequestBuilder<ParametersT, ReturnT> extends ActionFunctionImportRequestBuilderBase<ParametersT, ReturnT> {
8 readonly responseTransformer: (data: any) => ReturnT;
9 /**
10 * Creates an instance of FunctionImportRequestBuilder.
11 * @param method - HTTP method to be used for the request
12 * @param defaultServicePath - Default path for the service the function belongs to
13 * @param functionImportName - The name of the function import.
14 * @param responseTransformer - Transformation function for the response
15 * @param parameters - Parameters to be set in the function
16 */
17 constructor(method: RequestMethodType, defaultServicePath: string, functionImportName: string, responseTransformer: (data: any) => ReturnT, parameters: FunctionImportParameters<ParametersT>);
18}
19export { FunctionImportRequestBuilder as FunctionImportRequestBuilderV2 };
20//# sourceMappingURL=function-import-request-builder.d.ts.map
\No newline at end of file