@algolia/client-query-suggestions 5.0.0-alpha.99 → 5.0.0-beta.2

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 (42) hide show
  1. package/dist/builds/browser.d.ts +24 -3
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +24 -3
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/client-query-suggestions.cjs +52 -39
  6. package/dist/client-query-suggestions.esm.browser.js +39 -31
  7. package/dist/client-query-suggestions.esm.node.js +52 -39
  8. package/dist/client-query-suggestions.umd.js +2 -2
  9. package/dist/model/appID.d.ts +7 -0
  10. package/dist/model/appID.d.ts.map +1 -0
  11. package/dist/model/getConfigStatus200Response.d.ts +4 -4
  12. package/dist/model/getLogFile200Response.d.ts +2 -2
  13. package/dist/model/index.d.ts +1 -2
  14. package/dist/model/index.d.ts.map +1 -1
  15. package/dist/model/languages.d.ts +1 -1
  16. package/dist/model/logLevel.d.ts +1 -1
  17. package/dist/model/querySuggestionsConfiguration.d.ts +2 -5
  18. package/dist/model/querySuggestionsConfiguration.d.ts.map +1 -1
  19. package/dist/model/querySuggestionsConfigurationResponse.d.ts +5 -2
  20. package/dist/model/querySuggestionsConfigurationResponse.d.ts.map +1 -1
  21. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts +1 -2
  22. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts.map +1 -1
  23. package/dist/model/sourceIndex.d.ts +4 -13
  24. package/dist/model/sourceIndex.d.ts.map +1 -1
  25. package/dist/src/querySuggestionsClient.d.ts +29 -23
  26. package/dist/src/querySuggestionsClient.d.ts.map +1 -1
  27. package/model/{baseQuerySuggestionsConfigurationWithIndex.ts → appID.ts} +3 -3
  28. package/model/getConfigStatus200Response.ts +4 -4
  29. package/model/getLogFile200Response.ts +2 -2
  30. package/model/index.ts +1 -2
  31. package/model/languages.ts +1 -1
  32. package/model/logLevel.ts +1 -1
  33. package/model/querySuggestionsConfiguration.ts +2 -5
  34. package/model/querySuggestionsConfigurationResponse.ts +6 -4
  35. package/model/querySuggestionsConfigurationWithIndex.ts +1 -2
  36. package/model/sourceIndex.ts +4 -13
  37. package/package.json +7 -7
  38. package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts +0 -19
  39. package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts.map +0 -1
  40. package/dist/model/baseQuerySuggestionsConfigurationWithIndex.d.ts +0 -7
  41. package/dist/model/baseQuerySuggestionsConfigurationWithIndex.d.ts.map +0 -1
  42. package/model/baseQuerySuggestionsConfigurationResponse.ts +0 -23
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // 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.
5
- const apiClientVersion = '5.0.0-alpha.99';
5
+ const apiClientVersion = '5.0.0-beta.2';
6
6
  const REGIONS = ['eu', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -60,9 +60,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
60
60
  transporter.algoliaAgent.add({ segment, version });
61
61
  },
62
62
  /**
63
- * Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
63
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
64
+ *
65
+ * Required API Key ACLs:
66
+ * - editSettings.
64
67
  *
65
- * @summary Create a configuration.
66
68
  * @param querySuggestionsConfigurationWithIndex - The querySuggestionsConfigurationWithIndex object.
67
69
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
68
70
  */
