-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couchbase: Lots of missing things from v2.4.5 SDK #27457
Conversation
Documentation says key type is string or Buffer, not any. http://docs.couchbase.com/sdk-api/couchbase-node-client-2.4.5/Bucket.html
"code" was not optional, but it is definitely not included on all errors. I've added two more properties that I've seen in the couchbase source code.
The first page of the couchbase documentation contains the code that is now in couchbase-tests.ts (except that I've left out the underdocumented cluster.authenticate() call). For this, I've added the index management methods on the bucket manager interface as well as specific definitions for the events on the query response interfaces.
It's marked "uncommitted," but it's in the main page sample, so...
Needs some fixes to the Bucket query call, but that will be fixed here in a bit.
…rops Several important fixes.
The samples force us to recognize that the query callbacks are optional.
Even though this doesn't cover everything in the latest SDK, that's the version I based my changes on.
@fluggo Thank you for submitting this PR! 🔔 @maouida - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
After 5 days, no one has reviewed the PR 😞. A maintainer will be reviewing the PR in the next few days and will either merge it or request revisions. Thank you for your patience! |
) * couchbase: Fix Bucket key parameter types Documentation says key type is string or Buffer, not any. http://docs.couchbase.com/sdk-api/couchbase-node-client-2.4.5/Bucket.html * couchbase: Add connect/error events to Bucket interface * couchbase: Add optional properties for errors "code" was not optional, but it is definitely not included on all errors. I've added two more properties that I've seen in the couchbase source code. * couchbase: Add enough features to get the front-page sample working The first page of the couchbase documentation contains the code that is now in couchbase-tests.ts (except that I've left out the underdocumented cluster.authenticate() call). For this, I've added the index management methods on the bucket manager interface as well as specific definitions for the events on the query response interfaces. * couchbase: Add authenticator API It's marked "uncommitted," but it's in the main page sample, so... * couchbase: Add the basic full-text search API Needs some fixes to the Bucket query call, but that will be fixed here in a bit. * couchbase: Split query API, add SearchQuery + FtsQueryResponse.Meta props Several important fixes. * couchbase: Add FTS facet and sorting capabilities * couchbase: Add more samples, make query callbacks optional The samples force us to recognize that the query callbacks are optional. * couchbase: Add version number and add me Even though this doesn't cover everything in the latest SDK, that's the version I based my changes on.
) * couchbase: Fix Bucket key parameter types Documentation says key type is string or Buffer, not any. http://docs.couchbase.com/sdk-api/couchbase-node-client-2.4.5/Bucket.html * couchbase: Add connect/error events to Bucket interface * couchbase: Add optional properties for errors "code" was not optional, but it is definitely not included on all errors. I've added two more properties that I've seen in the couchbase source code. * couchbase: Add enough features to get the front-page sample working The first page of the couchbase documentation contains the code that is now in couchbase-tests.ts (except that I've left out the underdocumented cluster.authenticate() call). For this, I've added the index management methods on the bucket manager interface as well as specific definitions for the events on the query response interfaces. * couchbase: Add authenticator API It's marked "uncommitted," but it's in the main page sample, so... * couchbase: Add the basic full-text search API Needs some fixes to the Bucket query call, but that will be fixed here in a bit. * couchbase: Split query API, add SearchQuery + FtsQueryResponse.Meta props Several important fixes. * couchbase: Add FTS facet and sorting capabilities * couchbase: Add more samples, make query callbacks optional The samples force us to recognize that the query callbacks are optional. * couchbase: Add version number and add me Even though this doesn't cover everything in the latest SDK, that's the version I based my changes on.
This patch set adds and fixes a variety of things, such as:
This patch set does not bring these definitions fully in-line with 2.4.5, but it gets them much closer.
Many definitions are written directly from the SDK's source code, because the SDK docs don't cover a lot of uses. Java docs have been used in many places where the Node SDK docs were missing.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
.