@algolia/client-query-suggestions 5.0.0-alpha.1 → 5.0.0-alpha.100
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} +361 -342
- package/dist/client-query-suggestions.esm.browser.js +573 -576
- package/dist/client-query-suggestions.esm.node.js +361 -340
- package/dist/client-query-suggestions.umd.js +2 -2
- package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts +19 -0
- package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts.map +1 -0
- package/dist/model/baseQuerySuggestionsConfigurationWithIndex.d.ts +7 -0
- package/dist/model/baseQuerySuggestionsConfigurationWithIndex.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 +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/querySuggestionsConfigurationWithIndex.d.ts +7 -0
- package/dist/model/querySuggestionsConfigurationWithIndex.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 +151 -130
- package/dist/src/querySuggestionsClient.d.ts.map +1 -1
- package/index.js +1 -1
- package/model/baseQuerySuggestionsConfigurationResponse.ts +23 -0
- package/model/baseQuerySuggestionsConfigurationWithIndex.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 +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/querySuggestionsConfigurationWithIndex.ts +10 -0
- package/model/sourceIndex.ts +25 -14
- package/package.json +32 -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 -19
- package/model/querySuggestionsIndex.ts +0 -22
- package/model/querySuggestionsIndexParam.ts +0 -18
- package/model/querySuggestionsIndexWithIndexParam.ts +0 -7
- package/model/sourceIndexExternal.ts +0 -12
- package/model/sourceIndexWithReplicas.ts +0 -41
- package/model/status.ts +0 -16
- package/model/successResponse.ts +0 -12
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import type { Facet } from './facet';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration of an Algolia index for Query Suggestions.
|
|
4
|
+
*/
|
|
5
|
+
export type SourceIndex = {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the Algolia index to use as source for query suggestions.
|
|
8
|
+
*/
|
|
9
|
+
indexName: string;
|
|
10
|
+
/**
|
|
11
|
+
* If true, Query Suggestions uses all replicas of the primary index to find popular searches. If false, only the primary index is used.
|
|
12
|
+
*/
|
|
13
|
+
replicas?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* [Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches.
|
|
16
|
+
*/
|
|
17
|
+
analyticsTags?: string[] | null;
|
|
18
|
+
/**
|
|
19
|
+
* Facets to use as top categories with your suggestions. If provided, Query Suggestions adds the top facet values to each suggestion.
|
|
20
|
+
*/
|
|
21
|
+
facets?: Facet[] | null;
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
minHits?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 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
|
+
*/
|
|
29
|
+
minLetters?: number;
|
|
30
|
+
generate?: string[][];
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*/
|
|
34
|
+
external?: string[] | null;
|
|
35
|
+
};
|
|
32
36
|
//# sourceMappingURL=sourceIndex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceIndex.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"sourceIndex.d.ts","sourceRoot":"","sources":["../../model/sourceIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC5B,CAAC"}
|
|
@@ -1,131 +1,152 @@
|
|
|
1
|
-
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
9
|
-
export declare const REGIONS: readonly ["eu", "us"];
|
|
10
|
-
export
|
|
11
|
-
export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
12
|
-
region: Region;
|
|
13
|
-
}): {
|
|
14
|
-
transporter: import("@algolia/client-common").Transporter;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
41
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
55
|
-
*
|
|
56
|
-
* @
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
67
|
-
* @param
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* @param
|
|
76
|
-
* @param
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
1
|
+
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { BaseResponse } from '../model/baseResponse';
|
|
3
|
+
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteConfigProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, UpdateConfigProps } from '../model/clientMethodProps';
|
|
4
|
+
import type { GetConfigStatus200Response } from '../model/getConfigStatus200Response';
|
|
5
|
+
import type { GetLogFile200Response } from '../model/getLogFile200Response';
|
|
6
|
+
import type { QuerySuggestionsConfigurationResponse } from '../model/querySuggestionsConfigurationResponse';
|
|
7
|
+
import type { QuerySuggestionsConfigurationWithIndex } from '../model/querySuggestionsConfigurationWithIndex';
|
|
8
|
+
export declare const apiClientVersion = "5.0.0-alpha.100";
|
|
9
|
+
export declare const REGIONS: readonly ["eu", "us"];
|
|
10
|
+
export type Region = (typeof REGIONS)[number];
|
|
11
|
+
export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
12
|
+
region: Region;
|
|
13
|
+
}): {
|
|
14
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
15
|
+
/**
|
|
16
|
+
* The `appId` currently in use.
|
|
17
|
+
*/
|
|
18
|
+
appId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
21
|
+
*/
|
|
22
|
+
clearCache(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
25
|
+
*/
|
|
26
|
+
readonly _ua: string;
|
|
27
|
+
/**
|
|
28
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
29
|
+
*
|
|
30
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
31
|
+
* @param version - The version of the agent.
|
|
32
|
+
*/
|
|
33
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
|
|
36
|
+
*
|
|
37
|
+
* Required API Key ACLs:
|
|
38
|
+
* - editSettings.
|
|
39
|
+
*
|
|
40
|
+
* @param querySuggestionsConfigurationWithIndex - The querySuggestionsConfigurationWithIndex object.
|
|
41
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
42
|
+
*/
|
|
43
|
+
createConfig(querySuggestionsConfigurationWithIndex: QuerySuggestionsConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
46
|
+
*
|
|
47
|
+
* @param customDelete - The customDelete object.
|
|
48
|
+
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
49
|
+
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
50
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
51
|
+
*/
|
|
52
|
+
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
53
|
+
/**
|
|
54
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
55
|
+
*
|
|
56
|
+
* @param customGet - The customGet object.
|
|
57
|
+
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
58
|
+
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
59
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
60
|
+
*/
|
|
61
|
+
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
62
|
+
/**
|
|
63
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
64
|
+
*
|
|
65
|
+
* @param customPost - The customPost object.
|
|
66
|
+
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
67
|
+
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
68
|
+
* @param customPost.body - Parameters to send with the custom request.
|
|
69
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
70
|
+
*/
|
|
71
|
+
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
72
|
+
/**
|
|
73
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
74
|
+
*
|
|
75
|
+
* @param customPut - The customPut object.
|
|
76
|
+
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
77
|
+
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
78
|
+
* @param customPut.body - Parameters to send with the custom request.
|
|
79
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
80
|
+
*/
|
|
81
|
+
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
|
|
84
|
+
*
|
|
85
|
+
* Required API Key ACLs:
|
|
86
|
+
* - editSettings.
|
|
87
|
+
*
|
|
88
|
+
* @param deleteConfig - The deleteConfig object.
|
|
89
|
+
* @param deleteConfig.indexName - Query Suggestions index name.
|
|
90
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
91
|
+
*/
|
|
92
|
+
deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* List all Query Suggestions configurations of your Algolia application.
|
|
95
|
+
*
|
|
96
|
+
* Required API Key ACLs:
|
|
97
|
+
* - settings.
|
|
98
|
+
*
|
|
99
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
|
+
*/
|
|
101
|
+
getAllConfigs(requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Get a single Query Suggestions configuration.
|
|
104
|
+
*
|
|
105
|
+
* Required API Key ACLs:
|
|
106
|
+
* - settings.
|
|
107
|
+
*
|
|
108
|
+
* @param getConfig - The getConfig object.
|
|
109
|
+
* @param getConfig.indexName - Query Suggestions index name.
|
|
110
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
111
|
+
*/
|
|
112
|
+
getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Report the status of a Query Suggestions index.
|
|
115
|
+
*
|
|
116
|
+
* Required API Key ACLs:
|
|
117
|
+
* - settings.
|
|
118
|
+
*
|
|
119
|
+
* @param getConfigStatus - The getConfigStatus object.
|
|
120
|
+
* @param getConfigStatus.indexName - Query Suggestions index name.
|
|
121
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
122
|
+
*/
|
|
123
|
+
getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<GetConfigStatus200Response>;
|
|
124
|
+
/**
|
|
125
|
+
* Get the logs for a single Query Suggestions index.
|
|
126
|
+
*
|
|
127
|
+
* Required API Key ACLs:
|
|
128
|
+
* - settings.
|
|
129
|
+
*
|
|
130
|
+
* @param getLogFile - The getLogFile object.
|
|
131
|
+
* @param getLogFile.indexName - Query Suggestions index name.
|
|
132
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
133
|
+
*/
|
|
134
|
+
getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
|
|
135
|
+
/**
|
|
136
|
+
* Update a QuerySuggestions configuration.
|
|
137
|
+
*
|
|
138
|
+
* Required API Key ACLs:
|
|
139
|
+
* - editSettings.
|
|
140
|
+
*
|
|
141
|
+
* @param updateConfig - The updateConfig object.
|
|
142
|
+
* @param updateConfig.indexName - Query Suggestions index name.
|
|
143
|
+
* @param updateConfig.querySuggestionsConfiguration - The querySuggestionsConfiguration object.
|
|
144
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
145
|
+
*/
|
|
146
|
+
updateConfig({ indexName, querySuggestionsConfiguration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* The client type.
|
|
150
|
+
*/
|
|
151
|
+
export type QuerySuggestionsClient = ReturnType<typeof createQuerySuggestionsClient>;
|
|
131
152
|
//# sourceMappingURL=querySuggestionsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"querySuggestionsClient.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"querySuggestionsClient.d.ts","sourceRoot":"","sources":["../../src/querySuggestionsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAInB,cAAc,EAEf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAC5G,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AAE9G,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD,eAAO,MAAM,OAAO,uBAAwB,CAAC;AAC7C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAY9C,wBAAgB,4BAA4B,CAAC,EAC3C,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,MAAM,EAAE,YAAY,EACpB,GAAG,OAAO,EACX,EAAE,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;IAwBvC;;OAEG;;IAGH;;OAEG;kBACW,QAAQ,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;;OAQG;yDAEuC,sCAAsC,mBAC7D,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAsBxB;;;;;;;OAOG;uCAEqB,iBAAiB,mBACtB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;OAOG;oCAEqB,cAAc,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;0CAE2B,cAAc,mBACzB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;;OASG;gCAEc,iBAAiB,mBACf,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAwBxB;;;;;;;OAOG;mCAEgB,cAAc,GAC9B,QAAQ,qCAAqC,EAAE,CAAC;IAenD;;;;;;;;;OASG;6BAEc,cAAc,mBACZ,cAAc,GAC9B,QAAQ,qCAAqC,CAAC;IAwBjD;;;;;;;;;OASG;mCAEc,oBAAoB,mBAClB,cAAc,GAC9B,QAAQ,0BAA0B,CAAC;IAwBtC;;;;;;;;;OASG;8BAEc,eAAe,mBACb,cAAc,GAC9B,QAAQ,qBAAqB,CAAC;IAwBjC;;;;;;;;;;OAUG;+DAE6C,iBAAiB,mBAC9C,cAAc,GAC9B,QAAQ,YAAY,CAAC;EAqC3B;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,OAAO,4BAA4B,CACpC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-commonjs,import/extensions
|
|
2
|
-
module.exports = require('./dist/client-query-suggestions.cjs
|
|
2
|
+
module.exports = require('./dist/client-query-suggestions.cjs');
|
|
@@ -0,0 +1,23 @@
|
|
|
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 BaseQuerySuggestionsConfigurationResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* Your Algolia application ID.
|
|
6
|
+
*/
|
|
7
|
+
appId?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* API key used to read from your source index.
|
|
11
|
+
*/
|
|
12
|
+
sourceIndicesAPIKey?: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* API key used to write and configure your Query Suggestions index.
|
|
16
|
+
*/
|
|
17
|
+
suggestionsIndicesAPIKey?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* API key used to read from external Algolia indices.
|
|
21
|
+
*/
|
|
22
|
+
externalIndicesAPIKey?: string;
|
|
23
|
+
};
|
|
@@ -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 BaseQuerySuggestionsConfigurationWithIndex = {
|
|
4
|
+
/**
|
|
5
|
+
* Query Suggestions index name.
|
|
6
|
+
*/
|
|
7
|
+
indexName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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 BaseResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* HTTP status code.
|
|
6
|
+
*/
|
|
7
|
+
status?: number;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Details about the response, such as error messages.
|
|
11
|
+
*/
|
|
12
|
+
message?: string;
|
|
13
|
+
};
|
|
@@ -1,109 +1,109 @@
|
|
|
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 { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Properties for the `
|
|
6
|
+
* Properties for the `customDelete` method.
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
8
|
+
export type CustomDeleteProps = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
11
11
|
*/
|
|
12
12
|
path: string;
|
|
13
13
|
/**
|
|
14
|
-
* Query parameters to
|
|
14
|
+
* Query parameters to apply to the current query.
|
|
15
15
|
*/
|
|
16
16
|
parameters?: Record<string, any>;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Properties for the `
|
|
20
|
+
* Properties for the `customGet` method.
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type CustomGetProps = {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
path: string;
|
|
27
|
+
/**
|
|
28
|
+
* Query parameters to apply to the current query.
|
|
29
|
+
*/
|
|
30
|
+
parameters?: Record<string, any>;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
/**
|
|
30
|
-
* Properties for the `
|
|
34
|
+
* Properties for the `customPost` method.
|
|
31
35
|
*/
|
|
32
|
-
export type
|
|
36
|
+
export type CustomPostProps = {
|
|
33
37
|
/**
|
|
34
|
-
*
|
|
38
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
35
39
|
*/
|
|
36
40
|
path: string;
|
|
37
41
|
/**
|
|
38
|
-
* Query parameters to
|
|
42
|
+
* Query parameters to apply to the current query.
|
|
39
43
|
*/
|
|
40
44
|
parameters?: Record<string, any>;
|
|
45
|
+
/**
|
|
46
|
+
* Parameters to send with the custom request.
|
|
47
|
+
*/
|
|
48
|
+
body?: Record<string, any>;
|
|
41
49
|
};
|
|
42
50
|
|
|
43
51
|
/**
|
|
44
|
-
* Properties for the `
|
|
52
|
+
* Properties for the `customPut` method.
|
|
45
53
|
*/
|
|
46
|
-
export type
|
|
54
|
+
export type CustomPutProps = {
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
56
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
49
57
|
*/
|
|
50
|
-
|
|
58
|
+
path: string;
|
|
59
|
+
/**
|
|
60
|
+
* Query parameters to apply to the current query.
|
|
61
|
+
*/
|
|
62
|
+
parameters?: Record<string, any>;
|
|
63
|
+
/**
|
|
64
|
+
* Parameters to send with the custom request.
|
|
65
|
+
*/
|
|
66
|
+
body?: Record<string, any>;
|
|
51
67
|
};
|
|
52
68
|
|
|
53
69
|
/**
|
|
54
|
-
* Properties for the `
|
|
70
|
+
* Properties for the `deleteConfig` method.
|
|
55
71
|
*/
|
|
56
|
-
export type
|
|
72
|
+
export type DeleteConfigProps = {
|
|
57
73
|
/**
|
|
58
|
-
*
|
|
74
|
+
* Query Suggestions index name.
|
|
59
75
|
*/
|
|
60
76
|
indexName: string;
|
|
61
77
|
};
|
|
62
78
|
|
|
63
79
|
/**
|
|
64
|
-
* Properties for the `
|
|
80
|
+
* Properties for the `getConfig` method.
|
|
65
81
|
*/
|
|
66
|
-
export type
|
|
82
|
+
export type GetConfigProps = {
|
|
67
83
|
/**
|
|
68
|
-
*
|
|
84
|
+
* Query Suggestions index name.
|
|
69
85
|
*/
|
|
70
86
|
indexName: string;
|
|
71
87
|
};
|
|
72
88
|
|
|
73
89
|
/**
|
|
74
|
-
* Properties for the `
|
|
90
|
+
* Properties for the `getConfigStatus` method.
|
|
75
91
|
*/
|
|
76
|
-
export type
|
|
77
|
-
/**
|
|
78
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
79
|
-
*/
|
|
80
|
-
path: string;
|
|
81
|
-
/**
|
|
82
|
-
* Query parameters to be applied to the current query.
|
|
83
|
-
*/
|
|
84
|
-
parameters?: Record<string, any>;
|
|
92
|
+
export type GetConfigStatusProps = {
|
|
85
93
|
/**
|
|
86
|
-
*
|
|
94
|
+
* Query Suggestions index name.
|
|
87
95
|
*/
|
|
88
|
-
|
|
96
|
+
indexName: string;
|
|
89
97
|
};
|
|
90
98
|
|
|
91
99
|
/**
|
|
92
|
-
* Properties for the `
|
|
100
|
+
* Properties for the `getLogFile` method.
|
|
93
101
|
*/
|
|
94
|
-
export type
|
|
95
|
-
/**
|
|
96
|
-
* The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
97
|
-
*/
|
|
98
|
-
path: string;
|
|
99
|
-
/**
|
|
100
|
-
* Query parameters to be applied to the current query.
|
|
101
|
-
*/
|
|
102
|
-
parameters?: Record<string, any>;
|
|
102
|
+
export type GetLogFileProps = {
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Query Suggestions index name.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
indexName: string;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
/**
|
|
@@ -111,8 +111,8 @@ export type PutProps = {
|
|
|
111
111
|
*/
|
|
112
112
|
export type UpdateConfigProps = {
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* Query Suggestions index name.
|
|
115
115
|
*/
|
|
116
116
|
indexName: string;
|
|
117
|
-
|
|
117
|
+
querySuggestionsConfiguration: QuerySuggestionsConfiguration;
|
|
118
118
|
};
|
package/model/errorBase.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
3
|
/**
|
|
4
4
|
* Error.
|
package/model/facet.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* Facet to use as category.
|
|
5
|
+
*/
|
|
6
|
+
export type Facet = {
|
|
7
|
+
/**
|
|
8
|
+
* Facet name.
|
|
9
|
+
*/
|
|
10
|
+
attribute?: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Number of suggestions.
|
|
14
|
+
*/
|
|
15
|
+
amount?: number;
|
|
16
|
+
};
|