@algolia/client-search 5.0.0-alpha.99 → 5.0.0-beta.10
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.
- package/LICENSE +21 -0
- package/dist/builds/browser.d.ts +91 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +109 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-search.cjs +544 -219
- package/dist/client-search.esm.browser.js +494 -228
- package/dist/client-search.esm.node.js +545 -220
- package/dist/client-search.umd.js +2 -2
- package/dist/model/acl.d.ts +1 -1
- package/dist/model/action.d.ts +1 -1
- package/dist/model/addApiKeyResponse.d.ts +1 -1
- package/dist/model/anchoring.d.ts +1 -1
- package/dist/model/apiKey.d.ts +8 -8
- package/dist/model/apiKeyOperation.d.ts +2 -0
- package/dist/model/apiKeyOperation.d.ts.map +1 -0
- package/dist/model/aroundPrecision.d.ts +1 -1
- package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
- package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
- package/dist/model/aroundRadius.d.ts +1 -1
- package/dist/model/aroundRadiusAll.d.ts +3 -0
- package/dist/model/aroundRadiusAll.d.ts.map +1 -1
- package/dist/model/automaticFacetFilter.d.ts +4 -4
- package/dist/model/automaticFacetFilters.d.ts +1 -1
- package/dist/model/baseGetApiKeyResponse.d.ts +1 -1
- package/dist/model/baseIndexSettings.d.ts +23 -18
- package/dist/model/baseIndexSettings.d.ts.map +1 -1
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
- package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
- package/dist/model/baseSearchResponse.d.ts +8 -20
- package/dist/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
- package/dist/model/batchResponse.d.ts +2 -2
- package/dist/model/browsePagination.d.ts +19 -0
- package/dist/model/browsePagination.d.ts.map +1 -0
- package/dist/model/browseResponse.d.ts +2 -1
- package/dist/model/browseResponse.d.ts.map +1 -1
- package/dist/model/builtInOperation.d.ts +2 -2
- package/dist/model/builtInOperationType.d.ts +1 -1
- package/dist/model/clientMethodProps.d.ts +137 -70
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/condition.d.ts +7 -3
- package/dist/model/condition.d.ts.map +1 -1
- package/dist/model/consequence.d.ts +5 -5
- package/dist/model/consequenceHide.d.ts +2 -2
- package/dist/model/consequenceQuery.d.ts +1 -1
- package/dist/model/consequenceQueryObject.d.ts +2 -2
- package/dist/model/createdAtResponse.d.ts +1 -1
- package/dist/model/cursor.d.ts +1 -1
- package/dist/model/deleteApiKeyResponse.d.ts +1 -1
- package/dist/model/deleteByParams.d.ts +4 -4
- package/dist/model/deleteSourceResponse.d.ts +1 -1
- package/dist/model/deletedAtResponse.d.ts +2 -2
- package/dist/model/dictionaryEntry.d.ts +6 -8
- package/dist/model/dictionaryEntry.d.ts.map +1 -1
- package/dist/model/dictionaryEntryState.d.ts +1 -1
- package/dist/model/dictionaryLanguage.d.ts +2 -2
- package/dist/model/dictionarySettingsParams.d.ts +1 -1
- package/dist/model/distinct.d.ts +1 -1
- package/dist/model/edit.d.ts +1 -1
- package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
- package/dist/model/facetFilters.d.ts +2 -3
- package/dist/model/facetFilters.d.ts.map +1 -1
- package/dist/model/facetHits.d.ts +2 -2
- package/dist/model/facetOrdering.d.ts +2 -2
- package/dist/model/facets.d.ts +2 -2
- package/dist/model/fetchedIndex.d.ts +5 -1
- package/dist/model/fetchedIndex.d.ts.map +1 -1
- package/dist/model/getObjectsRequest.d.ts +3 -3
- package/dist/model/getObjectsResponse.d.ts +1 -1
- package/dist/model/hasPendingMappingsResponse.d.ts +1 -1
- package/dist/model/highlightResult.d.ts +1 -1
- package/dist/model/highlightResult.d.ts.map +1 -1
- package/dist/model/highlightResultOption.d.ts +3 -3
- package/dist/model/hit.d.ts +4 -4
- package/dist/model/ignorePlurals.d.ts +3 -2
- package/dist/model/ignorePlurals.d.ts.map +1 -1
- package/dist/model/index.d.ts +8 -1
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/indexSettings.d.ts +1 -1
- package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
- package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
- package/dist/model/log.d.ts +11 -11
- package/dist/model/logQuery.d.ts +1 -1
- package/dist/model/matchLevel.d.ts +1 -1
- package/dist/model/mode.d.ts +1 -1
- package/dist/model/multipleBatchRequest.d.ts +1 -1
- package/dist/model/multipleBatchResponse.d.ts +2 -2
- package/dist/model/numericFilters.d.ts +2 -3
- package/dist/model/numericFilters.d.ts.map +1 -1
- package/dist/model/operationIndexParams.d.ts +2 -2
- package/dist/model/operationType.d.ts +1 -1
- package/dist/model/optionalFilters.d.ts +2 -3
- package/dist/model/optionalFilters.d.ts.map +1 -1
- package/dist/model/params.d.ts +1 -1
- package/dist/model/promoteObjectID.d.ts +2 -2
- package/dist/model/promoteObjectIDs.d.ts +2 -2
- package/dist/model/queryType.d.ts +1 -1
- package/dist/model/rankingInfo.d.ts +13 -10
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/reRankingApplyFilter.d.ts +2 -3
- package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
- package/dist/model/redirect.d.ts +1 -1
- package/dist/model/redirectURL.d.ts +7 -0
- package/dist/model/redirectURL.d.ts.map +1 -0
- package/dist/model/removeStopWords.d.ts +3 -2
- package/dist/model/removeStopWords.d.ts.map +1 -1
- package/dist/model/removeUserIdResponse.d.ts +1 -1
- package/dist/model/removeWordsIfNoResults.d.ts +1 -1
- package/dist/model/renderingContent.d.ts +3 -1
- package/dist/model/renderingContent.d.ts.map +1 -1
- package/dist/model/replaceAllObjectsResponse.d.ts +11 -0
- package/dist/model/replaceAllObjectsResponse.d.ts.map +1 -0
- package/dist/model/replaceSourceResponse.d.ts +1 -1
- package/dist/model/rule.d.ts +5 -5
- package/dist/model/saveObjectResponse.d.ts +3 -3
- package/dist/model/saveSynonymResponse.d.ts +2 -2
- package/dist/model/searchDictionaryEntriesParams.d.ts +5 -7
- package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
- package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
- package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
- package/dist/model/searchForFacetValuesRequest.d.ts +1 -1
- package/dist/model/searchForFacetValuesResponse.d.ts +4 -1
- package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
- package/dist/model/searchForFacetsOptions.d.ts +2 -2
- package/dist/model/searchForHitsOptions.d.ts +1 -1
- package/dist/model/searchHits.d.ts +6 -3
- package/dist/model/searchHits.d.ts.map +1 -1
- package/dist/model/searchPagination.d.ts +19 -0
- package/dist/model/searchPagination.d.ts.map +1 -0
- package/dist/model/searchParamsObject.d.ts +3 -0
- package/dist/model/searchParamsObject.d.ts.map +1 -1
- package/dist/model/searchParamsQuery.d.ts +1 -1
- package/dist/model/searchResponse.d.ts +2 -1
- package/dist/model/searchResponse.d.ts.map +1 -1
- package/dist/model/searchRulesParams.d.ts +4 -8
- package/dist/model/searchRulesParams.d.ts.map +1 -1
- package/dist/model/searchRulesResponse.d.ts +2 -2
- package/dist/model/searchStrategy.d.ts +1 -1
- package/dist/model/searchSynonymsParams.d.ts +2 -2
- package/dist/model/searchSynonymsResponse.d.ts +2 -2
- package/dist/model/searchUserIdsParams.d.ts +1 -1
- package/dist/model/searchUserIdsResponse.d.ts +3 -3
- package/dist/model/securedApiKeyRestrictions.d.ts +25 -0
- package/dist/model/securedApiKeyRestrictions.d.ts.map +1 -0
- package/dist/model/semanticSearch.d.ts +2 -2
- package/dist/model/snippetResult.d.ts +1 -1
- package/dist/model/snippetResult.d.ts.map +1 -1
- package/dist/model/snippetResultOption.d.ts +2 -2
- package/dist/model/sortRemainingBy.d.ts +1 -1
- package/dist/model/supportedLanguage.d.ts +5 -0
- package/dist/model/supportedLanguage.d.ts.map +1 -0
- package/dist/model/tagFilters.d.ts +2 -3
- package/dist/model/tagFilters.d.ts.map +1 -1
- package/dist/model/taskStatus.d.ts +1 -1
- package/dist/model/timeRange.d.ts +2 -2
- package/dist/model/typoTolerance.d.ts +1 -1
- package/dist/model/typoToleranceEnum.d.ts +3 -0
- package/dist/model/typoToleranceEnum.d.ts.map +1 -1
- package/dist/model/updateApiKeyResponse.d.ts +1 -1
- package/dist/model/updatedAtResponse.d.ts +2 -2
- package/dist/model/updatedAtWithObjectIdResponse.d.ts +3 -3
- package/dist/model/updatedRuleResponse.d.ts +3 -3
- package/dist/model/userHit.d.ts +1 -1
- package/dist/model/userId.d.ts +1 -1
- package/dist/model/value.d.ts +5 -1
- package/dist/model/value.d.ts.map +1 -1
- package/dist/src/searchClient.d.ts +385 -208
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/acl.ts +1 -1
- package/model/action.ts +1 -1
- package/model/addApiKeyResponse.ts +1 -1
- package/model/anchoring.ts +1 -1
- package/model/apiKey.ts +8 -8
- package/model/{mixedSearchFilters.ts → apiKeyOperation.ts} +1 -1
- package/model/aroundPrecision.ts +1 -1
- package/model/aroundPrecisionFromValueInner.ts +9 -0
- package/model/aroundRadius.ts +1 -1
- package/model/aroundRadiusAll.ts +3 -0
- package/model/automaticFacetFilter.ts +4 -4
- package/model/automaticFacetFilters.ts +1 -1
- package/model/baseGetApiKeyResponse.ts +1 -1
- package/model/baseIndexSettings.ts +25 -18
- package/model/baseSearchParamsWithoutQuery.ts +26 -30
- package/model/baseSearchResponse.ts +9 -24
- package/model/batchDictionaryEntriesParams.ts +3 -3
- package/model/batchResponse.ts +2 -2
- package/model/browsePagination.ts +23 -0
- package/model/browseResponse.ts +2 -0
- package/model/builtInOperation.ts +2 -2
- package/model/builtInOperationType.ts +1 -1
- package/model/clientMethodProps.ts +156 -70
- package/model/condition.ts +8 -3
- package/model/consequence.ts +5 -5
- package/model/consequenceHide.ts +2 -2
- package/model/consequenceQuery.ts +1 -1
- package/model/consequenceQueryObject.ts +2 -2
- package/model/createdAtResponse.ts +1 -1
- package/model/cursor.ts +1 -1
- package/model/deleteApiKeyResponse.ts +1 -1
- package/model/deleteByParams.ts +4 -4
- package/model/deleteSourceResponse.ts +1 -1
- package/model/deletedAtResponse.ts +2 -2
- package/model/dictionaryEntry.ts +6 -8
- package/model/dictionaryEntryState.ts +1 -1
- package/model/dictionaryLanguage.ts +2 -2
- package/model/dictionarySettingsParams.ts +1 -1
- package/model/distinct.ts +1 -1
- package/model/edit.ts +1 -1
- package/model/exactOnSingleWordQuery.ts +1 -1
- package/model/facetFilters.ts +2 -4
- package/model/facetHits.ts +2 -2
- package/model/facetOrdering.ts +2 -2
- package/model/facets.ts +2 -2
- package/model/fetchedIndex.ts +6 -1
- package/model/getObjectsRequest.ts +3 -3
- package/model/getObjectsResponse.ts +1 -1
- package/model/hasPendingMappingsResponse.ts +1 -1
- package/model/highlightResult.ts +1 -0
- package/model/highlightResultOption.ts +3 -3
- package/model/hit.ts +4 -4
- package/model/ignorePlurals.ts +4 -2
- package/model/index.ts +8 -1
- package/model/indexSettings.ts +1 -1
- package/model/indexSettingsAsSearchParams.ts +32 -36
- package/model/log.ts +11 -11
- package/model/logQuery.ts +1 -1
- package/model/matchLevel.ts +1 -1
- package/model/mode.ts +1 -1
- package/model/multipleBatchRequest.ts +1 -1
- package/model/multipleBatchResponse.ts +2 -2
- package/model/numericFilters.ts +2 -4
- package/model/operationIndexParams.ts +2 -2
- package/model/operationType.ts +1 -1
- package/model/optionalFilters.ts +2 -4
- package/model/params.ts +1 -1
- package/model/promoteObjectID.ts +2 -2
- package/model/promoteObjectIDs.ts +2 -2
- package/model/queryType.ts +1 -1
- package/model/rankingInfo.ts +13 -10
- package/model/reRankingApplyFilter.ts +2 -4
- package/model/redirect.ts +1 -1
- package/model/redirectURL.ts +8 -0
- package/model/removeStopWords.ts +4 -2
- package/model/removeUserIdResponse.ts +1 -1
- package/model/removeWordsIfNoResults.ts +1 -1
- package/model/renderingContent.ts +4 -1
- package/model/replaceAllObjectsResponse.ts +15 -0
- package/model/replaceSourceResponse.ts +1 -1
- package/model/rule.ts +5 -5
- package/model/saveObjectResponse.ts +3 -3
- package/model/saveSynonymResponse.ts +2 -2
- package/model/searchDictionaryEntriesParams.ts +6 -7
- package/model/searchDictionaryEntriesResponse.ts +25 -0
- package/model/searchForFacetValuesRequest.ts +1 -1
- package/model/searchForFacetValuesResponse.ts +4 -1
- package/model/searchForFacetsOptions.ts +2 -2
- package/model/searchForHitsOptions.ts +1 -1
- package/model/searchHits.ts +6 -3
- package/model/searchPagination.ts +23 -0
- package/model/searchParamsObject.ts +3 -0
- package/model/searchParamsQuery.ts +1 -1
- package/model/searchResponse.ts +3 -1
- package/model/searchRulesParams.ts +4 -9
- package/model/searchRulesResponse.ts +2 -2
- package/model/searchStrategy.ts +1 -1
- package/model/searchSynonymsParams.ts +2 -2
- package/model/searchSynonymsResponse.ts +2 -2
- package/model/searchUserIdsParams.ts +1 -1
- package/model/searchUserIdsResponse.ts +3 -3
- package/model/securedApiKeyRestrictions.ts +32 -0
- package/model/semanticSearch.ts +2 -2
- package/model/snippetResult.ts +2 -1
- package/model/snippetResultOption.ts +2 -2
- package/model/sortRemainingBy.ts +1 -1
- package/model/supportedLanguage.ts +74 -0
- package/model/tagFilters.ts +2 -4
- package/model/taskStatus.ts +1 -1
- package/model/timeRange.ts +2 -2
- package/model/typoTolerance.ts +1 -1
- package/model/typoToleranceEnum.ts +3 -0
- package/model/updateApiKeyResponse.ts +1 -1
- package/model/updatedAtResponse.ts +2 -2
- package/model/updatedAtWithObjectIdResponse.ts +3 -3
- package/model/updatedRuleResponse.ts +3 -3
- package/model/userHit.ts +1 -1
- package/model/userId.ts +1 -1
- package/model/value.ts +6 -1
- package/package.json +11 -8
- package/dist/model/mixedSearchFilters.d.ts +0 -2
- package/dist/model/mixedSearchFilters.d.ts.map +0 -1
package/model/consequenceHide.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
*
|
|
4
|
+
* Object ID of the record to hide.
|
|
5
5
|
*/
|
|
6
6
|
export type ConsequenceHide = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique
|
|
8
|
+
* Unique record identifier.
|
|
9
9
|
*/
|
|
10
10
|
objectID: string;
|
|
11
11
|
};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
import type { ConsequenceQueryObject } from './consequenceQueryObject';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
|
|
7
7
|
*/
|
|
8
8
|
export type ConsequenceQuery = ConsequenceQueryObject | string;
|
|
@@ -4,12 +4,12 @@ import type { Edit } from './edit';
|
|
|
4
4
|
|
|
5
5
|
export type ConsequenceQueryObject = {
|
|
6
6
|
/**
|
|
7
|
-
* Words to remove.
|
|
7
|
+
* Words to remove from the search query.
|
|
8
8
|
*/
|
|
9
9
|
remove?: string[];
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Changes to make to the search query.
|
|
13
13
|
*/
|
|
14
14
|
edits?: Edit[];
|
|
15
15
|
};
|
package/model/cursor.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export type Cursor = {
|
|
4
4
|
/**
|
|
5
|
-
* Cursor
|
|
5
|
+
* Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
|
|
6
6
|
*/
|
|
7
7
|
cursor?: string;
|
|
8
8
|
};
|
package/model/deleteByParams.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type DeleteByParams = {
|
|
|
9
9
|
facetFilters?: FacetFilters;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* [
|
|
12
|
+
* Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
|
|
13
13
|
*/
|
|
14
14
|
filters?: string;
|
|
15
15
|
|
|
@@ -18,19 +18,19 @@ export type DeleteByParams = {
|
|
|
18
18
|
tagFilters?: TagFilters;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* 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`.
|
|
22
22
|
*/
|
|
23
23
|
aroundLatLng?: string;
|
|
24
24
|
|
|
25
25
|
aroundRadius?: AroundRadius;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* 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).
|
|
29
29
|
*/
|
|
30
30
|
insideBoundingBox?: number[][];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* 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`.
|
|
34
34
|
*/
|
|
35
35
|
insidePolygon?: number[][];
|
|
36
36
|
};
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type DeletedAtResponse = {
|
|
7
7
|
/**
|
|
8
|
-
* Unique identifier of a task.
|
|
8
|
+
* Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
|
|
9
9
|
*/
|
|
10
10
|
taskID: number;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Date and time when the object was deleted, in RFC 3339 format.
|
|
14
14
|
*/
|
|
15
15
|
deletedAt: string;
|
|
16
16
|
};
|
package/model/dictionaryEntry.ts
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
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 { DictionaryEntryState } from './dictionaryEntryState';
|
|
4
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Dictionary entry.
|
|
7
8
|
*/
|
|
8
9
|
export type DictionaryEntry = Record<string, any> & {
|
|
9
10
|
/**
|
|
10
|
-
* Unique identifier for
|
|
11
|
+
* Unique identifier for the dictionary entry.
|
|
11
12
|
*/
|
|
12
13
|
objectID: string;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
* [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
|
|
16
|
-
*/
|
|
17
|
-
language: string;
|
|
15
|
+
language: SupportedLanguage;
|
|
18
16
|
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
18
|
+
* Matching dictionary word for `stopwords` and `compounds` dictionaries.
|
|
21
19
|
*/
|
|
22
20
|
word?: string;
|
|
23
21
|
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
23
|
+
* Matching words in the `plurals` dictionary including declensions.
|
|
26
24
|
*/
|
|
27
25
|
words?: string[];
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
28
|
+
* Invividual components of a compound word in the `compounds` dictionary.
|
|
31
29
|
*/
|
|
32
30
|
decomposition?: string[];
|
|
33
31
|
|
|
@@ -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
|
-
*
|
|
4
|
+
* Whether a dictionary entry is active.
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryEntryState = 'disabled' | 'enabled';
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
*
|
|
4
|
+
* Dictionary type. If `null`, this dictionary type isn\'t supported for the language.
|
|
5
5
|
*/
|
|
6
6
|
export type DictionaryLanguage = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of custom dictionary entries.
|
|
9
9
|
*/
|
|
10
10
|
nbCustomEntries?: number;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { StandardEntries } from './standardEntries';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Turn on or off the built-in Algolia stop words for a specific language.
|
|
7
7
|
*/
|
|
8
8
|
export type DictionarySettingsParams = {
|
|
9
9
|
disableStandardEntries: StandardEntries;
|
package/model/distinct.ts
CHANGED
|
@@ -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
|
-
*
|
|
4
|
+
* Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
|
|
5
5
|
*/
|
|
6
6
|
export type Distinct = boolean | number;
|
package/model/edit.ts
CHANGED
|
@@ -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
|
-
* Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the query
|
|
4
|
+
* Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
|
|
5
5
|
*/
|
|
6
6
|
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
|
package/model/facetFilters.ts
CHANGED
|
@@ -1,8 +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 { MixedSearchFilters } from './mixedSearchFilters';
|
|
4
|
-
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
|
|
7
5
|
*/
|
|
8
|
-
export type FacetFilters =
|
|
6
|
+
export type FacetFilters = FacetFilters[] | string;
|
package/model/facetHits.ts
CHANGED
|
@@ -7,12 +7,12 @@ export type FacetHits = {
|
|
|
7
7
|
value: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Highlighted attribute value, including HTML tags.
|
|
11
11
|
*/
|
|
12
12
|
highlighted: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Number of records
|
|
15
|
+
* Number of records with this facet value. [The count may be approximated](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
|
|
16
16
|
*/
|
|
17
17
|
count: number;
|
|
18
18
|
};
|
package/model/facetOrdering.ts
CHANGED
|
@@ -4,13 +4,13 @@ import type { Facets } from './facets';
|
|
|
4
4
|
import type { Value } from './value';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Order of facet names and facet values in your UI.
|
|
8
8
|
*/
|
|
9
9
|
export type FacetOrdering = {
|
|
10
10
|
facets?: Facets;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Order of facet values. One object for each facet.
|
|
14
14
|
*/
|
|
15
15
|
values?: Record<string, Value>;
|
|
16
16
|
};
|
package/model/facets.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
*
|
|
4
|
+
* Order of facet names.
|
|
5
5
|
*/
|
|
6
6
|
export type Facets = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
9
9
|
*/
|
|
10
10
|
order?: string[];
|
|
11
11
|
};
|
package/model/fetchedIndex.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type FetchedIndex = {
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Date and time when the object was updated, in RFC 3339 format.
|
|
16
16
|
*/
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
|
|
@@ -55,4 +55,9 @@ export type FetchedIndex = {
|
|
|
55
55
|
* Only present if the index is a primary index with replicas. Contains the names of all linked replicas.
|
|
56
56
|
*/
|
|
57
57
|
replicas?: string[];
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Only present if the index is a [virtual replica](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-an-index-alphabetically/#virtual-replicas).
|
|
61
|
+
*/
|
|
62
|
+
virtual?: boolean;
|
|
58
63
|
};
|
|
@@ -1,7 +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
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Request body for retrieving records.
|
|
5
5
|
*/
|
|
6
6
|
export type GetObjectsRequest = {
|
|
7
7
|
/**
|
|
@@ -10,12 +10,12 @@ export type GetObjectsRequest = {
|
|
|
10
10
|
attributesToRetrieve?: string[];
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Object ID for the record to retrieve.
|
|
14
14
|
*/
|
|
15
15
|
objectID: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Index from which to retrieve the records.
|
|
19
19
|
*/
|
|
20
20
|
indexName: string;
|
|
21
21
|
};
|
package/model/highlightResult.ts
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import type { MatchLevel } from './matchLevel';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
7
7
|
*/
|
|
8
8
|
export type HighlightResultOption = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Highlighted attribute value, including HTML tags.
|
|
11
11
|
*/
|
|
12
12
|
value: string;
|
|
13
13
|
|
|
14
14
|
matchLevel: MatchLevel;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* List of words from the query
|
|
17
|
+
* List of matched words from the search query.
|
|
18
18
|
*/
|
|
19
19
|
matchedWords: string[];
|
|
20
20
|
|
package/model/hit.ts
CHANGED
|
@@ -5,21 +5,21 @@ import type { RankingInfo } from './rankingInfo';
|
|
|
5
5
|
import type { SnippetResult } from './snippetResult';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* A
|
|
8
|
+
* Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
|
|
9
9
|
*/
|
|
10
10
|
export type Hit<T = Record<string, any>> = T & {
|
|
11
11
|
/**
|
|
12
|
-
* Unique
|
|
12
|
+
* Unique record identifier.
|
|
13
13
|
*/
|
|
14
14
|
objectID: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Surround words that match the query with HTML tags for highlighting.
|
|
18
18
|
*/
|
|
19
19
|
_highlightResult?: Record<string, HighlightResult>;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Snippets that show the context around a matching search query.
|
|
23
23
|
*/
|
|
24
24
|
_snippetResult?: Record<string, SnippetResult>;
|
|
25
25
|
|
package/model/ignorePlurals.ts
CHANGED
|
@@ -1,6 +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
|
+
import type { SupportedLanguage } from './supportedLanguage';
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
|
|
5
7
|
*/
|
|
6
|
-
export type IgnorePlurals =
|
|
8
|
+
export type IgnorePlurals = SupportedLanguage[] | boolean;
|
package/model/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './advancedSyntaxFeatures';
|
|
|
7
7
|
export * from './alternativesAsExact';
|
|
8
8
|
export * from './anchoring';
|
|
9
9
|
export * from './apiKey';
|
|
10
|
+
export * from './apiKeyOperation';
|
|
10
11
|
export * from './aroundPrecision';
|
|
11
12
|
export * from './aroundPrecisionFromValueInner';
|
|
12
13
|
export * from './aroundRadius';
|
|
@@ -27,6 +28,7 @@ export * from './batchParams';
|
|
|
27
28
|
export * from './batchRequest';
|
|
28
29
|
export * from './batchResponse';
|
|
29
30
|
export * from './batchWriteParams';
|
|
31
|
+
export * from './browsePagination';
|
|
30
32
|
export * from './browseParams';
|
|
31
33
|
export * from './browseParamsObject';
|
|
32
34
|
export * from './browseResponse';
|
|
@@ -87,7 +89,6 @@ export * from './logQuery';
|
|
|
87
89
|
export * from './logType';
|
|
88
90
|
export * from './matchLevel';
|
|
89
91
|
export * from './matchedGeoLocation';
|
|
90
|
-
export * from './mixedSearchFilters';
|
|
91
92
|
export * from './mode';
|
|
92
93
|
export * from './multipleBatchRequest';
|
|
93
94
|
export * from './multipleBatchResponse';
|
|
@@ -106,16 +107,19 @@ export * from './reRankingApplyFilter';
|
|
|
106
107
|
export * from './redirect';
|
|
107
108
|
export * from './redirectRuleIndexMetadata';
|
|
108
109
|
export * from './redirectRuleIndexMetadataData';
|
|
110
|
+
export * from './redirectURL';
|
|
109
111
|
export * from './removeStopWords';
|
|
110
112
|
export * from './removeUserIdResponse';
|
|
111
113
|
export * from './removeWordsIfNoResults';
|
|
112
114
|
export * from './renderingContent';
|
|
115
|
+
export * from './replaceAllObjectsResponse';
|
|
113
116
|
export * from './replaceSourceResponse';
|
|
114
117
|
export * from './rule';
|
|
115
118
|
export * from './saveObjectResponse';
|
|
116
119
|
export * from './saveSynonymResponse';
|
|
117
120
|
export * from './scopeType';
|
|
118
121
|
export * from './searchDictionaryEntriesParams';
|
|
122
|
+
export * from './searchDictionaryEntriesResponse';
|
|
119
123
|
export * from './searchForFacetValuesRequest';
|
|
120
124
|
export * from './searchForFacetValuesResponse';
|
|
121
125
|
export * from './searchForFacets';
|
|
@@ -124,6 +128,7 @@ export * from './searchForHits';
|
|
|
124
128
|
export * from './searchForHitsOptions';
|
|
125
129
|
export * from './searchHits';
|
|
126
130
|
export * from './searchMethodParams';
|
|
131
|
+
export * from './searchPagination';
|
|
127
132
|
export * from './searchParams';
|
|
128
133
|
export * from './searchParamsObject';
|
|
129
134
|
export * from './searchParamsQuery';
|
|
@@ -141,12 +146,14 @@ export * from './searchTypeDefault';
|
|
|
141
146
|
export * from './searchTypeFacet';
|
|
142
147
|
export * from './searchUserIdsParams';
|
|
143
148
|
export * from './searchUserIdsResponse';
|
|
149
|
+
export * from './securedApiKeyRestrictions';
|
|
144
150
|
export * from './semanticSearch';
|
|
145
151
|
export * from './snippetResult';
|
|
146
152
|
export * from './snippetResultOption';
|
|
147
153
|
export * from './sortRemainingBy';
|
|
148
154
|
export * from './source';
|
|
149
155
|
export * from './standardEntries';
|
|
156
|
+
export * from './supportedLanguage';
|
|
150
157
|
export * from './synonymHit';
|
|
151
158
|
export * from './synonymType';
|
|
152
159
|
export * from './tagFilters';
|
package/model/indexSettings.ts
CHANGED
|
@@ -4,6 +4,6 @@ import type { BaseIndexSettings } from './baseIndexSettings';
|
|
|
4
4
|
import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Index settings.
|
|
8
8
|
*/
|
|
9
9
|
export type IndexSettings = BaseIndexSettings & IndexSettingsAsSearchParams;
|