@algolia/client-search 5.9.1 → 5.10.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.
- package/README.md +4 -4
- package/dist/browser.d.ts +9 -9
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +9 -9
- package/dist/node.d.cts +9 -9
- package/dist/node.d.ts +9 -9
- package/dist/src/searchClient.cjs +1 -1
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +1 -1
- package/dist/src/searchClient.js.map +1 -1
- package/package.json +6 -7
- package/model/acl.ts +0 -21
- package/model/action.ts +0 -13
- package/model/addApiKeyResponse.ts +0 -13
- package/model/advancedSyntaxFeatures.ts +0 -3
- package/model/alternativesAsExact.ts +0 -3
- package/model/anchoring.ts +0 -6
- package/model/apiKey.ts +0 -48
- package/model/apiKeyOperation.ts +0 -3
- package/model/aroundPrecision.ts +0 -8
- package/model/aroundRadius.ts +0 -8
- package/model/aroundRadiusAll.ts +0 -6
- package/model/assignUserIdParams.ts +0 -11
- package/model/attributeToUpdate.ts +0 -5
- package/model/automaticFacetFilter.ts +0 -21
- package/model/automaticFacetFilters.ts +0 -8
- package/model/banner.ts +0 -13
- package/model/bannerImage.ts +0 -12
- package/model/bannerImageUrl.ts +0 -8
- package/model/bannerLink.ts +0 -8
- package/model/baseGetApiKeyResponse.ts +0 -13
- package/model/baseIndexSettings.ts +0 -90
- package/model/baseSearchParams.ts +0 -6
- package/model/baseSearchParamsWithoutQuery.ts +0 -148
- package/model/baseSearchResponse.ts +0 -129
- package/model/batchAssignUserIdsParams.ts +0 -16
- package/model/batchDictionaryEntriesParams.ts +0 -18
- package/model/batchDictionaryEntriesRequest.ts +0 -10
- package/model/batchParams.ts +0 -10
- package/model/batchRequest.ts +0 -12
- package/model/batchResponse.ts +0 -13
- package/model/batchWriteParams.ts +0 -10
- package/model/booleanString.ts +0 -3
- package/model/browsePagination.ts +0 -23
- package/model/browseParams.ts +0 -7
- package/model/browseParamsObject.ts +0 -6
- package/model/browseResponse.ts +0 -8
- package/model/builtInOperation.ts +0 -13
- package/model/builtInOperationType.ts +0 -13
- package/model/builtInOperationValue.ts +0 -3
- package/model/clientMethodProps.ts +0 -870
- package/model/condition.ts +0 -27
- package/model/consequence.ts +0 -32
- package/model/consequenceHide.ts +0 -11
- package/model/consequenceParams.ts +0 -7
- package/model/consequenceQuery.ts +0 -8
- package/model/consequenceQueryObject.ts +0 -15
- package/model/createdAtResponse.ts +0 -11
- package/model/cursor.ts +0 -8
- package/model/deleteApiKeyResponse.ts +0 -8
- package/model/deleteByParams.ts +0 -36
- package/model/deleteSourceResponse.ts +0 -8
- package/model/deletedAtResponse.ts +0 -16
- package/model/dictionaryAction.ts +0 -6
- package/model/dictionaryEntry.ts +0 -36
- package/model/dictionaryEntryState.ts +0 -6
- package/model/dictionaryEntryType.ts +0 -6
- package/model/dictionaryLanguage.ts +0 -11
- package/model/dictionarySettingsParams.ts +0 -10
- package/model/dictionaryType.ts +0 -3
- package/model/distinct.ts +0 -6
- package/model/edit.ts +0 -17
- package/model/editType.ts +0 -6
- package/model/errorBase.ts +0 -8
- package/model/exactOnSingleWordQuery.ts +0 -6
- package/model/exhaustive.ts +0 -31
- package/model/facetFilters.ts +0 -6
- package/model/facetHits.ts +0 -18
- package/model/facetOrdering.ts +0 -16
- package/model/facetStats.ts +0 -23
- package/model/facets.ts +0 -11
- package/model/fetchedIndex.ts +0 -63
- package/model/getApiKeyResponse.ts +0 -6
- package/model/getDictionarySettingsResponse.ts +0 -7
- package/model/getLogsResponse.ts +0 -7
- package/model/getObjectsParams.ts +0 -10
- package/model/getObjectsRequest.ts +0 -21
- package/model/getObjectsResponse.ts +0 -8
- package/model/getTaskResponse.ts +0 -7
- package/model/getTopUserIdsResponse.ts +0 -13
- package/model/hasPendingMappingsResponse.ts +0 -13
- package/model/highlightResult.ts +0 -5
- package/model/highlightResultOption.ts +0 -25
- package/model/hit.ts +0 -29
- package/model/ignorePlurals.ts +0 -9
- package/model/index.ts +0 -182
- package/model/indexSettings.ts +0 -9
- package/model/indexSettingsAsSearchParams.ts +0 -205
- package/model/languages.ts +0 -14
- package/model/listApiKeysResponse.ts +0 -10
- package/model/listClustersResponse.ts +0 -11
- package/model/listIndicesResponse.ts +0 -15
- package/model/listUserIdsResponse.ts +0 -13
- package/model/log.ts +0 -80
- package/model/logQuery.ts +0 -18
- package/model/logType.ts +0 -3
- package/model/matchLevel.ts +0 -6
- package/model/matchedGeoLocation.ts +0 -18
- package/model/mode.ts +0 -6
- package/model/multipleBatchRequest.ts +0 -17
- package/model/multipleBatchResponse.ts +0 -13
- package/model/numericFilters.ts +0 -6
- package/model/operationIndexParams.ts +0 -18
- package/model/operationType.ts +0 -6
- package/model/optionalFilters.ts +0 -6
- package/model/params.ts +0 -18
- package/model/personalization.ts +0 -18
- package/model/promote.ts +0 -6
- package/model/promoteObjectID.ts +0 -16
- package/model/promoteObjectIDs.ts +0 -16
- package/model/queryType.ts +0 -6
- package/model/range.ts +0 -16
- package/model/rankingInfo.ts +0 -68
- package/model/reRankingApplyFilter.ts +0 -6
- package/model/redirect.ts +0 -10
- package/model/redirectRuleIndexData.ts +0 -8
- package/model/redirectRuleIndexMetadata.ts +0 -27
- package/model/redirectURL.ts +0 -8
- package/model/removeStopWords.ts +0 -8
- package/model/removeUserIdResponse.ts +0 -8
- package/model/removeWordsIfNoResults.ts +0 -6
- package/model/renderingContent.ts +0 -16
- package/model/replaceAllObjectsResponse.ts +0 -15
- package/model/replaceSourceResponse.ts +0 -8
- package/model/rule.ts +0 -37
- package/model/saveObjectResponse.ts +0 -18
- package/model/saveSynonymResponse.ts +0 -18
- package/model/scopeType.ts +0 -3
- package/model/searchDictionaryEntriesParams.ts +0 -25
- package/model/searchDictionaryEntriesResponse.ts +0 -25
- package/model/searchForFacetValuesRequest.ts +0 -18
- package/model/searchForFacetValuesResponse.ts +0 -20
- package/model/searchForFacets.ts +0 -6
- package/model/searchForFacetsOptions.ts +0 -27
- package/model/searchForHits.ts +0 -6
- package/model/searchForHitsOptions.ts +0 -12
- package/model/searchHits.ts +0 -20
- package/model/searchMethodParams.ts +0 -10
- package/model/searchPagination.ts +0 -23
- package/model/searchParams.ts +0 -6
- package/model/searchParamsObject.ts +0 -9
- package/model/searchParamsQuery.ts +0 -8
- package/model/searchParamsString.ts +0 -11
- package/model/searchQuery.ts +0 -6
- package/model/searchResponse.ts +0 -7
- package/model/searchResponses.ts +0 -7
- package/model/searchResult.ts +0 -6
- package/model/searchRulesParams.ts +0 -35
- package/model/searchRulesResponse.ts +0 -25
- package/model/searchStrategy.ts +0 -6
- package/model/searchSynonymsParams.ts +0 -22
- package/model/searchSynonymsResponse.ts +0 -15
- package/model/searchTypeDefault.ts +0 -6
- package/model/searchTypeFacet.ts +0 -6
- package/model/searchUserIdsParams.ts +0 -26
- package/model/searchUserIdsResponse.ts +0 -33
- package/model/securedApiKeyRestrictions.ts +0 -32
- package/model/semanticSearch.ts +0 -11
- package/model/settingsResponse.ts +0 -6
- package/model/snippetResult.ts +0 -5
- package/model/snippetResultOption.ts +0 -15
- package/model/sortRemainingBy.ts +0 -6
- package/model/source.ts +0 -16
- package/model/standardEntries.ts +0 -21
- package/model/supportedLanguage.ts +0 -74
- package/model/synonymHit.ts +0 -45
- package/model/synonymType.ts +0 -6
- package/model/tagFilters.ts +0 -6
- package/model/taskStatus.ts +0 -6
- package/model/timeRange.ts +0 -13
- package/model/typoTolerance.ts +0 -8
- package/model/typoToleranceEnum.ts +0 -6
- package/model/updateApiKeyResponse.ts +0 -13
- package/model/updatedAtResponse.ts +0 -16
- package/model/updatedAtWithObjectIdResponse.ts +0 -21
- package/model/updatedRuleResponse.ts +0 -18
- package/model/userHighlightResult.ts +0 -9
- package/model/userHit.ts +0 -32
- package/model/userId.ts +0 -26
- package/model/value.ts +0 -17
- package/model/widgets.ts +0 -13
- package/model/withPrimary.ts +0 -8
package/README.md
CHANGED
|
@@ -41,11 +41,11 @@ All of our clients comes with type definition, and are available for both browse
|
|
|
41
41
|
### With a package manager
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
yarn add @algolia/client-search@5.
|
|
44
|
+
yarn add @algolia/client-search@5.10.0
|
|
45
45
|
# or
|
|
46
|
-
npm install @algolia/client-search@5.
|
|
46
|
+
npm install @algolia/client-search@5.10.0
|
|
47
47
|
# or
|
|
48
|
-
pnpm add @algolia/client-search@5.
|
|
48
|
+
pnpm add @algolia/client-search@5.10.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Without a package manager
|
|
@@ -53,7 +53,7 @@ pnpm add @algolia/client-search@5.9.1
|
|
|
53
53
|
Add the following JavaScript snippet to the <head> of your website:
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
|
-
<script src="https://cdn.jsdelivr.net/npm/@algolia/client-search@5.
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@algolia/client-search@5.10.0/dist/builds/browser.umd.js"></script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
package/dist/browser.d.ts
CHANGED
|
@@ -523,7 +523,7 @@ type SnippetResult = SnippetResultOption | {
|
|
|
523
523
|
/**
|
|
524
524
|
* Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
|
|
525
525
|
*/
|
|
526
|
-
type Hit<T = Record<string,
|
|
526
|
+
type Hit<T = Record<string, unknown>> = T & {
|
|
527
527
|
/**
|
|
528
528
|
* Unique record identifier.
|
|
529
529
|
*/
|
|
@@ -544,7 +544,7 @@ type Hit<T = Record<string, any>> = T & {
|
|
|
544
544
|
_distinctSeqID?: number;
|
|
545
545
|
};
|
|
546
546
|
|
|
547
|
-
type SearchHits<T = Record<string,
|
|
547
|
+
type SearchHits<T = Record<string, unknown>> = Record<string, any> & {
|
|
548
548
|
/**
|
|
549
549
|
* Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
|
|
550
550
|
*/
|
|
@@ -559,7 +559,7 @@ type SearchHits<T = Record<string, any>> = Record<string, any> & {
|
|
|
559
559
|
params: string;
|
|
560
560
|
};
|
|
561
561
|
|
|
562
|
-
type BrowseResponse<T = Record<string,
|
|
562
|
+
type BrowseResponse<T = Record<string, unknown>> = BaseSearchResponse & BrowsePagination & SearchHits<T> & Cursor;
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* Response and creation timestamp.
|
|
@@ -754,7 +754,7 @@ type GetObjectsParams = {
|
|
|
754
754
|
requests: Array<GetObjectsRequest>;
|
|
755
755
|
};
|
|
756
756
|
|
|
757
|
-
type GetObjectsResponse<T = Record<string,
|
|
757
|
+
type GetObjectsResponse<T = Record<string, unknown>> = {
|
|
758
758
|
/**
|
|
759
759
|
* Retrieved records.
|
|
760
760
|
*/
|
|
@@ -1761,11 +1761,11 @@ type SearchPagination = {
|
|
|
1761
1761
|
hitsPerPage?: number;
|
|
1762
1762
|
};
|
|
1763
1763
|
|
|
1764
|
-
type SearchResponse<T = Record<string,
|
|
1764
|
+
type SearchResponse<T = Record<string, unknown>> = BaseSearchResponse & SearchPagination & SearchHits<T>;
|
|
1765
1765
|
|
|
1766
|
-
type SearchResult<T = Record<string,
|
|
1766
|
+
type SearchResult<T = Record<string, unknown>> = SearchResponse<T> | SearchForFacetValuesResponse;
|
|
1767
1767
|
|
|
1768
|
-
type SearchResponses<T = Record<string,
|
|
1768
|
+
type SearchResponses<T = Record<string, unknown>> = {
|
|
1769
1769
|
results: SearchResult<T>[];
|
|
1770
1770
|
};
|
|
1771
1771
|
|
|
@@ -3030,14 +3030,14 @@ type ReplaceAllObjectsOptions = {
|
|
|
3030
3030
|
/**
|
|
3031
3031
|
* The array of `objects` to store in the given Algolia `indexName`.
|
|
3032
3032
|
*/
|
|
3033
|
-
objects: Array<Record<string,
|
|
3033
|
+
objects: Array<Record<string, unknown>>;
|
|
3034
3034
|
/**
|
|
3035
3035
|
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
3036
3036
|
*/
|
|
3037
3037
|
batchSize?: number;
|
|
3038
3038
|
};
|
|
3039
3039
|
|
|
3040
|
-
declare const apiClientVersion = "5.
|
|
3040
|
+
declare const apiClientVersion = "5.10.0";
|
|
3041
3041
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
3042
3042
|
transporter: _algolia_client_common.Transporter;
|
|
3043
3043
|
/**
|