@algolia/client-query-suggestions 5.0.0-alpha.109 → 5.0.0-alpha.110

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 (37) hide show
  1. package/dist/client-query-suggestions.cjs +8 -8
  2. package/dist/client-query-suggestions.esm.browser.js +8 -8
  3. package/dist/client-query-suggestions.esm.node.js +8 -8
  4. package/dist/client-query-suggestions.umd.js +2 -2
  5. package/dist/model/appID.d.ts +7 -0
  6. package/dist/model/appID.d.ts.map +1 -0
  7. package/dist/model/getConfigStatus200Response.d.ts +2 -2
  8. package/dist/model/getLogFile200Response.d.ts +1 -1
  9. package/dist/model/index.d.ts +1 -2
  10. package/dist/model/index.d.ts.map +1 -1
  11. package/dist/model/languages.d.ts +1 -1
  12. package/dist/model/logLevel.d.ts +1 -1
  13. package/dist/model/querySuggestionsConfiguration.d.ts +2 -5
  14. package/dist/model/querySuggestionsConfiguration.d.ts.map +1 -1
  15. package/dist/model/querySuggestionsConfigurationResponse.d.ts +5 -2
  16. package/dist/model/querySuggestionsConfigurationResponse.d.ts.map +1 -1
  17. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts +1 -2
  18. package/dist/model/querySuggestionsConfigurationWithIndex.d.ts.map +1 -1
  19. package/dist/model/sourceIndex.d.ts +3 -12
  20. package/dist/model/sourceIndex.d.ts.map +1 -1
  21. package/dist/src/querySuggestionsClient.d.ts +8 -8
  22. package/model/{baseQuerySuggestionsConfigurationWithIndex.ts → appID.ts} +3 -3
  23. package/model/getConfigStatus200Response.ts +2 -2
  24. package/model/getLogFile200Response.ts +1 -1
  25. package/model/index.ts +1 -2
  26. package/model/languages.ts +1 -1
  27. package/model/logLevel.ts +1 -1
  28. package/model/querySuggestionsConfiguration.ts +2 -5
  29. package/model/querySuggestionsConfigurationResponse.ts +6 -4
  30. package/model/querySuggestionsConfigurationWithIndex.ts +1 -2
  31. package/model/sourceIndex.ts +3 -12
  32. package/package.json +5 -5
  33. package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts +0 -15
  34. package/dist/model/baseQuerySuggestionsConfigurationResponse.d.ts.map +0 -1
  35. package/dist/model/baseQuerySuggestionsConfigurationWithIndex.d.ts +0 -7
  36. package/dist/model/baseQuerySuggestionsConfigurationWithIndex.d.ts.map +0 -1
  37. package/model/baseQuerySuggestionsConfigurationResponse.ts +0 -18
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // 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.
7
- const apiClientVersion = '5.0.0-alpha.109';
7
+ const apiClientVersion = '5.0.0-alpha.110';
8
8
  const REGIONS = ['eu', 'us'];
9
9
  function getDefaultHosts(region) {
10
10
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -62,7 +62,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
62
62
  transporter.algoliaAgent.add({ segment, version });
63
63
  },
