algoliasearch 5.0.0-beta.8 → 5.0.0

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 (186) hide show
  1. package/builds/models.ts +6 -4
  2. package/dist/algoliasearch/builds/browser.d.ts +4 -4
  3. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  4. package/dist/algoliasearch/builds/models.d.ts +2 -2
  5. package/dist/algoliasearch/builds/models.d.ts.map +1 -1
  6. package/dist/algoliasearch/builds/node.d.ts +4 -4
  7. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  8. package/dist/algoliasearch.cjs +13 -8
  9. package/dist/algoliasearch.esm.browser.js +13 -8
  10. package/dist/algoliasearch.esm.node.js +13 -8
  11. package/dist/algoliasearch.umd.js +2 -2
  12. package/dist/client-abtesting/model/{filterEffectsEmptySearch.d.ts → emptySearchFilter.d.ts} +2 -2
  13. package/dist/client-abtesting/model/emptySearchFilter.d.ts.map +1 -0
  14. package/dist/client-abtesting/model/filterEffects.d.ts +4 -4
  15. package/dist/client-abtesting/model/filterEffects.d.ts.map +1 -1
  16. package/dist/client-abtesting/model/index.d.ts +2 -2
  17. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  18. package/dist/client-abtesting/model/{filterEffectsOutliers.d.ts → outliersFilter.d.ts} +2 -2
  19. package/dist/client-abtesting/model/outliersFilter.d.ts.map +1 -0
  20. package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
  21. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  22. package/dist/client-analytics/model/{clickPositionsInner.d.ts → clickPosition.d.ts} +2 -2
  23. package/dist/client-analytics/model/clickPosition.d.ts.map +1 -0
  24. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +2 -2
  25. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  26. package/dist/client-analytics/model/index.d.ts +1 -1
  27. package/dist/client-analytics/model/index.d.ts.map +1 -1
  28. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +2 -2
  29. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  30. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +2 -2
  31. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -1
  32. package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
  33. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  34. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  35. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  36. package/dist/client-search/model/aroundPrecision.d.ts +2 -2
  37. package/dist/client-search/model/aroundPrecision.d.ts.map +1 -1
  38. package/dist/client-search/model/baseIndexSettings.d.ts +1 -1
  39. package/dist/client-search/model/baseSearchResponse.d.ts +0 -16
  40. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  41. package/dist/client-search/model/browsePagination.d.ts +19 -0
  42. package/dist/client-search/model/browsePagination.d.ts.map +1 -0
  43. package/dist/client-search/model/browseResponse.d.ts +2 -1
  44. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  45. package/dist/client-search/model/builtInOperation.d.ts +2 -4
  46. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  47. package/dist/client-search/model/builtInOperationValue.d.ts +2 -0
  48. package/dist/client-search/model/builtInOperationValue.d.ts.map +1 -0
  49. package/dist/client-search/model/dictionaryEntry.d.ts +3 -1
  50. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  51. package/dist/client-search/model/dictionaryEntryType.d.ts +5 -0
  52. package/dist/client-search/model/dictionaryEntryType.d.ts.map +1 -0
  53. package/dist/client-search/model/highlightResult.d.ts +3 -1
  54. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  55. package/dist/client-search/model/index.d.ts +8 -2
  56. package/dist/client-search/model/index.d.ts.map +1 -1
  57. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +1 -1
  58. package/dist/client-search/model/multipleBatchRequest.d.ts +1 -1
  59. package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -1
  60. package/dist/{recommend/model/aroundPrecisionFromValueInner.d.ts → client-search/model/range.d.ts} +2 -2
  61. package/dist/client-search/model/range.d.ts.map +1 -0
  62. package/dist/client-search/model/redirectRuleIndexData.d.ts +7 -0
  63. package/dist/client-search/model/redirectRuleIndexData.d.ts.map +1 -0
  64. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +2 -2
  65. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  66. package/dist/client-search/model/searchPagination.d.ts +19 -0
  67. package/dist/client-search/model/searchPagination.d.ts.map +1 -0
  68. package/dist/client-search/model/searchParamsString.d.ts +3 -0
  69. package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
  70. package/dist/client-search/model/searchResponse.d.ts +2 -1
  71. package/dist/client-search/model/searchResponse.d.ts.map +1 -1
  72. package/dist/client-search/model/settingsResponse.d.ts +4 -0
  73. package/dist/client-search/model/settingsResponse.d.ts.map +1 -0
  74. package/dist/client-search/model/snippetResult.d.ts +3 -1
  75. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  76. package/dist/client-search/model/withPrimary.d.ts +7 -0
  77. package/dist/client-search/model/withPrimary.d.ts.map +1 -0
  78. package/dist/client-search/src/searchClient.d.ts +7 -7
  79. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  80. package/dist/lite/lite.cjs +1 -1
  81. package/dist/lite/lite.esm.browser.js +1 -1
  82. package/dist/lite/lite.esm.node.js +1 -1
  83. package/dist/lite/lite.umd.js +2 -2
  84. package/dist/lite/model/aroundPrecision.d.ts +2 -2
  85. package/dist/lite/model/aroundPrecision.d.ts.map +1 -1
  86. package/dist/lite/model/baseIndexSettings.d.ts +1 -1
  87. package/dist/lite/model/baseSearchResponse.d.ts +0 -16
  88. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  89. package/dist/lite/model/browsePagination.d.ts +19 -0
  90. package/dist/lite/model/browsePagination.d.ts.map +1 -0
  91. package/dist/lite/model/browseResponse.d.ts +2 -1
  92. package/dist/lite/model/browseResponse.d.ts.map +1 -1
  93. package/dist/lite/model/getRecommendationsResponse.d.ts +1 -1
  94. package/dist/lite/model/getRecommendationsResponse.d.ts.map +1 -1
  95. package/dist/lite/model/highlightResult.d.ts +3 -1
  96. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  97. package/dist/lite/model/index.d.ts +6 -2
  98. package/dist/lite/model/index.d.ts.map +1 -1
  99. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +1 -1
  100. package/dist/lite/model/{aroundPrecisionFromValueInner.d.ts → range.d.ts} +2 -2
  101. package/dist/lite/model/range.d.ts.map +1 -0
  102. package/dist/lite/model/recommendationsResults.d.ts +2 -1
  103. package/dist/lite/model/recommendationsResults.d.ts.map +1 -1
  104. package/dist/lite/model/redirectRuleIndexData.d.ts +7 -0
  105. package/dist/lite/model/redirectRuleIndexData.d.ts.map +1 -0
  106. package/dist/lite/model/redirectRuleIndexMetadata.d.ts +2 -2
  107. package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  108. package/dist/lite/model/searchPagination.d.ts +19 -0
  109. package/dist/lite/model/searchPagination.d.ts.map +1 -0
  110. package/dist/lite/model/searchResponse.d.ts +2 -1
  111. package/dist/lite/model/searchResponse.d.ts.map +1 -1
  112. package/dist/lite/model/settingsResponse.d.ts +4 -0
  113. package/dist/lite/model/settingsResponse.d.ts.map +1 -0
  114. package/dist/lite/model/snippetResult.d.ts +3 -1
  115. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  116. package/dist/lite/model/trendingItems.d.ts +2 -2
  117. package/dist/lite/model/trendingItems.d.ts.map +1 -1
  118. package/dist/lite/model/withPrimary.d.ts +7 -0
  119. package/dist/lite/model/withPrimary.d.ts.map +1 -0
  120. package/dist/lite/src/liteClient.d.ts +1 -1
  121. package/dist/lite/src/liteClient.d.ts.map +1 -1
  122. package/dist/recommend/model/aroundPrecision.d.ts +2 -2
  123. package/dist/recommend/model/aroundPrecision.d.ts.map +1 -1
  124. package/dist/recommend/model/baseSearchResponse.d.ts +0 -16
  125. package/dist/recommend/model/baseSearchResponse.d.ts.map +1 -1
  126. package/dist/recommend/model/getRecommendationsResponse.d.ts +1 -1
  127. package/dist/recommend/model/getRecommendationsResponse.d.ts.map +1 -1
  128. package/dist/recommend/model/highlightResult.d.ts +3 -1
  129. package/dist/recommend/model/highlightResult.d.ts.map +1 -1
  130. package/dist/recommend/model/index.d.ts +4 -3
  131. package/dist/recommend/model/index.d.ts.map +1 -1
  132. package/dist/recommend/model/indexSettingsAsSearchParams.d.ts +1 -1
  133. package/dist/{client-search/model/aroundPrecisionFromValueInner.d.ts → recommend/model/range.d.ts} +2 -2
  134. package/dist/recommend/model/range.d.ts.map +1 -0
  135. package/dist/recommend/model/recommendRule.d.ts +2 -2
  136. package/dist/recommend/model/recommendRule.d.ts.map +1 -1
  137. package/dist/recommend/model/recommendationsResults.d.ts +2 -1
  138. package/dist/recommend/model/recommendationsResults.d.ts.map +1 -1
  139. package/dist/recommend/model/redirectRuleIndexData.d.ts +7 -0
  140. package/dist/recommend/model/redirectRuleIndexData.d.ts.map +1 -0
  141. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts +2 -2
  142. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  143. package/dist/recommend/model/{recommendRuleMetadata.d.ts → ruleMetadata.d.ts} +2 -2
  144. package/dist/recommend/model/ruleMetadata.d.ts.map +1 -0
  145. package/dist/recommend/model/searchPagination.d.ts +19 -0
  146. package/dist/recommend/model/searchPagination.d.ts.map +1 -0
  147. package/dist/recommend/model/snippetResult.d.ts +3 -1
  148. package/dist/recommend/model/snippetResult.d.ts.map +1 -1
  149. package/dist/recommend/model/trendingItems.d.ts +2 -2
  150. package/dist/recommend/model/trendingItems.d.ts.map +1 -1
  151. package/dist/recommend/src/recommendClient.d.ts +1 -1
  152. package/dist/recommend/src/recommendClient.d.ts.map +1 -1
  153. package/lite/model/aroundPrecision.ts +2 -2
  154. package/lite/model/baseIndexSettings.ts +1 -1
  155. package/lite/model/baseSearchResponse.ts +0 -20
  156. package/lite/model/browsePagination.ts +23 -0
  157. package/lite/model/browseResponse.ts +2 -0
  158. package/lite/model/getRecommendationsResponse.ts +1 -1
  159. package/lite/model/highlightResult.ts +2 -1
  160. package/lite/model/index.ts +6 -2
  161. package/lite/model/indexSettingsAsSearchParams.ts +1 -1
  162. package/lite/model/{aroundPrecisionFromValueInner.ts → range.ts} +1 -1
  163. package/lite/model/recommendationsResults.ts +4 -1
  164. package/lite/model/{redirectRuleIndexMetadataData.ts → redirectRuleIndexData.ts} +1 -1
  165. package/lite/model/redirectRuleIndexMetadata.ts +2 -2
  166. package/lite/model/searchPagination.ts +23 -0
  167. package/lite/model/searchResponse.ts +3 -1
  168. package/lite/model/settingsResponse.ts +6 -0
  169. package/lite/model/snippetResult.ts +2 -1
  170. package/lite/model/trendingItems.ts +2 -2
  171. package/lite/model/withPrimary.ts +8 -0
  172. package/lite/src/liteClient.ts +1 -1
  173. package/package.json +13 -13
  174. package/dist/client-abtesting/model/filterEffectsEmptySearch.d.ts.map +0 -1
  175. package/dist/client-abtesting/model/filterEffectsOutliers.d.ts.map +0 -1
  176. package/dist/client-analytics/model/clickPositionsInner.d.ts.map +0 -1
  177. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  178. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +0 -7
  179. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
  180. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  181. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +0 -7
  182. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
  183. package/dist/recommend/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  184. package/dist/recommend/model/recommendRuleMetadata.d.ts.map +0 -1
  185. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts +0 -7
  186. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- /*! algoliasearch/lite.umd.js | 5.0.0-beta.8 | © 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)["algoliasearch/lite"]={})}(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 o(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(o(s),!t)return;o(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 o=a();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(o)),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,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),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 o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},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 o(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 n(e,t,r){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class m extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function h(e,t,r){const s=(a=r,Object.keys(a).filter((e=>void 0!==a[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replaceAll("+","%20")}`)).join("&"));var a;let o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(o+=`?${s}`),o}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:n,requester:i,requestsCache:c,responsesCache:f}){async function g(c,f,g=!0){const y=[],v=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)}(c,f),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,c.headers,f.headers),w="GET"===c.method?{...c.data,...f.data}:{},b={...s,...c.queryParameters,...w};if(a.value&&(b["x-algolia-agent"]=a.value),f&&f.queryParameters)for(const e of Object.keys(f.queryParameters))f.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(f.queryParameters[e])?b[e]=f.queryParameters[e].toString():b[e]=f.queryParameters[e];let q=0;const O=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g?f.timeouts?.read||n.read:f.timeouts?.write||n.write;const w={data:v,headers:P,method:c.method,url:h(s,c.path,b),connectTimeout:r(q,f.timeouts?.connect||n.connect),responseTimeout:r(q,a)},T=t=>{const r={request:w,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(w);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)}(S)){const a=T(S);return S.isTimedOut&&q++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),O(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(S);throw T(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(S,y)},T=e.filter((e=>"readWrite"===e.accept||(g?"read"===e.accept:"write"===e.accept))),S=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(T);return O([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return g(e,t,a);const o=()=>g(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return f.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>f.set(n,e)})},requestsCache:c,responsesCache:f}}function g({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 y="5.0.0-beta.8";function v(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=y,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){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),n=f({hosts:v(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:y}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},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 n.request(a,s)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,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 o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),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:`${y}-${e}`}),s()]}),...o})}}));
1
+ /*! algoliasearch/lite.umd.js | 5.0.0 | © 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)["algoliasearch/lite"]={})}(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 o(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(o(s),!t)return;o(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 o=a();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(o)),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,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),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 o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},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 o(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 n(e,t,r){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class m extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function h(e,t,r){const s=(a=r,Object.keys(a).filter((e=>void 0!==a[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replaceAll("+","%20")}`)).join("&"));var a;let o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(o+=`?${s}`),o}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:n,requester:i,requestsCache:c,responsesCache:f}){async function g(c,f,g=!0){const y=[],v=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)}(c,f),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,c.headers,f.headers),w="GET"===c.method?{...c.data,...f.data}:{},b={...s,...c.queryParameters,...w};if(a.value&&(b["x-algolia-agent"]=a.value),f&&f.queryParameters)for(const e of Object.keys(f.queryParameters))f.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(f.queryParameters[e])?b[e]=f.queryParameters[e].toString():b[e]=f.queryParameters[e];let q=0;const O=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g?f.timeouts?.read||n.read:f.timeouts?.write||n.write;const w={data:v,headers:P,method:c.method,url:h(s,c.path,b),connectTimeout:r(q,f.timeouts?.connect||n.connect),responseTimeout:r(q,a)},T=t=>{const r={request:w,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(w);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)}(S)){const a=T(S);return S.isTimedOut&&q++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),O(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(S);throw T(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(S,y)},T=e.filter((e=>"readWrite"===e.accept||(g?"read"===e.accept:"write"===e.accept))),S=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(T);return O([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return g(e,t,a);const o=()=>g(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return f.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>f.set(n,e)})},requestsCache:c,responsesCache:f}}function g({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 y="5.0.0";function v(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=y,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){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),n=f({hosts:v(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:y}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},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 n.request(a,s)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,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 o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),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:`${y}-${e}`}),s()]}),...o})}}));
@@ -1,6 +1,6 @@
1
- import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
1
+ import type { Range } from './range';
2
2
  /**
3
3
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
4
  */
