@algolia/recommend 5.0.0-alpha.9 → 5.0.0-alpha.91

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 (290) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/node.d.ts +5 -5
  3. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  4. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  5. package/dist/model/alternativesAsExact.d.ts +1 -1
  6. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  7. package/dist/model/anchoring.d.ts +5 -0
  8. package/dist/model/anchoring.d.ts.map +1 -0
  9. package/dist/model/aroundPrecision.d.ts +6 -0
  10. package/dist/model/aroundPrecision.d.ts.map +1 -0
  11. package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
  12. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  13. package/dist/model/aroundRadius.d.ts +5 -5
  14. package/dist/model/aroundRadius.d.ts.map +1 -1
  15. package/dist/model/aroundRadiusAll.d.ts +1 -1
  16. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  17. package/dist/model/automaticFacetFilter.d.ts +18 -0
  18. package/dist/model/automaticFacetFilter.d.ts.map +1 -0
  19. package/dist/model/automaticFacetFilters.d.ts +6 -0
  20. package/dist/model/automaticFacetFilters.d.ts.map +1 -0
  21. package/dist/model/baseRecommendRequest.d.ts +14 -17
  22. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  23. package/dist/model/baseRecommendationsQuery.d.ts +12 -0
  24. package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
  25. package/dist/model/baseSearchParams.d.ts +3 -3
  26. package/dist/model/baseSearchParams.d.ts.map +1 -1
  27. package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  28. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  29. package/dist/model/baseSearchResponse.d.ts +105 -101
  30. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  31. package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
  32. package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
  33. package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
  34. package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
  35. package/dist/model/clientMethodProps.d.ts +127 -60
  36. package/dist/model/clientMethodProps.d.ts.map +1 -1
  37. package/dist/model/condition.d.ts +17 -0
  38. package/dist/model/condition.d.ts.map +1 -0
  39. package/dist/model/consequence.d.ts +26 -0
  40. package/dist/model/consequence.d.ts.map +1 -0
  41. package/dist/model/consequenceHide.d.ts +10 -0
  42. package/dist/model/consequenceHide.d.ts.map +1 -0
  43. package/dist/model/consequenceParams.d.ts +5 -0
  44. package/dist/model/consequenceParams.d.ts.map +1 -0
  45. package/dist/model/consequenceQuery.d.ts +6 -0
  46. package/dist/model/consequenceQuery.d.ts.map +1 -0
  47. package/dist/model/consequenceQueryObject.d.ts +12 -0
  48. package/dist/model/consequenceQueryObject.d.ts.map +1 -0
  49. package/dist/model/deletedAtResponse.d.ts +14 -0
  50. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  51. package/dist/model/distinct.d.ts +4 -4
  52. package/dist/model/distinct.d.ts.map +1 -1
  53. package/dist/model/edit.d.ts +13 -0
  54. package/dist/model/edit.d.ts.map +1 -0
  55. package/dist/model/editType.d.ts +5 -0
  56. package/dist/model/editType.d.ts.map +1 -0
  57. package/dist/model/errorBase.d.ts +6 -6
  58. package/dist/model/errorBase.d.ts.map +1 -1
  59. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  60. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  61. package/dist/model/exhaustive.d.ts +26 -0
  62. package/dist/model/exhaustive.d.ts.map +1 -0
  63. package/dist/model/facetFilters.d.ts +5 -5
  64. package/dist/model/facetFilters.d.ts.map +1 -1
  65. package/dist/model/facetOrdering.d.ts +12 -12
  66. package/dist/model/facetOrdering.d.ts.map +1 -1
  67. package/dist/model/facets.d.ts +9 -9
  68. package/dist/model/facets.d.ts.map +1 -1
  69. package/dist/model/facetsStats.d.ts +18 -18
  70. package/dist/model/facetsStats.d.ts.map +1 -1
  71. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  72. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  73. package/dist/model/getRecommendationsParams.d.ts +10 -10
  74. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  75. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  76. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  77. package/dist/model/highlightResult.d.ts +2 -2
  78. package/dist/model/highlightResult.d.ts.map +1 -1
  79. package/dist/model/highlightResultOption.d.ts +19 -19
  80. package/dist/model/highlightResultOption.d.ts.map +1 -1
  81. package/dist/model/ignorePlurals.d.ts +4 -4
  82. package/dist/model/ignorePlurals.d.ts.map +1 -1
  83. package/dist/model/index.d.ts +87 -53
  84. package/dist/model/index.d.ts.map +1 -1
  85. package/dist/model/indexSettingsAsSearchParams.d.ts +162 -160
  86. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  87. package/dist/model/matchLevel.d.ts +4 -4
  88. package/dist/model/matchLevel.d.ts.map +1 -1
  89. package/dist/model/matchedGeoLocation.d.ts +14 -14
  90. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  91. package/dist/model/mixedSearchFilters.d.ts +1 -1
  92. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  93. package/dist/model/mode.d.ts +5 -0
  94. package/dist/model/mode.d.ts.map +1 -0
  95. package/dist/model/numericFilters.d.ts +5 -5
  96. package/dist/model/numericFilters.d.ts.map +1 -1
  97. package/dist/model/optionalFilters.d.ts +5 -5
  98. package/dist/model/optionalFilters.d.ts.map +1 -1
  99. package/dist/model/params.d.ts +13 -0
  100. package/dist/model/params.d.ts.map +1 -0
  101. package/dist/model/personalization.d.ts +14 -14
  102. package/dist/model/personalization.d.ts.map +1 -1
  103. package/dist/model/promote.d.ts +4 -0
  104. package/dist/model/promote.d.ts.map +1 -0
  105. package/dist/model/promoteObjectID.d.ts +14 -0
  106. package/dist/model/promoteObjectID.d.ts.map +1 -0
  107. package/dist/model/promoteObjectIDs.d.ts +14 -0
  108. package/dist/model/promoteObjectIDs.d.ts.map +1 -0
  109. package/dist/model/queryType.d.ts +4 -4
  110. package/dist/model/queryType.d.ts.map +1 -1
  111. package/dist/model/rankingInfo.d.ts +50 -50
  112. package/dist/model/rankingInfo.d.ts.map +1 -1
  113. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  114. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  115. package/dist/model/recommendHit.d.ts +26 -26
  116. package/dist/model/recommendHit.d.ts.map +1 -1
  117. package/dist/model/recommendHits.d.ts +12 -4
  118. package/dist/model/recommendHits.d.ts.map +1 -1
  119. package/dist/model/recommendModels.d.ts +2 -0
  120. package/dist/model/recommendModels.d.ts.map +1 -0
  121. package/dist/model/recommendationModels.d.ts +4 -4
  122. package/dist/model/recommendationModels.d.ts.map +1 -1
  123. package/dist/model/recommendationsQuery.d.ts +4 -0
  124. package/dist/model/recommendationsQuery.d.ts.map +1 -0
  125. package/dist/model/recommendationsRequest.d.ts +4 -3
  126. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  127. package/dist/model/recommendationsResponse.d.ts +3 -3
  128. package/dist/model/recommendationsResponse.d.ts.map +1 -1
  129. package/dist/model/redirect.d.ts +8 -0
  130. package/dist/model/redirect.d.ts.map +1 -0
  131. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  132. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  133. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  134. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  135. package/dist/model/removeStopWords.d.ts +4 -4
  136. package/dist/model/removeStopWords.d.ts.map +1 -1
  137. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  138. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  139. package/dist/model/renderingContent.d.ts +7 -7
  140. package/dist/model/renderingContent.d.ts.map +1 -1
  141. package/dist/model/ruleResponse.d.ts +27 -0
  142. package/dist/model/ruleResponse.d.ts.map +1 -0
  143. package/dist/model/ruleResponseMetadata.d.ts +7 -0
  144. package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
  145. package/dist/model/searchParamsObject.d.ts +3 -3
  146. package/dist/model/searchParamsObject.d.ts.map +1 -1
  147. package/dist/model/searchParamsQuery.d.ts +6 -6
  148. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  149. package/dist/model/searchRecommendRulesParams.d.ts +30 -0
  150. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  151. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  152. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  153. package/dist/model/semanticSearch.d.ts +10 -0
  154. package/dist/model/semanticSearch.d.ts.map +1 -0
  155. package/dist/model/snippetResult.d.ts +2 -2
  156. package/dist/model/snippetResult.d.ts.map +1 -1
  157. package/dist/model/snippetResultOption.d.ts +11 -11
  158. package/dist/model/snippetResultOption.d.ts.map +1 -1
  159. package/dist/model/sortRemainingBy.d.ts +4 -4
  160. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  161. package/dist/model/tagFilters.d.ts +5 -5
  162. package/dist/model/tagFilters.d.ts.map +1 -1
  163. package/dist/model/taskStatus.d.ts +5 -0
  164. package/dist/model/taskStatus.d.ts.map +1 -0
  165. package/dist/model/trendingFacetsModel.d.ts +5 -0
  166. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  167. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  168. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  169. package/dist/model/trendingItemsModel.d.ts +5 -0
  170. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  171. package/dist/model/trendingItemsQuery.d.ts +4 -0
  172. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  173. package/dist/model/typoTolerance.d.ts +5 -5
  174. package/dist/model/typoTolerance.d.ts.map +1 -1
  175. package/dist/model/typoToleranceEnum.d.ts +1 -1
  176. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  177. package/dist/model/value.d.ts +8 -8
  178. package/dist/model/value.d.ts.map +1 -1
  179. package/dist/recommend.cjs +381 -0
  180. package/dist/recommend.esm.browser.js +552 -469
  181. package/dist/recommend.esm.node.js +370 -235
  182. package/dist/recommend.umd.js +2 -2
  183. package/dist/src/recommendClient.d.ts +129 -81
  184. package/dist/src/recommendClient.d.ts.map +1 -1
  185. package/index.js +1 -1
  186. package/model/advancedSyntaxFeatures.ts +1 -1
  187. package/model/alternativesAsExact.ts +1 -1
  188. package/model/anchoring.ts +6 -0
  189. package/model/aroundPrecision.ts +8 -0
  190. package/model/aroundPrecisionFromValueInner.ts +7 -0
  191. package/model/aroundRadius.ts +2 -2
  192. package/model/aroundRadiusAll.ts +1 -1
  193. package/model/automaticFacetFilter.ts +21 -0
  194. package/model/automaticFacetFilters.ts +8 -0
  195. package/model/baseRecommendRequest.ts +5 -11
  196. package/model/baseRecommendationsQuery.ts +17 -0
  197. package/model/baseSearchParams.ts +1 -1
  198. package/model/baseSearchParamsWithoutQuery.ts +40 -45
  199. package/model/baseSearchResponse.ts +37 -31
  200. package/model/baseTrendingFacetsQuery.ts +12 -0
  201. package/model/baseTrendingItemsQuery.ts +22 -0
  202. package/model/clientMethodProps.ts +83 -11
  203. package/model/condition.ts +22 -0
  204. package/model/consequence.ts +32 -0
  205. package/model/consequenceHide.ts +11 -0
  206. package/model/consequenceParams.ts +9 -0
  207. package/model/consequenceQuery.ts +8 -0
  208. package/model/consequenceQueryObject.ts +15 -0
  209. package/model/deletedAtResponse.ts +16 -0
  210. package/model/distinct.ts +2 -2
  211. package/model/edit.ts +17 -0
  212. package/model/editType.ts +6 -0
  213. package/model/errorBase.ts +1 -1
  214. package/model/exactOnSingleWordQuery.ts +2 -2
  215. package/model/exhaustive.ts +31 -0
  216. package/model/facetFilters.ts +2 -2
  217. package/model/facetOrdering.ts +3 -3
  218. package/model/facets.ts +2 -2
  219. package/model/facetsStats.ts +5 -5
  220. package/model/getRecommendTaskResponse.ts +7 -0
  221. package/model/getRecommendationsParams.ts +3 -3
  222. package/model/getRecommendationsResponse.ts +1 -1
  223. package/model/highlightResult.ts +1 -1
  224. package/model/highlightResultOption.ts +2 -2
  225. package/model/ignorePlurals.ts +2 -2
  226. package/model/index.ts +40 -6
  227. package/model/indexSettingsAsSearchParams.ts +51 -47
  228. package/model/matchLevel.ts +1 -1
  229. package/model/matchedGeoLocation.ts +1 -1
  230. package/model/mixedSearchFilters.ts +1 -1
  231. package/model/mode.ts +6 -0
  232. package/model/numericFilters.ts +2 -2
  233. package/model/optionalFilters.ts +2 -2
  234. package/model/params.ts +18 -0
  235. package/model/personalization.ts +1 -1
  236. package/model/promote.ts +6 -0
  237. package/model/promoteObjectID.ts +16 -0
  238. package/model/promoteObjectIDs.ts +16 -0
  239. package/model/queryType.ts +2 -2
  240. package/model/rankingInfo.ts +1 -1
  241. package/model/reRankingApplyFilter.ts +2 -2
  242. package/model/recommendHit.ts +4 -4
  243. package/model/recommendHits.ts +11 -1
  244. package/model/recommendModels.ts +7 -0
  245. package/model/recommendationModels.ts +2 -2
  246. package/model/recommendationsQuery.ts +7 -0
  247. package/model/recommendationsRequest.ts +8 -4
  248. package/model/recommendationsResponse.ts +1 -1
  249. package/model/redirect.ts +10 -0
  250. package/model/redirectRuleIndexMetadata.ts +27 -0
  251. package/model/redirectRuleIndexMetadataData.ts +8 -0
  252. package/model/removeStopWords.ts +2 -2
  253. package/model/removeWordsIfNoResults.ts +2 -2
  254. package/model/renderingContent.ts +2 -2
  255. package/model/ruleResponse.ts +34 -0
  256. package/model/ruleResponseMetadata.ts +8 -0
  257. package/model/searchParamsObject.ts +1 -1
  258. package/model/searchParamsQuery.ts +2 -2
  259. package/model/searchRecommendRulesParams.ts +36 -0
  260. package/model/searchRecommendRulesResponse.ts +25 -0
  261. package/model/semanticSearch.ts +11 -0
  262. package/model/snippetResult.ts +1 -1
  263. package/model/snippetResultOption.ts +2 -2
  264. package/model/sortRemainingBy.ts +2 -2
  265. package/model/tagFilters.ts +2 -2
  266. package/model/taskStatus.ts +6 -0
  267. package/model/trendingFacetsModel.ts +6 -0
  268. package/model/trendingFacetsQuery.ts +7 -0
  269. package/model/trendingItemsModel.ts +6 -0
  270. package/model/trendingItemsQuery.ts +6 -0
  271. package/model/typoTolerance.ts +2 -2
  272. package/model/typoToleranceEnum.ts +1 -1
  273. package/model/value.ts +1 -1
  274. package/package.json +30 -13
  275. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  276. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  277. package/dist/model/baseTrendingRequest.d.ts +0 -13
  278. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  279. package/dist/model/recommendationRequest.d.ts +0 -4
  280. package/dist/model/recommendationRequest.d.ts.map +0 -1
  281. package/dist/model/trendingModels.d.ts +0 -5
  282. package/dist/model/trendingModels.d.ts.map +0 -1
  283. package/dist/model/trendingRequest.d.ts +0 -4
  284. package/dist/model/trendingRequest.d.ts.map +0 -1
  285. package/dist/recommend.cjs.js +0 -248
  286. package/model/baseRecommendationRequest.ts +0 -12
  287. package/model/baseTrendingRequest.ts +0 -17
  288. package/model/recommendationRequest.ts +0 -7
  289. package/model/trendingModels.ts +0 -6
  290. package/model/trendingRequest.ts +0 -6
