@algolia/client-query-suggestions 5.0.0-alpha.8 → 5.0.0-alpha.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-query-suggestions.cjs.js → client-query-suggestions.cjs} +351 -353
  6. package/dist/client-query-suggestions.esm.browser.js +534 -582
  7. package/dist/client-query-suggestions.esm.node.js +351 -351
  8. package/dist/client-query-suggestions.umd.js +2 -2
  9. package/dist/model/baseResponse.d.ts +11 -0
  10. package/dist/model/baseResponse.d.ts.map +1 -0
  11. package/dist/model/clientMethodProps.d.ts +107 -107
  12. package/dist/model/clientMethodProps.d.ts.map +1 -1
  13. package/dist/model/errorBase.d.ts +6 -6
  14. package/dist/model/errorBase.d.ts.map +1 -1
  15. package/dist/model/facet.d.ts +14 -0
  16. package/dist/model/facet.d.ts.map +1 -0
  17. package/dist/model/getConfigStatus200Response.d.ts +23 -0
  18. package/dist/model/getConfigStatus200Response.d.ts.map +1 -0
  19. package/dist/model/getLogFile200Response.d.ts +17 -0
  20. package/dist/model/getLogFile200Response.d.ts.map +1 -0
  21. package/dist/model/index.d.ts +14 -13
  22. package/dist/model/index.d.ts.map +1 -1
  23. package/dist/model/languages.d.ts +5 -0
  24. package/dist/model/languages.d.ts.map +1 -0
  25. package/dist/model/logLevel.d.ts +4 -4
  26. package/dist/model/logLevel.d.ts.map +1 -1
  27. package/dist/model/querySuggestionsConfiguration.d.ts +25 -0
  28. package/dist/model/querySuggestionsConfiguration.d.ts.map +1 -0
  29. package/dist/model/querySuggestionsConfigurationResponse.d.ts +4 -0
  30. package/dist/model/querySuggestionsConfigurationResponse.d.ts.map +1 -0
  31. package/dist/model/querySuggestionsConfigurationResponseAllOf.d.ts +19 -0
  32. package/dist/model/querySuggestionsConfigurationResponseAllOf.d.ts.map +1 -0
  33. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts +7 -0
  34. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts.map +1 -0
  35. package/dist/model/querySuggestionsConfigurationWithIndexAllOf.d.ts +7 -0
  36. package/dist/model/querySuggestionsConfigurationWithIndexAllOf.d.ts.map +1 -0
  37. package/dist/model/sourceIndex.d.ts +35 -31
  38. package/dist/model/sourceIndex.d.ts.map +1 -1
  39. package/dist/src/querySuggestionsClient.d.ts +141 -141
  40. package/dist/src/querySuggestionsClient.d.ts.map +1 -1
  41. package/index.js +1 -1
  42. package/model/baseResponse.ts +13 -0
  43. package/model/clientMethodProps.ts +18 -18
  44. package/model/errorBase.ts +1 -1
  45. package/model/facet.ts +16 -0
  46. package/model/getConfigStatus200Response.ts +28 -0
  47. package/model/getLogFile200Response.ts +22 -0
  48. package/model/index.ts +11 -10
  49. package/model/languages.ts +6 -0
  50. package/model/logLevel.ts +2 -2
  51. package/model/querySuggestionsConfiguration.ts +31 -0
  52. package/model/querySuggestionsConfigurationResponse.ts +8 -0
  53. package/model/querySuggestionsConfigurationResponseAllOf.ts +23 -0
  54. package/model/querySuggestionsConfigurationWithIndex.ts +10 -0
  55. package/model/querySuggestionsConfigurationWithIndexAllOf.ts +8 -0
  56. package/model/sourceIndex.ts +19 -14
  57. package/package.json +30 -13
  58. package/dist/model/indexName.d.ts +0 -7
  59. package/dist/model/indexName.d.ts.map +0 -1
  60. package/dist/model/logFile.d.ts +0 -17
  61. package/dist/model/logFile.d.ts.map +0 -1
  62. package/dist/model/querySuggestionsIndex.d.ts +0 -20
  63. package/dist/model/querySuggestionsIndex.d.ts.map +0 -1
  64. package/dist/model/querySuggestionsIndexParam.d.ts +0 -16
  65. package/dist/model/querySuggestionsIndexParam.d.ts.map +0 -1
  66. package/dist/model/querySuggestionsIndexWithIndexParam.d.ts +0 -4
  67. package/dist/model/querySuggestionsIndexWithIndexParam.d.ts.map +0 -1
  68. package/dist/model/sourceIndexExternal.d.ts +0 -11
  69. package/dist/model/sourceIndexExternal.d.ts.map +0 -1
  70. package/dist/model/sourceIndexWithReplicas.d.ts +0 -39
  71. package/dist/model/sourceIndexWithReplicas.d.ts.map +0 -1
  72. package/dist/model/status.d.ts +0 -15
  73. package/dist/model/status.d.ts.map +0 -1
  74. package/dist/model/successResponse.d.ts +0 -11
  75. package/dist/model/successResponse.d.ts.map +0 -1
  76. package/model/indexName.ts +0 -8
  77. package/model/logFile.ts +0 -22
  78. package/model/querySuggestionsIndex.ts +0 -25
  79. package/model/querySuggestionsIndexParam.ts +0 -20
  80. package/model/querySuggestionsIndexWithIndexParam.ts +0 -7
  81. package/model/sourceIndexExternal.ts +0 -13
  82. package/model/sourceIndexWithReplicas.ts +0 -48
  83. package/model/status.ts +0 -18
  84. package/model/successResponse.ts +0 -13