5
- export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
5
+ export type AroundPrecision = Range[] | number;
6
6
  //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../lite/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,6BAA6B,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../lite/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC"}
@@ -29,7 +29,7 @@ export type BaseIndexSettings = {
29
29
  */
30
30
  camelCaseAttributes?: string[];
31
31
  /**
32
- * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`).
32
+ * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`). Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
33
33
  */
34
34
  decompoundedAttributes?: Record<string, any>;
35
35
  /**
@@ -40,10 +40,6 @@ export type BaseSearchResponse = Record<string, any> & {
40
40
  * Statistics for numerical facets.
41
41
  */
42
42
  facets_stats?: Record<string, FacetsStats>;
43
- /**
44
- * Number of hits per page.
45
- */
46
- hitsPerPage: number;
47
43
  /**
48
44
  * Index name used for the query.
49
45
  */
@@ -56,22 +52,10 @@ export type BaseSearchResponse = Record<string, any> & {
56
52
  * Warnings about the query.
57
53
  */
58
54
  message?: string;
59
- /**
60
- * Number of results (hits).
61
- */
62
- nbHits: number;
63
- /**
64
- * Number of pages of results.
65
- */
66
- nbPages: number;
67
55
  /**
68
56
  * Number of hits selected and sorted by the relevant sort algorithm.
69
57
  */
70
58
  nbSortedHits?: number;
71
- /**
72
- * Page of search results to retrieve.
73
- */
74
- page: number;
75
59
  /**
76
60
  * Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
77
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/baseSearchResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,Q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EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type BrowsePagination = {
2
+ /**
3
+ * Page of search results to retrieve.
4
+ */
5
+ page?: number;
6
+ /**
7
+ * Number of results (hits).
8
+ */
9
+ nbHits?: number;
10
+ /**
11
+ * Number of pages of results.
12
+ */
13
+ nbPages?: number;
14
+ /**
15
+ * Number of hits per page.
16
+ */
17
+ hitsPerPage?: number;
18
+ };
19
+ //# sourceMappingURL=browsePagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browsePagination.d.ts","sourceRoot":"","sources":["../../../lite/model/browsePagination.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { BaseSearchResponse } from './baseSearchResponse';
2
+ import type { BrowsePagination } from './browsePagination';
2
3
  import type { Cursor } from './cursor';
3
4
  import type { SearchHits } from './searchHits';
4
- export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse & Cursor & SearchHits<T>;
5
+ export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse & BrowsePagination & Cursor & SearchHits<T>;
5
6
  //# sourceMappingURL=browseResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browseResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/browseResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,MAAM,GACN,UAAU,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"browseResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/browseResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,gBAAgB,GAChB,MAAM,GACN,UAAU,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { RecommendationsResults } from './recommendationsResults';
2
2
  export type GetRecommendationsResponse = {
3
- results?: RecommendationsResults[];
3
+ results: RecommendationsResults[];
4
4
  };
5
5
  //# sourceMappingURL=getRecommendationsResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRecommendationsResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/getRecommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"getRecommendationsResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/getRecommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import type { HighlightResultOption } from './highlightResultOption';
2
- export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption>;
2
+ export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption> | {
3
+ [key: string]: HighlightResult;
4
+ };
3
5
  //# sourceMappingURL=highlightResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../../lite/model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../../lite/model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,GACrC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAC"}
@@ -3,7 +3,6 @@ export * from './advancedSyntaxFeatures';
3
3
  export * from './alternativesAsExact';
4
4
  export * from './apiKey';
5
5
  export * from './aroundPrecision';
6
- export * from './aroundPrecisionFromValueInner';
7
6
  export * from './aroundRadius';
8
7
  export * from './aroundRadiusAll';
9
8
  export * from './automaticFacetFilter';
@@ -15,6 +14,7 @@ export * from './baseSearchParams';
15
14
  export * from './baseSearchParamsWithoutQuery';
16
15
  export * from './baseSearchResponse';
17
16
  export * from './boughtTogetherQuery';
17
+ export * from './browsePagination';
18
18
  export * from './browseParamsObject';
19
19
  export * from './browseResponse';
20
20
  export * from './consequenceParams';
@@ -55,6 +55,7 @@ export * from './optionalFilters';
55
55
  export * from './params';
56
56
  export * from './personalization';
57
57
  export * from './queryType';
58
+ export * from './range';
58
59
  export * from './rankingInfo';
59
60
  export * from './reRankingApplyFilter';
60
61
  export * from './recommendHit';
@@ -66,8 +67,8 @@ export * from './recommendedForYou';
66
67
  export * from './recommendedForYouModel';
67
68
  export * from './recommendedForYouQuery';
68
69
  export * from './redirect';
70
+ export * from './redirectRuleIndexData';
69
71
  export * from './redirectRuleIndexMetadata';
70
- export * from './redirectRuleIndexMetadataData';
71
72
  export * from './redirectURL';
72
73
  export * from './relatedModel';
73
74
  export * from './relatedProducts';
@@ -82,6 +83,7 @@ export * from './searchForHits';
82
83
  export * from './searchForHitsOptions';
83
84
  export * from './searchHits';
84
85
  export * from './searchMethodParams';
86
+ export * from './searchPagination';
85
87
  export * from './searchParams';
86
88
  export * from './searchParamsObject';
87
89
  export * from './searchParamsQuery';
@@ -93,6 +95,7 @@ export * from './searchStrategy';
93
95
  export * from './searchTypeDefault';
94
96
  export * from './searchTypeFacet';
95
97
  export * from './semanticSearch';
98
+ export * from './settingsResponse';
96
99
  export * from './snippetResult';
97
100
  export * from './snippetResultOption';
98
101
  export * from './sortRemainingBy';
@@ -108,5 +111,6 @@ export * from './trendingItemsQuery';
108
111
  export * from './typoTolerance';
109
112
  export * from './typoToleranceEnum';
110
113
  export * from './value';
114
+ export * from './withPrimary';
111
115
  export * from './clientMethodProps';
112
116
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lite/model/index.ts"],"names":[],"mappings":"AAEA,cAAc,OAAO,CAAC;AACtB,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cA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C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -85,7 +85,7 @@ export type IndexSettingsAsSearchParams = {
85
85
  */
86
86
  queryLanguages?: SupportedLanguage[];
87
87
  /**
88
- * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
88
+ * Whether to split compound words in the query into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
89
89
  */
90
90
  decompoundQuery?: boolean;
91
91
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Range object with lower and upper values in meters to define custom ranges.
3
3
  */
4
- export type AroundPrecisionFromValueInner = {
4
+ export type Range = {
5
5
  /**
6
6
  * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
7
7
  */
@@ -11,4 +11,4 @@ export type AroundPrecisionFromValueInner = {
11
11
  */
12
12
  value?: number;
13
13
  };
14
- //# sourceMappingURL=aroundPrecisionFromValueInner.d.ts.map
14
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../lite/model/range.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { BaseSearchResponse } from './baseSearchResponse';
2
2
  import type { RecommendationsHits } from './recommendationsHits';
3
- export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
3
+ import type { SearchPagination } from './searchPagination';
4
+ export type RecommendationsResults = BaseSearchResponse & RecommendationsHits & SearchPagination;
4
5
  //# sourceMappingURL=recommendationsResults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsResults.d.ts","sourceRoot":"","sources":["../../../lite/model/recommendationsResults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"recommendationsResults.d.ts","sourceRoot":"","sources":["../../../lite/model/recommendationsResults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GACrD,mBAAmB,GACnB,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Redirect rule data.
3
+ */
4
+ export type RedirectRuleIndexData = {
5
+ ruleObjectID: string;
6
+ };
7
+ //# sourceMappingURL=redirectRuleIndexData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectRuleIndexData.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
1
+ import type { RedirectRuleIndexData } from './redirectRuleIndexData';
2
2
  export type RedirectRuleIndexMetadata = {
3
3
  /**
4
4
  * Source index for the redirect rule.
@@ -16,6 +16,6 @@ export type RedirectRuleIndexMetadata = {
16
16
  * Redirect rule status.
17
17
  */
18
18
  succeed: boolean;
19
- data: RedirectRuleIndexMetadataData;
19
+ data: RedirectRuleIndexData;
20
20
  };
21
21
  //# sourceMappingURL=redirectRuleIndexMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type SearchPagination = {
2
+ /**
3
+ * Page of search results to retrieve.
4
+ */
5
+ page: number;
6
+ /**
7
+ * Number of results (hits).
8
+ */
9
+ nbHits: number;
10
+ /**
11
+ * Number of pages of results.
12
+ */
13
+ nbPages: number;
14
+ /**
15
+ * Number of hits per page.
16
+ */
17
+ hitsPerPage: number;
18
+ };
19
+ //# sourceMappingURL=searchPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPagination.d.ts","sourceRoot":"","sources":["../../../lite/model/searchPagination.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { BaseSearchResponse } from './baseSearchResponse';
2
2
  import type { SearchHits } from './searchHits';
3
- export type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T>;
3
+ import type { SearchPagination } from './searchPagination';
4
+ export type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
4
5
  //# sourceMappingURL=searchResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/searchResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,UAAU,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"searchResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/searchResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,kBAAkB,GACtE,UAAU,CAAC,CAAC,CAAC,GACb,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IndexSettings } from './indexSettings';
2
+ import type { WithPrimary } from './withPrimary';
3
+ export type SettingsResponse = IndexSettings & WithPrimary;
4
+ //# sourceMappingURL=settingsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/settingsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import type { SnippetResultOption } from './snippetResultOption';
2
- export type SnippetResult = Record<string, SnippetResultOption> | SnippetResultOption | SnippetResultOption[];
2
+ export type SnippetResult = Record<string, SnippetResultOption> | SnippetResultOption | SnippetResultOption[] | {
3
+ [key: string]: SnippetResult;
4
+ };
3
5
  //# sourceMappingURL=snippetResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snippetResult.d.ts","sourceRoot":"","sources":["../../../lite/model/snippetResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,aAAa,GACrB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GACnC,mBAAmB,GACnB,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"snippetResult.d.ts","sourceRoot":"","sources":["../../../lite/model/snippetResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,aAAa,GACrB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GACnC,mBAAmB,GACnB,mBAAmB,EAAE,GACrB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC"}
@@ -4,11 +4,11 @@ export type TrendingItems = {
4
4
  /**
5
5
  * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
6
6
  */
7
- facetName: string;
7
+ facetName?: string;
8
8
  /**
9
9
  * Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
10
10
  */
11
- facetValue: string;
11
+ facetValue?: string;
12
12
  model: TrendingItemsModel;
13
13
  fallbackParameters?: SearchParamsObject;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"trendingItems.d.ts","sourceRoot":"","sources":["../../../lite/model/trendingItems.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,kBAAkB,CAAC;IAE1B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC"}
1
+ {"version":3,"file":"trendingItems.d.ts","sourceRoot":"","sources":["../../../lite/model/trendingItems.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,EAAE,kBAAkB,CAAC;IAE1B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type WithPrimary = {
2
+ /**
3
+ * Replica indices only: the name of the primary index for this replica.
4
+ */
5
+ primary?: string;
6
+ };
7
+ //# sourceMappingURL=withPrimary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withPrimary.d.ts","sourceRoot":"","sources":["../../../lite/model/withPrimary.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -4,7 +4,7 @@ import type { GetRecommendationsParams } from '../model/getRecommendationsParams
4
4
  import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
5
5
  import type { SearchMethodParams } from '../model/searchMethodParams';
6
6
  import type { SearchResponses } from '../model/searchResponses';
7
- export declare const apiClientVersion = "5.0.0-beta.8";
7
+ export declare const apiClientVersion = "5.0.0";
8
8
  export declare function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
9
9
  transporter: import("@algolia/client-common").Transporter;
10
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"liteClient.d.ts","sourceRoot":"","sources":["../../../lite/src/liteClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,eAAe,EACf,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAsC/C,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,GAAG,OAAO,EACX,EAAE,mBAAmB;;IAwBlB;;OAEG;;IAGH;;OAEG;kBACW,OAAO,CAAC,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;iDAGG,wBAAwB,GACxB,8BAA8B,mBACjB,cAAc,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAuCtC;;;;;;;;OAQG;WACI,CAAC,sBACc,uBAAuB,GAAG,kBAAkB,mBAC/C,cAAc,GAC9B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;EAuDjC"}
1
+ {"version":3,"file":"liteClient.d.ts","sourceRoot":"","sources":["../../../lite/src/liteClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,eAAe,EACf,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAsCxC,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,GAAG,OAAO,EACX,EAAE,mBAAmB;;IAwBlB;;OAEG;;IAGH;;OAEG;kBACW,OAAO,CAAC,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;iDAGG,wBAAwB,GACxB,8BAA8B,mBACjB,cAAc,GAC9B,OAAO,CAAC,0BAA0B,CAAC;IAuCtC;;;;;;;;OAQG;WACI,CAAC,sBACc,uBAAuB,GAAG,kBAAkB,mBAC/C,cAAc,GAC9B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;EAuDjC"}
@@ -1,6 +1,6 @@
1
- import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
1
+ import type { Range } from './range';
2
2
  /**
3
3
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
4
  */
5
- export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
5
+ export type AroundPrecision = Range[] | number;
6
6
  //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../../recommend/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,6BAA6B,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../../recommend/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC"}
@@ -40,10 +40,6 @@ export type BaseSearchResponse = Record<string, any> & {
40
40
  * Statistics for numerical facets.
41
41
  */
42
42
  facets_stats?: Record<string, FacetsStats>;
43
- /**
44
- * Number of hits per page.
45
- */
46
- hitsPerPage: number;
47
43
  /**
48
44
  * Index name used for the query.
49
45
  */
@@ -56,22 +52,10 @@ export type BaseSearchResponse = Record<string, any> & {
56
52
  * Warnings about the query.
57
53
  */
58
54
  message?: string;
59
- /**
60
- * Number of results (hits).
61
- */
62
- nbHits: number;
63
- /**
64
- * Number of pages of results.
65
- */
66
- nbPages: number;
67
55
  /**
68
56
  * Number of hits selected and sorted by the relevant sort algorithm.
69
57
  */
70
58
  nbSortedHits?: number;
71
- /**
72
- * Page of search results to retrieve.
73
- */
74
- page: number;
75
59
  /**
76
60
  * Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
77
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchResponse.d.ts","sourceRoot":"","sources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ExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { RecommendationsResults } from './recommendationsResults';
2
2
  export type GetRecommendationsResponse = {
3
- results?: RecommendationsResults[];
3
+ results: RecommendationsResults[];
4
4
  };
5
5
  //# sourceMappingURL=getRecommendationsResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRecommendationsResponse.d.ts","sourceRoot":"","sources":["../../../../recommend/model/getRecommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACpC,CAAC"}
1
+ {"version":3,"file":"getRecommendationsResponse.d.ts","sourceRoot":"","sources":["../../../../recommend/model/getRecommendationsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import type { HighlightResultOption } from './highlightResultOption';
2
- export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption>;
2
+ export type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption> | {
3
+ [key: string]: HighlightResult;
4
+ };
3
5
  //# sourceMappingURL=highlightResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../../../recommend/model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"highlightResult.d.ts","sourceRoot":"","sources":["../../../../recommend/model/highlightResult.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,qBAAqB,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,GACrC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from './advancedSyntaxFeatures';
2
2
  export * from './alternativesAsExact';
3
3
  export * from './aroundPrecision';
4
- export * from './aroundPrecisionFromValueInner';
5
4
  export * from './aroundRadius';
6
5
  export * from './aroundRadiusAll';
7
6
  export * from './autoFacetFilter';
@@ -44,12 +43,12 @@ export * from './paramsConsequence';
44
43
  export * from './personalization';
45
44
  export * from './promoteConsequenceObject';
46
45
  export * from './queryType';
46
+ export * from './range';
47
47
  export * from './rankingInfo';
48
48
  export * from './reRankingApplyFilter';
49
49
  export * from './recommendHit';
50
50
  export * from './recommendModels';
51
51
  export * from './recommendRule';
52
- export * from './recommendRuleMetadata';
53
52
  export * from './recommendationsHit';
54
53
  export * from './recommendationsHits';
55
54
  export * from './recommendationsRequest';
@@ -58,8 +57,8 @@ export * from './recommendedForYou';
58
57
  export * from './recommendedForYouModel';
59
58
  export * from './recommendedForYouQuery';
60
59
  export * from './redirect';
60
+ export * from './redirectRuleIndexData';
61
61
  export * from './redirectRuleIndexMetadata';
62
- export * from './redirectRuleIndexMetadataData';
63
62
  export * from './redirectURL';
64
63
  export * from './relatedModel';
65
64
  export * from './relatedProducts';
@@ -67,6 +66,8 @@ export * from './relatedQuery';
67
66
  export * from './removeStopWords';
68
67
  export * from './removeWordsIfNoResults';
69
68
  export * from './renderingContent';
69
+ export * from './ruleMetadata';
70
+ export * from './searchPagination';
70
71
  export * from './searchParams';
71
72
  export * from './searchParamsObject';
72
73
  export * from './searchParamsQuery';