Skip to content

Commit e742096

Browse files
algolia-botrenovate[bot]millotp
committed
chore: generated code for commit 33dc235c. [skip ci]
algolia/api-clients-automation@33dc235 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Algolia Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pierre Millot <[email protected]>
1 parent e669812 commit e742096

File tree

21 files changed

+462
-128
lines changed

21 files changed

+462
-128
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ lerna-debug.log
1212
!.yarn/plugins
1313

1414
node_modules
15+
16+
.nx

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"@rollup/plugin-babel": "6.0.4",
2323
"@rollup/plugin-node-resolve": "15.2.3",
2424
"@rollup/plugin-terser": "0.4.4",
25-
"@types/jest": "29.5.5",
26-
"@types/node": "18.18.5",
27-
"@types/rollup-plugin-node-globals": "1.4.2",
28-
"@types/semver": "7.5.3",
25+
"@types/jest": "29.5.6",
26+
"@types/node": "18.18.6",
27+
"@types/rollup-plugin-node-globals": "1.4.3",
28+
"@types/semver": "7.5.4",
2929
"bundlesize2": "0.0.31",
3030
"execa": "8.0.1",
31-
"lerna": "7.3.1",
32-
"nx": "16.10.0",
33-
"rollup": "3.29.4",
31+
"lerna": "7.4.1",
32+
"nx": "17.0.1",
33+
"rollup": "4.1.4",
3434
"rollup-plugin-node-globals": "1.4.0",
3535
"rollup-plugin-typescript2": "0.36.0",
3636
"semver": "7.5.4",

packages/algoliasearch/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
"@algolia/requester-node-http": "5.0.0-alpha.89"
7070
},
7171
"devDependencies": {
72-
"@types/jest": "29.5.5",
73-
"@types/node": "18.18.5",
72+
"@types/jest": "29.5.6",
73+
"@types/node": "18.18.6",
7474
"jest": "29.7.0",
75-
"rollup": "3.29.4",
75+
"rollup": "4.1.4",
7676
"ts-jest": "29.1.1",
7777
"typescript": "5.2.2"
7878
},