@@ -1,142 +1,142 @@
1
- import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
2
- import type { DelProps, DeleteConfigProps, GetProps, GetConfigProps, GetConfigStatusProps, GetLogFileProps, PostProps, PutProps, UpdateConfigProps } from '../model/clientMethodProps';
3
- import type { LogFile } from '../model/logFile';
4
- import type { QuerySuggestionsIndex } from '../model/querySuggestionsIndex';
5
- import type { QuerySuggestionsIndexWithIndexParam } from '../model/querySuggestionsIndexWithIndexParam';
6
- import type { Status } from '../model/status';
7
- import type { SuccessResponse } from '../model/successResponse';
8
- export declare const apiClientVersion = "5.0.0-alpha.8";
9
- export declare const REGIONS: readonly ["eu", "us"];
10
- export declare 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 configuration of a Query Suggestions index. There\'s a limit of 100 configurations per application.
36
- *
37
- * @summary Create a configuration.
38
- * @param querySuggestionsIndexWithIndexParam - The querySuggestionsIndexWithIndexParam object.
39
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
40
- */
41
- createConfig(querySuggestionsIndexWithIndexParam: QuerySuggestionsIndexWithIndexParam, requestOptions?: RequestOptions): Promise<SuccessResponse>;
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 - The path of the API endpoint to target, anything after the /1 needs to be specified.
48
- * @param del.parameters - Query parameters to be applied 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 configuration of a Query Suggestion\'s index. By deleting a configuration, you stop all updates to the underlying query suggestion index. Note that when doing this, the underlying index does not change - existing suggestions remain untouched.
54
- *
55
- * @summary Delete a configuration.
56
- * @param deleteConfig - The deleteConfig object.
57
- * @param deleteConfig.indexName - The index in which to perform the request.
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<SuccessResponse>;
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 - The path of the API endpoint to target, anything after the /1 needs to be specified.
67
- * @param get.parameters - Query parameters to be applied 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
- * Get all the configurations of Query Suggestions. For each index, you get a block of JSON with a list of its configuration settings.
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<QuerySuggestionsIndex[]>;
78
- /**
79
- * Get the configuration of a single Query Suggestions index.
80
- *
81
- * @summary Get a single configuration.
82
- * @param getConfig - The getConfig object.
83
- * @param getConfig.indexName - The index in which to perform the request.
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<QuerySuggestionsIndex>;
87
- /**
88
- * Get the status of a Query Suggestion\'s index. The status includes whether the Query Suggestions index is currently in the process of being built, and the last build time.
89
- *
90
- * @summary Get configuration status.
91
- * @param getConfigStatus - The getConfigStatus object.
92
- * @param getConfigStatus.indexName - The index in which to perform the request.
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<Status>;
96
- /**
97
- * Get the log file of the last build of a single Query Suggestion index.
98
- *
99
- * @summary Get a log file.
100
- * @param getLogFile - The getLogFile object.
101
- * @param getLogFile.indexName - The index in which to perform the request.
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<LogFile[]>;
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 - The path of the API endpoint to target, anything after the /1 needs to be specified.
111
- * @param post.parameters - Query parameters to be applied to the current query.
112
- * @param post.body - The 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 - The path of the API endpoint to target, anything after the /1 needs to be specified.
122
- * @param put.parameters - Query parameters to be applied to the current query.
123
- * @param put.body - The 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 the configuration of a Query Suggestions index.
129
- *
130
- * @summary Update a configuration.
131
- * @param updateConfig - The updateConfig object.
132
- * @param updateConfig.indexName - The index in which to perform the request.
133
- * @param updateConfig.querySuggestionsIndexParam - The querySuggestionsIndexParam object.
134
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
135
- */
136
- updateConfig({ indexName, querySuggestionsIndexParam }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<SuccessResponse>;
137
- };
138
- /**
139
- * The client type.
140
- */
141
- export declare type QuerySuggestionsClient = ReturnType<typeof createQuerySuggestionsClient>;
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.81";
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=queryS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Z,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.js');
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { QuerySuggestionsIndexParam } from './querySuggestionsIndexParam';
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
10
+ * Path of the endpoint, anything after \"/1\" must be specified.
11
11
  */
