UNPKG

pailingual-odata

Version:

TypeScript client for OData v4 services

34 lines 1.14 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Executable { constructor(query) { this.query = query; } $exec(options) { return this.query.exec(options); } $url(options) { return this.query.url((!options || options.queryParams != false) ? true : false, options); } } exports.Executable = Executable; class ExecutableAndCount extends Executable { $execWithCount(options) { const q = this.query.count({ inline: true }); return q.exec(options); } } exports.ExecutableAndCount = ExecutableAndCount; }); //# sourceMappingURL=executable.js.map