@algolia/client-search 5.7.0 → 5.8.1

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 (127) hide show
  1. package/README.md +5 -6
  2. package/dist/browser.d.ts +1668 -1652
  3. package/dist/builds/browser.js +95 -156
  4. package/dist/builds/browser.js.map +1 -1
  5. package/dist/builds/browser.min.js +1 -1
  6. package/dist/builds/browser.min.js.map +1 -1
  7. package/dist/builds/browser.umd.js +2 -2
  8. package/dist/builds/fetch.js +95 -156
  9. package/dist/builds/fetch.js.map +1 -1
  10. package/dist/builds/node.cjs +90 -151
  11. package/dist/builds/node.cjs.map +1 -1
  12. package/dist/builds/node.js +96 -157
  13. package/dist/builds/node.js.map +1 -1
  14. package/dist/fetch.d.ts +1420 -1403
  15. package/dist/node.d.cts +1420 -1403
  16. package/dist/node.d.ts +1420 -1403
  17. package/dist/src/searchClient.cjs +88 -149
  18. package/dist/src/searchClient.cjs.map +1 -1
  19. package/dist/src/searchClient.js +91 -152
  20. package/dist/src/searchClient.js.map +1 -1
  21. package/index.d.ts +0 -1
  22. package/index.js +1 -2
  23. package/model/acl.ts +1 -1
  24. package/model/action.ts +4 -4
  25. package/model/alternativesAsExact.ts +1 -1
  26. package/model/anchoring.ts +2 -2
  27. package/model/apiKey.ts +4 -4
  28. package/model/aroundPrecision.ts +1 -1
  29. package/model/aroundRadius.ts +1 -1
  30. package/model/attributeToUpdate.ts +1 -1
  31. package/model/automaticFacetFilters.ts +1 -1
  32. package/model/banner.ts +13 -0
  33. package/model/bannerImage.ts +12 -0
  34. package/model/bannerImageUrl.ts +8 -0
  35. package/model/bannerLink.ts +8 -0
  36. package/model/baseIndexSettings.ts +15 -15
  37. package/model/baseSearchParams.ts +1 -1
  38. package/model/baseSearchParamsWithoutQuery.ts +8 -8
  39. package/model/baseSearchResponse.ts +2 -2
  40. package/model/batchAssignUserIdsParams.ts +1 -1
  41. package/model/batchDictionaryEntriesParams.ts +1 -1
  42. package/model/batchParams.ts +1 -1
  43. package/model/batchResponse.ts +1 -1
  44. package/model/batchWriteParams.ts +1 -1
  45. package/model/booleanString.ts +1 -1
  46. package/model/browseParams.ts +2 -1
  47. package/model/browseParamsObject.ts +1 -1
  48. package/model/browseResponse.ts +1 -1
  49. package/model/builtInOperationType.ts +4 -4
  50. package/model/builtInOperationValue.ts +1 -1
  51. package/model/clientMethodProps.ts +50 -34
  52. package/model/consequence.ts +2 -2
  53. package/model/consequenceQueryObject.ts +2 -2
  54. package/model/deleteByParams.ts +3 -3
  55. package/model/dictionaryEntry.ts +2 -2
  56. package/model/dictionaryEntryState.ts +1 -1
  57. package/model/dictionaryType.ts +1 -1
  58. package/model/facetFilters.ts +1 -1
  59. package/model/facetOrdering.ts +1 -1
  60. package/model/facets.ts +1 -1
  61. package/model/fetchedIndex.ts +1 -1
  62. package/model/getApiKeyResponse.ts +1 -1
  63. package/model/getLogsResponse.ts +1 -1
  64. package/model/getObjectsParams.ts +1 -1
  65. package/model/getObjectsRequest.ts +1 -1
  66. package/model/getTopUserIdsResponse.ts +1 -1
  67. package/model/hasPendingMappingsResponse.ts +1 -1
  68. package/model/highlightResult.ts +1 -1
  69. package/model/highlightResultOption.ts +1 -1
  70. package/model/hit.ts +2 -2
  71. package/model/ignorePlurals.ts +1 -1
  72. package/model/index.ts +12 -7
  73. package/model/indexSettingsAsSearchParams.ts +15 -15
  74. package/model/listApiKeysResponse.ts +1 -1
  75. package/model/listClustersResponse.ts +1 -1
  76. package/model/listIndicesResponse.ts +1 -1
  77. package/model/listUserIdsResponse.ts +1 -1
  78. package/model/log.ts +1 -1
  79. package/model/logType.ts +1 -1
  80. package/model/matchLevel.ts +1 -1
  81. package/model/mode.ts +1 -1
  82. package/model/multipleBatchResponse.ts +2 -2
  83. package/model/numericFilters.ts +2 -2
  84. package/model/operationIndexParams.ts +1 -1
  85. package/model/operationType.ts +1 -1
  86. package/model/optionalFilters.ts +1 -1
  87. package/model/promote.ts +1 -1
  88. package/model/promoteObjectIDs.ts +1 -1
  89. package/model/queryType.ts +2 -2
  90. package/model/reRankingApplyFilter.ts +1 -1
  91. package/model/redirect.ts +1 -1
  92. package/model/removeStopWords.ts +1 -1
  93. package/model/removeWordsIfNoResults.ts +1 -1
  94. package/model/renderingContent.ts +4 -1
  95. package/model/replaceAllObjectsResponse.ts +1 -1
  96. package/model/rule.ts +2 -2
  97. package/model/scopeType.ts +1 -1
  98. package/model/searchDictionaryEntriesResponse.ts +1 -1
  99. package/model/searchForFacetValuesResponse.ts +1 -1
  100. package/model/searchForFacets.ts +1 -1
  101. package/model/searchForHits.ts +1 -1
  102. package/model/searchHits.ts +1 -1
  103. package/model/searchMethodParams.ts +1 -1
  104. package/model/searchParams.ts +1 -1
  105. package/model/searchQuery.ts +1 -1
  106. package/model/searchResponse.ts +1 -1
  107. package/model/searchResponses.ts +1 -1
  108. package/model/searchResult.ts +1 -1
  109. package/model/searchRulesResponse.ts +1 -1
  110. package/model/searchSynonymsResponse.ts +1 -1
  111. package/model/searchUserIdsParams.ts +1 -1
  112. package/model/searchUserIdsResponse.ts +2 -2
  113. package/model/securedApiKeyRestrictions.ts +1 -1
  114. package/model/semanticSearch.ts +1 -1
  115. package/model/snippetResult.ts +1 -1
  116. package/model/sortRemainingBy.ts +1 -1
  117. package/model/standardEntries.ts +3 -3
  118. package/model/supportedLanguage.ts +1 -1
  119. package/model/synonymHit.ts +3 -3
  120. package/model/synonymType.ts +1 -1
  121. package/model/tagFilters.ts +1 -1
  122. package/model/taskStatus.ts +1 -1
  123. package/model/typoTolerance.ts +2 -2
  124. package/model/userHit.ts +1 -1
  125. package/model/value.ts +2 -2
  126. package/model/widgets.ts +13 -0
  127. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/no-unresolved