64
64
  /**
65
- * Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
65
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
66
66
  *
67
67
  * Required API Key ACLs:
68
68
  * - editSettings.
@@ -183,7 +183,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
183
183
  return transporter.request(request, requestOptions);
184
184
  },
185
185
  /**
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.
186
+ * 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.
187
187
  *
188
188
  * Required API Key ACLs:
189
189
  * - editSettings.
@@ -208,7 +208,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
208
208
  return transporter.request(request, requestOptions);
209
209
  },
210
210
  /**
211
- * List all Query Suggestions configurations of your Algolia application.
211
+ * Retrieves all Query Suggestions configurations of your Algolia application.
212
212
  *
213
213
  * Required API Key ACLs:
214
214
  * - settings.
@@ -228,7 +228,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
228
228
  return transporter.request(request, requestOptions);
229
229
  },
230
230
  /**
231
- * Get a single Query Suggestions configuration.
231
+ * Retrieves a single Query Suggestions configuration by its index name.
232
232
  *
233
233
  * Required API Key ACLs:
234
234
  * - settings.
@@ -253,7 +253,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
253
253
  return transporter.request(request, requestOptions);
254
254
  },
255
255
  /**
256
- * Report the status of a Query Suggestions index.
256
+ * Reports the status of a Query Suggestions index.
257
257
  *
258
258
  * Required API Key ACLs:
259
259
  * - settings.
@@ -278,7 +278,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
278
278
  return transporter.request(request, requestOptions);
279
279
  },
280
280
  /**
281
- * Get the logs for a single Query Suggestions index.
281
+ * Retrieves the logs for a single Query Suggestions index.
282
282
  *
283
283
  * Required API Key ACLs:
284
284
  * - settings.
@@ -303,7 +303,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
303
303
  return transporter.request(request, requestOptions);
304
304
  },
305
305
  /**
306
- * Update a QuerySuggestions configuration.
306
+ * Updates a QuerySuggestions configuration.
307
307
  *
308
308
  * Required API Key ACLs:
309
309
  * - editSettings.
@@ -686,7 +686,7 @@ function createXhrRequester() {
686
686
  }
687
687
 
688
688
  // 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.
689
- const apiClientVersion = '5.0.0-alpha.109';
689
+ const apiClientVersion = '5.0.0-alpha.110';
690
690
  const REGIONS = ['eu', 'us'];
691
691
  function getDefaultHosts(region) {
692
692
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -744,7 +744,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
744
744
  transporter.algoliaAgent.add({ segment, version });
745
745
  },
746
746
  /**
747
- * Create a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
747
+ * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
748
748
  *
749
749
  * Required API Key ACLs:
750
750
  * - editSettings.
@@ -865,7 +865,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
865
865
  return transporter.request(request, requestOptions);
866
866
  },
867
867
  /**
868
- * 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.
868
+ * 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.
869
869
  *
870
870
  * Required API Key ACLs:
871
871
  * - editSettings.
@@ -890,7 +890,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
890
890
  return transporter.request(request, requestOptions);
891
891
  },
892
892
  /**
893
- * List all Query Suggestions configurations of your Algolia application.
893
+ * Retrieves all Query Suggestions configurations of your Algolia application.
894
894
  *
895
895
  * Required API Key ACLs:
896
896
  * - settings.
@@ -910,7 +910,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
910
910
  return transporter.request(request, requestOptions);
911
911
  },
912
912
  /**
913
- * Get a single Query Suggestions configuration.
913
+ * Retrieves a single Query Suggestions configuration by its index name.
914
914
  *
915
915
  * Required API Key ACLs:
916
916
  * - settings.
@@ -935,7 +935,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
935
935
  return transporter.request(request, requestOptions);
936
936
  },
937
937
  /**
938
- * Report the status of a Query Suggestions index.
938
+ * Reports the status of a Query Suggestions index.
939
939
  *
940
940
  * Required API Key ACLs:
941
941
  * - settings.
@@ -960,7 +960,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
960
960
  return transporter.request(request, requestOptions);
961
961
  },
962
962
  /**
963
- * Get the logs for a single Query Suggestions index.
963
+ * Retrieves the logs for a single Query Suggestions index.
964
964
  *
965
965
  * Required API Key ACLs:
966
966
  * - settings.
@@ -985,7 +985,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
985
985
  return transporter.request(request, requestOptions);
986
986
  },
987
987
  /**
988
- * Update a QuerySuggestions configuration.
988
+ * Updates a QuerySuggestions configuration.
989
989
  *
990
990
  * Required API Key ACLs:
991
991
  * - editSettings.
@@ -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.109';
5
+ const apiClientVersion = '5.0.0-alpha.110';
6
6
  const REGIONS = ['eu', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
@@ -60,7 +60,7 @@ 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
64
  *
65
65
  * Required API Key ACLs:
66
66
  * - editSettings.
@@ -181,7 +181,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
181
181
  return transporter.request(request, requestOptions);
182
182
  },
183
183
  /**
184
- * 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
185
  *
186
186
  * Required API Key ACLs:
187
187
  * - editSettings.
@@ -206,7 +206,7 @@ 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
210
  *
211
211
  * Required API Key ACLs:
212
212
  * - settings.
@@ -226,7 +226,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
226
226
  return transporter.request(request, requestOptions);
227
227
  },
228
228
  /**
229
- * Get a single Query Suggestions configuration.
229
+ * Retrieves a single Query Suggestions configuration by its index name.
230
230
  *
231
231
  * Required API Key ACLs:
232
232
  * - settings.
@@ -251,7 +251,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
251
251
  return transporter.request(request, requestOptions);
252
252
  },
253
253
  /**
254
- * Report the status of a Query Suggestions index.
254
+ * Reports the status of a Query Suggestions index.
255
255
  *
256
256
  * Required API Key ACLs:
257
257
  * - settings.
@@ -276,7 +276,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
276
276
  return transporter.request(request, requestOptions);
277
277
  },
278
278
  /**
279
- * Get the logs for a single Query Suggestions index.
279
+ * Retrieves the logs for a single Query Suggestions index.
280
280
  *
281
281
  * Required API Key ACLs:
282
282
  * - settings.
@@ -301,7 +301,7 @@ function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption
301
301
  return transporter.request(request, requestOptions);
302
302
  },
303
303
  /**
304
- * Update a QuerySuggestions configuration.
304
+ * Updates a QuerySuggestions configuration.
305
305
  *
306
306
  * Required API Key ACLs:
307
307
  * - editSettings.
@@ -1,2 +1,2 @@
1
- /*! client-query-suggestions.umd.js | 5.0.0-alpha.109 | © 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 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 p(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 g(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=>g(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:p(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&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const a=O(E);return E.isTimedOut&&b++,console.log("Retryable failure",g(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.109",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:"/{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:`${P}-${e}`}),s()]}),...o})}}));
1
+ /*! client-query-suggestions.umd.js | 5.0.0-alpha.110 | © 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 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 p(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 g(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=>g(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:p(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&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(E)){const a=O(E);return E.isTimedOut&&b++,console.log("Retryable failure",g(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.110",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:"/{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:`${P}-${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,10 +1,10 @@
1
1
  export type GetConfigStatus200Response = {
2
2
  /**
3
- * Query Suggestions index name.
3
+ * Name of the Query Suggestions index.
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
  /**
@@ -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"}
@@ -8,29 +8,20 @@ export type SourceIndex = {
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.109";
8
+ export declare const apiClientVersion = "5.0.0-alpha.110";
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,7 +32,7 @@ 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
36
  *
37
37
  * Required API Key ACLs:
38
38
  * - editSettings.
@@ -80,7 +80,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
80
80
  */