@@ -85,7 +87,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
85
87
  /**
86
88
  * This method allow you to send requests to the Algolia REST API.
87
89
  *
88
- * @summary Send requests to the Algolia REST API.
89
90
  * @param customDelete - The customDelete object.
90
91
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
91
92
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -95,7 +96,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
95
96
  if (!path) {
96
97
  throw new Error('Parameter `path` is required when calling `customDelete`.');
97
98
  }
98
- const requestPath = '/1{path}'.replace('{path}', path);
99
+ const requestPath = '/{path}'.replace('{path}', path);
99
100
  const headers = {};
100
101
  const queryParameters = parameters ? parameters : {};
101
102
  const request = {
@@ -109,7 +110,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
109
110
  /**
110
111
  * This method allow you to send requests to the Algolia REST API.
111
112
  *
112
- * @summary Send requests to the Algolia REST API.
113
113
  * @param customGet - The customGet object.
114
114
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
115
115
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -119,7 +119,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
119
119
  if (!path) {
120
120
  throw new Error('Parameter `path` is required when calling `customGet`.');
121
121
  }
122
- const requestPath = '/1{path}'.replace('{path}', path);
122
+ const requestPath = '/{path}'.replace('{path}', path);
123
123
  const headers = {};
124
124
  const queryParameters = parameters ? parameters : {};
125
125
  const request = {
@@ -133,7 +133,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
133
133
  /**
134
134
  * This method allow you to send requests to the Algolia REST API.
135
135
  *
136
- * @summary Send requests to the Algolia REST API.
137
136
  * @param customPost - The customPost object.
138
137
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
139
138
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -144,7 +143,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
144
143
  if (!path) {
145
144
  throw new Error('Parameter `path` is required when calling `customPost`.');
146
145
  }
147
- const requestPath = '/1{path}'.replace('{path}', path);
146
+ const requestPath = '/{path}'.replace('{path}', path);
148
147
  const headers = {};
149
148
  const queryParameters = parameters ? parameters : {};
150
149
  const request = {
@@ -159,7 +158,6 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
159
158
  /**
160
159
  * This method allow you to send requests to the Algolia REST API.
161
160
  *
162
- * @summary Send requests to the Algolia REST API.
163
161
  * @param customPut - The customPut object.
164
162
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
165
163
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -170,7 +168,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
170
168
  if (!path) {
171
169
  throw new Error('Parameter `path` is required when calling `customPut`.');
172
170
  }
173
- const requestPath = '/1{path}'.replace('{path}', path);
171
+ const requestPath = '/{path}'.replace('{path}', path);
174
172
  const headers = {};
175
173
  const queryParameters = parameters ? parameters : {};
176
174
  const request = {
@@ -183,9 +181,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
183
181
  return transporter.request(request, requestOptions);
184
182
  },
185
183
  /**
186
- * 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.
184
+ * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the [Delete an index](/specs/search#tag/Indices/operation/deleteIndex) operation.
185
+ *
186
+ * Required API Key ACLs:
187
+ * - editSettings.
187
188
  *
188
- * @summary Delete a configuration.
189
189
  * @param deleteConfig - The deleteConfig object.
190
190
  * @param deleteConfig.indexName - Query Suggestions index name.
191
191
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -206,9 +206,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
206
206
  return transporter.request(request, requestOptions);
207
207
  },
208
208
  /**
209
- * List all Query Suggestions configurations of your Algolia application.
209
+ * Retrieves all Query Suggestions configurations of your Algolia application.
210
+ *
211
+ * Required API Key ACLs:
212
+ * - settings.
210
213
  *
211
- * @summary List configurations.
212
214
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
213
215
  */
214
216
  getAllConfigs(requestOptions) {
@@ -224,9 +226,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
224
226
  return transporter.request(request, requestOptions);
225
227
  },
