Nerfing Powerful Megalomaniacs

    ts-odata
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.0 • Public • Published

    Build npm version

    ts-odata

    Changelog

    All notable changes to this project will be documented in this file.

    The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

    [Unreleased]

    Please note the 0.3.0 has not been published to NPM

    [0.3.0] - 2018-08-28

    Added

    • Support for OData 'Contains' keyword
    • Added unit tests for 'Contains'

    Changed

    • Changed headers in README.md because it was invalid markdown
    • Added this Changelog
    • Added NPM version tracker
    • Updated all packages to the latest version
    • Now using TypeScript 3.0.1
    • Updated tslint.json for TS 3.0.1
    • Fixed large number of linting issues
    • Changed the tsconfig.json to the one used in the typescript-library-starter (https://github.com/alexjoverm/typescript-library-starter/blob/master/tsconfig.json)

    Removed

    • Api documentation removed from this README and into the code.
    • Removed empty typings folder

    A typescript library to help generate odata queries

    This is a Typescript port of the javascript library [joData]: https://github.com/mccow002/joData

    tsoData creates a javascript object that represents an oData query. This allows you to easily modify parts of your oData query without effecting the rest of it.

    tsoData's goal is to implement

    All methods in tsoData are chainable.

    Getting Started

    Creating a TsoData object

    To create a TsoData query object, you instantiate it by passing your base uri into the constructor.

    var query = new Tso('http://test.com');
    var query = new Tso('http://test.com');
    

    .baseUri

    The base uri passed in through the constructor can be accessed by calling

    query.baseUri;
    

    .toString()

    To get the query in oData format, call toString off of your query object.

    query.toString();
    

    All further documentation is in the library definitions

    Unsupported Features (for now)

    These are the list of features TsoData currently does not support. Hopefully, these features are coming soon.

    Filter

    Type Functions

    • IsOf

    Custom Query Options

    TsoData currently does not support any custom query options

    Keywords

    Install

    npm i ts-odata

    DownloadsWeekly Downloads

    32

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    85.5 kB

    Total Files

    25

    Last publish

    Collaborators

    • trekkingforcharity