@algolia/client-query-suggestions 5.0.0-alpha.8 → 5.0.0-alpha.80
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
|
@@ -1,142 +1,142 @@
|
|
|
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
|
-
* 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
|
|
36
|
-
*
|
|
37
|
-
* @summary Create a configuration.
|
|
38
|
-
* @param
|
|
39
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
40
|
-
*/
|
|
41
|
-
createConfig(
|
|
42
|
-
/**
|
|
43
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
44
|
-
*
|
|
45
|
-
* @summary Send requests to the Algolia REST API.
|
|
46
|
-
* @param del - The del object.
|
|
47
|
-
* @param del.path -
|
|
48
|
-
* @param del.parameters - Query parameters to
|
|
49
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
50
|
-
*/
|
|
51
|
-
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
52
|
-
/**
|
|
53
|
-
* Delete a
|
|
54
|
-
*
|
|
55
|
-
* @summary Delete a configuration.
|
|
56
|
-
* @param deleteConfig - The deleteConfig object.
|
|
57
|
-
* @param deleteConfig.indexName -
|
|
58
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
59
|
-
*/
|
|
60
|
-
deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<
|
|
61
|
-
/**
|
|
62
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
63
|
-
*
|
|
64
|
-
* @summary Send requests to the Algolia REST API.
|
|
65
|
-
* @param get - The get object.
|
|
66
|
-
* @param get.path -
|
|
67
|
-
* @param get.parameters - Query parameters to
|
|
68
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
69
|
-
*/
|
|
70
|
-
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @summary List configurations.
|
|
75
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
76
|
-
*/
|
|
77
|
-
getAllConfigs(requestOptions?: RequestOptions): Promise<
|
|
78
|
-
/**
|
|
79
|
-
* Get
|
|
80
|
-
*
|
|
81
|
-
* @summary Get a
|
|
82
|
-
* @param getConfig - The getConfig object.
|
|
83
|
-
* @param getConfig.indexName -
|
|
84
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
85
|
-
*/
|
|
86
|
-
getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* @summary Get configuration status.
|
|
91
|
-
* @param getConfigStatus - The getConfigStatus object.
|
|
92
|
-
* @param getConfigStatus.indexName -
|
|
93
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
94
|
-
*/
|
|
95
|
-
getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<
|
|
96
|
-
/**
|
|
97
|
-
* Get the
|
|
98
|
-
*
|
|
99
|
-
* @summary Get
|
|
100
|
-
* @param getLogFile - The getLogFile object.
|
|
101
|
-
* @param getLogFile.indexName -
|
|
102
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
103
|
-
*/
|
|
104
|
-
getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<
|
|
105
|
-
/**
|
|
106
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
107
|
-
*
|
|
108
|
-
* @summary Send requests to the Algolia REST API.
|
|
109
|
-
* @param post - The post object.
|
|
110
|
-
* @param post.path -
|
|
111
|
-
* @param post.parameters - Query parameters to
|
|
112
|
-
* @param post.body -
|
|
113
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
114
|
-
*/
|
|
115
|
-
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
116
|
-
/**
|
|
117
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
118
|
-
*
|
|
119
|
-
* @summary Send requests to the Algolia REST API.
|
|
120
|
-
* @param put - The put object.
|
|
121
|
-
* @param put.path -
|
|
122
|
-
* @param put.parameters - Query parameters to
|
|
123
|
-
* @param put.body -
|
|
124
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
125
|
-
*/
|
|
126
|
-
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
127
|
-
/**
|
|
128
|
-
* Update
|
|
129
|
-
*
|
|
130
|
-
* @summary Update a configuration.
|
|
131
|
-
* @param updateConfig - The updateConfig object.
|
|
132
|
-
* @param updateConfig.indexName -
|
|
133
|
-
* @param updateConfig.
|
|
134
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
135
|
-
*/
|
|
136
|
-
updateConfig({ indexName,
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* The client type.
|
|
140
|
-
*/
|
|
141
|
-
export
|
|
1
|
+
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { BaseResponse } from '../model/baseResponse';
|
|
3
|
+
import type { DelProps, DeleteConfigProps, GetProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, PostProps, PutProps, 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.80";
|
|
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
|
+
* @summary Create a configuration.
|
|
38
|
+
* @param querySuggestionsConfigurationWithIndex - The querySuggestionsConfigurationWithIndex object.
|
|
39
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
40
|
+
*/
|
|
41
|
+
createConfig(querySuggestionsConfigurationWithIndex: QuerySuggestionsConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
44
|
+
*
|
|
45
|
+
* @summary Send requests to the Algolia REST API.
|
|
46
|
+
* @param del - The del object.
|
|
47
|
+
* @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
48
|
+
* @param del.parameters - Query parameters to apply to the current query.
|
|
49
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
50
|
+
*/
|
|
51
|
+
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
*
|
|
55
|
+
* @summary Delete a configuration.
|
|
56
|
+
* @param deleteConfig - The deleteConfig object.
|
|
57
|
+
* @param deleteConfig.indexName - Query Suggestions index name.
|
|
58
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
59
|
+
*/
|
|
60
|
+
deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
63
|
+
*
|
|
64
|
+
* @summary Send requests to the Algolia REST API.
|
|
65
|
+
* @param get - The get object.
|
|
66
|
+
* @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
67
|
+
* @param get.parameters - Query parameters to apply to the current query.
|
|
68
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
69
|
+
*/
|
|
70
|
+
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
71
|
+
/**
|
|
72
|
+
* List all Query Suggestions configurations of your Algolia application.
|
|
73
|
+
*
|
|
74
|
+
* @summary List configurations.
|
|
75
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
76
|
+
*/
|
|
77
|
+
getAllConfigs(requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Get a single Query Suggestions configuration.
|
|
80
|
+
*
|
|
81
|
+
* @summary Get a configuration.
|
|
82
|
+
* @param getConfig - The getConfig object.
|
|
83
|
+
* @param getConfig.indexName - Query Suggestions index name.
|
|
84
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
85
|
+
*/
|
|
86
|
+
getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Report the status of a Query Suggestions index.
|
|
89
|
+
*
|
|
90
|
+
* @summary Get configuration status.
|
|
91
|
+
* @param getConfigStatus - The getConfigStatus object.
|
|
92
|
+
* @param getConfigStatus.indexName - Query Suggestions index name.
|
|
93
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
94
|
+
*/
|
|
95
|
+
getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<GetConfigStatus200Response>;
|
|
96
|
+
/**
|
|
97
|
+
* Get the logs for a single Query Suggestions index.
|
|
98
|
+
*
|
|
99
|
+
* @summary Get logs.
|
|
100
|
+
* @param getLogFile - The getLogFile object.
|
|
101
|
+
* @param getLogFile.indexName - Query Suggestions index name.
|
|
102
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
103
|
+
*/
|
|
104
|
+
getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
|
|
105
|
+
/**
|
|
106
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
107
|
+
*
|
|
108
|
+
* @summary Send requests to the Algolia REST API.
|
|
109
|
+
* @param post - The post object.
|
|
110
|
+
* @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
111
|
+
* @param post.parameters - Query parameters to apply to the current query.
|
|
112
|
+
* @param post.body - Parameters to send with the custom request.
|
|
113
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
114
|
+
*/
|
|
115
|
+
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
116
|
+
/**
|
|
117
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
118
|
+
*
|
|
119
|
+
* @summary Send requests to the Algolia REST API.
|
|
120
|
+
* @param put - The put object.
|
|
121
|
+
* @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
122
|
+
* @param put.parameters - Query parameters to apply to the current query.
|
|
123
|
+
* @param put.body - Parameters to send with the custom request.
|
|
124
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
125
|
+
*/
|
|
126
|
+
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
127
|
+
/**
|
|
128
|
+
* Update a QuerySuggestions configuration.
|
|
129
|
+
*
|
|
130
|
+
* @summary Update a configuration.
|
|
131
|
+
* @param updateConfig - The updateConfig object.
|
|
132
|
+
* @param updateConfig.indexName - Query Suggestions index name.
|
|
133
|
+
* @param updateConfig.querySuggestionsConfiguration - The querySuggestionsConfiguration object.
|
|
134
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
135
|
+
*/
|
|
136
|
+
updateConfig({ indexName, querySuggestionsConfiguration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* The client type.
|
|
140
|
+
*/
|
|
141
|
+
export type QuerySuggestionsClient = ReturnType<typeof createQuerySuggestionsClient>;
|
|
142
142
|
//# sourceMappingURL=querySuggestionsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,
|
|
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,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,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,mBAAmB,CAAC;AAEjD,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;;;;;;OAMG;yDAEuC,sCAAsC,mBAC7D,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAsBxB;;;;;;;;OAQG;8BAEqB,QAAQ,mBACb,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAmB/B;;;;;;;OAOG;gCAEc,iBAAiB,mBACf,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAwBxB;;;;;;;;OAQG;8BAEqB,QAAQ,mBACb,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAmB/B;;;;;OAKG;mCAEgB,cAAc,GAC9B,QAAQ,qCAAqC,EAAE,CAAC;IAenD;;;;;;;OAOG;6BAEc,cAAc,mBACZ,cAAc,GAC9B,QAAQ,qCAAqC,CAAC;IAwBjD;;;;;;;OAOG;mCAEc,oBAAoB,mBAClB,cAAc,GAC9B,QAAQ,0BAA0B,CAAC;IAwBtC;;;;;;;OAOG;8BAEc,eAAe,mBACb,cAAc,GAC9B,QAAQ,qBAAqB,CAAC;IAwBjC;;;;;;;;;OASG;qCAE2B,SAAS,mBACpB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAoB/B;;;;;;;;;OASG;oCAE2B,QAAQ,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAoB/B;;;;;;;;OAQG;+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,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,17 +1,17 @@
|
|
|
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
6
|
* Properties for the `del` method.
|
|
7
7
|
*/
|
|
8
8
|
export type DelProps = {
|
|
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
|
};
|
|
@@ -21,7 +21,7 @@ export type DelProps = {
|
|
|
21
21
|
*/
|
|
22
22
|
export type DeleteConfigProps = {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Query Suggestions index name.
|
|
25
25
|
*/
|
|
26
26
|
indexName: string;
|
|
27
27
|
};
|
|
@@ -31,11 +31,11 @@ export type DeleteConfigProps = {
|
|
|
31
31
|
*/
|
|
32
32
|
export type GetProps = {
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
35
35
|
*/
|
|
36
36
|
path: string;
|
|
37
37
|
/**
|
|
38
|
-
* Query parameters to
|
|
38
|
+
* Query parameters to apply to the current query.
|
|
39
39
|
*/
|
|
40
40
|
parameters?: Record<string, any>;
|
|
41
41
|
};
|
|
@@ -45,7 +45,7 @@ export type GetProps = {
|
|
|
45
45
|
*/
|
|
46
46
|
export type GetConfigProps = {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Query Suggestions index name.
|
|
49
49
|
*/
|
|
50
50
|
indexName: string;
|
|
51
51
|
};
|
|
@@ -55,7 +55,7 @@ export type GetConfigProps = {
|
|
|
55
55
|
*/
|
|
56
56
|
export type GetConfigStatusProps = {
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Query Suggestions index name.
|
|
59
59
|
*/
|
|
60
60
|
indexName: string;
|
|
61
61
|
};
|
|
@@ -65,7 +65,7 @@ export type GetConfigStatusProps = {
|
|
|
65
65
|
*/
|
|
66
66
|
export type GetLogFileProps = {
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Query Suggestions index name.
|
|
69
69
|
*/
|
|
70
70
|
indexName: string;
|
|
71
71
|
};
|
|
@@ -75,15 +75,15 @@ export type GetLogFileProps = {
|
|
|
75
75
|
*/
|
|
76
76
|
export type PostProps = {
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
79
79
|
*/
|
|
80
80
|
path: string;
|
|
81
81
|
/**
|
|
82
|
-
* Query parameters to
|
|
82
|
+
* Query parameters to apply to the current query.
|
|
83
83
|
*/
|
|
84
84
|
parameters?: Record<string, any>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Parameters to send with the custom request.
|
|
87
87
|
*/
|
|
88
88
|
body?: Record<string, any>;
|
|
89
89
|
};
|
|
@@ -93,15 +93,15 @@ export type PostProps = {
|
|
|
93
93
|
*/
|
|
94
94
|
export type PutProps = {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
97
97
|
*/
|
|
98
98
|
path: string;
|
|
99
99
|
/**
|
|
100
|
-
* Query parameters to
|
|
100
|
+
* Query parameters to apply to the current query.
|
|
101
101
|
*/
|
|
102
102
|
parameters?: Record<string, any>;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Parameters to send with the custom request.
|
|
105
105
|
*/
|
|
106
106
|
body?: Record<string, any>;
|
|
107
107
|
};
|
|
@@ -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
|
+
};
|
|
@@ -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
|
+
export type GetConfigStatus200Response = {
|
|
4
|
+
/**
|
|
5
|
+
* Query Suggestions index name.
|
|
6
|
+
*/
|
|
7
|
+
indexName?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Indicates whether the creation or update of the Query Suggestions is in progress.
|
|
11
|
+
*/
|
|
12
|
+
isRunning?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions index was last built.
|
|
16
|
+
*/
|
|
17
|
+
lastBuiltAt?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions index was last updated successfully.
|
|
21
|
+
*/
|
|
22
|
+
lastSuccessfulBuiltAt?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Duration of the last successful build in seconds.
|
|
26
|
+
*/
|
|
27
|
+
lastSuccessfulBuildDuration?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { LogLevel } from './logLevel';
|
|
4
|
+
|
|
5
|
+
export type GetLogFile200Response = {
|
|
6
|
+
/**
|
|
7
|
+
* Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
|
|
8
|
+
*/
|
|
9
|
+
timestamp?: string;
|
|
10
|
+
|
|
11
|
+
level?: LogLevel;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Details about this log entry.
|
|
15
|
+
*/
|
|
16
|
+
message?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.
|
|
20
|
+
*/
|
|
21
|
+
contextLevel?: number;
|
|
22
|
+
};
|
package/model/index.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
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
|
+
export * from './baseResponse';
|
|
3
4
|
export * from './errorBase';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './facet';
|
|
6
|
+
export * from './getConfigStatus200Response';
|
|
7
|
+
export * from './getLogFile200Response';
|
|
8
|
+
export * from './languages';
|
|
6
9
|
export * from './logLevel';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
+
export * from './querySuggestionsConfiguration';
|
|
11
|
+
export * from './querySuggestionsConfigurationResponse';
|
|
12
|
+
export * from './querySuggestionsConfigurationResponseAllOf';
|
|
13
|
+
export * from './querySuggestionsConfigurationWithIndex';
|
|
14
|
+
export * from './querySuggestionsConfigurationWithIndexAllOf';
|
|
10
15
|
export * from './sourceIndex';
|
|
11
|
-
export * from './sourceIndexExternal';
|
|
12
|
-
export * from './sourceIndexWithReplicas';
|
|
13
|
-
export * from './status';
|
|
14
|
-
export * from './successResponse';
|
|
15
16
|
export * from './clientMethodProps';
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
* Set the language for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
|
|
5
|
+
*/
|
|
6
|
+
export type Languages = string[] | boolean;
|
package/model/logLevel.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
+
* The type of log entry. - `SKIP`. A query is skipped because it doesn\'t match the conditions for successful inclusion. For example, when a query doesn\'t generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
|
|
5
5
|
*/
|
|
6
6
|
export type LogLevel = 'ERROR' | 'INFO' | 'SKIP';
|
|
@@ -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
|
+
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
|
+
/**
|
|
18
|
+
* Patterns to exclude from query suggestions.
|
|
19
|
+
*/
|
|
20
|
+
exclude?: string[] | null;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Turn on personalized query suggestions.
|
|
24
|
+
*/
|
|
25
|
+
enablePersonalization?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Allow suggestions with special characters.
|
|
29
|
+
*/
|
|
30
|
+
allowSpecialCharacters?: boolean;
|
|
31
|
+
};
|
|
@@ -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
|
+
import type { QuerySuggestionsConfigurationResponseAllOf } from './querySuggestionsConfigurationResponseAllOf';
|
|
4
|
+
import type { QuerySuggestionsConfigurationWithIndex } from './querySuggestionsConfigurationWithIndex';
|
|
5
|
+
|
|
6
|
+
export type QuerySuggestionsConfigurationResponse =
|
|
7
|
+
QuerySuggestionsConfigurationResponseAllOf &
|
|
8
|
+
QuerySuggestionsConfigurationWithIndex;
|
|
@@ -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 QuerySuggestionsConfigurationResponseAllOf = {
|
|
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
|
+
};
|