@algolia/client-search 5.0.0-beta.8 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/builds/browser.d.ts +3 -3
  2. package/dist/builds/node.d.ts +3 -3
  3. package/dist/client-search.cjs +9 -4
  4. package/dist/client-search.esm.browser.js +9 -4
  5. package/dist/client-search.esm.node.js +9 -4
  6. package/dist/client-search.umd.js +2 -2
  7. package/dist/model/aroundPrecision.d.ts +2 -2
  8. package/dist/model/aroundPrecision.d.ts.map +1 -1
  9. package/dist/model/baseIndexSettings.d.ts +1 -1
  10. package/dist/model/baseSearchResponse.d.ts +0 -16
  11. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  12. package/dist/model/browsePagination.d.ts +19 -0
  13. package/dist/model/browsePagination.d.ts.map +1 -0
  14. package/dist/model/browseResponse.d.ts +2 -1
  15. package/dist/model/browseResponse.d.ts.map +1 -1
  16. package/dist/model/builtInOperation.d.ts +2 -4
  17. package/dist/model/builtInOperation.d.ts.map +1 -1
  18. package/dist/model/builtInOperationValue.d.ts +2 -0
  19. package/dist/model/builtInOperationValue.d.ts.map +1 -0
  20. package/dist/model/dictionaryEntry.d.ts +3 -1
  21. package/dist/model/dictionaryEntry.d.ts.map +1 -1
  22. package/dist/model/dictionaryEntryType.d.ts +5 -0
  23. package/dist/model/dictionaryEntryType.d.ts.map +1 -0
  24. package/dist/model/highlightResult.d.ts +3 -1
  25. package/dist/model/highlightResult.d.ts.map +1 -1
  26. package/dist/model/index.d.ts +8 -2
  27. package/dist/model/index.d.ts.map +1 -1
  28. package/dist/model/indexSettingsAsSearchParams.d.ts +1 -1
  29. package/dist/model/multipleBatchRequest.d.ts +1 -1
  30. package/dist/model/multipleBatchRequest.d.ts.map +1 -1
  31. package/dist/model/{aroundPrecisionFromValueInner.d.ts → range.d.ts} +2 -2
  32. package/dist/model/range.d.ts.map +1 -0
  33. package/dist/model/redirectRuleIndexData.d.ts +7 -0
  34. package/dist/model/redirectRuleIndexData.d.ts.map +1 -0
  35. package/dist/model/redirectRuleIndexMetadata.d.ts +2 -2
  36. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  37. package/dist/model/searchPagination.d.ts +19 -0
  38. package/dist/model/searchPagination.d.ts.map +1 -0
  39. package/dist/model/searchParamsString.d.ts +3 -0
  40. package/dist/model/searchParamsString.d.ts.map +1 -1
  41. package/dist/model/searchResponse.d.ts +2 -1
  42. package/dist/model/searchResponse.d.ts.map +1 -1
  43. package/dist/model/settingsResponse.d.ts +4 -0
  44. package/dist/model/settingsResponse.d.ts.map +1 -0
  45. package/dist/model/snippetResult.d.ts +3 -1
  46. package/dist/model/snippetResult.d.ts.map +1 -1
  47. package/dist/model/withPrimary.d.ts +7 -0
  48. package/dist/model/withPrimary.d.ts.map +1 -0
  49. package/dist/src/searchClient.d.ts +7 -7
  50. package/dist/src/searchClient.d.ts.map +1 -1
  51. package/model/aroundPrecision.ts +2 -2
  52. package/model/baseIndexSettings.ts +1 -1
  53. package/model/baseSearchResponse.ts +0 -20
  54. package/model/browsePagination.ts +23 -0
  55. package/model/browseResponse.ts +2 -0
  56. package/model/builtInOperation.ts +2 -4
  57. package/model/builtInOperationValue.ts +3 -0
  58. package/model/dictionaryEntry.ts +4 -1
  59. package/model/dictionaryEntryType.ts +6 -0
  60. package/model/highlightResult.ts +2 -1
  61. package/model/index.ts +8 -2
  62. package/model/indexSettingsAsSearchParams.ts +1 -1
  63. package/model/multipleBatchRequest.ts +1 -1
  64. package/model/{aroundPrecisionFromValueInner.ts → range.ts} +1 -1
  65. package/model/{redirectRuleIndexMetadataData.ts → redirectRuleIndexData.ts} +1 -1
  66. package/model/redirectRuleIndexMetadata.ts +2 -2
  67. package/model/searchPagination.ts +23 -0
  68. package/model/searchParamsString.ts +3 -0
  69. package/model/searchResponse.ts +3 -1
  70. package/model/settingsResponse.ts +6 -0
  71. package/model/snippetResult.ts +2 -1
  72. package/model/withPrimary.ts +8 -0
  73. package/package.json +7 -7
  74. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  75. package/dist/model/redirectRuleIndexMetadataData.d.ts +0 -7
  76. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Range object with lower and upper values in meters to define custom ranges.
