@odata2ts/odata-query-objects
Version:
Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion
16 lines • 796 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QStringNumberV2Path = void 0;
const UrlParamHelper_1 = require("../../param/UrlParamHelper");
const QNumberV2Base_1 = require("./QNumberV2Base");
class QStringNumberV2Path extends QNumberV2Base_1.QNumberV2Base {
createNewFunctionPath(func) {
return new QStringNumberV2Path((0, UrlParamHelper_1.buildFunctionExpression)(func, this.path), this.converter);
}
createNewOperationPath(operator, value) {
const converted = this.convertInput(value);
return new QStringNumberV2Path((0, UrlParamHelper_1.buildOperatorExpression)(this.path, operator, converted), this.converter);
}
}
exports.QStringNumberV2Path = QStringNumberV2Path;
//# sourceMappingURL=QStringNumberV2Path.js.map