226
228
  /**
227
- * Get a single Query Suggestions configuration.
229
+ * Retrieves a single Query Suggestions configuration by its index name.
230
+ *
231
+ * Required API Key ACLs:
232
+ * - settings.
228
233
  *
229
- * @summary Get a configuration.
230
234
  * @param getConfig - The getConfig object.
231
235
  * @param getConfig.indexName - Query Suggestions index name.
232
236
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -247,9 +251,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
247
251
  return transporter.request(request, requestOptions);
248
252
  },
249
253
  /**
250
- * Report the status of a Query Suggestions index.
254
+ * Reports the status of a Query Suggestions index.
255
+ *
256
+ * Required API Key ACLs:
257
+ * - settings.
251
258
  *
252
- * @summary Get configuration status.
253
259
  * @param getConfigStatus - The getConfigStatus object.
254
260
  * @param getConfigStatus.indexName - Query Suggestions index name.
255
261
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -270,9 +276,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
270
276
  return transporter.request(request, requestOptions);
271
277
  },
272
278
  /**
273
- * Get the logs for a single Query Suggestions index.
279
+ * Retrieves the logs for a single Query Suggestions index.
280
+ *
281
+ * Required API Key ACLs:
282
+ * - settings.
274
283
  *
275
- * @summary Get logs.
276
284
  * @param getLogFile - The getLogFile object.
277
285
  * @param getLogFile.indexName - Query Suggestions index name.
278
286
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -293,9 +301,11 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
293
301
  return transporter.request(request, requestOptions);
294
302
  },
295
303
  /**
296
- * Update a QuerySuggestions configuration.
304
+ * Updates a QuerySuggestions configuration.
305
+ *
306
+ * Required API Key ACLs:
307
+ * - editSettings.
297
308
  *
298
- * @summary Update a configuration.
299
309
  * @param updateConfig - The updateConfig object.
300
310
  * @param updateConfig.indexName - Query Suggestions index name.
301
311
  * @param updateConfig.querySuggestionsConfiguration - The querySuggestionsConfiguration object.
@@ -327,6 +337,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
327
337
  }
328
338
 
329
339
  // 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.
340
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
330
341
  function querySuggestionsClient(appId, apiKey, region, options) {
331
342
  if (!appId || typeof appId !== 'string') {
332
343
  throw new Error('`appId` is missing.');
@@ -338,22 +349,24 @@ function querySuggestionsClient(appId, apiKey, region, options) {
338
349
  (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
339
350
  throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(', ')}`);
340
351
  }
341
- return createQuerySuggestionsClient({
342
- appId,
343
- apiKey,
344
- region,
345
- timeouts: {
346
- connect: DEFAULT_CONNECT_TIMEOUT_NODE,
347
- read: DEFAULT_READ_TIMEOUT_NODE,
348
- write: DEFAULT_WRITE_TIMEOUT_NODE,
349
- },
350
- requester: createHttpRequester(),
351
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
352
- responsesCache: createNullCache(),
353
- requestsCache: createNullCache(),
354
- hostsCache: createMemoryCache(),
355
- ...options,
356
- });
352
+ return {
353
+ ...createQuerySuggestionsClient({
354
+ appId,
355
+ apiKey,
356
+ region,
357
+ timeouts: {
358
+ connect: DEFAULT_CONNECT_TIMEOUT_NODE,
359
+ read: DEFAULT_READ_TIMEOUT_NODE,
360
+ write: DEFAULT_WRITE_TIMEOUT_NODE,
361
+ },
362
+ requester: createHttpRequester(),
363
+ algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
364
+ responsesCache: createNullCache(),
365
+ requestsCache: createNullCache(),
366
+ hostsCache: createMemoryCache(),
367
+ ...options,
368
+ }),
369
+ };
357
370
  }
358
371
 
359
372
  export { apiClientVersion, querySuggestionsClient };
@@ -1,2 +1,2 @@
1
- /*! client-query-suggestions.umd.js | 5.0.0-alpha.99 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-query-suggestions"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function n(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(n(s),!t)return;n(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const n=a();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(n)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,n={miss:()=>Promise.resolve()})=>s.get(e,a,n).catch((()=>r({caches:t}).get(e,a,n))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const n=JSON.stringify(r);if(n in t)return Promise.resolve(e.serializable?JSON.parse(t[n]):t[n]);const o=s();return o.then((e=>a.miss(e))).then((()=>o))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function n(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends u{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class l extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class d extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),i(this,"status",void 0),this.status=t}}class m extends u{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class h extends d{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function g(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:o,requester:i,requestsCache:u,responsesCache:c}){async function f(u,c,f=!0){const y=[],P=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(u,c),w=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,u.headers,c.headers),q="GET"===u.method?{...u.data,...c.data}:{},v={...s,...u.queryParameters,...q};if(a.value&&(v["x-algolia-agent"]=a.value),c&&c.queryParameters)for(const e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?v[e]=c.queryParameters[e].toString():v[e]=c.queryParameters[e];let b=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new l(function(e){return e.map((e=>p(e)))}(y));let a=c.timeout;void 0===a&&(a=f?o.read:o.write);const q={data:P,headers:w,method:u.method,url:g(s,u.path,v),connectTimeout:r(b,o.connect),responseTimeout:r(b,a)},O=t=>{const r={request:q,response:t,host:s,triesLeft:e.length};return y.push(r),r},E=await i.send(q);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const a=O(E);return E.isTimedOut&&b++,console.log("Retryable failure",p(a)),await t.set(s,n(s,E.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(E);throw O(E),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new d(s.message,t,r)}catch(e){}return new d(e,t,r)}(E,y)},O=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(n(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),o=[...s,...a];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(O);return T([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const n=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return n();const o={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return c.get(o,(()=>u.get(o,(()=>u.set(o,n()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>c.set(o,e)})},requestsCache:u,responsesCache:c}}function y({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const P="5.0.0-alpha.99",w=["eu","us"];e.apiClientVersion=P,e.querySuggestionsClient=function(e,a,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!n||n&&("string"!=typeof n||!w.includes(n)))throw new Error(`\`region\` is required and must be one of the following: ${w.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...n}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=f({hosts:(u=a,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...n,algoliaAgent:y({algoliaAgents:s,client:"QuerySuggestions",version:P}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createConfig(e,t){if(!e)throw new Error("Parameter `querySuggestionsConfigurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const s={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const s={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},customPut({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAllConfigs(e){const t={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return i.request(t,e)},getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateConfig({indexName:e,querySuggestionsConfiguration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `querySuggestionsConfiguration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `querySuggestionsConfiguration.sourceIndices` is required when calling `updateConfig`.");const s={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(s,r)}}}({appId:e,apiKey:a,region:n,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let n;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${P}-${e}`}),s()]}),...o})}}));
1
+ /*! client-query-suggestions.umd.js | 5.0.0-beta.2 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-query-suggestions"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function n(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(n(s),!t)return;n(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const n=a();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(n)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,n={miss:()=>Promise.resolve()})=>s.get(e,a,n).catch((()=>r({caches:t}).get(e,a,n))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const n=JSON.stringify(r);if(n in t)return Promise.resolve(e.serializable?JSON.parse(t[n]):t[n]);const o=s();return o.then((e=>a.miss(e))).then((()=>o))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function n(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends u{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class l extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class m extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),i(this,"status",void 0),this.status=t}}class d extends u{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class h extends m{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function g(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r]).replaceAll("+","%20")}`)).join("&")}(r);let a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:o,requester:i,requestsCache:u,responsesCache:c}){async function f(u,c,f=!0){const y=[],w=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(u,c),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,u.headers,c.headers),q="GET"===u.method?{...u.data,...c.data}:{},v={...s,...u.queryParameters,...q};if(a.value&&(v["x-algolia-agent"]=a.value),c&&c.queryParameters)for(const e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?v[e]=c.queryParameters[e].toString():v[e]=c.queryParameters[e];let b=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new l(function(e){return e.map((e=>p(e)))}(y));let a=f?c.timeouts?.read||o.read:c.timeouts?.write||o.write;const q={data:w,headers:P,method:u.method,url:g(s,u.path,v),connectTimeout:r(b,c.timeouts?.connect||o.connect),responseTimeout:r(b,a)},O=t=>{const r={request:q,response:t,host:s,triesLeft:e.length};return y.push(r),r},E=await i.send(q);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const a=O(E);return E.isTimedOut&&b++,console.log("Retryable failure",p(a)),await t.set(s,n(s,E.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(E))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(E);throw O(E),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new m(s.message,t,r)}catch(e){}return new m(e,t,r)}(E,y)},O=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),E=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(n(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),o=[...s,...a];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(O);return T([...E.hosts].reverse(),E.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const n=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return n();const o={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return c.get(o,(()=>u.get(o,(()=>u.set(o,n()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>c.set(o,e)})},requestsCache:u,responsesCache:c}}function y({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const w="5.0.0-beta.2",P=["eu","us"];e.apiClientVersion=w,e.querySuggestionsClient=function(e,a,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!n||n&&("string"!=typeof n||!P.includes(n)))throw new Error(`\`region\` is required and must be one of the following: ${P.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...n}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=f({hosts:(u=a,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...n,algoliaAgent:y({algoliaAgents:s,client:"QuerySuggestions",version:w}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createConfig(e,t){if(!e)throw new Error("Parameter `querySuggestionsConfigurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const s={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const s={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},customPut({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAllConfigs(e){const t={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return i.request(t,e)},getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateConfig({indexName:e,querySuggestionsConfiguration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `querySuggestionsConfiguration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `querySuggestionsConfiguration.sourceIndices` is required when calling `updateConfig`.");const s={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(s,r)}}}({appId:e,apiKey:a,region:n,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let n;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${w}-${e}`}),s()]}),...o})}}));
@@ -0,0 +1,7 @@
1
+ export type AppID = {
2
+ /**
3
+ * Algolia application ID to which this Query Suggestions configuration belongs.
4
+ */
5
+ appID?: string;
6
+ };
7
+ //# sourceMappingURL=appID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appID.d.ts","sourceRoot":"","sources":["../../model/appID.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,18 +1,18 @@
1
1
  export type GetConfigStatus200Response = {
2
2
  /**
3
- * Query Suggestions index name.
3
+ * Name of the Query Suggestions index (case-sensitive).
4
4
  */
5
5
  indexName?: string;
6
6
  /**
7
- * Indicates whether the creation or update of the Query Suggestions is in progress.
7
+ * Whether the creation or update of the Query Suggestions index is in progress.
8
8
  */
9
9
  isRunning?: boolean;
10
10
  /**
11
- * Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions index was last built.
11
+ * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
12
12
  */
13
13
  lastBuiltAt?: string;
14
14
  /**
15
- * Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions index was last updated successfully.
15
+ * Date and time when the Query Suggestions index was last updated successfully.
16
16
  */
17
17
  lastSuccessfulBuiltAt?: string;
18
18
  /**
@@ -1,7 +1,7 @@
1
1
  import type { LogLevel } from './logLevel';
2
2
  export type GetLogFile200Response = {
3
3
  /**
4
- * Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
4
+ * Date and time of the log entry, in RFC 3339 format.
5
5
  */
6
6
  timestamp?: string;
7
7
  level?: LogLevel;
@@ -10,7 +10,7 @@ export type GetLogFile200Response = {
10
10
  */
11
11
  message?: string;
12
12
  /**
13
- * 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.
13
+ * 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.
14
14
  */
15
15
  contextLevel?: number;
16
16
  };
@@ -1,5 +1,4 @@
1
- export * from './baseQuerySuggestionsConfigurationResponse';
2
- export * from './baseQuerySuggestionsConfigurationWithIndex';
1
+ export * from './appID';
3
2
  export * from './baseResponse';
4
3
  export * from './errorBase';
5
4
  export * from './facet';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Set the language for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
2
+ * Languages for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
3
3
  */
4
4
  export type Languages = string[] | boolean;
5
5
  //# sourceMappingURL=languages.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 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.
2
+ * 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.
3
3
  */
4
4
  export type LogLevel = 'ERROR' | 'INFO' | 'SKIP';
5
5
  //# sourceMappingURL=logLevel.d.ts.map
@@ -9,16 +9,13 @@ export type QuerySuggestionsConfiguration = {
9
9
  */
10
10
  sourceIndices: SourceIndex[];
11
11
  languages?: Languages;
12
- /**
13
- * Patterns to exclude from query suggestions.
14
- */
15
12
  exclude?: string[] | null;
16
13
  /**
17
- * Turn on personalized query suggestions.
14
+ * Whether to turn on personalized query suggestions.
18
15
  */
19
16
  enablePersonalization?: boolean;
20
17
  /**
21
- * Allow suggestions with special characters.
18
+ * Whether to include suggestions with special characters.
22
19
  */
23
20
  allowSpecialCharacters?: boolean;
24
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"querySuggestionsConfiguration.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,aAAa,EAAE,WAAW,EAAE,CAAC;IAE7B,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
1
+ {"version":3,"file":"querySuggestionsConfiguration.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,aAAa,EAAE,WAAW,EAAE,CAAC;IAE7B,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
@@ -1,4 +1,7 @@
1
- import type { BaseQuerySuggestionsConfigurationResponse } from './baseQuerySuggestionsConfigurationResponse';
1
+ import type { AppID } from './appID';
2
2
  import type { QuerySuggestionsConfigurationWithIndex } from './querySuggestionsConfigurationWithIndex';
3
- export type QuerySuggestionsConfigurationResponse = BaseQuerySuggestionsConfigurationResponse & QuerySuggestionsConfigurationWithIndex;
3
+ /**
4
+ * API response for retrieving Query Suggestions configurations.
5
+ */
6
+ export type QuerySuggestionsConfigurationResponse = AppID & QuerySuggestionsConfigurationWithIndex;
4
7
  //# sourceMappingURL=querySuggestionsConfigurationResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"querySuggestionsConfigurationResponse.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfigurationResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAC7G,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAEvG,MAAM,MAAM,qCAAqC,GAC/C,yCAAyC,GACvC,sCAAsC,CAAC"}
1
+ {"version":3,"file":"querySuggestionsConfigurationResponse.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfigurationResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAEvG;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,KAAK,GACvD,sCAAsC,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { BaseQuerySuggestionsConfigurationWithIndex } from './baseQuerySuggestionsConfigurationWithIndex';
2
1
  import type { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
3
2
  /**
4
3
  * Query Suggestions configuration.
5
4
  */
6
- export type QuerySuggestionsConfigurationWithIndex = BaseQuerySuggestionsConfigurationWithIndex & QuerySuggestionsConfiguration;
5
+ export type QuerySuggestionsConfigurationWithIndex = QuerySuggestionsConfiguration & Record<string, any>;
7
6
  //# sourceMappingURL=querySuggestionsConfigurationWithIndex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"querySuggestionsConfigurationWithIndex.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfigurationWithIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAChD,0CAA0C,GAAG,6BAA6B,CAAC"}
1
+ {"version":3,"file":"querySuggestionsConfigurationWithIndex.d.ts","sourceRoot":"","sources":["../../model/querySuggestionsConfigurationWithIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAChD,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -4,33 +4,24 @@ import type { Facet } from './facet';
4
4
  */
5
5
  export type SourceIndex = {
6
6
  /**
7
- * Name of the Algolia index to use as source for query suggestions.
7
+ * Name of the Algolia index (case-sensitive) to use as source for query suggestions.
8
8
  */
9
9
  indexName: string;
10
10
  /**
11
- * If true, Query Suggestions uses all replicas of the primary index to find popular searches. If false, only the primary index is used.
11
+ * If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used.
12
12
  */
13
13
  replicas?: boolean;
14
- /**
15
- * [Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches.
16
- */
17
14
  analyticsTags?: string[] | null;
18
- /**
19
- * Facets to use as top categories with your suggestions. If provided, Query Suggestions adds the top facet values to each suggestion.
20
- */
21
15
  facets?: Facet[] | null;
22
16
  /**
23
- * Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` hits to be included in the Query Suggestions index.
17
+ * Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` search results to be included in the Query Suggestions index.
24
18
  */
25
19
  minHits?: number;
26
20
  /**
27
21
  * Minimum letters required to be included as a suggestion. A search query must be at least `minLetters` long to be included in the Query Suggestions index.
28
22
  */
29
23
  minLetters?: number;
30
- generate?: string[][];
31
- /**
32
- * Algolia indices with popular searches to use as query suggestions. Records of these indices must have these attributes: - `query`: search query which will be added as a suggestion - `count`: measure of popularity of that search query For example, you can export popular searches from an external analytics tool, such as Google Analytics or Adobe Analytics, and feed this data into an external Algolia index. You can use this external index to generate query suggestions until your Algolia analytics has collected enough data.
33
- */
24
+ generate?: string[][] | null;
34
25
  external?: string[] | null;
35
26
  };
36
27
  //# sourceMappingURL=sourceIndex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sourceIndex.d.ts","sourceRoot":"","sources":["../../model/sourceIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"sourceIndex.d.ts","sourceRoot":"","sources":["../../model/sourceIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEhC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC;IAE7B,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC5B,CAAC"}
@@ -5,7 +5,7 @@ import type { GetConfigStatus200Response } from '../model/getConfigStatus200Resp
5
5
  import type { GetLogFile200Response } from '../model/getLogFile200Response';
6
6
  import type { QuerySuggestionsConfigurationResponse } from '../model/querySuggestionsConfigurationResponse';
7
7
  import type { QuerySuggestionsConfigurationWithIndex } from '../model/querySuggestionsConfigurationWithIndex';
8
- export declare const apiClientVersion = "5.0.0-alpha.99";
8
+ export declare const apiClientVersion = "5.0.0-beta.2";
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,9 +32,11 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
32
32
  */
33
33
  addAlgoliaAgent(segment: string, version?: string): void;
34
34
  /**
35
- * Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
35
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
36
+ *
37
+ * Required API Key ACLs:
38
+ * - editSettings.
36
39
  *
37
- * @summary Create a configuration.
38
40
  * @param querySuggestionsConfigurationWithIndex - The querySuggestionsConfigurationWithIndex object.
39
41
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
40
42
  */
@@ -42,7 +44,6 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
42
44
  /**
43
45
  * This method allow you to send requests to the Algolia REST API.
44
46
  *
45
- * @summary Send requests to the Algolia REST API.
46
47
  * @param customDelete - The customDelete object.
47
48
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
48
49
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -52,7 +53,6 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
52
53
  /**
53
54
  * This method allow you to send requests to the Algolia REST API.
54
55
  *
55
- * @summary Send requests to the Algolia REST API.
56
56
  * @param customGet - The customGet object.
57
57
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
58
58
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -62,7 +62,6 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
62
62
  /**
63
63
  * This method allow you to send requests to the Algolia REST API.
64
64
  *
65
- * @summary Send requests to the Algolia REST API.
66
65
  * @param customPost - The customPost object.
67
66
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
68
67
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -73,7 +72,6 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
73
72
  /**
74
73
  * This method allow you to send requests to the Algolia REST API.
75
74
  *
76
- * @summary Send requests to the Algolia REST API.
77
75
  * @param customPut - The customPut object.
78
76
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
79
77
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -82,52 +80,64 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
82
80
  */
83
81
  customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
84
82
  /**
85
- * 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.
83
+ * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the [Delete an index](/specs/search#tag/Indices/operation/deleteIndex) operation.
84
+ *
85
+ * Required API Key ACLs:
86
+ * - editSettings.
86
87
  *
87
- * @summary Delete a configuration.
88
88
  * @param deleteConfig - The deleteConfig object.
89
89
  * @param deleteConfig.indexName - Query Suggestions index name.
90
90
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
91
91
  */
92
92
  deleteConfig({ indexName }: DeleteConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
93
93
  /**
94
- * List all Query Suggestions configurations of your Algolia application.
94
+ * Retrieves all Query Suggestions configurations of your Algolia application.
95
+ *
96
+ * Required API Key ACLs:
97
+ * - settings.
95
98
  *
96
- * @summary List configurations.
97
99
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
98
100
  */
99
101
  getAllConfigs(requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse[]>;
100
102
  /**
101
- * Get a single Query Suggestions configuration.
103
+ * Retrieves a single Query Suggestions configuration by its index name.
104
+ *
105
+ * Required API Key ACLs:
106
+ * - settings.
102
107
  *
103
- * @summary Get a configuration.
104
108
  * @param getConfig - The getConfig object.
105
109
  * @param getConfig.indexName - Query Suggestions index name.
106
110
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
107
111
  */
108
112
  getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse>;
109
113
  /**
110
- * Report the status of a Query Suggestions index.
114
+ * Reports the status of a Query Suggestions index.
115
+ *
116
+ * Required API Key ACLs:
117
+ * - settings.
111
118
  *
112
- * @summary Get configuration status.
113
119
  * @param getConfigStatus - The getConfigStatus object.
114
120
  * @param getConfigStatus.indexName - Query Suggestions index name.
115
121
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
116
122
  */
117
123
  getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<GetConfigStatus200Response>;
118
124
  /**
119
- * Get the logs for a single Query Suggestions index.
125
+ * Retrieves the logs for a single Query Suggestions index.
126
+ *
127
+ * Required API Key ACLs:
128
+ * - settings.
120
129
  *
121
- * @summary Get logs.
122
130
  * @param getLogFile - The getLogFile object.
123
131
  * @param getLogFile.indexName - Query Suggestions index name.
124
132
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
125
133
  */
126
134
  getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
127
135
  /**
128
- * Update a QuerySuggestions configuration.
136
+ * Updates a QuerySuggestions configuration.
137
+ *
138
+ * Required API Key ACLs:
139
+ * - editSettings.
129
140
  *
130
- * @summary Update a configuration.
131
141
  * @param updateConfig - The updateConfig object.
132
142
  * @param updateConfig.indexName - Query Suggestions index name.
133
143
  * @param updateConfig.querySuggestionsConfiguration - The querySuggestionsConfiguration object.
@@ -135,8 +145,4 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
135
145
  */
136
146
  updateConfig({ indexName, querySuggestionsConfiguration }: UpdateConfigProps, requestOptions?: RequestOptions): Promise<BaseResponse>;
137
147
  };
138
- /**
139
- * The client type.
140
- */
141
- export type QuerySuggestionsClient = ReturnType<typeof createQuerySuggestionsClient>;
142
148
  //# 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,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAC5G,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AAE9G,eAAO,MAAM,gBAAgB,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;uCAEqB,iBAAiB,mBACtB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;OAQG;oCAEqB,cAAc,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;;OASG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;;OASG;0CAE2B,cAAc,mBACzB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;OAOG;gCAEc,iBAAiB,mBACf,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAwBxB;;;;;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;;;;;;;;OAQG;+DAE6C,iBAAiB,mBAC9C,cAAc,GAC9B,QAAQ,YAAY,CAAC;EAqC3B;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,OAAO,4BAA4B,CACpC,CAAC"}
1
+ {"version":3,"file":"querySuggestionsClient.d.ts","sourceRoot":"","sources":["../../src/querySuggestionsClient.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAC5G,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,iDAAiD,CAAC;AAE9G,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,eAAO,MAAM,OAAO,uBAAwB,CAAC;AAC7C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAY9C,wBAAgB,4BAA4B,CAAC,EAC3C,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,MAAM,EAAE,YAAY,EACpB,GAAG,OAAO,EACX,EAAE,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;IAwBvC;;OAEG;;IAGH;;OAEG;kBACW,QAAQ,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;;OAQG;yDAEuC,sCAAsC,mBAC7D,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAsBxB;;;;;;;OAOG;uCAEqB,iBAAiB,mBACtB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;OAOG;oCAEqB,cAAc,mBACnB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAqB/B;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;0CAE2B,cAAc,mBACzB,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;;OASG;gCAEc,iBAAiB,mBACf,cAAc,GAC9B,QAAQ,YAAY,CAAC;IAwBxB;;;;;;;OAOG;mCAEgB,cAAc,GAC9B,QAAQ,qCAAqC,EAAE,CAAC;IAenD;;;;;;;;;OASG;6BAEc,cAAc,mBACZ,cAAc,GAC9B,QAAQ,qCAAqC,CAAC;IAwBjD;;;;;;;;;OASG;mCAEc,oBAAoB,mBAClB,cAAc,GAC9B,QAAQ,0BAA0B,CAAC;IAwBtC;;;;;;;;;OASG;8BAEc,eAAe,mBACb,cAAc,GAC9B,QAAQ,qBAAqB,CAAC;IAwBjC;;;;;;;;;;OAUG;+DAE6C,iBAAiB,mBAC9C,cAAc,GAC9B,QAAQ,YAAY,CAAC;EAqC3B"}