packages/client-abtesting/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/client-analytics/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/client-common/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"test": "jest"
2121
},
2222
"devDependencies": {
23-
"@types/jest": "29.5.5",
24-
"@types/node": "18.18.5",
23+
"@types/jest": "29.5.6",
24+
"@types/node": "18.18.6",
2525
"jest": "29.7.0",
2626
"jest-environment-jsdom": "29.7.0",
2727
"ts-jest": "29.1.1",

packages/client-insights/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/client-personalization/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/client-query-suggestions/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/client-search/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/ingestion/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/monitoring/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/recommend/model/baseSearchResponse.ts

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// 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.
22

3-
import type { BaseSearchResponseRedirect } from './baseSearchResponseRedirect';
3+
import type { Exhaustive } from './exhaustive';
44
import type { FacetsStats } from './facetsStats';
5+
import type { Redirect } from './redirect';
56
import type { RenderingContent } from './renderingContent';
67

7-
export type BaseSearchResponse = {
8+
export type BaseSearchResponse = Record<string, any> & {
89
/**
910
* A/B test ID. This is only included in the response for indices that are part of an A/B test.
1011
*/
@@ -25,18 +26,20 @@ export type BaseSearchResponse = {
2526
*/
2627
automaticRadius?: string;
2728

29+
exhaustive?: Exhaustive;
30+
2831
/**
29-
* Indicates whether the facet count is exhaustive (exact) or approximate.
32+
* See the `facetsCount` field of the `exhaustive` object in the response.
3033
*/
3134
exhaustiveFacetsCount?: boolean;
3235

3336
/**
34-
* Indicates whether the number of hits `nbHits` is exhaustive (exact) or approximate.
37+
* See the `nbHits` field of the `exhaustive` object in the response.
3538
*/
3639
exhaustiveNbHits?: boolean;
3740

3841
/**
39-
* Indicates whether the search for typos was exhaustive (exact) or approximate.
42+
* See the `typo` field of the `exhaustive` object in the response.
4043
*/
4144
exhaustiveTypo?: boolean;
4245

@@ -90,8 +93,6 @@ export type BaseSearchResponse = {
9093
*/
9194
page: number;
9295

93-
redirect?: BaseSearchResponseRedirect;
94-
9596
/**
9697
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9798
*/
@@ -102,11 +103,25 @@ export type BaseSearchResponse = {
102103
*/
103104
processingTimeMS: number;
104105

106+
/**
107+
* Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
108+
*/
109+
processingTimingsMS?: Record<string, any>;
110+
105111
/**
106112
* Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
107113
*/
108114
queryAfterRemoval?: string;
109115

116+
redirect?: Redirect;
117+
118+
renderingContent?: RenderingContent;
119+
120+
/**
121+
* Time the server took to process the request, in milliseconds.
122+
*/
123+
serverTimeMS?: number;
124+
110125
/**
111126
* Host name of the server that processed the request.
112127
*/
@@ -116,6 +131,4 @@ export type BaseSearchResponse = {
116131
* Lets you store custom data in your indices.
117132
*/
118133
userData?: any | null;
119-
120-
renderingContent?: RenderingContent;
121134
};
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
* Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
5+
*/
6+
export type Exhaustive = {
7+
/**
8+
* Whether the facet count is exhaustive (`true`) or approximate (`false`). See the [related discussion](https://support.algolia.com/hc/en-us/articles/4406975248145-Why-are-my-facet-and-hit-counts-not-accurate-).
9+
*/
10+
facetsCount?: boolean;
11+
12+
/**
13+
* The value is `false` if not all facet values are retrieved.
14+
*/
15+
facetValues?: boolean;
16+
17+
/**
18+
* Whether the `nbHits` is exhaustive (`true`) or approximate (`false`). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches). `nbHits` is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query.
19+
*/
20+
nbHits?: boolean;
21+
22+
/**
23+
* Rules matching exhaustivity. The value is `false` if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large.
24+
*/
25+
rulesMatch?: boolean;
26+
27+
/**
28+
* Whether the typo search was exhaustive (`true`) or approximate (`false`). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
29+
*/
30+
typo?: boolean;
31+
};

packages/recommend/model/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export * from './baseRecommendationsQuery';
1414
export * from './baseSearchParams';
1515
export * from './baseSearchParamsWithoutQuery';
1616
export * from './baseSearchResponse';
17-
export * from './baseSearchResponseRedirect';
1817
export * from './baseTrendingFacetsQuery';
1918
export * from './baseTrendingItemsQuery';
2019
export * from './condition';
@@ -29,6 +28,7 @@ export * from './edit';
2928
export * from './editType';
3029
export * from './errorBase';
3130
export * from './exactOnSingleWordQuery';
31+
export * from './exhaustive';
3232
export * from './facetFilters';
3333
export * from './facetOrdering';
3434
export * from './facets';
@@ -61,6 +61,7 @@ export * from './recommendationModels';
6161
export * from './recommendationsQuery';
6262
export * from './recommendationsRequest';
6363
export * from './recommendationsResponse';
64+
export * from './redirect';
6465
export * from './redirectRuleIndexMetadata';
6566
export * from './redirectRuleIndexMetadataData';
6667
export * from './removeStopWords';

packages/recommend/model/baseSearchResponseRedirect.ts renamed to packages/recommend/model/redirect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
55
/**
66
* [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
77
*/
8-
export type BaseSearchResponseRedirect = {
8+
export type Redirect = {
99
index?: RedirectRuleIndexMetadata[];
1010
};

packages/recommend/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@algolia/requester-node-http": "5.0.0-alpha.89"
4545
},
4646
"devDependencies": {
47-
"@types/node": "18.18.5",
48-
"rollup": "3.29.4",
47+
"@types/node": "18.18.6",
48+
"rollup": "4.1.4",
4949
"typescript": "5.2.2"
5050
},
5151
"engines": {

packages/requester-browser-xhr/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@algolia/client-common": "5.0.0-alpha.89"
2424
},
2525
"devDependencies": {
26-
"@types/jest": "29.5.5",
27-
"@types/node": "18.18.5",
26+
"@types/jest": "29.5.6",
27+
"@types/node": "18.18.6",
2828
"jest": "29.7.0",
2929
"jest-environment-jsdom": "29.7.0",
3030
"ts-jest": "29.1.1",

packages/requester-fetch/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"@algolia/client-common": "5.0.0-alpha.89"
2424
},
2525
"devDependencies": {
26-
"@types/jest": "29.5.5",
27-
"@types/node": "18.18.5",
26+
"@types/jest": "29.5.6",
27+
"@types/node": "18.18.6",
2828
"cross-fetch": "4.0.0",
2929
"jest": "29.7.0",
30-
"nock": "13.3.4",
30+
"nock": "13.3.6",
3131
"ts-jest": "29.1.1",
3232
"typescript": "5.2.2"
3333
},

packages/requester-node-http/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"@algolia/client-common": "5.0.0-alpha.89"
2424
},
2525
"devDependencies": {
26-
"@types/jest": "29.5.5",
27-
"@types/node": "18.18.5",
26+
"@types/jest": "29.5.6",
27+
"@types/node": "18.18.6",
2828
"jest": "29.7.0",
29-
"nock": "13.3.4",
29+
"nock": "13.3.6",
3030
"ts-jest": "29.1.1",
3131
"typescript": "5.2.2"
3232
},

0 commit comments

Comments
 (0)