Commit Graph
53 Commits
Author SHA1 Message Date
Kai Eichinger 704aeb2bc9 Add keichinger as an author for algoliasearch/lite as well 2018-10-30 09:46:47 +01:00
Kai Eichinger e53d912bba Revert removal of deprecation 2018-10-30 09:46:46 +01:00
Kai Eichinger fbc914d46d Restrict alternativesAsExact to specific values 2018-10-30 09:46:46 +01:00
Kai Eichinger 5a0ef8ba0e Also only allow nested arrays for insidePolygon 2018-10-30 09:46:46 +01:00
Kai Eichinger 66e975affa Only allow nested arrays 2018-10-30 09:46:46 +01:00
Kai Eichinger f9a16faaaa Add keichinger as algoliasearch types contributor 2018-10-30 09:46:46 +01:00
Kai Eichinger 1bfe83a531 Update tests to reflect new data types 2018-10-30 09:46:46 +01:00
Kai Eichinger 3aa3277376 CS 2018-10-30 09:46:45 +01:00
Kai Eichinger f60e6e0d49 [@algoliasearch] Update QueryParameters and Response 2018-10-30 09:45:43 +01:00
Haroen Viaene 9bfbc13d23 chore: TS 2.8 is required!!!!!!! 2018-10-26 15:54:16 +02:00
Haroen Viaene 08260003ab [algoliasearch]: fix typing for browse & browseAll 2018-10-26 13:58:00 +02:00
Christopher Avery 63865da511 added facetingAfterDistinct to QueryParams 2018-09-27 16:38:56 +01:00
Jinesh Shah a7201a4a4b Added missing attributes (#28687)
Please fill in this template.

- [ ] Use a meaningful title for the pull request. Include the name of the package modified.
- [ ] Test the change in your own code. (Compile and run.)
- [ ] Add or edit tests to reflect the change. (Run with `npm test`.)
- [ ] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [ ] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If adding a new definition:
- [ ] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [ ] Increase the version number in the header if appropriate.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.

If removing a declaration:
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
- [ ] Delete the package's directory.
- [ ] Add it to `notNeededPackages.json`.
2018-09-10 14:55:33 -07:00
Claas Brüggemann e113535e35 [@types/algoliasearch] add missing types for facet_stats in algolia search response 2018-08-21 11:07:51 +02:00
Haroen Viaene 4b07dfcca0 Update index.d.ts 2018-06-28 09:28:52 +02:00
Haroen Viaene f8cacb2021 Update index.d.ts 2018-06-28 09:28:21 +02:00
Aurélien Hervé 950a3a946b fix(algoliasearch): remove duplicate, buggy interface
same as a868d3c448 but applied to algoliasearch/lite
2018-05-24 13:51:12 +02:00
Aurélien Hervé a868d3c448 fix(algoliasearch): remove duplicate and buggy AlgoliaResponse interface
the typings would still provide the old `AlgoliaResponse` interface, which is a _almost_ duplicate
interface of `Response`, although it is not called anywhere else. Moreover, `AlgoliaResponse` was
buggy (namely, the `nbPages` attribute was declared as `nbPage`. It is more safe to have only one
interface that works, so I deleted the old `AlgoliaResponse` interface.
2018-05-24 11:18:55 +02:00
Haroen Viaene 4ef613d9f9 fix(algoliasearch): camel case
[placeholders](https://www.algolia.com/doc/api-reference/api-parameters/placeholders/)
[camelCaseAttributes](https://www.algolia.com/doc/api-reference/api-parameters/camelCaseAttributes/)
2018-05-18 14:02:25 +02:00
Haroen Viaene a36bb6891a chore: stricter settings type 2018-05-14 13:48:42 +02:00
Haroen Viaene 44b53c0f1e chore: add more info about tasks 2018-05-14 13:43:08 +02:00
Haroen Viaene 7dcbb8074c feat: add Sam 2018-05-14 13:32:57 +02:00
Haroen Viaene 0d005626d5 fix: correct import 2018-05-14 13:30:37 +02:00
Haroen Viaene a77cf124c2 chore: add tests 2018-05-14 13:27:42 +02:00
Haroen Viaene 0d1ee2470c fix(algolia): correct signature of copyIndex
the scope is optional
2018-05-14 13:21:16 +02:00
Samuel Vaillant d2159cc9cc fix(algoliasearch): add missing createIfNotExists on partial update (#25652)
* fix(algoliasearch): add createIfNotExists in callback version of partialUpdateObject(s)

* fix(algoliasearch): add createIfNotExists in promise version of partialUpdateObject(s)

* test(algoliasearch): add tests for partialUpdateObject(s)
2018-05-09 11:34:07 -07:00
Haroen Viaene da8016d71f feat(algoliasearch): rewrite almost completely (#25486)
* feat(algoliasearch): rewrite almost completely

Changes are mainly:

1. now has a `lite.d.ts` file for `algoliasearch/lite`
2. fix some of the options in settings and queries
3. specify more result types

* chore: update version number

* chore: fix things by copying, pasting, and removing

* test: remove header

* chore: move to folder, it maybe helps
2018-05-04 13:56:50 -07:00
Andy 326cb88142 algoliasearch: Remove unnecessary destructuring (#24929) 2018-04-11 16:18:24 -07:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Jinesh Shah 67a3798e33 added searchableAttributes (#23194)
searchableAttributes was missing in AlgoliaIndexSettings
2018-01-25 08:55:41 -08:00
Jinesh Shah c2dd2e11e5 fixed more mistypings related to arrays vs tuples (#23172) 2018-01-24 11:40:39 -08:00
Jinesh Shah e8779a83a8 Fixed types for array parameters (#23011)
The old version was using a tuple rather than an array parameter for batch adds and updates
2018-01-18 12:41:27 -08:00
Haroen Viaene d1debdf859 fix(algolia): batch has multiple "action"s (#22539)
* fix(algolia): batch has multiple "action"s

* chore: increment version
2018-01-02 12:22:00 -08:00
Haroen Viaene d2c04ced28 Update index.d.ts 2017-12-05 18:27:52 +01:00
Haroen Viaene e6a26c7670 prettier 2017-12-05 09:56:30 +01:00
Haroen Viaene b304933d7a fix typo 2017-12-05 09:53:38 +01:00
Haroen Viaene 396066faec [algolia]: fix signature for responses
1. single response typed
2. multiple response correctly typed
2017-12-05 09:52:11 +01:00
Dmin f3d99a1766 fix(algolia): geo-search parameters type 2017-12-03 23:40:58 +09:00
Cindy Sun 79f0c48e16 Fix Algolia object spread typing 2017-11-16 12:16:44 -08:00
Haroen Viaene c3c4e327e3 no changes 2017-11-03 13:46:28 +01:00
Haroen Viaene cf50d0507e query rules 2017-11-03 13:30:40 +01:00
Haroen Viaene 17f7b08f2d extra headers 2017-11-03 11:16:54 +01:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Haroen Viaene 3c804e4cbe feat(algolia): update definitions (#20627)
- ran prettier on the files
- slaves -> replicas
- SFFV
- userkey -> apikey
- options -> params
- deleteBy
2017-10-23 13:08:32 -07:00
Aurélien 112130d22b fix(algoliasearch): generateSecuredApiKey returns a string (not void) (#20423)
* fix(algoliasearch): generateSecuredApiKey returns a string (not void)

* fix(algoliasearch): use object[] instead of [{}] in saveObjects method inputs
2017-10-16 11:19:24 -07:00
Haroen Viaene 1031351010 algoliasearch: add string enums for exact values allowed (#20351)
* algolia: add string enums

instead of just `string`, list the allowed values, see the api doc at https://www.algolia.com/doc/rest-api/search/#batch-write-operations-multiple-indices etc.

* add name

* Update index.d.ts
2017-10-09 14:36:05 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Maxime a6348d997f Fix typo (#18594) 2017-08-14 13:25:45 -07:00
Fried-Chicken b674889b5b Added test for AlgoliaResponse typing 2017-05-31 15:11:57 +01:00