UNPKG

@sap-cloud-sdk/odata-common

Version:

SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.

20 lines 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Order = void 0; /** * OData queries take this to determine the order of results. * @typeParam EntityT - */ class Order { /** * Creates an instance of Order. * @param _fieldName - Field to order by. * @param orderType - Type of ordering, can be 'asc' for ascending or 'desc' for descending. */ constructor(_fieldName, orderType = 'asc') { this._fieldName = _fieldName; this.orderType = orderType; } } exports.Order = Order; //# sourceMappingURL=order.js.map