UNPKG

@odata2ts/odata-query-objects

Version:

Q-Objects are the magic sauce for the odata-query-builder and allow for renaming and type conversion

23 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QDateTimeOffsetV2Path = void 0; const UrlParamHelper_1 = require("../../param/UrlParamHelper"); const QDateTimeOffsetV2Param_1 = require("../../param/v2/QDateTimeOffsetV2Param"); const QBasePath_1 = require("../base/QBasePath"); const DateTimeFunctions_1 = require("./DateTimeFunctions"); class QDateTimeOffsetV2Path extends QBasePath_1.QBasePath { constructor() { super(...arguments); this.year = (0, DateTimeFunctions_1.yearFn)(this.getPath()); this.month = (0, DateTimeFunctions_1.monthFn)(this.getPath()); this.day = (0, DateTimeFunctions_1.dayFn)(this.getPath()); this.hour = (0, DateTimeFunctions_1.hourFn)(this.getPath()); this.minute = (0, DateTimeFunctions_1.minuteFn)(this.getPath()); this.second = (0, DateTimeFunctions_1.secondFn)(this.getPath()); } formatValue(value) { return (0, UrlParamHelper_1.formatWithTypePrefix)(QDateTimeOffsetV2Param_1.DATE_TIME_OFFSET_V2_TYPE_PREFIX, value); } } exports.QDateTimeOffsetV2Path = QDateTimeOffsetV2Path; //# sourceMappingURL=QDateTimeOffsetV2Path.js.map