algoliasearch 5.0.0-alpha.52 → 5.0.0-alpha.54

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 (350) hide show
  1. package/dist/algoliasearch/builds/models.d.ts +31 -31
  2. package/dist/algoliasearch/jest.config.d.ts +3 -3
  3. package/dist/algoliasearch.cjs.js +3487 -3485
  4. package/dist/algoliasearch.esm.browser.js +3620 -3618
  5. package/dist/algoliasearch.esm.node.js +3487 -3485
  6. package/dist/algoliasearch.umd.js +2 -2
  7. package/dist/builds/browser.d.ts +87 -87
  8. package/dist/builds/node.d.ts +87 -87
  9. package/dist/client-abtesting/model/aBTest.d.ts +39 -39
  10. package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
  11. package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
  12. package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
  13. package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
  14. package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
  15. package/dist/client-abtesting/model/clientMethodProps.d.ts +100 -100
  16. package/dist/client-abtesting/model/customSearchParams.d.ts +3 -3
  17. package/dist/client-abtesting/model/errorBase.d.ts +6 -6
  18. package/dist/client-abtesting/model/index.d.ts +11 -11
  19. package/dist/client-abtesting/model/listABTestsResponse.d.ts +15 -15
  20. package/dist/client-abtesting/model/variant.d.ts +50 -50
  21. package/dist/client-abtesting/src/abtestingClient.d.ts +124 -124
  22. package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
  23. package/dist/client-analytics/model/clickPosition.d.ts +10 -10
  24. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
  25. package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
  26. package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
  27. package/dist/client-analytics/model/direction.d.ts +1 -1
  28. package/dist/client-analytics/model/errorBase.d.ts +6 -6
  29. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
  30. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
  31. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
  32. package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
  33. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
  34. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
  35. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
  36. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
  37. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
  38. package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
  39. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
  40. package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
  41. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
  42. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
  43. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
  44. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  45. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
  46. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
  47. package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
  48. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
  49. package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
  50. package/dist/client-analytics/model/index.d.ts +44 -44
  51. package/dist/client-analytics/model/noClickRateEvent.d.ts +18 -18
  52. package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
  53. package/dist/client-analytics/model/orderBy.d.ts +1 -1
  54. package/dist/client-analytics/model/searchEvent.d.ts +10 -10
  55. package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
  56. package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
  57. package/dist/client-analytics/model/topCountry.d.ts +10 -10
  58. package/dist/client-analytics/model/topHit.d.ts +10 -10
  59. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
  60. package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
  61. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
  62. package/dist/client-analytics/model/topSearch.d.ts +14 -14
  63. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
  64. package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
  65. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  66. package/dist/client-analytics/model/userWithDate.d.ts +10 -10
  67. package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
  68. package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
  69. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
  70. package/dist/client-personalization/model/errorBase.d.ts +6 -6
  71. package/dist/client-personalization/model/eventScoring.d.ts +14 -14
  72. package/dist/client-personalization/model/facetScoring.d.ts +10 -10
  73. package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
  74. package/dist/client-personalization/model/index.d.ts +8 -8
  75. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
  76. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
  77. package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
  78. package/dist/client-search/model/acl.d.ts +4 -4
  79. package/dist/client-search/model/action.d.ts +4 -4
  80. package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
  81. package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
  82. package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
  83. package/dist/client-search/model/anchoring.d.ts +4 -4
  84. package/dist/client-search/model/apiKey.d.ts +38 -38
  85. package/dist/client-search/model/aroundRadius.d.ts +5 -5
  86. package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
  87. package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
  88. package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
  89. package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
  90. package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
  91. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
  92. package/dist/client-search/model/baseIndexSettings.d.ts +62 -62
  93. package/dist/client-search/model/baseSearchParams.d.ts +3 -3
  94. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +122 -122
  95. package/dist/client-search/model/baseSearchResponse.d.ts +101 -101
  96. package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
  97. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
  98. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
  99. package/dist/client-search/model/batchParams.d.ts +7 -7
  100. package/dist/client-search/model/batchRequest.d.ts +8 -8
  101. package/dist/client-search/model/batchResponse.d.ts +10 -10
  102. package/dist/client-search/model/batchWriteParams.d.ts +7 -7
  103. package/dist/client-search/model/browseParams.d.ts +3 -3
  104. package/dist/client-search/model/browseParamsObject.d.ts +3 -3
  105. package/dist/client-search/model/browseResponse.d.ts +4 -4
  106. package/dist/client-search/model/builtInOperation.d.ts +11 -11
  107. package/dist/client-search/model/builtInOperationType.d.ts +4 -4
  108. package/dist/client-search/model/clientMethodProps.d.ts +715 -715
  109. package/dist/client-search/model/condition.d.ts +16 -16
  110. package/dist/client-search/model/consequence.d.ts +25 -25
  111. package/dist/client-search/model/consequenceHide.d.ts +9 -9
  112. package/dist/client-search/model/consequenceParams.d.ts +4 -4
  113. package/dist/client-search/model/consequenceQuery.d.ts +5 -5
  114. package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
  115. package/dist/client-search/model/createdAtResponse.d.ts +9 -9
  116. package/dist/client-search/model/cursor.d.ts +6 -6
  117. package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
  118. package/dist/client-search/model/deleteByParams.d.ts +26 -26
  119. package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
  120. package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
  121. package/dist/client-search/model/dictionaryAction.d.ts +4 -4
  122. package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
  123. package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
  124. package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
  125. package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
  126. package/dist/client-search/model/dictionaryType.d.ts +1 -1
  127. package/dist/client-search/model/distinct.d.ts +4 -4
  128. package/dist/client-search/model/edit.d.ts +12 -12
  129. package/dist/client-search/model/editType.d.ts +4 -4
  130. package/dist/client-search/model/errorBase.d.ts +6 -6
  131. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
  132. package/dist/client-search/model/facetFilters.d.ts +5 -5
  133. package/dist/client-search/model/facetHits.d.ts +14 -14
  134. package/dist/client-search/model/facetOrdering.d.ts +12 -12
  135. package/dist/client-search/model/facets.d.ts +9 -9
  136. package/dist/client-search/model/facetsStats.d.ts +18 -18
  137. package/dist/client-search/model/fetchedIndex.d.ts +46 -46
  138. package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
  139. package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
  140. package/dist/client-search/model/getLogsResponse.d.ts +4 -4
  141. package/dist/client-search/model/getObjectsParams.d.ts +7 -7
  142. package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
  143. package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
  144. package/dist/client-search/model/getTaskResponse.d.ts +4 -4
  145. package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
  146. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
  147. package/dist/client-search/model/highlightResult.d.ts +2 -2
  148. package/dist/client-search/model/highlightResultOption.d.ts +19 -19
  149. package/dist/client-search/model/hit.d.ts +22 -22
  150. package/dist/client-search/model/ignorePlurals.d.ts +4 -4
  151. package/dist/client-search/model/index.d.ts +154 -154
  152. package/dist/client-search/model/indexSettings.d.ts +6 -6
  153. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +156 -156
  154. package/dist/client-search/model/languages.d.ts +9 -9
  155. package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
  156. package/dist/client-search/model/listClustersResponse.d.ts +9 -9
  157. package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
  158. package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
  159. package/dist/client-search/model/log.d.ts +63 -63
  160. package/dist/client-search/model/logQuery.d.ts +14 -14
  161. package/dist/client-search/model/logType.d.ts +1 -1
  162. package/dist/client-search/model/matchLevel.d.ts +4 -4
  163. package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
  164. package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
  165. package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
  166. package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
  167. package/dist/client-search/model/numericFilters.d.ts +5 -5
  168. package/dist/client-search/model/operationIndexParams.d.ts +13 -13
  169. package/dist/client-search/model/operationType.d.ts +4 -4
  170. package/dist/client-search/model/optionalFilters.d.ts +5 -5
  171. package/dist/client-search/model/params.d.ts +12 -12
  172. package/dist/client-search/model/personalization.d.ts +14 -14
  173. package/dist/client-search/model/promote.d.ts +3 -3
  174. package/dist/client-search/model/promoteObjectID.d.ts +13 -13
  175. package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
  176. package/dist/client-search/model/queryType.d.ts +4 -4
  177. package/dist/client-search/model/rankingInfo.d.ts +50 -50
  178. package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
  179. package/dist/client-search/model/removeStopWords.d.ts +4 -4
  180. package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
  181. package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
  182. package/dist/client-search/model/renderingContent.d.ts +7 -7
  183. package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
  184. package/dist/client-search/model/rule.d.ts +29 -29
  185. package/dist/client-search/model/saveObjectResponse.d.ts +11 -11
  186. package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
  187. package/dist/client-search/model/scopeType.d.ts +1 -1
  188. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
  189. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
  190. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
  191. package/dist/client-search/model/searchForFacets.d.ts +3 -3
  192. package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
  193. package/dist/client-search/model/searchForHits.d.ts +3 -3
  194. package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
  195. package/dist/client-search/model/searchHits.d.ts +4 -4
  196. package/dist/client-search/model/searchMethodParams.d.ts +6 -6
  197. package/dist/client-search/model/searchParams.d.ts +3 -3
  198. package/dist/client-search/model/searchParamsObject.d.ts +3 -3
  199. package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
  200. package/dist/client-search/model/searchParamsString.d.ts +6 -6
  201. package/dist/client-search/model/searchQuery.d.ts +3 -3
  202. package/dist/client-search/model/searchResponse.d.ts +3 -3
  203. package/dist/client-search/model/searchResponses.d.ts +4 -4
  204. package/dist/client-search/model/searchRulesParams.d.ts +31 -31
  205. package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
  206. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  207. package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
  208. package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
  209. package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
  210. package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
  211. package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
  212. package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
  213. package/dist/client-search/model/snippetResult.d.ts +2 -2
  214. package/dist/client-search/model/snippetResultOption.d.ts +11 -11
  215. package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
  216. package/dist/client-search/model/source.d.ts +13 -13
  217. package/dist/client-search/model/standardEntries.d.ts +17 -17
  218. package/dist/client-search/model/synonymHit.d.ts +35 -35
  219. package/dist/client-search/model/synonymType.d.ts +4 -4
  220. package/dist/client-search/model/tagFilters.d.ts +5 -5
  221. package/dist/client-search/model/taskStatus.d.ts +1 -1
  222. package/dist/client-search/model/timeRange.d.ts +10 -10
  223. package/dist/client-search/model/typoTolerance.d.ts +5 -5
  224. package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
  225. package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
  226. package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
  227. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  228. package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
  229. package/dist/client-search/model/userHighlightResult.d.ts +11 -11
  230. package/dist/client-search/model/userHit.d.ts +24 -24
  231. package/dist/client-search/model/userId.d.ts +21 -21
  232. package/dist/client-search/model/value.d.ts +8 -8
  233. package/dist/client-search/src/searchClient.d.ts +723 -723
  234. package/dist/lite/builds/browser.d.ts +5 -5
  235. package/dist/lite/builds/node.d.ts +5 -5
  236. package/dist/lite/lite.cjs.js +183 -183
  237. package/dist/lite/lite.esm.browser.js +307 -307
  238. package/dist/lite/lite.esm.node.js +183 -183
  239. package/dist/lite/lite.umd.js +2 -2
  240. package/dist/lite/model/acl.d.ts +4 -4
  241. package/dist/lite/model/action.d.ts +4 -4
  242. package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
  243. package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
  244. package/dist/lite/model/alternativesAsExact.d.ts +1 -1
  245. package/dist/lite/model/anchoring.d.ts +4 -4
  246. package/dist/lite/model/apiKey.d.ts +38 -38
  247. package/dist/lite/model/aroundRadius.d.ts +5 -5
  248. package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
  249. package/dist/lite/model/attributeToUpdate.d.ts +2 -2
  250. package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
  251. package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
  252. package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
  253. package/dist/lite/model/baseIndexSettings.d.ts +62 -62
  254. package/dist/lite/model/baseSearchParams.d.ts +3 -3
  255. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +122 -122
  256. package/dist/lite/model/baseSearchResponse.d.ts +101 -101
  257. package/dist/lite/model/browseParams.d.ts +3 -3
  258. package/dist/lite/model/browseParamsObject.d.ts +3 -3
  259. package/dist/lite/model/browseResponse.d.ts +4 -4
  260. package/dist/lite/model/builtInOperation.d.ts +11 -11
  261. package/dist/lite/model/builtInOperationType.d.ts +4 -4
  262. package/dist/lite/model/clientMethodProps.d.ts +48 -48
  263. package/dist/lite/model/condition.d.ts +16 -16
  264. package/dist/lite/model/consequence.d.ts +25 -25
  265. package/dist/lite/model/consequenceHide.d.ts +9 -9
  266. package/dist/lite/model/consequenceParams.d.ts +4 -4
  267. package/dist/lite/model/consequenceQuery.d.ts +5 -5
  268. package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
  269. package/dist/lite/model/cursor.d.ts +6 -6
  270. package/dist/lite/model/deleteByParams.d.ts +26 -26
  271. package/dist/lite/model/dictionaryAction.d.ts +4 -4
  272. package/dist/lite/model/dictionaryEntry.d.ts +27 -27
  273. package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
  274. package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
  275. package/dist/lite/model/dictionaryType.d.ts +1 -1
  276. package/dist/lite/model/distinct.d.ts +4 -4
  277. package/dist/lite/model/edit.d.ts +12 -12
  278. package/dist/lite/model/editType.d.ts +4 -4
  279. package/dist/lite/model/errorBase.d.ts +6 -6
  280. package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
  281. package/dist/lite/model/facetFilters.d.ts +5 -5
  282. package/dist/lite/model/facetOrdering.d.ts +12 -12
  283. package/dist/lite/model/facets.d.ts +9 -9
  284. package/dist/lite/model/facetsStats.d.ts +18 -18
  285. package/dist/lite/model/fetchedIndex.d.ts +46 -46
  286. package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
  287. package/dist/lite/model/highlightResult.d.ts +2 -2
  288. package/dist/lite/model/highlightResultOption.d.ts +19 -19
  289. package/dist/lite/model/hit.d.ts +22 -22
  290. package/dist/lite/model/ignorePlurals.d.ts +4 -4
  291. package/dist/lite/model/index.d.ts +107 -107
  292. package/dist/lite/model/indexSettings.d.ts +6 -6
  293. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +156 -156
  294. package/dist/lite/model/languages.d.ts +9 -9
  295. package/dist/lite/model/listIndicesResponse.d.ts +11 -11
  296. package/dist/lite/model/logType.d.ts +1 -1
  297. package/dist/lite/model/matchLevel.d.ts +4 -4
  298. package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
  299. package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
  300. package/dist/lite/model/numericFilters.d.ts +5 -5
  301. package/dist/lite/model/operationType.d.ts +4 -4
  302. package/dist/lite/model/optionalFilters.d.ts +5 -5
  303. package/dist/lite/model/params.d.ts +12 -12
  304. package/dist/lite/model/personalization.d.ts +14 -14
  305. package/dist/lite/model/promote.d.ts +3 -3
  306. package/dist/lite/model/promoteObjectID.d.ts +13 -13
  307. package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
  308. package/dist/lite/model/queryType.d.ts +4 -4
  309. package/dist/lite/model/rankingInfo.d.ts +50 -50
  310. package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
  311. package/dist/lite/model/removeStopWords.d.ts +4 -4
  312. package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
  313. package/dist/lite/model/renderingContent.d.ts +7 -7
  314. package/dist/lite/model/rule.d.ts +29 -29
  315. package/dist/lite/model/scopeType.d.ts +1 -1
  316. package/dist/lite/model/searchForFacets.d.ts +3 -3
  317. package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
  318. package/dist/lite/model/searchForHits.d.ts +3 -3
  319. package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
  320. package/dist/lite/model/searchHits.d.ts +4 -4
  321. package/dist/lite/model/searchMethodParams.d.ts +6 -6
  322. package/dist/lite/model/searchParams.d.ts +3 -3
  323. package/dist/lite/model/searchParamsObject.d.ts +3 -3
  324. package/dist/lite/model/searchParamsQuery.d.ts +6 -6
  325. package/dist/lite/model/searchParamsString.d.ts +6 -6
  326. package/dist/lite/model/searchQuery.d.ts +3 -3
  327. package/dist/lite/model/searchResponse.d.ts +3 -3
  328. package/dist/lite/model/searchResponses.d.ts +4 -4
  329. package/dist/lite/model/searchStrategy.d.ts +1 -1
  330. package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
  331. package/dist/lite/model/searchTypeDefault.d.ts +4 -4
  332. package/dist/lite/model/searchTypeFacet.d.ts +4 -4
  333. package/dist/lite/model/snippetResult.d.ts +2 -2
  334. package/dist/lite/model/snippetResultOption.d.ts +11 -11
  335. package/dist/lite/model/sortRemainingBy.d.ts +4 -4
  336. package/dist/lite/model/source.d.ts +13 -13
  337. package/dist/lite/model/standardEntries.d.ts +17 -17
  338. package/dist/lite/model/synonymHit.d.ts +35 -35
  339. package/dist/lite/model/synonymType.d.ts +4 -4
  340. package/dist/lite/model/tagFilters.d.ts +5 -5
  341. package/dist/lite/model/taskStatus.d.ts +1 -1
  342. package/dist/lite/model/timeRange.d.ts +10 -10
  343. package/dist/lite/model/typoTolerance.d.ts +5 -5
  344. package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
  345. package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
  346. package/dist/lite/model/userId.d.ts +21 -21
  347. package/dist/lite/model/value.d.ts +8 -8
  348. package/dist/lite/src/liteClient.d.ts +50 -50
  349. package/lite/src/liteClient.ts +1 -1
  350. package/package.json +12 -12
