Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
W. Kevin Hazzard 100eea064d Added missing example 6 demoing upserts (#136)
Added the upsert demo which is described in the header but was missing.
2018-09-24 07:50:59 -07:00
Christopher Anderson d44294d40d
Update samples to new OM (#79)
* Update samples to latest OM

* Makes debugging samples easier

* npm start should run samples now

* Various fixes to make the samples all run fine

* Update samples readme

* Update main readme to make code sample more prominent
2018-07-30 16:39:34 -07:00
Christopher Anderson 0d38b3873b
Feature/object model refactor (#26)
* Move foreach to async iterator

* Mock out new APIs

* remove legacy tests

* remove old ntvs stuff for samples

* Add shimmed implemention + bug fixes

* Update (some) samples to use new OM

* refactor interfaces into their own files

* refactor om into new directory structure

* small tweak to lib in gitignore

* renamed document to item

* update tests

* Move Item/Permission/User tests

* Remove Attachment from OM

* Update item, container, database, and database account tests

* Permission tests

* User tests

* Aggregate query tests moved to new OM

* collectionNaming tests obsolete due to attachment/media

* Update crosspartition test

* Add encoding test

* Update incremental feed tests

* update proxy test

* Update query test

* update ruPerMind test

* Update session tests

* Update session container tests (moved to unit test)

* Update SSL tests

* Update UriFactory tests (moved to unit)

* Update document client tests

* Update authorization tests

* Fix lint

* Refactor of UDF test

* Refactor trigger test

* Refactor functional TTL test

* Remove UriFactory

* Type assertion due to intermediate implementation details

* Query needs to support string

* Support any overload

* Query e2e tests

* Spatial e2e test updated

* Refactor functional sproc test

* Add await to fix TS errors

* Type assertion on container def for now

* Remove offer tests for now

* authorization tests updated

* bug in test

* Comment out and skip HashPartitionResolver test

* Use UriFactory for urls

* rids make me sad

* types are fun

* bugs in permission test

* Symbol Shim for forEach

* Fix user test

* stringify the funciton bodys to avoid TypeScript weirdness

* Support string body for UDF

* Small bug in TTL test

* Fix Authorization tests

* remove bad options object

* One more sproc fix

* Need a blank object for parition key (if none specified)

* One tests is broken still for now

* Expose ErrorResponse

* Handle undefined in forEach

* Better error handling

* Better error handling for crossParititon tests

* Update tslint to catch dangling promises

* Port over existing docs to TS files

* Fix Mock toArray to promise based

* Include tests in lint and fix errors

* No assignment to Symbol.asyncIterator in node 10

* tslint fix

* Remove unnecessary test (forEach is an iterable now)

* no more generic database names in test

* Index kind mistake

* Missing promise

* Shorten timeout (flakey test)

* rename \w+s\.read to \w+s\.readAll

* Move all #.get\w+ to #.get

* Remove rid test. Pick up global timeout in auth test

* Fix tslint

* Fix test timeouts against production, except for TTL. Run TS tests directly

* Add files

* remove some collection/document mentions

* fix sproc mistake from rename

* Add CosmosClientOptions to export
2018-06-29 16:51:57 -07:00