@@ -1,161 +1,163 @@
1
- import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
- import type { AlternativesAsExact } from './alternativesAsExact';
3
- import type { Distinct } from './distinct';
4
- import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
- import type { IgnorePlurals } from './ignorePlurals';
6
- import type { QueryType } from './queryType';
7
- import type { RemoveStopWords } from './removeStopWords';
8
- import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
9
- import type { RenderingContent } from './renderingContent';
10
- import type { TypoTolerance } from './typoTolerance';
11
- export declare type IndexSettingsAsSearchParams = {
12
- /**
13
- * The complete list of attributes that will be used for faceting.
14
- */
15
- attributesForFaceting?: string[];
16
- /**
17
- * List of attributes that can\'t be retrieved at query time.
18
- */
19
- unretrievableAttributes?: string[];
20
- /**
21
- * This parameter controls which attributes to retrieve and which not to retrieve.
22
- */
23
- attributesToRetrieve?: string[];
24
- /**
25
- * Restricts a given query to look in only a subset of your searchable attributes.
26
- */
27
- restrictSearchableAttributes?: string[];
28
- /**
29
- * Controls how Algolia should sort your results.
30
- */
31
- ranking?: string[];
32
- /**
33
- * Specifies the custom ranking criterion.
34
- */
35
- customRanking?: string[];
36
- /**
37
- * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
38
- */
39
- relevancyStrictness?: number;
40
- /**
41
- * List of attributes to highlight.
42
- */
43
- attributesToHighlight?: string[];
44
- /**
45
- * List of attributes to snippet, with an optional maximum number of words to snippet.
46
- */
47
- attributesToSnippet?: string[];
48
- /**
49
- * The HTML string to insert before the highlighted parts in all highlight and snippet results.
50
- */
51
- highlightPreTag?: string;
52
- /**
53
- * The HTML string to insert after the highlighted parts in all highlight and snippet results.
54
- */
55
- highlightPostTag?: string;
56
- /**
57
- * String used as an ellipsis indicator when a snippet is truncated.
58
- */
59
- snippetEllipsisText?: string;
60
- /**
61
- * Restrict highlighting and snippeting to items that matched the query.
62
- */
63
- restrictHighlightAndSnippetArrays?: boolean;
64
- /**
65
- * Set the number of hits per page.
66
- */
67
- hitsPerPage?: number;
68
- /**
69
- * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
70
- */
71
- minWordSizefor1Typo?: number;
72
- /**
73
- * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
74
- */
75
- minWordSizefor2Typos?: number;
76
- typoTolerance?: TypoTolerance;
77
- /**
78
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
79
- */
80
- allowTyposOnNumericTokens?: boolean;
81
- /**
82
- * List of attributes on which you want to disable typo tolerance.
83
- */
84
- disableTypoToleranceOnAttributes?: string[];
85
- ignorePlurals?: IgnorePlurals;
86
- removeStopWords?: RemoveStopWords;
87
- /**
88
- * List of characters that the engine shouldn\'t automatically normalize.
89
- */
90
- keepDiacriticsOnCharacters?: string;
91
- /**
92
- * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
93
- */
94
- queryLanguages?: string[];
95
- /**
96
- * Splits compound words into their composing atoms in the query.
97
- */
98
- decompoundQuery?: boolean;
99
- /**
100
- * Whether Rules should be globally enabled.
101
- */
102
- enableRules?: boolean;
103
- /**
104
- * Enable the Personalization feature.
105
- */
106
- enablePersonalization?: boolean;
107
- queryType?: QueryType;
108
- removeWordsIfNoResults?: RemoveWordsIfNoResults;
109
- /**
110
- * Enables the advanced query syntax.
111
- */
112
- advancedSyntax?: boolean;
113
- /**
114
- * A list of words that should be considered as optional when found in the query.
115
- */
116
- optionalWords?: string[];
117
- /**
118
- * List of attributes on which you want to disable the exact ranking criterion.
119
- */
120
- disableExactOnAttributes?: string[];
121
- exactOnSingleWordQuery?: ExactOnSingleWordQuery;
122
- /**
123
- * List of alternatives that should be considered an exact match by the exact ranking criterion.
124
- */
125
- alternativesAsExact?: AlternativesAsExact[];
126
- /**
127
- * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
128
- */
129
- advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
130
- distinct?: Distinct;
131
- /**
132
- * Name of the de-duplication attribute to be used with the distinct feature.
133
- */
134
- attributeForDistinct?: string;
135
- /**
136
- * Whether to take into account an index\'s synonyms for a particular search.
137
- */
138
- synonyms?: boolean;
139
- /**
140
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
141
- */
142
- replaceSynonymsInHighlight?: boolean;
143
- /**
144
- * Precision of the proximity ranking criterion.
145
- */
146
- minProximity?: number;
147
- /**
148
- * Choose which fields to return in the API response. This parameters applies to search and browse queries.
149
- */
150
- responseFields?: string[];
151
- /**
152
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
153
- */
154
- maxFacetHits?: number;
155
- /**
156
- * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
157
- */
158
- attributeCriteriaComputedByMinProximity?: boolean;
159
- renderingContent?: RenderingContent;
160
- };
1
+ import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2
+ import type { AlternativesAsExact } from './alternativesAsExact';
3
+ import type { Distinct } from './distinct';
4
+ import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
5
+ import type { IgnorePlurals } from './ignorePlurals';
6
+ import type { Mode } from './mode';
7
+ import type { QueryType } from './queryType';
8
+ import type { ReRankingApplyFilter } from './reRankingApplyFilter';
9
+ import type { RemoveStopWords } from './removeStopWords';
10
+ import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
11
+ import type { RenderingContent } from './renderingContent';
12
+ import type { SemanticSearch } from './semanticSearch';
13
+ import type { TypoTolerance } from './typoTolerance';
14
+ export type IndexSettingsAsSearchParams = {
15
+ /**
16
+ * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/) and the [modifiers](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) that can be applied: `filterOnly`, `searchable`, and `afterDistinct`.
17
+ */
18
+ attributesForFaceting?: string[];
19
+ /**
20
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. By default, the response includes all attributes.
21
+ */
22
+ attributesToRetrieve?: string[];
23
+ /**
24
+ * Determines the order in which Algolia [returns your results](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/).
25
+ */
26
+ ranking?: string[];
27
+ /**
28
+ * Specifies the [Custom ranking criterion](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Use the `asc` and `desc` modifiers to specify the ranking order: ascending or descending.
29
+ */
30
+ customRanking?: string[];
31
+ /**
32
+ * Relevancy threshold below which less relevant results aren\'t included in the results.
33
+ */
34
+ relevancyStrictness?: number;
35
+ /**
36
+ * Attributes to highlight. Strings that match the search query in the attributes are highlighted by surrounding them with HTML tags (`highlightPreTag` and `highlightPostTag`).
37
+ */
38
+ attributesToHighlight?: string[];
39
+ /**
40
+ * Attributes to _snippet_. \'Snippeting\' is shortening the attribute to a certain number of words. If not specified, the attribute is shortened to the 10 words around the matching string but you can specify the number. For example: `body:20`.
41
+ */
42
+ attributesToSnippet?: string[];
43
+ /**
44
+ * HTML string to insert before the highlighted parts in all highlight and snippet results.
45
+ */
46
+ highlightPreTag?: string;
47
+ /**
48
+ * HTML string to insert after the highlighted parts in all highlight and snippet results.
49
+ */
50
+ highlightPostTag?: string;
51
+ /**
52
+ * String used as an ellipsis indicator when a snippet is truncated.
53
+ */
54
+ snippetEllipsisText?: string;
55
+ /**
56
+ * Restrict highlighting and snippeting to items that matched the query.
57
+ */
58
+ restrictHighlightAndSnippetArrays?: boolean;
59
+ /**
60
+ * Number of hits per page.
61
+ */
62
+ hitsPerPage?: number;
63
+ /**
64
+ * Minimum number of characters a word in the query string must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
65
+ */
66
+ minWordSizefor1Typo?: number;
67
+ /**
68
+ * Minimum number of characters a word in the query string must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
69
+ */
70
+ minWordSizefor2Typos?: number;
71
+ typoTolerance?: TypoTolerance;
72
+ /**
73
+ * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
74
+ */
75
+ allowTyposOnNumericTokens?: boolean;
76
+ /**
77
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
78
+ */
79
+ disableTypoToleranceOnAttributes?: string[];
80
+ ignorePlurals?: IgnorePlurals;
81
+ removeStopWords?: RemoveStopWords;
82
+ /**
83
+ * Characters that the engine shouldn\'t automatically [normalize](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
84
+ */
85
+ keepDiacriticsOnCharacters?: string;
86
+ /**
87
+ * Sets your user\'s search language. This adjusts language-specific settings and features such as `ignorePlurals`, `removeStopWords`, and [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) word detection.
88
+ */
89
+ queryLanguages?: string[];
90
+ /**
91
+ * [Splits compound words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words) into their component word parts in the query.
92
+ */
93
+ decompoundQuery?: boolean;
94
+ /**
95
+ * Incidates whether [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/) are enabled.
96
+ */
97
+ enableRules?: boolean;
98
+ /**
99
+ * Incidates whether [Personalization](https://www.algolia.com/doc/guides/personalization/what-is-personalization/) is enabled.
100
+ */
101
+ enablePersonalization?: boolean;
102
+ queryType?: QueryType;
103
+ removeWordsIfNoResults?: RemoveWordsIfNoResults;
104
+ mode?: Mode;
105
+ semanticSearch?: SemanticSearch;
106
+ /**
107
+ * Enables the [advanced query syntax](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#advanced-syntax).
108
+ */
109
+ advancedSyntax?: boolean;
110
+ /**
111
+ * Words which should be considered [optional](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words) when found in a query.
112
+ */
113
+ optionalWords?: string[];
114
+ /**
115
+ * Attributes for which you want to [turn off the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
116
+ */
117
+ disableExactOnAttributes?: string[];
118
+ exactOnSingleWordQuery?: ExactOnSingleWordQuery;
119
+ /**
120
+ * Alternatives that should be considered an exact match by [the exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
121
+ */
122
+ alternativesAsExact?: AlternativesAsExact[];
123
+ /**
124
+ * Allows you to specify which advanced syntax features are active when `advancedSyntax` is enabled.
125
+ */
126
+ advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
127
+ distinct?: Distinct;
128
+ /**
129
+ * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
130
+ */
131
+ replaceSynonymsInHighlight?: boolean;
132
+ /**
133
+ * Precision of the [proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity).
134
+ */
135
+ minProximity?: number;
136
+ /**
137
+ * Attributes to include in the API response for search and browse queries.
138
+ */
139
+ responseFields?: string[];
140
+ /**
141
+ * Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
142
+ */
143
+ maxFacetHits?: number;
144
+ /**
145
+ * Maximum number of facet values to return for each facet.
146
+ */
147
+ maxValuesPerFacet?: number;
148
+ /**
149
+ * Controls how facet values are fetched.
150
+ */
151
+ sortFacetValuesBy?: string;
152
+ /**
153
+ * When the [Attribute criterion is ranked above Proximity](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute-and-proximity-combinations) in your ranking formula, Proximity is used to select which searchable attribute is matched in the Attribute ranking stage.
154
+ */
155
+ attributeCriteriaComputedByMinProximity?: boolean;
156
+ renderingContent?: RenderingContent;
157
+ /**
158
+ * Indicates whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/).
159
+ */
160
+ enableReRanking?: boolean;
161
+ reRankingApplyFilter?: ReRankingApplyFilter | null;
162
+ };
161
163
  //# sourceMappingURL=indexSettingsAsSearchParams.d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+ * Indicates how well the attribute matched the search query.