81
81
  customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
82
82
  /**
83
- * Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
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
84
  *
85
85
  * Required API Key ACLs:
86
86
  * - editSettings.
@@ -91,7 +91,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
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
95
  *
96
96
  * Required API Key ACLs:
97
97
  * - settings.
@@ -100,7 +100,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
100
100
  */
101
101
  getAllConfigs(requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse[]>;
102
102
  /**
103
- * Get a single Query Suggestions configuration.
103
+ * Retrieves a single Query Suggestions configuration by its index name.
104
104
  *
105
105
  * Required API Key ACLs:
106
106
  * - settings.
@@ -111,7 +111,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
111
111
  */
112
112
  getConfig({ indexName }: GetConfigProps, requestOptions?: RequestOptions): Promise<QuerySuggestionsConfigurationResponse>;
113
113
  /**
114
- * Report the status of a Query Suggestions index.
114
+ * Reports the status of a Query Suggestions index.
115
115
  *
116
116
  * Required API Key ACLs:
117
117
  * - settings.
@@ -122,7 +122,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
122
122
  */
123
123
  getConfigStatus({ indexName }: GetConfigStatusProps, requestOptions?: RequestOptions): Promise<GetConfigStatus200Response>;
124
124
  /**
125
- * Get the logs for a single Query Suggestions index.
125
+ * Retrieves the logs for a single Query Suggestions index.
126
126
  *
127
127
  * Required API Key ACLs:
128
128
  * - settings.
@@ -133,7 +133,7 @@ export declare function createQuerySuggestionsClient({ appId: appIdOption, apiKe
133
133
  */
134
134
  getLogFile({ indexName }: GetLogFileProps, requestOptions?: RequestOptions): Promise<GetLogFile200Response>;
135
135
  /**
136
- * Update a QuerySuggestions configuration.
136
+ * Updates a QuerySuggestions configuration.
137
137
  *
138
138
  * Required API Key ACLs:
139
139
  * - editSettings.
@@ -1,8 +1,8 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- export type BaseQuerySuggestionsConfigurationWithIndex = {
3
+ export type AppID = {
4
4
  /**
5
- * Query Suggestions index name.
5
+ * Algolia application ID to which this Query Suggestions configuration belongs.
6
6
  */
7
- indexName: string;
7
+ appID?: string;
8
8
  };