2
1
  export * from './dist/node';
package/index.js CHANGED
@@ -1,2 +1 @@
1
- // eslint-disable-next-line import/no-commonjs,import/extensions
2
- module.exports = require('./dist/builds/node.cjs');
1
+ module.exports = require('./dist/builds/node.cjs');
package/model/acl.ts CHANGED
@@ -7,8 +7,8 @@ export type Acl =
7
7
  | 'addObject'
8
8
  | 'analytics'
9
9
  | 'browse'
10
- | 'deleteIndex'
11
10
  | 'deleteObject'
11
+ | 'deleteIndex'
12
12
  | 'editSettings'
13
13
  | 'inference'
14
14
  | 'listIndexes'
package/model/action.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  */
6
6
  export type Action =
7
7
  | 'addObject'
8
- | 'clear'
9
- | 'delete'
10
- | 'deleteObject'
8
+ | 'updateObject'
11
9
  | 'partialUpdateObject'
12
10
  | 'partialUpdateObjectNoCreate'
13
- | 'updateObject';
11
+ | 'deleteObject'
12
+ | 'delete'
13
+ | 'clear';
@@ -1,3 +1,3 @@
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
- export type AlternativesAsExact = 'ignorePlurals' | 'multiWordsSynonym' | 'singleWordSynonym';
3
+ export type AlternativesAsExact = 'ignorePlurals' | 'singleWordSynonym' | 'multiWordsSynonym';
@@ -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
3
  /**
4
- * Which part of the search query the pattern should match: - `startsWith`. The pattern must match the begginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`. The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the query. Empty queries are only allowed as pattern with `anchoring: is`.
4
+ * Which part of the search query the pattern should match: - `startsWith`. The pattern must match the beginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`. The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the query. Empty queries are only allowed as patterns with `anchoring: is`.
5
5
  */