3
+ */
4
+ export type MatchLevel = 'full' | 'none' | 'partial';
5
5
  //# sourceMappingURL=matchLevel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchLevel.d.ts","sourceRoot":"","sources":["../../model/matchLevel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"matchLevel.d.ts","sourceRoot":"","sources":["../../model/matchLevel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type MatchedGeoLocation = {
2
- /**
3
- * Latitude of the matched location.
4
- */
5
- lat?: number;
6
- /**
7
- * Longitude of the matched location.
8
- */
9
- lng?: number;
10
- /**
11
- * Distance between the matched location and the search location (in meters).
12
- */
13
- distance?: number;
14
- };
1
+ export type MatchedGeoLocation = {
2
+ /**
3
+ * Latitude of the matched location.
4
+ */
5
+ lat?: number;
6
+ /**
7
+ * Longitude of the matched location.
8
+ */
9
+ lng?: number;
10
+ /**
11
+ * Distance between the matched location and the search location (in meters).
12
+ */
13
+ distance?: number;
14
+ };
15
15
  //# sourceMappingURL=matchedGeoLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchedGeoLocation.d.ts","sourceRoot":"","sources":["../../model/matchedGeoLocation.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"matchedGeoLocation.d.ts","sourceRoot":"","sources":["../../model/matchedGeoLocation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type MixedSearchFilters = string[] | string;