12
12
  path: string;
13
13
  /**
14
- * Query parameters to be applied to the current query.
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
- * The index in which to perform the request.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
34
+ * Path of the endpoint, anything after \"/1\" must be specified.
35
35
  */
36
36
  path: string;
37
37
  /**
38
- * Query parameters to be applied to the current query.
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
- * The index in which to perform the request.
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
- * The index in which to perform the request.
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
- * The index in which to perform the request.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
78
+ * Path of the endpoint, anything after \"/1\" must be specified.
79
79
  */
80
80
  path: string;
81
81
  /**
82
- * Query parameters to be applied to the current query.
82
+ * Query parameters to apply to the current query.
83
83
  */
84
84
  parameters?: Record<string, any>;
85
85
  /**
86
- * The parameters to send with the custom request.
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
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
96
+ * Path of the endpoint, anything after \"/1\" must be specified.
97
97
  */
98
98
  path: string;
99
99
  /**
100
- * Query parameters to be applied to the current query.
100
+ * Query parameters to apply to the current query.
101
101
  */
102
102
  parameters?: Record<string, any>;
103
103
  /**
104
- * The parameters to send with the custom request.
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
- * The index in which to perform the request.
114
+ * Query Suggestions index name.
115
115
  */
116
116
  indexName: string;
117
- querySuggestionsIndexParam: QuerySuggestionsIndexParam;
117
+ querySuggestionsConfiguration: QuerySuggestionsConfiguration;
118
118
  };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 './indexName';
5
- export * from './logFile';
5
+ export * from './facet';
6
+ export * from './getConfigStatus200Response';
7
+ export * from './getLogFile200Response';
8
+ export * from './languages';
6
9
  export * from './logLevel';
7
- export * from './querySuggestionsIndex';
8
- export * from './querySuggestionsIndexParam';
9
- export * from './querySuggestionsIndexWithIndexParam';
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
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * Type of the record, can be one of three values (INFO, SKIP or ERROR).
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
+ };