@algolia/client-search 5.0.0-beta.2 → 5.0.0-beta.4
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/dist/builds/browser.d.ts +2 -0
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +2 -0
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-search.cjs +70 -8
- package/dist/client-search.esm.browser.js +79 -23
- package/dist/client-search.esm.node.js +70 -8
- package/dist/client-search.umd.js +2 -2
- package/dist/model/clientMethodProps.d.ts +16 -21
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/rankingInfo.d.ts +3 -3
- package/dist/model/rankingInfo.d.ts.map +1 -1
- package/dist/model/replaceAllObjectsResponse.d.ts +11 -0
- package/dist/model/replaceAllObjectsResponse.d.ts.map +1 -0
- package/dist/src/searchClient.d.ts +28 -4
- package/dist/src/searchClient.d.ts.map +1 -1
- package/model/clientMethodProps.ts +18 -24
- package/model/index.ts +1 -0
- package/model/rankingInfo.ts +3 -3
- package/model/replaceAllObjectsResponse.ts +15 -0
- package/package.json +6 -6
package/model/index.ts
CHANGED
|
@@ -110,6 +110,7 @@ export * from './removeStopWords';
|
|
|
110
110
|
export * from './removeUserIdResponse';
|
|
111
111
|
export * from './removeWordsIfNoResults';
|
|
112
112
|
export * from './renderingContent';
|
|
113
|
+
export * from './replaceAllObjectsResponse';
|
|
113
114
|
export * from './replaceSourceResponse';
|
|
114
115
|
export * from './rule';
|
|
115
116
|
export * from './saveObjectResponse';
|
package/model/rankingInfo.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type RankingInfo = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Whether a filter matched the query.
|
|
12
12
|
*/
|
|
13
|
-
filters
|
|
13
|
+
filters?: number;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Position of the first matched word in the best matching attribute of the record.
|
|
@@ -44,7 +44,7 @@ export type RankingInfo = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Whether the record was promoted by a rule.
|
|
46
46
|
*/
|
|
47
|
-
promoted
|
|
47
|
+
promoted?: boolean;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
|
|
@@ -59,7 +59,7 @@ export type RankingInfo = {
|
|
|
59
59
|
/**
|
|
60
60
|
* Number of matched words.
|
|
61
61
|
*/
|
|
62
|
-
words
|
|
62
|
+
words?: number;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Whether the record is re-ranked.
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { BatchResponse } from './batchResponse';
|
|
4
|
+
import type { UpdatedAtResponse } from './updatedAtResponse';
|
|
5
|
+
|
|
6
|
+
export type ReplaceAllObjectsResponse = {
|
|
7
|
+
copyOperationResponse: UpdatedAtResponse;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The response of the `batch` request(s).
|
|
11
|
+
*/
|
|
12
|
+
batchResponses: BatchResponse[];
|
|
13
|
+
|
|
14
|
+
moveOperationResponse: UpdatedAtResponse;
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-search",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.4",
|
|
4
4
|
"description": "JavaScript client for client-search",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"clean": "rm -rf ./dist || true"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@algolia/client-common": "5.0.0-beta.
|
|
43
|
-
"@algolia/requester-browser-xhr": "5.0.0-beta.
|
|
44
|
-
"@algolia/requester-node-http": "5.0.0-beta.
|
|
42
|
+
"@algolia/client-common": "5.0.0-beta.4",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-beta.4",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-beta.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "20.
|
|
48
|
-
"rollup": "4.
|
|
47
|
+
"@types/node": "20.14.2",
|
|
48
|
+
"rollup": "4.18.0",
|
|
49
49
|
"typescript": "5.4.5"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|