1
+ export type MixedSearchFilters = string[] | string;
2
2
  //# sourceMappingURL=mixedSearchFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mixedSearchFilters.d.ts","sourceRoot":"","sources":["../../model/mixedSearchFilters.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"mixedSearchFilters.d.ts","sourceRoot":"","sources":["../../model/mixedSearchFilters.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Search mode the index will use to query for results.
3
+ */
4
+ export type Mode = 'keywordSearch' | 'neuralSearch';
5
+ //# sourceMappingURL=mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../model/mode.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,eAAe,GAAG,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Filter on numeric attributes.
4
- */
5
- export declare type NumericFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
4
+ */
5
+ export type NumericFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=numericFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,oBAAY,cAAc,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"numericFilters.d.ts","sourceRoot":"","sources":["../../model/numericFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { MixedSearchFilters } from './mixedSearchFilters';
2
- /**
3
- * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter.
4
- */
5
- export declare type OptionalFilters = MixedSearchFilters[] | string;
1
+ import type { MixedSearchFilters } from './mixedSearchFilters';
2
+ /**
3
+ * Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
4
+ */
5
+ export type OptionalFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=optionalFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,oBAAY,eAAe,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"optionalFilters.d.ts","sourceRoot":"","sources":["../../model/optionalFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { AutomaticFacetFilters } from './automaticFacetFilters';
2
+ import type { ConsequenceQuery } from './consequenceQuery';
3
+ import type { RenderingContent } from './renderingContent';
4
+ /**
5
+ * Additional search parameters.
6
+ */
7
+ export type Params = {
8
+ query?: ConsequenceQuery;
9
+ automaticFacetFilters?: AutomaticFacetFilters;
10
+ automaticOptionalFacetFilters?: AutomaticFacetFilters;
11
+ renderingContent?: RenderingContent;
12
+ };
13
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../model/params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C,6BAA6B,CAAC,EAAE,qBAAqB,CAAC;IAEtD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type Personalization = {
2
- /**
3
- * The score of the filters.
4
- */
5
- filtersScore?: number;
6
- /**
7
- * The score of the ranking.
8
- */
9
- rankingScore?: number;
10
- /**
11
- * The score of the event.
12
- */
13
- score?: number;
14
- };
1
+ export type Personalization = {
2
+ /**
3
+ * The score of the filters.
4
+ */
5
+ filtersScore?: number;
6
+ /**
7
+ * The score of the ranking.
8
+ */
9
+ rankingScore?: number;
10
+ /**
11
+ * The score of the event.
12
+ */
13
+ score?: number;
14
+ };
15
15
  //# sourceMappingURL=personalization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"personalization.d.ts","sourceRoot":"","sources":["../../model/personalization.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"personalization.d.ts","sourceRoot":"","sources":["../../model/personalization.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PromoteObjectID } from './promoteObjectID';
2
+ import type { PromoteObjectIDs } from './promoteObjectIDs';
3
+ export type Promote = PromoteObjectID | PromoteObjectIDs;
4
+ //# sourceMappingURL=promote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../model/promote.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Record to promote.
3
+ */
4
+ export type PromoteObjectID = {
5
+ /**
6
+ * Unique identifier of the record to promote.
7
+ */
8
+ objectID: string;
9
+ /**
10
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
11
+ */
12
+ position: number;
13
+ };
14
+ //# sourceMappingURL=promoteObjectID.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promoteObjectID.d.ts","sourceRoot":"","sources":["../../model/promoteObjectID.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Records to promote.
3
+ */
4
+ export type PromoteObjectIDs = {
5
+ /**
6
+ * Unique identifiers of the records to promote.
7
+ */
8
+ objectIDs: string[];
9
+ /**
10
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
11
+ */
12
+ position: number;
13
+ };
14
+ //# sourceMappingURL=promoteObjectIDs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promoteObjectIDs.d.ts","sourceRoot":"","sources":["../../model/promoteObjectIDs.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,5 +1,5 @@
1
- /**
2
- * Controls if and how query words are interpreted as prefixes.
3
- */
4
- export declare type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
1
+ /**
2
+ * Determines how query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
3
+ */
4
+ export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
5
5
  //# sourceMappingURL=queryType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queryType.d.ts","sourceRoot":"","sources":["../../model/queryType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"queryType.d.ts","sourceRoot":"","sources":["../../model/queryType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC"}