Commit Graph

71 Commits

Author SHA1 Message Date
Luca Pasquale
d84bde0679 added myself to list of contributers 2019-04-04 19:17:19 -03:00
Luca Pasquale
b268ca1611 added forwardToReplicas to setSettings 2019-04-04 19:11:11 -03:00
Nathan Shively-Sanders
64fc88601e
Disable npm-naming with dt-header (#34112)
npm-naming is a new rule but the code it runs was already disabled
whenever dt-header was disabled. This change keeps the behaviour the
same.
2019-03-22 09:26:34 -07:00
Chris Moyer
ba8a93471a algoliasearch: Added "clickAnalytics" boolean option (#33816)
* Added "clickAnalytics" boolean option to Algoliasearch.

The clickAnalytics definition allows us to track clicks using
"search-insights". See: https://www.algolia.com/doc/api-reference/api-parameters/clickAnalytics/

* algoliasearch: Added "clickAnalytics" to tests

* algoliasearch: Bumped version number
2019-03-12 14:08:04 -07:00
Antoine Rousseau
5cf2cac315
set languages list 2019-02-25 15:10:07 +01:00
Antoine Rousseau
f13a292ddf
update "lite" version too 2019-02-23 14:40:54 +01:00
Antoine Rousseau
bfbd1ac4fc
add IndexSettings.queryLanguages to @types/algoliasearch 2019-02-21 17:53:22 +01:00
Gabriela Britto
850fdf09e9
Merge pull request #33111 from neryortez/master
[algoliasearch] Search `Response` made generic
2019-02-20 13:51:39 -08:00
Shireesha Bongarala
44dca6f2db Add to IndexSettings, change the format to single quotes and spaces 2019-02-18 19:34:08 +05:30
Shireesha Bongarala
afeecd2abd Add trailing comma 2019-02-18 19:27:58 +05:30
Shireesha Bongarala
b0aeee8dbd Make query param non-mandatory 2019-02-17 20:53:10 +05:30
Shireesha Bongarala
99e6d86abb Add missing semi-colons 2019-02-17 20:43:29 +05:30
Shireesha Bongarala
e8a4ac87c4 Add missing definition for "sortFacetValuesBy" in QueryParameters.
Fixes https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32761
2019-02-17 18:55:48 +05:30
neryortez
cfc6453c4b Search Response made generic
Response made generic to allow better linting on the items of the `Reponse`
2019-02-15 22:13:36 -06:00
Pranav Senthilnathan
99b6ae6117
Merge pull request #32556 from gburgett/algoliasearch-helper
New definitions for algoliasearch-helper
2019-02-13 10:35:22 -08:00
Gordon
ae44053d25
Fix linter and tests 2019-02-07 10:01:38 -06:00
Gordon
c1f89aa111
Extend QueryParameters interface from algoliasearch.js 2019-02-07 09:50:14 -06:00
Haroen Viaene
add287a1d6
algoliasearch: add missing type for removeStopWords
closes https://github.com/algolia/algoliasearch-client-javascript/issues/741
2019-02-07 09:22:57 +01:00
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