@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
27 lines • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ODataFunctionRequestConfig = void 0;
const odata_request_config_1 = require("./odata-request-config");
/**
* Function request configuration for an entity type.
* @typeParam DeSerializersT - Type of the deserializer use on the request
* @typeParam ParametersT - Type of the parameter to setup a request with
*/
class ODataFunctionRequestConfig extends odata_request_config_1.ODataRequestConfig {
/**
* Creates an instance of ODataFunctionRequestConfig.
* @param method - HTTP method for the request.
* @param defaultBasePath - Default path of the service.
* @param functionName - The name of the function.
* @param parameters - Object containing the parameters with a value and additional meta information.
* @param oDataUri - URI conversion functions.
*/
constructor(method, defaultBasePath, functionName, parameters, oDataUri) {
super(method, defaultBasePath);
this.functionName = functionName;
this.parameters = parameters;
this.oDataUri = oDataUri;
}
}
exports.ODataFunctionRequestConfig = ODataFunctionRequestConfig;
//# sourceMappingURL=odata-function-request-config.js.map