5
5
  */
6
- export type AroundPrecisionFromValueInner = {
6
+ export type Range = {
7
7
  /**
8
8
  * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
9
9
  */
@@ -3,6 +3,6 @@
3
3
  /**
4
4
  * Redirect rule data.
5
5
  */
6
- export type RedirectRuleIndexMetadataData = {
6
+ export type RedirectRuleIndexData = {
7
7
  ruleObjectID: string;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
3
+ import type { RedirectRuleIndexData } from './redirectRuleIndexData';
4
4
 
5
5
  export type RedirectRuleIndexMetadata = {
6
6
  /**
@@ -23,5 +23,5 @@ export type RedirectRuleIndexMetadata = {
23
23
  */
24
24
  succeed: boolean;
25
25
 
26
- data: RedirectRuleIndexMetadataData;
26
+ data: RedirectRuleIndexData;
27
27
  };
@@ -0,0 +1,23 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type SearchPagination = {
4
+ /**
5
+ * Page of search results to retrieve.
6
+ */
7
+ page: number;
8
+
9
+ /**
10
+ * Number of results (hits).
11
+ */
12
+ nbHits: number;
13
+
14
+ /**
15
+ * Number of pages of results.
16
+ */
17
+ nbPages: number;
18
+
19
+ /**
20
+ * Number of hits per page.
21
+ */
22
+ hitsPerPage: number;
23
+ };
@@ -1,5 +1,8 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * Search parameters as query string.
5
+ */
3
6
  export type SearchParamsString = {
4
7
  /**
5
8
  * Search parameters as a URL-encoded query string.
@@ -2,6 +2,8 @@
2
2
 
3
3
  import type { BaseSearchResponse } from './baseSearchResponse';
4
4
  import type { SearchHits } from './searchHits';
5
+ import type { SearchPagination } from './searchPagination';
5
6
 
6
7
  export type SearchResponse<T = Record<string, any>> = BaseSearchResponse &
7
- SearchHits<T>;
8
+ SearchHits<T> &
9
+ SearchPagination;
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { IndexSettings } from './indexSettings';
4
+ import type { WithPrimary } from './withPrimary';
5
+
6
+ export type SettingsResponse = IndexSettings & WithPrimary;
@@ -5,4 +5,5 @@ import type { SnippetResultOption } from './snippetResultOption';
5
5
  export type SnippetResult =
6
6
  | Record<string, SnippetResultOption>
7
7
  | SnippetResultOption
8
- | SnippetResultOption[];
8
+ | SnippetResultOption[]
9
+ | { [key: string]: SnippetResult };
@@ -0,0 +1,8 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ export type WithPrimary = {
4
+ /**
5
+ * Replica indices only: the name of the primary index for this replica.
6
+ */
7
+ primary?: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-search",
3
- "version": "5.0.0-beta.8",
3
+ "version": "5.0.0",
4
4
  "description": "JavaScript client for client-search",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,14 +42,14 @@
42
42
  "clean": "rm -rf ./dist || true"
43
43
  },
44
44
  "dependencies": {
45
- "@algolia/client-common": "5.0.0-beta.9",
46
- "@algolia/requester-browser-xhr": "5.0.0-beta.9",
47
- "@algolia/requester-node-http": "5.0.0-beta.9"
45
+ "@algolia/client-common": "5.0.0",
46
+ "@algolia/requester-browser-xhr": "5.0.0",
47
+ "@algolia/requester-node-http": "5.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "20.14.9",
51
- "rollup": "4.18.0",
52
- "typescript": "5.5.2"
50
+ "@types/node": "22.2.0",
51
+ "rollup": "4.20.0",
52
+ "typescript": "5.5.4"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">= 14.0.0"
@@ -1 +0,0 @@
1
- {"version":3,"file":"aroundPrecisionFromValueInner.d.ts","sourceRoot":"","sources":["../../model/aroundPrecisionFromValueInner.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Redirect rule data.
3
- */
4
- export type RedirectRuleIndexMetadataData = {
5
- ruleObjectID: string;
6
- };
7
- //# sourceMappingURL=redirectRuleIndexMetadataData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redirectRuleIndexMetadataData.d.ts","sourceRoot":"","sources":["../../model/redirectRuleIndexMetadataData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}