@@ -1,191 +1,191 @@
1
1
  import { createAuth, createTransporter, getAlgoliaAgent, shuffle, DEFAULT_CONNECT_TIMEOUT_NODE, DEFAULT_READ_TIMEOUT_NODE, DEFAULT_WRITE_TIMEOUT_NODE, createNullCache, createMemoryCache } from '@algolia/client-common';
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
5
- const apiClientVersion = '5.0.0-alpha.52';
6
- function getDefaultHosts(appId) {
7
- return [
8
- {
9
- url: `${appId}-dsn.algolia.net`,
10
- accept: 'read',
11
- protocol: 'https',
12
- },
13
- {
14
- url: `${appId}.algolia.net`,
15
- accept: 'write',
16
- protocol: 'https',
17
- },
18
- ].concat(shuffle([
19
- {
20
- url: `${appId}-1.algolianet.com`,
21
- accept: 'readWrite',
22
- protocol: 'https',
23
- },
24
- {
25
- url: `${appId}-2.algolianet.com`,
26
- accept: 'readWrite',
27
- protocol: 'https',
28
- },
29
- {
30
- url: `${appId}-3.algolianet.com`,
31
- accept: 'readWrite',
32
- protocol: 'https',
33
- },
34
- ]));
35
- }
36
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
37
- function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
38
- const auth = createAuth(appIdOption, apiKeyOption, authMode);
39
- const transporter = createTransporter({
40
- hosts: getDefaultHosts(appIdOption),
41
- ...options,
42
- algoliaAgent: getAlgoliaAgent({
43
- algoliaAgents,
44
- client: 'Lite',
45
- version: apiClientVersion,
46
- }),
47
- baseHeaders: {
48
- 'content-type': 'text/plain',
49
- ...auth.headers(),
50
- ...options.baseHeaders,
51
- },
52
- baseQueryParameters: {
53
- ...auth.queryParameters(),
54
- ...options.baseQueryParameters,
55
- },
56
- });
57
- return {
58
- transporter,
59
- /**
60
- * The `appId` currently in use.
61
- */
62
- appId: appIdOption,
63
- /**
64
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
65
- */
66
- clearCache() {
67
- return Promise.all([
68
- transporter.requestsCache.clear(),
69
- transporter.responsesCache.clear(),
70
- ]).then(() => undefined);
71
- },
72
- /**
73
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
74
- */
75
- get _ua() {
76
- return transporter.algoliaAgent.value;
77
- },
78
- /**
79
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
80
- *
81
- * @param segment - The algolia agent (user-agent) segment to add.
82
- * @param version - The version of the agent.
83
- */
84
- addAlgoliaAgent(segment, version) {
85
- transporter.algoliaAgent.add({ segment, version });
86
- },
87
- /**
88
- * This method allow you to send requests to the Algolia REST API.
89
- *
90
- * @summary Send requests to the Algolia REST API.
91
- * @param post - The post object.
92
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
93
- * @param post.parameters - Query parameters to be applied to the current query.
94
- * @param post.body - The parameters to send with the custom request.
95
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
96
- */
97
- post({ path, parameters, body }, requestOptions) {
98
- if (!path) {
99
- throw new Error('Parameter `path` is required when calling `post`.');
100
- }
101
- const requestPath = '/1{path}'.replace('{path}', path);
102
- const headers = {};
103
- const queryParameters = parameters ? parameters : {};
104
- const request = {
105
- method: 'POST',
106
- path: requestPath,
107
- queryParameters,
108
- headers,
109
- data: body ? body : {},
110
- };
111
- return transporter.request(request, requestOptions);
112
- },
113
- /**
114
- * Perform a search operation targeting one or many indices.
115
- *
116
- * @summary Search multiple indices.
117
- * @param searchMethodParams - The `search` requests and strategy.
118
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
119
- */
120
- search(searchMethodParams, requestOptions) {
121
- if (searchMethodParams && Array.isArray(searchMethodParams)) {
122
- const newSignatureRequest = {
123
- requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
124
- if (legacyRequest.type === 'facet') {
125
- return {
126
- ...legacyRequest,
127
- ...params,
128
- type: 'facet',
129
- };
130
- }
131
- return {
132
- ...legacyRequest,
133
- ...params,
134
- facet: undefined,
135
- maxFacetHits: undefined,
136
- facetQuery: undefined,
137
- };
138
- }),
139
- };
140
- // eslint-disable-next-line no-param-reassign
141
- searchMethodParams = newSignatureRequest;
142
- }
143
- if (!searchMethodParams) {
144
- throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
145
- }
146
- if (!searchMethodParams.requests) {
147
- throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
148
- }
149
- const requestPath = '/1/indexes/*/queries';
150
- const headers = {};
151
- const queryParameters = {};
152
- const request = {
153
- method: 'POST',
154
- path: requestPath,
155
- queryParameters,
156
- headers,
157
- data: searchMethodParams,
158
- useReadTransporter: true,
159
- cacheable: true,
160
- };
161
- return transporter.request(request, requestOptions);
162
- },
163
- };
4
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
5
+ const apiClientVersion = '5.0.0-alpha.54';
6
+ function getDefaultHosts(appId) {
7
+ return [
8
+ {
9
+ url: `${appId}-dsn.algolia.net`,
10
+ accept: 'read',
11
+ protocol: 'https',
12
+ },
13
+ {
14
+ url: `${appId}.algolia.net`,
15
+ accept: 'write',
16
+ protocol: 'https',
17
+ },
18
+ ].concat(shuffle([
19
+ {
20
+ url: `${appId}-1.algolianet.com`,
21
+ accept: 'readWrite',
22
+ protocol: 'https',
23
+ },
24
+ {
25
+ url: `${appId}-2.algolianet.com`,
26
+ accept: 'readWrite',
27
+ protocol: 'https',
28
+ },
29
+ {
30
+ url: `${appId}-3.algolianet.com`,
31
+ accept: 'readWrite',
32
+ protocol: 'https',
33
+ },
34
+ ]));
35
+ }
36
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
37
+ function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }) {
38
+ const auth = createAuth(appIdOption, apiKeyOption, authMode);
39
+ const transporter = createTransporter({
40
+ hosts: getDefaultHosts(appIdOption),
41
+ ...options,
42
+ algoliaAgent: getAlgoliaAgent({
43
+ algoliaAgents,
44
+ client: 'Lite',
45
+ version: apiClientVersion,
46
+ }),
47
+ baseHeaders: {
48
+ 'content-type': 'text/plain',
49
+ ...auth.headers(),
50
+ ...options.baseHeaders,
51
+ },
52
+ baseQueryParameters: {
53
+ ...auth.queryParameters(),
54
+ ...options.baseQueryParameters,
55
+ },
56
+ });
57
+ return {
58
+ transporter,
59
+ /**
60
+ * The `appId` currently in use.
61
+ */
62
+ appId: appIdOption,
63
+ /**
64
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
65
+ */
66
+ clearCache() {
67
+ return Promise.all([
68
+ transporter.requestsCache.clear(),
69
+ transporter.responsesCache.clear(),
70
+ ]).then(() => undefined);
71
+ },
72
+ /**
73
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
74
+ */
75
+ get _ua() {
76
+ return transporter.algoliaAgent.value;
77
+ },
78
+ /**
79
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
80
+ *
81
+ * @param segment - The algolia agent (user-agent) segment to add.
82
+ * @param version - The version of the agent.
83
+ */
84
+ addAlgoliaAgent(segment, version) {
85
+ transporter.algoliaAgent.add({ segment, version });
86
+ },
87
+ /**
88
+ * This method allow you to send requests to the Algolia REST API.
89
+ *
90
+ * @summary Send requests to the Algolia REST API.
91
+ * @param post - The post object.
92
+ * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
93
+ * @param post.parameters - Query parameters to be applied to the current query.
94
+ * @param post.body - The parameters to send with the custom request.
95
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
96
+ */
97
+ post({ path, parameters, body }, requestOptions) {
98
+ if (!path) {
99
+ throw new Error('Parameter `path` is required when calling `post`.');
100
+ }
101
+ const requestPath = '/1{path}'.replace('{path}', path);
102
+ const headers = {};
103
+ const queryParameters = parameters ? parameters : {};
104
+ const request = {
105
+ method: 'POST',
106
+ path: requestPath,
107
+ queryParameters,
108
+ headers,
109
+ data: body ? body : {},
110
+ };
111
+ return transporter.request(request, requestOptions);
112
+ },
113
+ /**
114
+ * Perform a search operation targeting one or many indices.
115
+ *
116
+ * @summary Search multiple indices.
117
+ * @param searchMethodParams - The `search` requests and strategy.
118
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
119
+ */
120
+ search(searchMethodParams, requestOptions) {
121
+ if (searchMethodParams && Array.isArray(searchMethodParams)) {
122
+ const newSignatureRequest = {
123
+ requests: searchMethodParams.map(({ params, ...legacyRequest }) => {
124
+ if (legacyRequest.type === 'facet') {
125
+ return {
126
+ ...legacyRequest,
127
+ ...params,
128
+ type: 'facet',
129
+ };
130
+ }
131
+ return {
132
+ ...legacyRequest,
133
+ ...params,
134
+ facet: undefined,
135
+ maxFacetHits: undefined,
136
+ facetQuery: undefined,
137
+ };
138
+ }),
139
+ };
140
+ // eslint-disable-next-line no-param-reassign
141
+ searchMethodParams = newSignatureRequest;
142
+ }
143
+ if (!searchMethodParams) {
144
+ throw new Error('Parameter `searchMethodParams` is required when calling `search`.');
145
+ }
146
+ if (!searchMethodParams.requests) {
147
+ throw new Error('Parameter `searchMethodParams.requests` is required when calling `search`.');
148
+ }
149
+ const requestPath = '/1/indexes/*/queries';
150
+ const headers = {};
151
+ const queryParameters = {};
152
+ const request = {
153
+ method: 'POST',
154
+ path: requestPath,
155
+ queryParameters,
156
+ headers,
157
+ data: searchMethodParams,
158
+ useReadTransporter: true,
159
+ cacheable: true,
160
+ };
161
+ return transporter.request(request, requestOptions);
162
+ },
163
+ };
164
164
  }