6
- export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
6
+ export type Anchoring = 'is' | 'startsWith' | 'endsWith' | 'contains';
package/model/apiKey.ts CHANGED
@@ -9,7 +9,7 @@ export type ApiKey = {
9
9
  /**
10
10
  * Permissions that determine the type of API requests this key can make. The required ACL is listed in each endpoint\'s reference. For more information, see [access control list](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl).
11
11
  */
12
- acl: Acl[];
12
+ acl: Array<Acl>;
13
13
 
14
14
  /**
15
15
  * Description of an API key to help you identify this API key.
@@ -19,7 +19,7 @@ export type ApiKey = {
19
19
  /**
20
20
  * Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
21
21
  */
22
- indexes?: string[];
22
+ indexes?: Array<string>;
23
23
 
24
24
  /**
25
25
  * Maximum number of results this API key can retrieve in one query. By default, there\'s no limit.
@@ -32,14 +32,14 @@ export type ApiKey = {
32
32
  maxQueriesPerIPPerHour?: number;
33
33
 
34
34
  /**
35
- * Query parameters to add when making API requests with this API key. To restrict this API key to specific IP addresses, add the `restrictSources` parameter. You can only add a single source, but you can provide a range of IP addresses. Creating an API key fails if the request is made from an IP address that\'s outside the restricted range.
35
+ * Query parameters to add when making API requests with this API key. To restrict this API key to specific IP addresses, add the `restrictSources` parameter. You can only add a single source, but you can provide a range of IP addresses. Creating an API key fails if the request is made from an IP address outside the restricted range.
36
36
  */
37
37
  queryParameters?: string;
38
38
 
39
39
  /**
40
40
  * Allowed HTTP referrers for this API key. By default, all referrers are allowed. You can use leading and trailing wildcard characters (`*`): - `https://algolia.com/_*` allows all referrers starting with \"https://algolia.com/\" - `*.algolia.com` allows all referrers ending with \".algolia.com\" - `*algolia.com*` allows all referrers in the domain \"algolia.com\". Like all HTTP headers, referrers can be spoofed. Don\'t rely on them to secure your data. For more information, see [HTTP referrer restrictions](https://www.algolia.com/doc/guides/security/security-best-practices/#http-referrers-restrictions).
41
41
  */
42
- referers?: string[];
42
+ referers?: Array<string>;
43
43
 
44
44
  /**
45
45
  * Duration (in seconds) after which the API key expires. By default, API keys don\'t expire.
@@ -5,4 +5,4 @@ import type { Range } from './range';
5
5
  /**
6
6
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
7
7
  */
8
- export type AroundPrecision = Range[] | number;
8
+ export type AroundPrecision = number | Array<Range>;
@@ -5,4 +5,4 @@ import type { AroundRadiusAll } from './aroundRadiusAll';
5
5
  /**
6
6
  * Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
7
7
  */
8
- export type AroundRadius = AroundRadiusAll | number;
8
+ export type AroundRadius = number | AroundRadiusAll;
@@ -2,4 +2,4 @@
2
2
 
3
3
  import type { BuiltInOperation } from './builtInOperation';
4
4
 
5
- export type AttributeToUpdate = BuiltInOperation | string;
5
+ export type AttributeToUpdate = string | BuiltInOperation;
@@ -5,4 +5,4 @@ import type { AutomaticFacetFilter } from './automaticFacetFilter';
5
5
  /**
6
6
  * Filter to be applied to the search. You can use this to respond to search queries that match a facet value. For example, if users search for \"comedy\", which matches a facet value of the \"genre\" facet, you can filter the results to show the top-ranked comedy movies.
7
7
  */
8
- export type AutomaticFacetFilters = AutomaticFacetFilter[] | string[];
8
+ export type AutomaticFacetFilters = Array<AutomaticFacetFilter> | Array<string>;
@@ -0,0 +1,13 @@
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 { BannerImage } from './bannerImage';
4
+ import type { BannerLink } from './bannerLink';
5
+
6
+ /**
7
+ * a search banner with image and url.
8
+ */
9
+ export type Banner = {
10
+ image?: BannerImage;
11
+
12
+ link?: BannerLink;
13
+ };
@@ -0,0 +1,12 @@
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 { BannerImageUrl } from './bannerImageUrl';
4
+
5
+ /**
6
+ * image of a search banner.
7
+ */
8
+ export type BannerImage = {
9
+ urls?: Array<BannerImageUrl>;
10
+
11
+ title?: string;
12
+ };
@@ -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
+ /**
4
+ * url for a search banner image.
5
+ */
6
+ export type BannerImageUrl = {
7
+ url?: string;
8
+ };
@@ -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
+ /**
4
+ * link for a banner defined in merchandising studio.
5
+ */
6
+ export type BannerLink = {
7
+ url?: string;
8
+ };
@@ -4,14 +4,14 @@ import type { SupportedLanguage } from './supportedLanguage';
4
4
 
5
5
  export type BaseIndexSettings = {
6
6
  /**
7
- * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows using this attribute as a filter, but doesn\'t evalue the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
7
+ * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows the attribute to be used as a filter but doesn\'t evaluate the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
8
8
  */
9
- attributesForFaceting?: string[];
9
+ attributesForFaceting?: Array<string>;
10
10
 
11
11
  /**
12
- * Creates [replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/). Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you\'ll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer by synced with the primary index. **Modifier** - `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don\'t increase the number of records and are optimized for [Relevant sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
12
+ * Creates [replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/). Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you\'ll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. **Modifier** - `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don\'t increase the number of records and are optimized for [Relevant sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
13
13
  */
14
- replicas?: string[];
14
+ replicas?: Array<string>;
15
15
 
16
16
  /**
17
17
  * Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can\'t be guaranteed.
@@ -21,22 +21,22 @@ export type BaseIndexSettings = {
21
21
  /**
22
22
  * Attributes that can\'t be retrieved at query time. This can be useful if you want to use an attribute for ranking or to [restrict access](https://www.algolia.com/doc/guides/security/api-keys/how-to/user-restricted-access-to-data/), but don\'t want to include it in the search results. Attribute names are case-sensitive.
23
23
  */
24
- unretrievableAttributes?: string[];
24
+ unretrievableAttributes?: Array<string>;
25
25
 
26
26
  /**
27
27
  * Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
28
28
  */
29
- disableTypoToleranceOnWords?: string[];
29
+ disableTypoToleranceOnWords?: Array<string>;
30
30
 
31
31
  /**
32
32
  * Attributes, for which you want to support [Japanese transliteration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#japanese-transliteration-and-type-ahead). Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
33
33
  */
34
- attributesToTransliterate?: string[];
34
+ attributesToTransliterate?: Array<string>;
35
35
 
36
36
  /**
37
37
  * Attributes for which to split [camel case](https://wikipedia.org/wiki/Camel_case) words. Attribute names are case-sensitive.
38
38
  */
39
- camelCaseAttributes?: string[];
39
+ camelCaseAttributes?: Array<string>;
40
40
 
41
41
  /**
42
42
  * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`). Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
@@ -46,12 +46,12 @@ export type BaseIndexSettings = {
46
46
  /**
47
47
  * Languages for language-specific processing steps, such as word detection and dictionary settings. **You should always specify an indexing language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
48
48
  */
49
- indexLanguages?: SupportedLanguage[];
49
+ indexLanguages?: Array<SupportedLanguage>;
50
50
 
51
51
  /**
52
52
  * Searchable attributes for which you want to turn off [prefix matching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#adjusting-prefix-search). Attribute names are case-sensitive.
53
53
  */
54
- disablePrefixOnAttributes?: string[];
54
+ disablePrefixOnAttributes?: Array<string>;
55
55
 
56
56
  /**
57
57
  * Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
@@ -59,9 +59,9 @@ export type BaseIndexSettings = {
59
59
  allowCompressionOfIntegerArray?: boolean;
60
60
 
61
61
  /**
62
- * Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters). Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. If you want to turn off filtering for all numeric attributes, specifiy an attribute that doesn\'t exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
62
+ * Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters). Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn\'t exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
63
63
  */
64
- numericAttributesForFiltering?: string[];
64
+ numericAttributesForFiltering?: Array<string>;
65
65
 
66
66
  /**
67
67
  * Controls which separators are indexed. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. By default, separator characters aren\'t indexed. With `separatorsToIndex`, Algolia treats separator characters as separate words. For example, a search for `C#` would report two matches.
@@ -69,9 +69,9 @@ export type BaseIndexSettings = {
69
69
  separatorsToIndex?: string;
70
70
 
71
71
  /**
72
- * Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the [Attribute](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute) ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/). **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without modifier, matches at the beginning of an attribute rank higer than matches at the end.
72
+ * Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the [Attribute](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute) ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/). **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end.
73
73
  */
74
- searchableAttributes?: string[];
74
+ searchableAttributes?: Array<string>;
75
75
 
76
76
  /**
77
77
  * An object with custom data. You can store up to 32kB as custom data.
@@ -81,7 +81,7 @@ export type BaseIndexSettings = {
81
81
  /**
82
82
  * Characters and their normalized replacements. This overrides Algolia\'s default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
83
83
  */
84
- customNormalization?: Record<string, Record<string, string>>;
84
+ customNormalization?: { [key: string]: { [key: string]: string } };
85
85
 
86
86
  /**
87
87
  * Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine `attributeForDistinct` with the `distinct` search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use the `afterDistinct` modifier of the `attributesForFaceting` setting. This applies faceting _after_ deduplication, which will result in accurate facet counts.
@@ -3,4 +3,4 @@
3
3
  import type { BaseSearchParamsWithoutQuery } from './baseSearchParamsWithoutQuery';
4
4
  import type { SearchParamsQuery } from './searchParamsQuery';
5
5
 
6
- export type BaseSearchParams = BaseSearchParamsWithoutQuery & SearchParamsQuery;
6
+ export type BaseSearchParams = SearchParamsQuery & BaseSearchParamsWithoutQuery;
@@ -35,12 +35,12 @@ export type BaseSearchParamsWithoutQuery = {
35
35
  /**
36
36
  * Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
37
37
  */
38
- restrictSearchableAttributes?: string[];
38
+ restrictSearchableAttributes?: Array<string>;
39
39
 
40
40
  /**
41
41
  * Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
42
42
  */
43
- facets?: string[];
43
+ facets?: Array<string>;
44
44
 
45
45
  /**
46
46
  * Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
@@ -63,7 +63,7 @@ export type BaseSearchParamsWithoutQuery = {
63
63
  length?: number;
64
64
 
65
65
  /**
66
- * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
66
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
67
67
  */
68
68
  aroundLatLng?: string;
69
69
 
@@ -84,22 +84,22 @@ export type BaseSearchParamsWithoutQuery = {
84
84
  /**
85
85
  * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
86
86
  */
87
- insideBoundingBox?: number[][];
87
+ insideBoundingBox?: Array<Array<number>>;
88
88
 
89
89
  /**
90
90
  * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
91
91
  */
92
- insidePolygon?: number[][];
92
+ insidePolygon?: Array<Array<number>>;
93
93
 
94
94
  /**
95
95
  * ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
96
96
  */
97
- naturalLanguages?: SupportedLanguage[];
97
+ naturalLanguages?: Array<SupportedLanguage>;
98
98
 
99
99
  /**
100
100
  * Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
101
101
  */
102
- ruleContexts?: string[];
102
+ ruleContexts?: Array<string>;
103
103
 
104
104
  /**
105
105
  * Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
@@ -134,7 +134,7 @@ export type BaseSearchParamsWithoutQuery = {
134
134
  /**
135
135
  * Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).
136
136
  */
137
- analyticsTags?: string[];
137
+ analyticsTags?: Array<string>;
138
138
 
139
139
  /**
140
140
  * Whether to include this search when calculating processing-time percentiles.
@@ -46,12 +46,12 @@ export type BaseSearchResponse = Record<string, any> & {
46
46
  /**
47
47
  * Facet counts.
48
48
  */
49
- facets?: Record<string, Record<string, number>>;
49
+ facets?: { [key: string]: { [key: string]: number } };
50
50
 
51
51
  /**
52
52
  * Statistics for numerical facets.
53
53
  */
54
- facets_stats?: Record<string, FacetStats>;
54
+ facets_stats?: { [key: string]: FacetStats };
55
55
 
56
56
  /**
57
57
  * Index name used for the query.
@@ -12,5 +12,5 @@ export type BatchAssignUserIdsParams = {
12
12
  /**
13
13
  * User IDs to assign.
14
14
  */
15
- users: string[];
15
+ users: Array<string>;
16
16
  };
@@ -14,5 +14,5 @@ export type BatchDictionaryEntriesParams = {
14
14
  /**
15
15
  * List of additions and deletions to your dictionaries.
16
16
  */
17
- requests: BatchDictionaryEntriesRequest[];
17
+ requests: Array<BatchDictionaryEntriesRequest>;
18
18
  };
@@ -6,5 +6,5 @@ import type { MultipleBatchRequest } from './multipleBatchRequest';
6
6
  * Batch parameters.
7
7
  */
8
8
  export type BatchParams = {
9
- requests: MultipleBatchRequest[];
9
+ requests: Array<MultipleBatchRequest>;
10
10
  };
@@ -9,5 +9,5 @@ export type BatchResponse = {
9
9
  /**
10
10
  * Unique record identifiers.
11
11
  */
12
- objectIDs: string[];
12
+ objectIDs: Array<string>;
13
13
  };
@@ -6,5 +6,5 @@ import type { BatchRequest } from './batchRequest';
6
6
  * Batch parameters.
7
7
  */
8
8
  export type BatchWriteParams = {
9
- requests: BatchRequest[];
9
+ requests: Array<BatchRequest>;
10
10
  };
@@ -1,3 +1,3 @@
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
- export type BooleanString = 'false' | 'true';
3
+ export type BooleanString = 'true' | 'false';
@@ -1,6 +1,7 @@
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
3
  import type { BrowseParamsObject } from './browseParamsObject';
4
+
4
5
  import type { SearchParamsString } from './searchParamsString';
5
6
 
6
- export type BrowseParams = BrowseParamsObject | SearchParamsString;
7
+ export type BrowseParams = SearchParamsString | BrowseParamsObject;
@@ -3,4 +3,4 @@
3
3
  import type { Cursor } from './cursor';
4
4
  import type { SearchParamsObject } from './searchParamsObject';
5
5
 
6
- export type BrowseParamsObject = Cursor & SearchParamsObject;
6
+ export type BrowseParamsObject = SearchParamsObject & Cursor;
@@ -5,4 +5,4 @@ import type { BrowsePagination } from './browsePagination';
5
5
  import type { Cursor } from './cursor';
6
6
  import type { SearchHits } from './searchHits';
7
7
 
8
- export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse & BrowsePagination & Cursor & SearchHits<T>;
8
+ export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse & BrowsePagination & SearchHits<T> & Cursor;
@@ -4,10 +4,10 @@
4
4
  * How to change the attribute.
5
5
  */
6
6
  export type BuiltInOperationType =
7
+ | 'Increment'
8
+ | 'Decrement'
7
9
  | 'Add'
10
+ | 'Remove'
8
11
  | 'AddUnique'
9
- | 'Decrement'
10
- | 'Increment'
11
12
  | 'IncrementFrom'
12
- | 'IncrementSet'
13
- | 'Remove';
13
+ | 'IncrementSet';
@@ -1,3 +1,3 @@
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
- export type BuiltInOperationValue = number | string;
3
+ export type BuiltInOperationValue = string | number;
@@ -1,32 +1,48 @@
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 { CreateIterablePromise } from '@algolia/client-common';
3
+ import { Action } from '../model/action';
4
+
5
+ import { ApiKey } from '../model/apiKey';
6
+ import { ApiKeyOperation } from '../model/apiKeyOperation';
7
+ import { AssignUserIdParams } from '../model/assignUserIdParams';
8
+ import { BatchAssignUserIdsParams } from '../model/batchAssignUserIdsParams';
9
+ import { BatchDictionaryEntriesParams } from '../model/batchDictionaryEntriesParams';
10
+
11
+ import { BatchWriteParams } from '../model/batchWriteParams';
12
+ import { BrowseParams } from '../model/browseParams';
13
+
14
+ import { DeleteByParams } from '../model/deleteByParams';
15
+
16
+ import { DictionaryType } from '../model/dictionaryType';
17
+
18
+ import { IndexSettings } from '../model/indexSettings';
19
+
20
+ import { LogType } from '../model/logType';
21
+
22
+ import { OperationIndexParams } from '../model/operationIndexParams';
23
+
24
+ import { Rule } from '../model/rule';
25
+
26
+ import { SearchDictionaryEntriesParams } from '../model/searchDictionaryEntriesParams';
27
+
28
+ import { SearchForFacetValuesRequest } from '../model/searchForFacetValuesRequest';
29
+
30
+ import { SearchParams } from '../model/searchParams';
31
+
32
+ import { SearchRulesParams } from '../model/searchRulesParams';
33
+
34
+ import { SearchSynonymsParams } from '../model/searchSynonymsParams';
35
+
36
+ import { SecuredApiKeyRestrictions } from '../model/securedApiKeyRestrictions';
37
+
38
+ import { Source } from '../model/source';
39
+ import { SynonymHit } from '../model/synonymHit';
4
40
 
5
- import type { Action } from './action';
6
- import type { ApiKey } from './apiKey';
7
- import type { ApiKeyOperation } from './apiKeyOperation';
8
- import type { AssignUserIdParams } from './assignUserIdParams';
9
- import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
10
- import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
11
- import type { BatchWriteParams } from './batchWriteParams';
12
- import type { BrowseParams } from './browseParams';
13
- import type { DeleteByParams } from './deleteByParams';
14
- import type { DictionaryType } from './dictionaryType';
15
- import type { IndexSettings } from './indexSettings';
16
- import type { LogType } from './logType';
17
- import type { OperationIndexParams } from './operationIndexParams';
18
- import type { Rule } from './rule';
19
- import type { SearchDictionaryEntriesParams } from './searchDictionaryEntriesParams';
20
- import type { SearchForFacetValuesRequest } from './searchForFacetValuesRequest';
21
41
  import type { SearchForFacetsOptions } from './searchForFacetsOptions';
22
42
  import type { SearchForHitsOptions } from './searchForHitsOptions';
23
- import type { SearchParams } from './searchParams';
24
- import type { SearchParamsObject } from './searchParamsObject';
25
- import type { SearchRulesParams } from './searchRulesParams';
26
- import type { SearchSynonymsParams } from './searchSynonymsParams';
27
- import type { SecuredApiKeyRestrictions } from './securedApiKeyRestrictions';
28
- import type { Source } from './source';
29
- import type { SynonymHit } from './synonymHit';
43
+ import { SearchParamsObject } from './searchParamsObject';
44
+
45
+ import type { CreateIterablePromise } from '@algolia/client-common';
30
46
 
31
47
  /**
32
48
  * Properties for the `addOrUpdateObject` method.
@@ -41,7 +57,7 @@ export type AddOrUpdateObjectProps = {
41
57
  */
42
58
  objectID: string;
43
59
  /**
44
- * The record, a schemaless object with attributes that are useful in the context of search and discovery.
60
+ * The record. A schemaless object with attributes that are useful in the context of search and discovery.
45
61
  */
46
62
  body: Record<string, unknown>;
47
63
  };
@@ -150,7 +166,7 @@ export type CustomDeleteProps = {
150
166
  /**
151
167
  * Query parameters to apply to the current query.
152
168
  */
153
- parameters?: Record<string, any>;
169
+ parameters?: { [key: string]: any };
154
170
  };
155
171
 
156
172
  /**
@@ -164,7 +180,7 @@ export type CustomGetProps = {
164
180
  /**
165
181
  * Query parameters to apply to the current query.
166
182
  */
167
- parameters?: Record<string, any>;
183
+ parameters?: { [key: string]: any };
168
184
  };
