0.3.0 • Published 6 years ago

ts-odata v0.3.0

Weekly downloads
101
License
MIT
Repository
github
Last release
6 years ago

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

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

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago