@algolia/client-query-suggestions 5.0.0-alpha.11 → 5.0.0-alpha.110
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 +26 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +26 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-query-suggestions.cjs.js → client-query-suggestions.cjs} +364 -353
- package/dist/client-query-suggestions.esm.browser.js +574 -589
- package/dist/client-query-suggestions.esm.node.js +364 -351
- package/dist/client-query-suggestions.umd.js +2 -2
- package/dist/model/appID.d.ts +7 -0
- package/dist/model/appID.d.ts.map +1 -0
- package/dist/model/baseResponse.d.ts +11 -0
- package/dist/model/baseResponse.d.ts.map +1 -0
- package/dist/model/clientMethodProps.d.ts +107 -107
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/errorBase.d.ts.map +1 -1
- package/dist/model/facet.d.ts +14 -0
- package/dist/model/facet.d.ts.map +1 -0
- package/dist/model/getConfigStatus200Response.d.ts +23 -0
- package/dist/model/getConfigStatus200Response.d.ts.map +1 -0
- package/dist/model/getLogFile200Response.d.ts +17 -0
- package/dist/model/getLogFile200Response.d.ts.map +1 -0
- package/dist/model/index.d.ts +13 -13
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/languages.d.ts +5 -0
- package/dist/model/languages.d.ts.map +1 -0
- package/dist/model/logLevel.d.ts +4 -4
- package/dist/model/logLevel.d.ts.map +1 -1
- package/dist/model/querySuggestionsConfiguration.d.ts +22 -0
- package/dist/model/querySuggestionsConfiguration.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationResponse.d.ts +7 -0
- package/dist/model/querySuggestionsConfigurationResponse.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationWithIndex.d.ts +6 -0
- package/dist/model/querySuggestionsConfigurationWithIndex.d.ts.map +1 -0
- package/dist/model/sourceIndex.d.ts +26 -31
- package/dist/model/sourceIndex.d.ts.map +1 -1
- package/dist/src/querySuggestionsClient.d.ts +147 -141
- package/dist/src/querySuggestionsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/appID.ts +8 -0
- package/model/baseResponse.ts +13 -0
- package/model/clientMethodProps.ts +50 -50
- package/model/errorBase.ts +1 -1
- package/model/facet.ts +16 -0
- package/model/getConfigStatus200Response.ts +28 -0
- package/model/getLogFile200Response.ts +22 -0
- package/model/index.ts +10 -10
- package/model/languages.ts +6 -0
- package/model/logLevel.ts +2 -2
- package/model/querySuggestionsConfiguration.ts +28 -0
- package/model/querySuggestionsConfigurationResponse.ts +10 -0
- package/model/querySuggestionsConfigurationWithIndex.ts +9 -0
- package/model/sourceIndex.ts +15 -19
- package/package.json +10 -9
- package/dist/model/indexName.d.ts +0 -7
- package/dist/model/indexName.d.ts.map +0 -1
- package/dist/model/logFile.d.ts +0 -17
- package/dist/model/logFile.d.ts.map +0 -1
- package/dist/model/querySuggestionsIndex.d.ts +0 -20
- package/dist/model/querySuggestionsIndex.d.ts.map +0 -1
- package/dist/model/querySuggestionsIndexParam.d.ts +0 -16
- package/dist/model/querySuggestionsIndexParam.d.ts.map +0 -1
- package/dist/model/querySuggestionsIndexWithIndexParam.d.ts +0 -4
- package/dist/model/querySuggestionsIndexWithIndexParam.d.ts.map +0 -1
- package/dist/model/sourceIndexExternal.d.ts +0 -11
- package/dist/model/sourceIndexExternal.d.ts.map +0 -1
- package/dist/model/sourceIndexWithReplicas.d.ts +0 -39
- package/dist/model/sourceIndexWithReplicas.d.ts.map +0 -1
- package/dist/model/status.d.ts +0 -15
- package/dist/model/status.d.ts.map +0 -1
- package/dist/model/successResponse.d.ts +0 -11
- package/dist/model/successResponse.d.ts.map +0 -1
- package/model/indexName.ts +0 -8
- package/model/logFile.ts +0 -22
- package/model/querySuggestionsIndex.ts +0 -25
- package/model/querySuggestionsIndexParam.ts +0 -20
- package/model/querySuggestionsIndexWithIndexParam.ts +0 -7
- package/model/sourceIndexExternal.ts +0 -13
- package/model/sourceIndexWithReplicas.ts +0 -48
- package/model/status.ts +0 -18
- package/model/successResponse.ts +0 -13
|
@@ -0,0 +1,28 @@
|
|
|
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 { Languages } from './languages';
|
|
4
|
+
import type { SourceIndex } from './sourceIndex';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Query Suggestions configuration.
|
|
8
|
+
*/
|
|
9
|
+
export type QuerySuggestionsConfiguration = {
|
|
10
|
+
/**
|
|
11
|
+
* Algolia indices from which to get the popular searches for query suggestions.
|
|
12
|
+
*/
|
|
13
|
+
sourceIndices: SourceIndex[];
|
|
14
|
+
|
|
15
|
+
languages?: Languages;
|
|
16
|
+
|
|
17
|
+
exclude?: string[] | null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Whether to turn on personalized query suggestions.
|
|
21
|
+
*/
|
|
22
|
+
enablePersonalization?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Whether to include suggestions with special characters.
|
|
26
|
+
*/
|
|
27
|
+
allowSpecialCharacters?: boolean;
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { AppID } from './appID';
|
|
4
|
+
import type { QuerySuggestionsConfigurationWithIndex } from './querySuggestionsConfigurationWithIndex';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* API response for retrieving Query Suggestions configurations.
|
|
8
|
+
*/
|
|
9
|
+
export type QuerySuggestionsConfigurationResponse = AppID &
|
|
10
|
+
QuerySuggestionsConfigurationWithIndex;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Query Suggestions configuration.
|
|
7
|
+
*/
|
|
8
|
+
export type QuerySuggestionsConfigurationWithIndex =
|
|
9
|
+
QuerySuggestionsConfiguration & Record<string, any>;
|
package/model/sourceIndex.ts
CHANGED
|
@@ -1,40 +1,36 @@
|
|
|
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 {
|
|
3
|
+
import type { Facet } from './facet';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Configuration of an Algolia index for Query Suggestions.
|
|
7
|
+
*/
|
|
5
8
|
export type SourceIndex = {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Name of the Algolia index to use as source for query suggestions.
|
|
8
11
|
*/
|
|
9
12
|
indexName: string;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used.
|
|
13
16
|
*/
|
|
14
|
-
|
|
17
|
+
replicas?: boolean;
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
facets?: Array<Record<string, any>>;
|
|
19
|
+
analyticsTags?: string[] | null;
|
|
20
|
+
|
|
21
|
+
facets?: Facet[] | null;
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
* Minimum number of hits
|
|
24
|
+
* Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` search results to be included in the Query Suggestions index.
|
|
23
25
|
*/
|
|
24
26
|
minHits?: number;
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
|
-
* Minimum
|
|
29
|
+
* Minimum letters required to be included as a suggestion. A search query must be at least `minLetters` long to be included in the Query Suggestions index.
|
|
28
30
|
*/
|
|
29
31
|
minLetters?: number;
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
* List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list (e.g., (facetA and facetB) and facetC).
|
|
33
|
-
*/
|
|
34
|
-
generate?: string[][];
|
|
33
|
+
generate?: string[][] | null;
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
* List of external indices to use to generate custom Query Suggestions.
|
|
38
|
-
*/
|
|
39
|
-
external?: SourceIndexExternal[];
|
|
35
|
+
external?: string[] | null;
|
|
40
36
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-query-suggestions",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.110",
|
|
4
4
|
"description": "JavaScript client for client-query-suggestions",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Algolia",
|
|
8
|
+
"type": "module",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"node": {
|
|
11
12
|
"import": "./dist/client-query-suggestions.esm.node.js",
|
|
12
13
|
"module": "./dist/client-query-suggestions.esm.node.js",
|
|
13
|
-
"require": "./dist/client-query-suggestions.cjs
|
|
14
|
-
"default": "./dist/client-query-suggestions.cjs
|
|
14
|
+
"require": "./dist/client-query-suggestions.cjs",
|
|
15
|
+
"default": "./dist/client-query-suggestions.cjs"
|
|
15
16
|
},
|
|
16
17
|
"default": {
|
|
17
18
|
"umd": "./dist/client-query-suggestions.umd.js",
|
|
@@ -38,14 +39,14 @@
|
|
|
38
39
|
"clean": "rm -rf ./dist || true"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
42
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
43
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
42
|
+
"@algolia/client-common": "5.0.0-alpha.111",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.111",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.111"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@types/node": "
|
|
47
|
-
"rollup": "
|
|
48
|
-
"typescript": "4.
|
|
47
|
+
"@types/node": "20.11.30",
|
|
48
|
+
"rollup": "4.13.2",
|
|
49
|
+
"typescript": "5.4.3"
|
|
49
50
|
},
|
|
50
51
|
"engines": {
|
|
51
52
|
"node": ">= 14.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexName.d.ts","sourceRoot":"","sources":["../../model/indexName.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/dist/model/logFile.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { LogLevel } from './logLevel';
|
|
2
|
-
export declare type LogFile = {
|
|
3
|
-
/**
|
|
4
|
-
* Date and time of creation of the record.
|
|
5
|
-
*/
|
|
6
|
-
timestamp: string;
|
|
7
|
-
level: LogLevel;
|
|
8
|
-
/**
|
|
9
|
-
* Detailed description of what happened.
|
|
10
|
-
*/
|
|
11
|
-
message: string;
|
|
12
|
-
/**
|
|
13
|
-
* Indicates the hierarchy of the records. For example, a record with contextLevel=1 belongs to a preceding record with contextLevel=0.
|
|
14
|
-
*/
|
|
15
|
-
contextLevel: number;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=logFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logFile.d.ts","sourceRoot":"","sources":["../../model/logFile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,oBAAY,OAAO,GAAG;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SourceIndexWithReplicas } from './sourceIndexWithReplicas';
|
|
2
|
-
export declare type QuerySuggestionsIndex = {
|
|
3
|
-
/**
|
|
4
|
-
* Index name to target.
|
|
5
|
-
*/
|
|
6
|
-
indexName: string;
|
|
7
|
-
/**
|
|
8
|
-
* List of source indices used to generate a Query Suggestions index.
|
|
9
|
-
*/
|
|
10
|
-
sourceIndices: SourceIndexWithReplicas[];
|
|
11
|
-
/**
|
|
12
|
-
* De-duplicate singular and plural suggestions. For example, let\'s say your index contains English content, and that two suggestions “shoe” and “shoes” end up in your Query Suggestions index. If the English language is configured, only the most popular of those two suggestions would remain.
|
|
13
|
-
*/
|
|
14
|
-
languages: string[];
|
|
15
|
-
/**
|
|
16
|
-
* List of words and patterns to exclude from the Query Suggestions index.
|
|
17
|
-
*/
|
|
18
|
-
exclude: string[];
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=querySuggestionsIndex.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"querySuggestionsIndex.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,EAAE,uBAAuB,EAAE,CAAC;IAEzC;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SourceIndex } from './sourceIndex';
|
|
2
|
-
export declare type QuerySuggestionsIndexParam = {
|
|
3
|
-
/**
|
|
4
|
-
* List of source indices used to generate a Query Suggestions index.
|
|
5
|
-
*/
|
|
6
|
-
sourceIndices: SourceIndex[];
|
|
7
|
-
/**
|
|
8
|
-
* De-duplicate singular and plural suggestions. For example, let\'s say your index contains English content, and that two suggestions “shoe” and “shoes” end up in your Query Suggestions index. If the English language is configured, only the most popular of those two suggestions would remain.
|
|
9
|
-
*/
|
|
10
|
-
languages?: string[];
|
|
11
|
-
/**
|
|
12
|
-
* List of words and patterns to exclude from the Query Suggestions index.
|
|
13
|
-
*/
|
|
14
|
-
exclude?: string[];
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=querySuggestionsIndexParam.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"querySuggestionsIndexParam.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsIndexParam.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,oBAAY,0BAA0B,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,WAAW,EAAE,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { IndexName } from './indexName';
|
|
2
|
-
import type { QuerySuggestionsIndexParam } from './querySuggestionsIndexParam';
|
|
3
|
-
export declare type QuerySuggestionsIndexWithIndexParam = IndexName & QuerySuggestionsIndexParam;
|
|
4
|
-
//# sourceMappingURL=querySuggestionsIndexWithIndexParam.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"querySuggestionsIndexWithIndexParam.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsIndexWithIndexParam.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,oBAAY,mCAAmC,GAAG,SAAS,GACzD,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sourceIndexExternal.d.ts","sourceRoot":"","sources":["../../model/sourceIndexExternal.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { SourceIndexExternal } from './sourceIndexExternal';
|
|
2
|
-
/**
|
|
3
|
-
* Source index with replicas used to generate a Query Suggestions index.
|
|
4
|
-
*/
|
|
5
|
-
export declare type SourceIndexWithReplicas = {
|
|
6
|
-
/**
|
|
7
|
-
* True if the Query Suggestions index is a replicas.
|
|
8
|
-
*/
|
|
9
|
-
replicas: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Source index name.
|
|
12
|
-
*/
|
|
13
|
-
indexName: string;
|
|
14
|
-
/**
|
|
15
|
-
* List of analytics tags to filter the popular searches per tag.
|
|
16
|
-
*/
|
|
17
|
-
analyticsTags: string[];
|
|
18
|
-
/**
|
|
19
|
-
* List of facets to define as categories for the query suggestions.
|
|
20
|
-
*/
|
|
21
|
-
facets: Array<Record<string, any>>;
|
|
22
|
-
/**
|
|
23
|
-
* Minimum number of hits (e.g., matching records in the source index) to generate a suggestions.
|
|
24
|
-
*/
|
|
25
|
-
minHits: number;
|
|
26
|
-
/**
|
|
27
|
-
* Minimum number of required letters for a suggestion to remain.
|
|
28
|
-
*/
|
|
29
|
-
minLetters: number;
|
|
30
|
-
/**
|
|
31
|
-
* List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list (e.g., (facetA and facetB) and facetC).
|
|
32
|
-
*/
|
|
33
|
-
generate: string[][];
|
|
34
|
-
/**
|
|
35
|
-
* List of external indices to use to generate custom Query Suggestions.
|
|
36
|
-
*/
|
|
37
|
-
external: SourceIndexExternal[];
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=sourceIndexWithReplicas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sourceIndexWithReplicas.d.ts","sourceRoot":"","sources":["../../model/sourceIndexWithReplicas.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,oBAAY,uBAAuB,GAAG;IACpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAEnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC"}
|
package/dist/model/status.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare type Status = {
|
|
2
|
-
/**
|
|
3
|
-
* The targeted index name.
|
|
4
|
-
*/
|
|
5
|
-
indexName: string;
|
|
6
|
-
/**
|
|
7
|
-
* True if the Query Suggestions index is running.
|
|
8
|
-
*/
|
|
9
|
-
isRunning: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Date and time of the last build.
|
|
12
|
-
*/
|
|
13
|
-
lastBuiltAt: string;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../model/status.ts"],"names":[],"mappings":"AAEA,oBAAY,MAAM,GAAG;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"successResponse.d.ts","sourceRoot":"","sources":["../../model/successResponse.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/model/indexName.ts
DELETED
package/model/logFile.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { LogLevel } from './logLevel';
|
|
4
|
-
|
|
5
|
-
export type LogFile = {
|
|
6
|
-
/**
|
|
7
|
-
* Date and time of creation of the record.
|
|
8
|
-
*/
|
|
9
|
-
timestamp: string;
|
|
10
|
-
|
|
11
|
-
level: LogLevel;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Detailed description of what happened.
|
|
15
|
-
*/
|
|
16
|
-
message: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Indicates the hierarchy of the records. For example, a record with contextLevel=1 belongs to a preceding record with contextLevel=0.
|
|
20
|
-
*/
|
|
21
|
-
contextLevel: number;
|
|
22
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { SourceIndexWithReplicas } from './sourceIndexWithReplicas';
|
|
4
|
-
|
|
5
|
-
export type QuerySuggestionsIndex = {
|
|
6
|
-
/**
|
|
7
|
-
* Index name to target.
|
|
8
|
-
*/
|
|
9
|
-
indexName: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* List of source indices used to generate a Query Suggestions index.
|
|
13
|
-
*/
|
|
14
|
-
sourceIndices: SourceIndexWithReplicas[];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* De-duplicate singular and plural suggestions. For example, let\'s say your index contains English content, and that two suggestions “shoe” and “shoes” end up in your Query Suggestions index. If the English language is configured, only the most popular of those two suggestions would remain.
|
|
18
|
-
*/
|
|
19
|
-
languages: string[];
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* List of words and patterns to exclude from the Query Suggestions index.
|
|
23
|
-
*/
|
|
24
|
-
exclude: string[];
|
|
25
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { SourceIndex } from './sourceIndex';
|
|
4
|
-
|
|
5
|
-
export type QuerySuggestionsIndexParam = {
|
|
6
|
-
/**
|
|
7
|
-
* List of source indices used to generate a Query Suggestions index.
|
|
8
|
-
*/
|
|
9
|
-
sourceIndices: SourceIndex[];
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* De-duplicate singular and plural suggestions. For example, let\'s say your index contains English content, and that two suggestions “shoe” and “shoes” end up in your Query Suggestions index. If the English language is configured, only the most popular of those two suggestions would remain.
|
|
13
|
-
*/
|
|
14
|
-
languages?: string[];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* List of words and patterns to exclude from the Query Suggestions index.
|
|
18
|
-
*/
|
|
19
|
-
exclude?: string[];
|
|
20
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { IndexName } from './indexName';
|
|
4
|
-
import type { QuerySuggestionsIndexParam } from './querySuggestionsIndexParam';
|
|
5
|
-
|
|
6
|
-
export type QuerySuggestionsIndexWithIndexParam = IndexName &
|
|
7
|
-
QuerySuggestionsIndexParam;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
export type SourceIndexExternal = {
|
|
4
|
-
/**
|
|
5
|
-
* The suggestion you would like to add.
|
|
6
|
-
*/
|
|
7
|
-
query: string;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The measure of the suggestion relative popularity.
|
|
11
|
-
*/
|
|
12
|
-
count: number;
|
|
13
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
import type { SourceIndexExternal } from './sourceIndexExternal';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Source index with replicas used to generate a Query Suggestions index.
|
|
7
|
-
*/
|
|
8
|
-
export type SourceIndexWithReplicas = {
|
|
9
|
-
/**
|
|
10
|
-
* True if the Query Suggestions index is a replicas.
|
|
11
|
-
*/
|
|
12
|
-
replicas: boolean;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Source index name.
|
|
16
|
-
*/
|
|
17
|
-
indexName: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* List of analytics tags to filter the popular searches per tag.
|
|
21
|
-
*/
|
|
22
|
-
analyticsTags: string[];
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* List of facets to define as categories for the query suggestions.
|
|
26
|
-
*/
|
|
27
|
-
facets: Array<Record<string, any>>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Minimum number of hits (e.g., matching records in the source index) to generate a suggestions.
|
|
31
|
-
*/
|
|
32
|
-
minHits: number;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Minimum number of required letters for a suggestion to remain.
|
|
36
|
-
*/
|
|
37
|
-
minLetters: number;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* List of facet attributes used to generate Query Suggestions. The resulting suggestions are every combination of the facets in the nested list (e.g., (facetA and facetB) and facetC).
|
|
41
|
-
*/
|
|
42
|
-
generate: string[][];
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* List of external indices to use to generate custom Query Suggestions.
|
|
46
|
-
*/
|
|
47
|
-
external: SourceIndexExternal[];
|
|
48
|
-
};
|
package/model/status.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
export type Status = {
|
|
4
|
-
/**
|
|
5
|
-
* The targeted index name.
|
|
6
|
-
*/
|
|
7
|
-
indexName: string;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* True if the Query Suggestions index is running.
|
|
11
|
-
*/
|
|
12
|
-
isRunning: boolean;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Date and time of the last build.
|
|
16
|
-
*/
|
|
17
|
-
lastBuiltAt: string;
|
|
18
|
-
};
|
package/model/successResponse.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
|
|
2
|
-
|
|
3
|
-
export type SuccessResponse = {
|
|
4
|
-
/**
|
|
5
|
-
* The status code.
|
|
6
|
-
*/
|
|
7
|
-
status: number;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Message of the response.
|
|
11
|
-
*/
|
|
12
|
-
message: string;
|
|
13
|
-
};
|