UNPKG

odata-client

Version:
46 lines (36 loc) 846 B
'use strict'; const Odata = require('./odata'); const Identifier = require('./identifier'); const Literal = require('./literal'); const Expression = require('./expression'); const Exact = require('./exact'); const Type = require('./type'); const Function = require('./function'); module.exports = function(config) { return new Odata(config); }; module.exports.expression = function(field, op, value) { return new Expression(field, op, value); }; module.exports.identifier = function(value) { return new Identifier(value); }; module.exports.literal = function(value) { return new Literal(value); }; module.exports.exact = function(value) { return new Exact(value); }; module.exports.type = function(type, value) { return new Type(type, value); } module.exports.fn = function(name, args) { return new Function(name, args); }