169
185
 
170
186
  /**
@@ -178,7 +194,7 @@ export type CustomPostProps = {
178
194
  /**
179
195
  * Query parameters to apply to the current query.
180
196
  */
181
- parameters?: Record<string, any>;
197
+ parameters?: { [key: string]: any };
182
198
  /**
183
199
  * Parameters to send with the custom request.
184
200
  */
@@ -196,7 +212,7 @@ export type CustomPutProps = {
196
212
  /**
197
213
  * Query parameters to apply to the current query.
198
214
  */
199
- parameters?: Record<string, any>;
215
+ parameters?: { [key: string]: any };
200
216
  /**
201
217
  * Parameters to send with the custom request.
202
218
  */
@@ -351,7 +367,7 @@ export type GetObjectProps = {
351
367
  /**
352
368
  * Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
353
369
  */
354
- attributesToRetrieve?: string[];
370
+ attributesToRetrieve?: Array<string>;
355
371
  };
356
372
 
357
373
  /**
@@ -504,7 +520,7 @@ export type ReplaceSourcesProps = {
504
520
  /**
505
521
  * Allowed sources.
506
522
  */
507
- source: Source[];
523
+ source: Array<Source>;
508
524
  };
509
525
 
510
526
  /**
@@ -526,7 +542,7 @@ export type SaveObjectProps = {
526
542
  */
527
543
  indexName: string;
528
544
  /**
529
- * The record, a schemaless object with attributes that are useful in the context of search and discovery.
545
+ * The record. A schemaless object with attributes that are useful in the context of search and discovery.
530
546
  */
531
547
  body: Record<string, unknown>;
532
548
  };
@@ -558,7 +574,7 @@ export type SaveRulesProps = {
558
574
  * Name of the index on which to perform the operation.
559
575
  */
560
576
  indexName: string;
561
- rules: Rule[];
577
+ rules: Array<Rule>;
562
578
  /**
563
579
  * Whether changes are applied to replica indices.
564
580
  */
@@ -596,7 +612,7 @@ export type SaveSynonymsProps = {
596
612
  * Name of the index on which to perform the operation.
597
613
  */
598
614
  indexName: string;
599
- synonymHit: SynonymHit[];
615
+ synonymHit: Array<SynonymHit>;
600
616
  /**
601
617
  * Whether changes are applied to replica indices.
602
618
  */