@@ -2,12 +2,12 @@
2
2
 
3
3
  export type GetConfigStatus200Response = {
4
4
  /**
5
- * Query Suggestions index name.
5
+ * Name of the Query Suggestions index.
6
6
  */
7
7
  indexName?: string;
8
8
 
9
9
  /**
10
- * Indicates whether the creation or update of the Query Suggestions is in progress.
10
+ * Whether the creation or update of the Query Suggestions index is in progress.
11
11
  */
12
12
  isRunning?: boolean;
13
13
 
@@ -16,7 +16,7 @@ export type GetLogFile200Response = {
16
16
  message?: string;
17
17
 
18
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.
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
20
  */
21
21
  contextLevel?: number;
22
22
  };
package/model/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- export * from './baseQuerySuggestionsConfigurationResponse';
4
- export * from './baseQuerySuggestionsConfigurationWithIndex';
3
+ export * from './appID';
5
4
  export * from './baseResponse';
6
5
  export * from './errorBase';
7
6
  export * from './facet';
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Set the language for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
4
+ * Languages for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
5
5
  */
6
6
  export type Languages = string[] | boolean;
package/model/logLevel.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * 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.
4
+ * 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';
@@ -14,18 +14,15 @@ export type QuerySuggestionsConfiguration = {
14
14
 
15
15
  languages?: Languages;
16
16
 
17
- /**
18
- * Patterns to exclude from query suggestions.
19
- */
20
17
  exclude?: string[] | null;
21
18
 
22
19
  /**
23
- * Turn on personalized query suggestions.
20
+ * Whether to turn on personalized query suggestions.
24
21
  */
25
22
  enablePersonalization?: boolean;
26
23
 
27
24
  /**
28
- * Allow suggestions with special characters.
25
+ * Whether to include suggestions with special characters.
29
26
  */
30
27
  allowSpecialCharacters?: boolean;
31
28
  };
@@ -1,8 +1,10 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { BaseQuerySuggestionsConfigurationResponse } from './baseQuerySuggestionsConfigurationResponse';
3
+ import type { AppID } from './appID';
4
4
  import type { QuerySuggestionsConfigurationWithIndex } from './querySuggestionsConfigurationWithIndex';
5
5
 
6
- export type QuerySuggestionsConfigurationResponse =
7
- BaseQuerySuggestionsConfigurationResponse &
8
- QuerySuggestionsConfigurationWithIndex;
6
+ /**
7
+ * API response for retrieving Query Suggestions configurations.
8
+ */
9
+ export type QuerySuggestionsConfigurationResponse = AppID &
10
+ QuerySuggestionsConfigurationWithIndex;
@@ -1,10 +1,9 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { BaseQuerySuggestionsConfigurationWithIndex } from './baseQuerySuggestionsConfigurationWithIndex';
4
3
  import type { QuerySuggestionsConfiguration } from './querySuggestionsConfiguration';
5
4
 
6
5
  /**
7
6
  * Query Suggestions configuration.
8
7
  */
9
8
  export type QuerySuggestionsConfigurationWithIndex =
10
- BaseQuerySuggestionsConfigurationWithIndex & QuerySuggestionsConfiguration;
9
+ QuerySuggestionsConfiguration & Record<string, any>;
@@ -12,22 +12,16 @@ export type SourceIndex = {
12
12
  indexName: string;
13
13
 
14
14
  /**
15
- * If true, Query Suggestions uses all replicas of the primary index to find popular searches. If false, only the primary index is used.
15
+ * If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used.
16
16
  */
17
17
  replicas?: boolean;
18
18
 
19
- /**
20
- * [Analytics tags](https://www.algolia.com/doc/api-reference/api-parameters/analyticsTags/) for filtering the popular searches.
21
- */
22
19
  analyticsTags?: string[] | null;
23
20
 
24
- /**
25
- * Facets to use as top categories with your suggestions. If provided, Query Suggestions adds the top facet values to each suggestion.
26
- */
27
21
  facets?: Facet[] | null;
28
22
 
29
23
  /**
30
- * Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` hits to be included in the Query Suggestions index.
24
+ * 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.
31
25
  */
32
26
  minHits?: number;
33
27
 
@@ -36,10 +30,7 @@ export type SourceIndex = {
36
30
  */
37
31
  minLetters?: number;
38
32
 
39
- generate?: string[][];
33
+ generate?: string[][] | null;
40
34
 
41
- /**
42
- * Algolia indices with popular searches to use as query suggestions. Records of these indices must have these attributes: - `query`: search query which will be added as a suggestion - `count`: measure of popularity of that search query For example, you can export popular searches from an external analytics tool, such as Google Analytics or Adobe Analytics, and feed this data into an external Algolia index. You can use this external index to generate query suggestions until your Algolia analytics has collected enough data.
43
- */
44
35
  external?: string[] | null;
45
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-query-suggestions",
3
- "version": "5.0.0-alpha.109",
3
+ "version": "5.0.0-alpha.110",
4
4
  "description": "JavaScript client for client-query-suggestions",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -39,13 +39,13 @@
39
39
  "clean": "rm -rf ./dist || true"
40
40
  },
41
41
  "dependencies": {
42
- "@algolia/client-common": "5.0.0-alpha.110",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.110",
44
- "@algolia/requester-node-http": "5.0.0-alpha.110"
42
+ "@algolia/client-common": "5.0.0-alpha.111",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.111",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.111"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "20.11.30",
48
- "rollup": "4.13.0",
48
+ "rollup": "4.13.2",
49
49
  "typescript": "5.4.3"
50
50
  },
51
51
  "engines": {
@@ -1,15 +0,0 @@
1
- export type BaseQuerySuggestionsConfigurationResponse = {
2
- /**
3
- * API key used to read from your source index.
4
- */
5
- sourceIndicesAPIKey?: string;
6
- /**
7
- * API key used to write and configure your Query Suggestions index.
8
- */
9
- suggestionsIndicesAPIKey?: string;
10
- /**
11
- * API key used to read from external Algolia indices.
12
- */
13
- externalIndicesAPIKey?: string;
14
- };
15
- //# sourceMappingURL=baseQuerySuggestionsConfigurationResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseQuerySuggestionsConfigurationResponse.d.ts","sourceRoot":"","sources":["../../model/baseQuerySuggestionsConfigurationResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,yCAAyC,GAAG;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC"}
@@ -1,7 +0,0 @@
1
- export type BaseQuerySuggestionsConfigurationWithIndex = {
2
- /**
3
- * Query Suggestions index name.
4
- */
5
- indexName: string;
6
- };
7
- //# sourceMappingURL=baseQuerySuggestionsConfigurationWithIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseQuerySuggestionsConfigurationWithIndex.d.ts","sourceRoot":"","sources":["../../model/baseQuerySuggestionsConfigurationWithIndex.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0CAA0C,GAAG;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,18 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- export type BaseQuerySuggestionsConfigurationResponse = {
4
- /**
5
- * API key used to read from your source index.
6
- */
7
- sourceIndicesAPIKey?: string;
8
-
9
- /**
10
- * API key used to write and configure your Query Suggestions index.
11
- */
12
- suggestionsIndicesAPIKey?: string;
13
-
14
- /**
15
- * API key used to read from external Algolia indices.
16
- */
17
- externalIndicesAPIKey?: string;
18
- };