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

66 Коммитов

Автор SHA1 Сообщение Дата
Christopher Anderson 2ac677b7db
Add change feed support (#196)
* Change feed support

* typos, PR feedback, fix StartTime test coverage

* add retries to flaky test

* Adds jsdoc, changes response type, and adjusts feed options

* Add change feed sample

* PR feedback

* pr feedback

* remove partitionkeyrange support and dedupe PK

* Fix session test
2018-12-03 11:56:33 -08:00
Tim Reilly 82d03c9c2e console log database and collection deletion (#158) 2018-10-10 11:26:14 -04:00
Christopher Anderson 0159448916 Resolve merge conflicts 2018-09-24 08:03:24 -07:00
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 db499e49c3
Multi-Region Write support (#106) 2018-09-20 18:27:04 -07:00
Christopher Anderson a908af7cba
Change all string enum properties to keyof typof enum properties (#86)
fixes https://github.com/Azure/azure-cosmos-js/issues/72
2018-07-31 11:59:16 -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
Christopher Anderson 9163ff4c57
Port Version 1.14.4 release (#8)
* Port Version 1.14.4 release from documentdb
2018-06-29 14:26:53 -07:00
Christopher Anderson 1173f1d224
TypeScript conversion (#3)
* 2.0.0-0

 * TypeScript Conversion

 * Promise support
2018-06-04 14:03:49 -07:00
Srinath Narayanan 749e10463e made edits and changed URL links in comments 2017-12-15 16:27:11 -08:00
Srinath Narayanan 9aff6f37cb - Changed all occurances of "DocumentDB" to "Cosmos DB" in comments 2017-12-13 18:23:59 -08:00
Srinath Narayanan 0cd41b9d91 minor change to partition sample 2017-11-15 17:15:07 -08:00
Srinath Narayanan 5b70d96263 Security fixes in samples and source/base.js 2017-11-15 17:10:56 -08:00
hemantk 18879e5970 removed key and auth key 2017-09-01 18:10:13 +05:30
hemantk 2819b04b71 almost complete 2017-08-17 11:27:06 +05:30
hemantk bc4e9a9a1e Added user management 2017-08-16 22:56:41 +05:30
Santiago Castro 1354c4467e Fix broken Markdown headings 2017-04-17 01:09:16 -03:00
ryancrawcour 4ba4c418b2 completed partitioning samples 2016-03-04 16:08:03 -08:00
ryancrawcour aa32249235 added samples for conditional operations with accessCondition 2016-02-24 14:32:54 -08:00
ryancrawcour 1c94ccfb9c updated Partitioning samples to include CustomPartitionResolver example 2016-02-22 21:12:04 -08:00
ryancrawcour 7cc2349857 removed util.js from project file 2016-02-22 21:11:10 -08:00
ryancrawcour bf7d5bcdd2 updated partition samples 2016-02-22 16:16:32 -08:00
ryancrawcour ac9461c9a8 updated readme to clarify that VS is not needed to run these samples 2016-02-22 13:55:17 -08:00
ryancrawcour 3191ebdf6a tracking njsproj files 2016-02-22 13:42:31 -08:00
Ryan CrawCour 4bea4d3ce0 Create config.js (again) 2016-02-19 11:46:18 -08:00
ryancrawcour c39561fd7f first push of HashPartitionResolver sample 2016-02-02 19:38:29 -08:00
ryancrawcour 2dfb846679 first commit to include HashPartitionResolver sample 2016-02-02 18:31:17 -08:00
ryancrawcour a132af7607 updating samples to 1.5.5 2016-02-02 17:39:02 -08:00
ryancrawcour 1f8c759471 refactor code to use vars 2016-02-02 14:04:54 -08:00
ryancrawcour 067e7d1541 adding gitignore for .vs config folder 2016-02-02 13:39:17 -08:00
ryancrawcour a326a639ba added ServerSideScripts project back to solution 2016-02-02 13:37:07 -08:00
ryancrawcour 87f32b379d removed .vs folder 2016-02-02 13:17:06 -08:00
ryancrawcour bc2b0a1880 refactor projects 2016-02-02 13:16:11 -08:00
Andrew Liu bef4158336 Update README.md 2015-09-10 17:04:38 -07:00
Andrew Liu c0f0dff6ab Sample code for server (database) side scripts
This reverts commit 1e516d98a7.
2015-09-09 13:21:35 -07:00
unknown fe96082760 fixing samples reasme 2015-09-08 15:34:11 -07:00
Ryan CrawCour 61919e4ffb updated samples to work with ID Based Routing and 1.2.1 2015-08-16 23:37:59 -07:00
Ryan CrawCour 393f7da319 updated samples to work with ID Based Routing and 1.2.1 2015-08-16 23:36:53 -07:00
Ryan CrawCour c31bb735df Merge branch 'master' of github.com:Azure/azure-documentdb-node 2015-08-16 23:34:31 -07:00
Ryan CrawCour d8b5892d64 updated samples to work with ID Based Routing and 1.2.1 2015-08-16 23:34:11 -07:00
David Makogon 2aa68d46aa Fixed message in useManualIndexing, since doc is being explicitly included 2015-08-16 23:59:55 -04:00
unknown 239b0020a7 updated samples to work with ID Based Routing and 1.2.1 2015-08-16 14:53:45 -07:00
unknown f380a14436 updated samples to work with ID Based Routing and 1.2.1 2015-08-16 13:56:40 -07:00
unknown 7885e7c74e updated samples to work with ID Based Routing and 1.2.1 2015-08-16 13:00:23 -07:00
unknown 1e516d98a7 updated samples to work with ID Based Routing and 1.2.1 2015-08-15 22:54:22 -07:00
unknown a2b40b1d78 updated samples to work with ID Based Routing and 1.2.1 2015-08-15 22:44:58 -07:00
unknown 607b9db09e DocumentManagent samples for ID Based Routing 2015-08-15 22:41:13 -07:00
unknown d7cf5d1ae2 removing .gitignore for config.js, excluded local file changes in git config to ignore changes to tracked file 2015-08-15 16:58:25 -07:00
unknown cf4beb8ead collection samples updated for ID Based Routing 2015-08-15 16:57:12 -07:00