165
165
 
166
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
167
- function liteClient(appId, apiKey, options) {
168
- if (!appId || typeof appId !== 'string') {
169
- throw new Error('`appId` is missing.');
170
- }
171
- if (!apiKey || typeof apiKey !== 'string') {
172
- throw new Error('`apiKey` is missing.');
173
- }
174
- return createLiteClient({
175
- appId,
176
- apiKey,
177
- timeouts: {
178
- connect: DEFAULT_CONNECT_TIMEOUT_NODE,
179
- read: DEFAULT_READ_TIMEOUT_NODE,
180
- write: DEFAULT_WRITE_TIMEOUT_NODE,
181
- },
182
- requester: createHttpRequester(),
183
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
184
- responsesCache: createNullCache(),
185
- requestsCache: createNullCache(),
186
- hostsCache: createMemoryCache(),
187
- ...options,
188
- });
166
+ // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
167
+ function liteClient(appId, apiKey, options) {
168
+ if (!appId || typeof appId !== 'string') {
169
+ throw new Error('`appId` is missing.');
170
+ }
171
+ if (!apiKey || typeof apiKey !== 'string') {
172
+ throw new Error('`apiKey` is missing.');
173
+ }
174
+ return createLiteClient({
175
+ appId,
176
+ apiKey,
177
+ timeouts: {
178
+ connect: DEFAULT_CONNECT_TIMEOUT_NODE,
179
+ read: DEFAULT_READ_TIMEOUT_NODE,
180
+ write: DEFAULT_WRITE_TIMEOUT_NODE,
181
+ },
182
+ requester: createHttpRequester(),
183
+ algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
184
+ responsesCache: createNullCache(),
185
+ requestsCache: createNullCache(),
186
+ hostsCache: createMemoryCache(),
187
+ ...options,
188
+ });
189
189
  }
190
190
 
191
191
  export { apiClientVersion, liteClient };
@@ -1,2 +1,2 @@
1
- /*! algoliasearch/lite.umd.js | 5.0.0-alpha.52 | © 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)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=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||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(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, contact support@algolia.com.",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 d extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class h extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts: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),b="GET"===c.method?{...c.data,...f.data}:{},w={...s,...c.queryParameters,...b};if(a.value&&(w["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])?w[e]=f.queryParameters[e].toString():w[e]=f.queryParameters[e];let O=0;const q=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=f.timeout;void 0===a&&(a=g?n.read:n.write);const b={data:v,headers:P,method:c.method,url:m(s,c.path,w),connectTimeout:r(O,n.connect),responseTimeout:r(O,a)},T=t=>{const r={request:b,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(b);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(S)){const a=T(S);return S.isTimedOut&&O++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),q(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(S);throw T(S),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 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 q([...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=1e3,v=2e3,P=3e4;const b="5.0.0-alpha.52";function w(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=b,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:w(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:b}),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})},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},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:y,read:v,write:P},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:`${b}-${e}`}),s()]}),...o})}}));
1
+ /*! algoliasearch/lite.umd.js | 5.0.0-alpha.54 | © 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)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=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||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(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, contact support@algolia.com.",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 d extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class h extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts: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),b="GET"===c.method?{...c.data,...f.data}:{},w={...s,...c.queryParameters,...b};if(a.value&&(w["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])?w[e]=f.queryParameters[e].toString():w[e]=f.queryParameters[e];let O=0;const q=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=f.timeout;void 0===a&&(a=g?n.read:n.write);const b={data:v,headers:P,method:c.method,url:m(s,c.path,w),connectTimeout:r(O,n.connect),responseTimeout:r(O,a)},T=t=>{const r={request:b,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(b);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(S)){const a=T(S);return S.isTimedOut&&O++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),q(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(S);throw T(S),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 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 q([...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=1e3,v=2e3,P=3e4;const b="5.0.0-alpha.54";function w(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=b,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:w(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:b}),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})},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},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:y,read:v,write:P},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:`${b}-${e}`}),s()]}),...o})}}));
@@ -1,5 +1,5 @@
1
- /**
2
- * List of rights for the API key. The following rights can be used: addObject: allows to add/update an object in the index (copy/move index are also allowed with this right). Analytics: allows to retrieve the analytics through the Analytics API. Browse: allows to retrieve all index content via the browse API. DeleteIndex: allows to delete or clear index content. DeleteObject: allows to delete objects from the index. EditSettings: allows to change index settings. ListIndexes: allows to list all accessible indices. Logs: allows to get the logs. Recommendation: Allows usage of the Personalization dashboard and the Recommendation API. Search: allows to search the index. SeeUnretrievableAttributes: disable unretrievableAttributes feature for all operations returning records. Settings: allows to get index settings.
3
- */
4
- export type Acl = 'addObject' | 'analytics' | 'browse' | 'deleteIndex' | 'deleteObject' | 'editSettings' | 'listIndexes' | 'logs' | 'personalization' | 'recommendation' | 'search' | 'seeUnretrievableAttributes' | 'settings' | 'usage';
1
+ /**
2
+ * List of rights for the API key. The following rights can be used: addObject: allows to add/update an object in the index (copy/move index are also allowed with this right). Analytics: allows to retrieve the analytics through the Analytics API. Browse: allows to retrieve all index content via the browse API. DeleteIndex: allows to delete or clear index content. DeleteObject: allows to delete objects from the index. EditSettings: allows to change index settings. ListIndexes: allows to list all accessible indices. Logs: allows to get the logs. Recommendation: Allows usage of the Personalization dashboard and the Recommendation API. Search: allows to search the index. SeeUnretrievableAttributes: disable unretrievableAttributes feature for all operations returning records. Settings: allows to get index settings.
3
+ */
4
+ export type Acl = 'addObject' | 'analytics' | 'browse' | 'deleteIndex' | 'deleteObject' | 'editSettings' | 'listIndexes' | 'logs' | 'personalization' | 'recommendation' | 'search' | 'seeUnretrievableAttributes' | 'settings' | 'usage';
5
5
  //# sourceMappingURL=acl.d.ts.map
@@ -1,5 +1,5 @@
1
- /**
2
- * Type of operation.
3
- */
4
- export type Action = 'addObject' | 'clear' | 'delete' | 'deleteObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'updateObject';
1
+ /**
2
+ * Type of operation.
3
+ */
4
+ export type Action = 'addObject' | 'clear' | 'delete' | 'deleteObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'updateObject';
5
5
  //# sourceMappingURL=action.d.ts.map
@@ -1,11 +1,11 @@
1
- export type AddApiKeyResponse = {
2
- /**
3
- * The API key.
4
- */
5
- key: string;
6
- /**
7
- * Date of creation (ISO-8601 format).
8
- */
9
- createdAt: string;
10
- };
1
+ export type AddApiKeyResponse = {
2
+ /**
3
+ * The API key.
4
+ */
5
+ key: string;
6
+ /**
7
+ * Date of creation (ISO-8601 format).
8
+ */
9
+ createdAt: string;
10
+ };
11
11
  //# sourceMappingURL=addApiKeyResponse.d.ts.map
@@ -1,2 +1,2 @@
1
- export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
1
+ export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
2
2
  //# sourceMappingURL=advancedSyntaxFeatures.d.ts.map
@@ -1,2 +1,2 @@
1
- export type AlternativesAsExact = 'ignorePlurals' | 'multiWordsSynonym' | 'singleWordSynonym';
1
+ export type AlternativesAsExact = 'ignorePlurals' | 'multiWordsSynonym' | 'singleWordSynonym';
2
2
  //# sourceMappingURL=alternativesAsExact.d.ts.map
@@ -1,5 +1,5 @@
1
- /**
2
- * Whether the pattern parameter must match the beginning or the end of the query string, or both, or none.
3
- */
4
- export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
1
+ /**
2
+ * Whether the pattern parameter must match the beginning or the end of the query string, or both, or none.
3
+ */
4
+ export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
5
5
  //# sourceMappingURL=anchoring.d.ts.map
@@ -1,39 +1,39 @@
1
- import type { Acl } from './acl';
2
- /**
3
- * Api Key object.
4
- */
5
- export type ApiKey = {
6
- /**
7
- * Set of permissions associated with the key.
8
- */
9
- acl: Acl[];
10
- /**
11
- * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API.
12
- */
13
- description?: string;
14
- /**
15
- * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed.
16
- */
17
- indexes?: string[];
18
- /**
19
- * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced.
20
- */
21
- maxHitsPerQuery?: number;
22
- /**
23
- * Maximum number of API calls per hour allowed from a given IP address or a user token.
24
- */
25
- maxQueriesPerIPPerHour?: number;
26
- /**
27
- * URL-encoded query string. Force some query parameters to be applied for each query made with this API key.
28
- */
29
- queryParameters?: string;
30
- /**
31
- * Restrict this new API key to specific referers. If empty or blank, defaults to all referers.
32
- */
33
- referers?: string[];
34
- /**
35
- * Validity limit for this key in seconds. The key will automatically be removed after this period of time.
36
- */
37
- validity?: number;
38
- };
1
+ import type { Acl } from './acl';
2
+ /**
3
+ * Api Key object.
4
+ */
5
+ export type ApiKey = {
6
+ /**
7
+ * Set of permissions associated with the key.
8
+ */
9
+ acl: Acl[];
10
+ /**
11
+ * A comment used to identify a key more easily in the dashboard. It is not interpreted by the API.
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed.
16
+ */
17
+ indexes?: string[];
18
+ /**
19
+ * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced.
20
+ */
21
+ maxHitsPerQuery?: number;
22
+ /**
23
+ * Maximum number of API calls per hour allowed from a given IP address or a user token.
24
+ */
25
+ maxQueriesPerIPPerHour?: number;
26
+ /**
27
+ * URL-encoded query string. Force some query parameters to be applied for each query made with this API key.
28
+ */
29
+ queryParameters?: string;
30
+ /**
31
+ * Restrict this new API key to specific referers. If empty or blank, defaults to all referers.
32
+ */
33
+ referers?: string[];
34
+ /**
35
+ * Validity limit for this key in seconds. The key will automatically be removed after this period of time.
36
+ */
37
+ validity?: number;
38
+ };
39
39
  //# sourceMappingURL=apiKey.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { AroundRadiusAll } from './aroundRadiusAll';
2
- /**
3
- * Define the maximum radius for a geo search (in meters).
4
- */
5
- export type AroundRadius = AroundRadiusAll | number;
1
+ import type { AroundRadiusAll } from './aroundRadiusAll';
2
+ /**
3
+ * Define the maximum radius for a geo search (in meters).
4
+ */
5
+ export type AroundRadius = AroundRadiusAll | number;
6
6
  //# sourceMappingURL=aroundRadius.d.ts.map
@@ -1,2 +1,2 @@
1
- export type AroundRadiusAll = 'all';
1
+ export type AroundRadiusAll = 'all';
2
2
  //# sourceMappingURL=aroundRadiusAll.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { BuiltInOperation } from './builtInOperation';
2
- export type AttributeToUpdate = BuiltInOperation | string;
1
+ import type { BuiltInOperation } from './builtInOperation';
2
+ export type AttributeToUpdate = BuiltInOperation | string;
3
3
  //# sourceMappingURL=attributeToUpdate.d.ts.map
@@ -1,18 +1,18 @@
1
- /**
2
- * Automatic facet Filter.
3
- */
4
- export type AutomaticFacetFilter = {
5
- /**
6
- * Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
7
- */
8
- facet: string;
9
- /**
10
- * Score for the filter. Typically used for optional or disjunctive filters.
11
- */
12
- score?: number;
13
- /**
14
- * Whether the filter is disjunctive (true) or conjunctive (false).
15
- */
16
- disjunctive?: boolean;
17
- };
1
+ /**
2
+ * Automatic facet Filter.
3
+ */
4
+ export type AutomaticFacetFilter = {
5
+ /**
6
+ * Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
7
+ */
8
+ facet: string;
9
+ /**
10
+ * Score for the filter. Typically used for optional or disjunctive filters.
11
+ */
12
+ score?: number;
13
+ /**
14
+ * Whether the filter is disjunctive (true) or conjunctive (false).
15
+ */
16
+ disjunctive?: boolean;
17
+ };
18
18
  //# sourceMappingURL=automaticFacetFilter.d.ts.map