@algolia/client-query-suggestions 5.0.0-alpha.8 → 5.0.0-alpha.81
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 +5 -5
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +5 -5
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/{client-query-suggestions.cjs.js → client-query-suggestions.cjs} +351 -353
- package/dist/client-query-suggestions.esm.browser.js +534 -582
- package/dist/client-query-suggestions.esm.node.js +351 -351
- package/dist/client-query-suggestions.umd.js +2 -2
- 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 +14 -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 +25 -0
- package/dist/model/querySuggestionsConfiguration.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationResponse.d.ts +4 -0
- package/dist/model/querySuggestionsConfigurationResponse.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationResponseAllOf.d.ts +19 -0
- package/dist/model/querySuggestionsConfigurationResponseAllOf.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationWithIndex.d.ts +7 -0
- package/dist/model/querySuggestionsConfigurationWithIndex.d.ts.map +1 -0
- package/dist/model/querySuggestionsConfigurationWithIndexAllOf.d.ts +7 -0
- package/dist/model/querySuggestionsConfigurationWithIndexAllOf.d.ts.map +1 -0
- package/dist/model/sourceIndex.d.ts +35 -31
- package/dist/model/sourceIndex.d.ts.map +1 -1
- package/dist/src/querySuggestionsClient.d.ts +141 -141
- package/dist/src/querySuggestionsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/baseResponse.ts +13 -0
- package/model/clientMethodProps.ts +18 -18
- 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 +11 -10
- package/model/languages.ts +6 -0
- package/model/logLevel.ts +2 -2
- package/model/querySuggestionsConfiguration.ts +31 -0
- package/model/querySuggestionsConfigurationResponse.ts +8 -0
- package/model/querySuggestionsConfigurationResponseAllOf.ts +23 -0
- package/model/querySuggestionsConfigurationWithIndex.ts +10 -0
- package/model/querySuggestionsConfigurationWithIndexAllOf.ts +8 -0
- package/model/sourceIndex.ts +19 -14
- package/package.json +30 -13
- 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,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 { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
|
|
4
|
+
import type { QuerySuggestionsConfigurationWithIndexAllOf } from './querySuggestionsConfigurationWithIndexAllOf';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Query Suggestions configuration.
|
|
8
|
+
*/
|
|
9
|
+
export type QuerySuggestionsConfigurationWithIndex =
|
|
10
|
+
QuerySuggestionsConfiguration & QuerySuggestionsConfigurationWithIndexAllOf;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export type QuerySuggestionsConfigurationWithIndexAllOf = {
|
|
4
|
+
/**
|
|
5
|
+
* Query Suggestions index name.
|
|
6
|
+
*/
|
|
7
|
+
indexName: string;
|
|
8
|
+
};
|
package/model/sourceIndex.ts
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
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 replicas of the primary index to find popular searches. If false, only the primary index is used.
|
|
13
16
|
*/
|
|
14
|
-
|
|
17
|
+
replicas?: boolean;
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
|
-
*
|
|
20
|
+
* [Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches.
|
|
18
21
|
*/
|
|
19
|
-
|
|
22
|
+
analyticsTags?: string[] | null;
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Facets to use as top categories with your suggestions. If provided, Query Suggestions adds the top facet values to each suggestion.
|
|
23
26
|
*/
|
|
24
|
-
|
|
27
|
+
facets?: Facet[] | null;
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
|
-
* Minimum number of required
|
|
30
|
+
* Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` hits to be included in the Query Suggestions index.
|
|
28
31
|
*/
|
|
29
|
-
|
|
32
|
+
minHits?: number;
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
35
|
+
* 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.
|
|
33
36
|
*/
|
|
37
|
+
minLetters?: number;
|
|
38
|
+
|
|
34
39
|
generate?: string[][];
|
|
35
40
|
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* Algolia indices with popular searches to use as query suggestions. Records of these indices must have these attributes: - `query`: search query which will be added as a suggestion - `count`: measure of popularity of that search query For example, you can export popular searches from an external analytics tool, such as Google Analytics or Adobe Analytics, and feed this data into an external Algolia index. You can use this external index to generate query suggestions until your Algolia analytics has collected enough data.
|
|
38
43
|
*/
|
|
39
|
-
external?:
|
|
44
|
+
external?: string[] | null;
|
|
40
45
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-query-suggestions",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.81",
|
|
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
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"node": {
|
|
12
|
+
"import": "./dist/client-query-suggestions.esm.node.js",
|
|
13
|
+
"module": "./dist/client-query-suggestions.esm.node.js",
|
|
14
|
+
"require": "./dist/client-query-suggestions.cjs",
|
|
15
|
+
"default": "./dist/client-query-suggestions.cjs"
|
|
16
|
+
},
|
|
17
|
+
"default": {
|
|
18
|
+
"umd": "./dist/client-query-suggestions.umd.js",
|
|
19
|
+
"module": "./dist/client-query-suggestions.esm.browser.js",
|
|
20
|
+
"import": "./dist/client-query-suggestions.esm.browser.js",
|
|
21
|
+
"default": "./dist/client-query-suggestions.umd.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"./src/*": "./src/*.ts",
|
|
25
|
+
"./model": "./model/index.ts"
|
|
26
|
+
},
|
|
27
|
+
"jsdelivr": "./dist/client-query-suggestions.umd.js",
|
|
28
|
+
"unpkg": "./dist/client-query-suggestions.umd.js",
|
|
29
|
+
"browser": "./dist/client-query-suggestions.umd.js",
|
|
30
|
+
"types": "./index.d.ts",
|
|
14
31
|
"files": [
|
|
15
32
|
"dist",
|
|
16
33
|
"model",
|
|
@@ -22,14 +39,14 @@
|
|
|
22
39
|
"clean": "rm -rf ./dist || true"
|
|
23
40
|
},
|
|
24
41
|
"dependencies": {
|
|
25
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
26
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
27
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
42
|
+
"@algolia/client-common": "5.0.0-alpha.81",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.81",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.81"
|
|
28
45
|
},
|
|
29
46
|
"devDependencies": {
|
|
30
|
-
"@types/node": "
|
|
31
|
-
"rollup": "
|
|
32
|
-
"typescript": "
|
|
47
|
+
"@types/node": "18.17.12",
|
|
48
|
+
"rollup": "3.28.1",
|
|
49
|
+
"typescript": "5.2.2"
|
|
33
50
|
},
|
|
34
51
|
"engines": {
|
|
35
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
|
-
};
|