@algolia/client-query-suggestions 5.0.0-alpha.72 → 5.0.0-alpha.75
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/client-query-suggestions.cjs.js +37 -39
- package/dist/client-query-suggestions.esm.browser.js +37 -37
- package/dist/client-query-suggestions.esm.node.js +37 -37
- 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 +17 -17
- package/dist/model/clientMethodProps.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 +10 -9
- 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 +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 +17 -13
- package/dist/model/sourceIndex.d.ts.map +1 -1
- package/dist/src/querySuggestionsClient.d.ts +39 -39
- package/dist/src/querySuggestionsClient.d.ts.map +1 -1
- package/model/{sourceIndexExternal.ts → baseResponse.ts} +5 -5
- package/model/clientMethodProps.ts +17 -17
- package/model/{successResponse.ts → facet.ts} +8 -5
- package/model/getConfigStatus200Response.ts +28 -0
- package/model/getLogFile200Response.ts +22 -0
- package/model/index.ts +10 -9
- package/model/languages.ts +6 -0
- package/model/logLevel.ts +1 -1
- 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/{indexName.ts → querySuggestionsConfigurationWithIndexAllOf.ts} +2 -2
- package/model/sourceIndex.ts +18 -13
- package/package.json +8 -7
- 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/logFile.ts +0 -22
- package/model/querySuggestionsIndex.ts +0 -25
- package/model/querySuggestionsIndexParam.ts +0 -20
- package/model/querySuggestionsIndexWithIndexParam.ts +0 -7
- package/model/sourceIndexWithReplicas.ts +0 -48
- package/model/status.ts +0 -18
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { BaseResponse } from '../model/baseResponse';
|
|
2
3
|
import type { DelProps, DeleteConfigProps, GetProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, PostProps, PutProps, UpdateConfigProps } from '../model/clientMethodProps';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
|
|
8
|
-
export declare const apiClientVersion = "5.0.0-alpha.72";
|
|
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.75";
|
|
9
9
|
export declare const REGIONS: readonly ["eu", "us"];
|
|
10
10
|
export type Region = (typeof REGIONS)[number];
|
|
11
11
|
export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
@@ -32,84 +32,84 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
|
|
|
32
32
|
*/
|
|
33
33
|
addAlgoliaAgent(segment: string, version?: string): void;
|
|
34
34
|
/**
|
|
35
|
-
* Create a
|
|
35
|
+
* Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
|
|
36
36
|
*
|
|
37
37
|
* @summary Create a configuration.
|
|
38
|
-
* @param
|
|
38
|
+
* @param querySuggestionsConfigurationWithIndex - The querySuggestionsConfigurationWithIndex object.
|
|
39
39
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
40
40
|
*/
|
|
41
|
-
createConfig(
|
|
41
|
+
createConfig(querySuggestionsConfigurationWithIndex: QuerySuggestionsConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
42
42
|
/**
|
|
43
43
|
* This method allow you to send requests to the Algolia REST API.
|
|
44
44
|
*
|
|
45
45
|
* @summary Send requests to the Algolia REST API.
|
|
46
46
|
* @param del - The del object.
|
|
47
|
-
* @param del.path -
|
|
48
|
-
* @param del.parameters - Query parameters to
|
|
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
49
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
50
50
|
*/
|
|
51
51
|
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
52
52
|
/**
|
|
53
|
-
* Delete a
|
|
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
54
|
*
|
|
55
55
|
* @summary Delete a configuration.
|
|
56
56
|
* @param deleteConfig - The deleteConfig object.
|
|
57
|
-
* @param deleteConfig.indexName -
|
|
57
|
+
* @param deleteConfig.indexName - Query Suggestions index name.
|
|
58
58
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
59
59
|
*/
|
|
60
|
-
deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<
|
|
60
|
+
deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
61
61
|
/**
|
|
62
62
|
* This method allow you to send requests to the Algolia REST API.
|
|
63
63
|
*
|
|
64
64
|
* @summary Send requests to the Algolia REST API.
|
|
65
65
|
* @param get - The get object.
|
|
66
|
-
* @param get.path -
|
|
67
|
-
* @param get.parameters - Query parameters to
|
|
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
68
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
69
69
|
*/
|
|
70
70
|
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* List all Query Suggestions configurations of your Algolia application.
|
|
73
73
|
*
|
|
74
74
|
* @summary List configurations.
|
|
75
75
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
76
76
|
*/
|
|
77
|
-
getAllConfigs(requestOptions?: RequestOptions): Promise<
|
|
77
|
+
getAllConfigs(requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse[]>;
|
|
78
78
|
/**
|
|
79
|
-
* Get
|
|
79
|
+
* Get a single Query Suggestions configuration.
|
|
80
80
|
*
|
|
81
|
-
* @summary Get a
|
|
81
|
+
* @summary Get a configuration.
|
|
82
82
|
* @param getConfig - The getConfig object.
|
|
83
|
-
* @param getConfig.indexName -
|
|
83
|
+
* @param getConfig.indexName - Query Suggestions index name.
|
|
84
84
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
85
85
|
*/
|
|
86
|
-
getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<
|
|
86
|
+
getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse>;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Report the status of a Query Suggestions index.
|
|
89
89
|
*
|
|
90
90
|
* @summary Get configuration status.
|
|
91
91
|
* @param getConfigStatus - The getConfigStatus object.
|
|
92
|
-
* @param getConfigStatus.indexName -
|
|
92
|
+
* @param getConfigStatus.indexName - Query Suggestions index name.
|
|
93
93
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
94
94
|
*/
|
|
95
|
-
getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<
|
|
95
|
+
getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<GetConfigStatus200Response>;
|
|
96
96
|
/**
|
|
97
|
-
* Get the
|
|
97
|
+
* Get the logs for a single Query Suggestions index.
|
|
98
98
|
*
|
|
99
|
-
* @summary Get
|
|
99
|
+
* @summary Get logs.
|
|
100
100
|
* @param getLogFile - The getLogFile object.
|
|
101
|
-
* @param getLogFile.indexName -
|
|
101
|
+
* @param getLogFile.indexName - Query Suggestions index name.
|
|
102
102
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
103
103
|
*/
|
|
104
|
-
getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<
|
|
104
|
+
getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
|
|
105
105
|
/**
|
|
106
106
|
* This method allow you to send requests to the Algolia REST API.
|
|
107
107
|
*
|
|
108
108
|
* @summary Send requests to the Algolia REST API.
|
|
109
109
|
* @param post - The post object.
|
|
110
|
-
* @param post.path -
|
|
111
|
-
* @param post.parameters - Query parameters to
|
|
112
|
-
* @param post.body -
|
|
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
113
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
114
114
|
*/
|
|
115
115
|
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
@@ -118,22 +118,22 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
|
|
|
118
118
|
*
|
|
119
119
|
* @summary Send requests to the Algolia REST API.
|
|
120
120
|
* @param put - The put object.
|
|
121
|
-
* @param put.path -
|
|
122
|
-
* @param put.parameters - Query parameters to
|
|
123
|
-
* @param put.body -
|
|
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
124
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
125
125
|
*/
|
|
126
126
|
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
127
127
|
/**
|
|
128
|
-
* Update
|
|
128
|
+
* Update a QuerySuggestions configuration.
|
|
129
129
|
*
|
|
130
130
|
* @summary Update a configuration.
|
|
131
131
|
* @param updateConfig - The updateConfig object.
|
|
132
|
-
* @param updateConfig.indexName -
|
|
133
|
-
* @param updateConfig.
|
|
132
|
+
* @param updateConfig.indexName - Query Suggestions index name.
|
|
133
|
+
* @param updateConfig.querySuggestionsConfiguration - The querySuggestionsConfiguration object.
|
|
134
134
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
135
135
|
*/
|
|
136
|
-
updateConfig({ indexName,
|
|
136
|
+
updateConfig({ indexName, querySuggestionsConfiguration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
139
|
* The client type.
|
|
@@ -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"}
|
|
@@ -1,13 +1,13 @@
|
|
|
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 type
|
|
3
|
+
export type BaseResponse = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* HTTP status code.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
status?: number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Details about the response, such as error messages.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
message?: string;
|
|
13
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
|
};
|
|
@@ -1,13 +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
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Facet to use as category.
|
|
5
|
+
*/
|
|
6
|
+
export type Facet = {
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Facet name.
|
|
6
9
|
*/
|
|
7
|
-
|
|
10
|
+
attribute?: string;
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
13
|
+
* Number of suggestions.
|
|
11
14
|
*/
|
|
12
|
-
|
|
15
|
+
amount?: number;
|
|
13
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
|
+
};
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
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 type
|
|
3
|
+
export type QuerySuggestionsConfigurationWithIndexAllOf = {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Query Suggestions index name.
|
|
6
6
|
*/
|
|
7
7
|
indexName: string;
|
|
8
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,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-query-suggestions",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.75",
|
|
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": {
|
|
@@ -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.75",
|
|
43
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.75",
|
|
44
|
+
"@algolia/requester-node-http": "5.0.0-alpha.75"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@types/node": "18.
|
|
47
|
-
"rollup": "
|
|
48
|
-
"typescript": "5.
|
|
47
|
+
"@types/node": "18.17.0",
|
|
48
|
+
"rollup": "3.26.3",
|
|
49
|
+
"typescript": "5.1.6"
|
|
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,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|