@algolia/recommend 5.2.4 → 5.2.5

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 (219) hide show
  1. package/dist/browser.d.ts +1300 -0
  2. package/dist/builds/browser.js +398 -0
  3. package/dist/builds/browser.js.map +1 -0
  4. package/dist/builds/browser.min.js +2 -0
  5. package/dist/builds/browser.min.js.map +1 -0
  6. package/dist/builds/browser.umd.js +12 -0
  7. package/dist/builds/node.cjs +416 -0
  8. package/dist/builds/node.cjs.map +1 -0
  9. package/dist/builds/node.js +396 -0
  10. package/dist/builds/node.js.map +1 -0
  11. package/dist/node.d.cts +1300 -0
  12. package/dist/node.d.ts +1300 -0
  13. package/dist/src/recommendClient.cjs +385 -0
  14. package/dist/src/recommendClient.cjs.map +1 -0
  15. package/dist/src/recommendClient.js +359 -0
  16. package/dist/src/recommendClient.js.map +1 -0
  17. package/index.d.ts +1 -1
  18. package/index.js +1 -1
  19. package/package.json +28 -25
  20. package/dist/builds/browser.d.ts +0 -24
  21. package/dist/builds/browser.d.ts.map +0 -1
  22. package/dist/builds/node.d.ts +0 -24
  23. package/dist/builds/node.d.ts.map +0 -1
  24. package/dist/model/advancedSyntaxFeatures.d.ts +0 -2
  25. package/dist/model/advancedSyntaxFeatures.d.ts.map +0 -1
  26. package/dist/model/alternativesAsExact.d.ts +0 -2
  27. package/dist/model/alternativesAsExact.d.ts.map +0 -1
  28. package/dist/model/aroundPrecision.d.ts +0 -6
  29. package/dist/model/aroundPrecision.d.ts.map +0 -1
  30. package/dist/model/aroundRadius.d.ts +0 -6
  31. package/dist/model/aroundRadius.d.ts.map +0 -1
  32. package/dist/model/aroundRadiusAll.d.ts +0 -5
  33. package/dist/model/aroundRadiusAll.d.ts.map +0 -1
  34. package/dist/model/autoFacetFilter.d.ts +0 -14
  35. package/dist/model/autoFacetFilter.d.ts.map +0 -1
  36. package/dist/model/baseRecommendRequest.d.ts +0 -17
  37. package/dist/model/baseRecommendRequest.d.ts.map +0 -1
  38. package/dist/model/baseSearchParams.d.ts +0 -4
  39. package/dist/model/baseSearchParams.d.ts.map +0 -1
  40. package/dist/model/baseSearchParamsWithoutQuery.d.ts +0 -116
  41. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +0 -1
  42. package/dist/model/baseSearchResponse.d.ts +0 -94
  43. package/dist/model/baseSearchResponse.d.ts.map +0 -1
  44. package/dist/model/booleanString.d.ts +0 -2
  45. package/dist/model/booleanString.d.ts.map +0 -1
  46. package/dist/model/boughtTogetherQuery.d.ts +0 -4
  47. package/dist/model/boughtTogetherQuery.d.ts.map +0 -1
  48. package/dist/model/clientMethodProps.d.ts +0 -135
  49. package/dist/model/clientMethodProps.d.ts.map +0 -1
  50. package/dist/model/condition.d.ts +0 -14
  51. package/dist/model/condition.d.ts.map +0 -1
  52. package/dist/model/consequence.d.ts +0 -18
  53. package/dist/model/consequence.d.ts.map +0 -1
  54. package/dist/model/deletedAtResponse.d.ts +0 -14
  55. package/dist/model/deletedAtResponse.d.ts.map +0 -1
  56. package/dist/model/distinct.d.ts +0 -5
  57. package/dist/model/distinct.d.ts.map +0 -1
  58. package/dist/model/errorBase.d.ts +0 -7
  59. package/dist/model/errorBase.d.ts.map +0 -1
  60. package/dist/model/exactOnSingleWordQuery.d.ts +0 -5
  61. package/dist/model/exactOnSingleWordQuery.d.ts.map +0 -1
  62. package/dist/model/exhaustive.d.ts +0 -26
  63. package/dist/model/exhaustive.d.ts.map +0 -1
  64. package/dist/model/facetFilters.d.ts +0 -5
  65. package/dist/model/facetFilters.d.ts.map +0 -1
  66. package/dist/model/facetOrdering.d.ts +0 -13
  67. package/dist/model/facetOrdering.d.ts.map +0 -1
  68. package/dist/model/facetStats.d.ts +0 -19
  69. package/dist/model/facetStats.d.ts.map +0 -1
  70. package/dist/model/facets.d.ts +0 -10
  71. package/dist/model/facets.d.ts.map +0 -1
  72. package/dist/model/fallbackParams.d.ts +0 -3
  73. package/dist/model/fallbackParams.d.ts.map +0 -1
  74. package/dist/model/fbtModel.d.ts +0 -5
  75. package/dist/model/fbtModel.d.ts.map +0 -1
  76. package/dist/model/frequentlyBoughtTogether.d.ts +0 -9
  77. package/dist/model/frequentlyBoughtTogether.d.ts.map +0 -1
  78. package/dist/model/getRecommendTaskResponse.d.ts +0 -5
  79. package/dist/model/getRecommendTaskResponse.d.ts.map +0 -1
  80. package/dist/model/getRecommendationsParams.d.ts +0 -11
  81. package/dist/model/getRecommendationsParams.d.ts.map +0 -1
  82. package/dist/model/getRecommendationsResponse.d.ts +0 -5
  83. package/dist/model/getRecommendationsResponse.d.ts.map +0 -1
  84. package/dist/model/hideConsequenceObject.d.ts +0 -10
  85. package/dist/model/hideConsequenceObject.d.ts.map +0 -1
  86. package/dist/model/highlightResult.d.ts +0 -5
  87. package/dist/model/highlightResult.d.ts.map +0 -1
  88. package/dist/model/highlightResultOption.d.ts +0 -20
  89. package/dist/model/highlightResultOption.d.ts.map +0 -1
  90. package/dist/model/ignorePlurals.d.ts +0 -7
  91. package/dist/model/ignorePlurals.d.ts.map +0 -1
  92. package/dist/model/index.d.ts +0 -95
  93. package/dist/model/index.d.ts.map +0 -1
  94. package/dist/model/indexSettingsAsSearchParams.d.ts +0 -160
  95. package/dist/model/indexSettingsAsSearchParams.d.ts.map +0 -1
  96. package/dist/model/lookingSimilar.d.ts +0 -11
  97. package/dist/model/lookingSimilar.d.ts.map +0 -1
  98. package/dist/model/lookingSimilarModel.d.ts +0 -5
  99. package/dist/model/lookingSimilarModel.d.ts.map +0 -1
  100. package/dist/model/lookingSimilarQuery.d.ts +0 -4
  101. package/dist/model/lookingSimilarQuery.d.ts.map +0 -1
  102. package/dist/model/matchLevel.d.ts +0 -5
  103. package/dist/model/matchLevel.d.ts.map +0 -1
  104. package/dist/model/matchedGeoLocation.d.ts +0 -15
  105. package/dist/model/matchedGeoLocation.d.ts.map +0 -1
  106. package/dist/model/mode.d.ts +0 -5
  107. package/dist/model/mode.d.ts.map +0 -1
  108. package/dist/model/numericFilters.d.ts +0 -5
  109. package/dist/model/numericFilters.d.ts.map +0 -1
  110. package/dist/model/optionalFilters.d.ts +0 -5
  111. package/dist/model/optionalFilters.d.ts.map +0 -1
  112. package/dist/model/paramsConsequence.d.ts +0 -19
  113. package/dist/model/paramsConsequence.d.ts.map +0 -1
  114. package/dist/model/personalization.d.ts +0 -15
  115. package/dist/model/personalization.d.ts.map +0 -1
  116. package/dist/model/promoteConsequenceObject.d.ts +0 -14
  117. package/dist/model/promoteConsequenceObject.d.ts.map +0 -1
  118. package/dist/model/queryType.d.ts +0 -5
  119. package/dist/model/queryType.d.ts.map +0 -1
  120. package/dist/model/range.d.ts +0 -14
  121. package/dist/model/range.d.ts.map +0 -1
  122. package/dist/model/rankingInfo.d.ts +0 -54
  123. package/dist/model/rankingInfo.d.ts.map +0 -1
  124. package/dist/model/reRankingApplyFilter.d.ts +0 -5
  125. package/dist/model/reRankingApplyFilter.d.ts.map +0 -1
  126. package/dist/model/recommendHit.d.ts +0 -27
  127. package/dist/model/recommendHit.d.ts.map +0 -1
  128. package/dist/model/recommendModels.d.ts +0 -2
  129. package/dist/model/recommendModels.d.ts.map +0 -1
  130. package/dist/model/recommendRule.d.ts +0 -24
  131. package/dist/model/recommendRule.d.ts.map +0 -1
  132. package/dist/model/recommendationsHit.d.ts +0 -4
  133. package/dist/model/recommendationsHit.d.ts.map +0 -1
  134. package/dist/model/recommendationsHits.d.ts +0 -5
  135. package/dist/model/recommendationsHits.d.ts.map +0 -1
  136. package/dist/model/recommendationsRequest.d.ts +0 -8
  137. package/dist/model/recommendationsRequest.d.ts.map +0 -1
  138. package/dist/model/recommendationsResults.d.ts +0 -5
  139. package/dist/model/recommendationsResults.d.ts.map +0 -1
  140. package/dist/model/recommendedForYou.d.ts +0 -7
  141. package/dist/model/recommendedForYou.d.ts.map +0 -1
  142. package/dist/model/recommendedForYouModel.d.ts +0 -5
  143. package/dist/model/recommendedForYouModel.d.ts.map +0 -1
  144. package/dist/model/recommendedForYouQuery.d.ts +0 -4
  145. package/dist/model/recommendedForYouQuery.d.ts.map +0 -1
  146. package/dist/model/redirect.d.ts +0 -8
  147. package/dist/model/redirect.d.ts.map +0 -1
  148. package/dist/model/redirectRuleIndexData.d.ts +0 -7
  149. package/dist/model/redirectRuleIndexData.d.ts.map +0 -1
  150. package/dist/model/redirectRuleIndexMetadata.d.ts +0 -21
  151. package/dist/model/redirectRuleIndexMetadata.d.ts.map +0 -1
  152. package/dist/model/redirectURL.d.ts +0 -7
  153. package/dist/model/redirectURL.d.ts.map +0 -1
  154. package/dist/model/relatedModel.d.ts +0 -5
  155. package/dist/model/relatedModel.d.ts.map +0 -1
  156. package/dist/model/relatedProducts.d.ts +0 -11
  157. package/dist/model/relatedProducts.d.ts.map +0 -1
  158. package/dist/model/relatedQuery.d.ts +0 -4
  159. package/dist/model/relatedQuery.d.ts.map +0 -1
  160. package/dist/model/removeStopWords.d.ts +0 -6
  161. package/dist/model/removeStopWords.d.ts.map +0 -1
  162. package/dist/model/removeWordsIfNoResults.d.ts +0 -5
  163. package/dist/model/removeWordsIfNoResults.d.ts.map +0 -1
  164. package/dist/model/renderingContent.d.ts +0 -10
  165. package/dist/model/renderingContent.d.ts.map +0 -1
  166. package/dist/model/ruleMetadata.d.ts +0 -10
  167. package/dist/model/ruleMetadata.d.ts.map +0 -1
  168. package/dist/model/searchPagination.d.ts +0 -19
  169. package/dist/model/searchPagination.d.ts.map +0 -1
  170. package/dist/model/searchParams.d.ts +0 -3
  171. package/dist/model/searchParams.d.ts.map +0 -1
  172. package/dist/model/searchParamsObject.d.ts +0 -7
  173. package/dist/model/searchParamsObject.d.ts.map +0 -1
  174. package/dist/model/searchParamsQuery.d.ts +0 -7
  175. package/dist/model/searchParamsQuery.d.ts.map +0 -1
  176. package/dist/model/searchRecommendRulesParams.d.ts +0 -38
  177. package/dist/model/searchRecommendRulesParams.d.ts.map +0 -1
  178. package/dist/model/searchRecommendRulesResponse.d.ts +0 -20
  179. package/dist/model/searchRecommendRulesResponse.d.ts.map +0 -1
  180. package/dist/model/semanticSearch.d.ts +0 -10
  181. package/dist/model/semanticSearch.d.ts.map +0 -1
  182. package/dist/model/snippetResult.d.ts +0 -5
  183. package/dist/model/snippetResult.d.ts.map +0 -1
  184. package/dist/model/snippetResultOption.d.ts +0 -12
  185. package/dist/model/snippetResultOption.d.ts.map +0 -1
  186. package/dist/model/sortRemainingBy.d.ts +0 -5
  187. package/dist/model/sortRemainingBy.d.ts.map +0 -1
  188. package/dist/model/supportedLanguage.d.ts +0 -5
  189. package/dist/model/supportedLanguage.d.ts.map +0 -1
  190. package/dist/model/tagFilters.d.ts +0 -5
  191. package/dist/model/tagFilters.d.ts.map +0 -1
  192. package/dist/model/taskStatus.d.ts +0 -5
  193. package/dist/model/taskStatus.d.ts.map +0 -1
  194. package/dist/model/trendingFacetHit.d.ts +0 -18
  195. package/dist/model/trendingFacetHit.d.ts.map +0 -1
  196. package/dist/model/trendingFacets.d.ts +0 -11
  197. package/dist/model/trendingFacets.d.ts.map +0 -1
  198. package/dist/model/trendingFacetsModel.d.ts +0 -5
  199. package/dist/model/trendingFacetsModel.d.ts.map +0 -1
  200. package/dist/model/trendingFacetsQuery.d.ts +0 -4
  201. package/dist/model/trendingFacetsQuery.d.ts.map +0 -1
  202. package/dist/model/trendingItems.d.ts +0 -15
  203. package/dist/model/trendingItems.d.ts.map +0 -1
  204. package/dist/model/trendingItemsModel.d.ts +0 -5
  205. package/dist/model/trendingItemsModel.d.ts.map +0 -1
  206. package/dist/model/trendingItemsQuery.d.ts +0 -4
  207. package/dist/model/trendingItemsQuery.d.ts.map +0 -1
  208. package/dist/model/typoTolerance.d.ts +0 -6
  209. package/dist/model/typoTolerance.d.ts.map +0 -1
  210. package/dist/model/typoToleranceEnum.d.ts +0 -5
  211. package/dist/model/typoToleranceEnum.d.ts.map +0 -1
  212. package/dist/model/value.d.ts +0 -13
  213. package/dist/model/value.d.ts.map +0 -1
  214. package/dist/recommend.cjs +0 -394
  215. package/dist/recommend.esm.browser.js +0 -1079
  216. package/dist/recommend.esm.node.js +0 -391
  217. package/dist/recommend.umd.js +0 -2
  218. package/dist/src/recommendClient.d.ts +0 -132
  219. package/dist/src/recommendClient.d.ts.map +0 -1
@@ -0,0 +1,359 @@
1
+ // src/recommendClient.ts
2
+ import { createAuth, createTransporter, getAlgoliaAgent, shuffle } from "@algolia/client-common";
3
+ var apiClientVersion = "5.2.5";
4
+ function getDefaultHosts(appId) {
5
+ return [
6
+ {
7
+ url: `${appId}-dsn.algolia.net`,
8
+ accept: "read",
9
+ protocol: "https"
10
+ },
11
+ {
12
+ url: `${appId}.algolia.net`,
13
+ accept: "write",
14
+ protocol: "https"
15
+ }
16
+ ].concat(
17
+ shuffle([
18
+ {
19
+ url: `${appId}-1.algolianet.com`,
20
+ accept: "readWrite",
21
+ protocol: "https"
22
+ },
23
+ {
24
+ url: `${appId}-2.algolianet.com`,
25
+ accept: "readWrite",
26
+ protocol: "https"
27
+ },
28
+ {
29
+ url: `${appId}-3.algolianet.com`,
30
+ accept: "readWrite",
31
+ protocol: "https"
32
+ }
33
+ ])
34
+ );
35
+ }
36
+ function createRecommendClient({
37
+ appId: appIdOption,
38
+ apiKey: apiKeyOption,
39
+ authMode,
40
+ algoliaAgents,
41
+ ...options
42
+ }) {
43
+ const auth = createAuth(appIdOption, apiKeyOption, authMode);
44
+ const transporter = createTransporter({
45
+ hosts: getDefaultHosts(appIdOption),
46
+ ...options,
47
+ algoliaAgent: getAlgoliaAgent({
48
+ algoliaAgents,
49
+ client: "Recommend",
50
+ version: apiClientVersion
51
+ }),
52
+ baseHeaders: {
53
+ "content-type": "text/plain",
54
+ ...auth.headers(),
55
+ ...options.baseHeaders
56
+ },
57
+ baseQueryParameters: {
58
+ ...auth.queryParameters(),
59
+ ...options.baseQueryParameters
60
+ }
61
+ });
62
+ return {
63
+ transporter,
64
+ /**
65
+ * The `appId` currently in use.
66
+ */
67
+ appId: appIdOption,
68
+ /**
69
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
70
+ */
71
+ clearCache() {
72
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => void 0);
73
+ },
74
+ /**
75
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
76
+ */
77
+ get _ua() {
78
+ return transporter.algoliaAgent.value;
79
+ },
80
+ /**
81
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
82
+ *
83
+ * @param segment - The algolia agent (user-agent) segment to add.
84
+ * @param version - The version of the agent.
85
+ */
86
+ addAlgoliaAgent(segment, version) {
87
+ transporter.algoliaAgent.add({ segment, version });
88
+ },
89
+ /**
90
+ * This method allow you to send requests to the Algolia REST API.
91
+ *
92
+ * @param customDelete - The customDelete object.
93
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
94
+ * @param customDelete.parameters - Query parameters to apply to the current query.
95
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
96
+ */
97
+ customDelete({ path, parameters }, requestOptions) {
98
+ if (!path) {
99
+ throw new Error("Parameter `path` is required when calling `customDelete`.");
100
+ }
101
+ const requestPath = "/{path}".replace("{path}", path);
102
+ const headers = {};
103
+ const queryParameters = parameters ? parameters : {};
104
+ const request = {
105
+ method: "DELETE",
106
+ path: requestPath,
107
+ queryParameters,
108
+ headers
109
+ };
110
+ return transporter.request(request, requestOptions);
111
+ },
112
+ /**
113
+ * This method allow you to send requests to the Algolia REST API.
114
+ *
115
+ * @param customGet - The customGet object.
116
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
117
+ * @param customGet.parameters - Query parameters to apply to the current query.
118
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
119
+ */
120
+ customGet({ path, parameters }, requestOptions) {
121
+ if (!path) {
122
+ throw new Error("Parameter `path` is required when calling `customGet`.");
123
+ }
124
+ const requestPath = "/{path}".replace("{path}", path);
125
+ const headers = {};
126
+ const queryParameters = parameters ? parameters : {};
127
+ const request = {
128
+ method: "GET",
129
+ path: requestPath,
130
+ queryParameters,
131
+ headers
132
+ };
133
+ return transporter.request(request, requestOptions);
134
+ },
135
+ /**
136
+ * This method allow you to send requests to the Algolia REST API.
137
+ *
138
+ * @param customPost - The customPost object.
139
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
140
+ * @param customPost.parameters - Query parameters to apply to the current query.
141
+ * @param customPost.body - Parameters to send with the custom request.
142
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
143
+ */
144
+ customPost({ path, parameters, body }, requestOptions) {
145
+ if (!path) {
146
+ throw new Error("Parameter `path` is required when calling `customPost`.");
147
+ }
148
+ const requestPath = "/{path}".replace("{path}", path);
149
+ const headers = {};
150
+ const queryParameters = parameters ? parameters : {};
151
+ const request = {
152
+ method: "POST",
153
+ path: requestPath,
154
+ queryParameters,
155
+ headers,
156
+ data: body ? body : {}
157
+ };
158
+ return transporter.request(request, requestOptions);
159
+ },
160
+ /**
161
+ * This method allow you to send requests to the Algolia REST API.
162
+ *
163
+ * @param customPut - The customPut object.
164
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
165
+ * @param customPut.parameters - Query parameters to apply to the current query.
166
+ * @param customPut.body - Parameters to send with the custom request.
167
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
168
+ */
169
+ customPut({ path, parameters, body }, requestOptions) {
170
+ if (!path) {
171
+ throw new Error("Parameter `path` is required when calling `customPut`.");
172
+ }
173
+ const requestPath = "/{path}".replace("{path}", path);
174
+ const headers = {};
175
+ const queryParameters = parameters ? parameters : {};
176
+ const request = {
177
+ method: "PUT",
178
+ path: requestPath,
179
+ queryParameters,
180
+ headers,
181
+ data: body ? body : {}
182
+ };
183
+ return transporter.request(request, requestOptions);
184
+ },
185
+ /**
186
+ * Deletes a Recommend rule from a recommendation scenario.
187
+ *
188
+ * Required API Key ACLs:
189
+ * - editSettings.
190
+ *
191
+ * @param deleteRecommendRule - The deleteRecommendRule object.
192
+ * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
193
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
194
+ * @param deleteRecommendRule.objectID - Unique record identifier.
195
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
196
+ */
197
+ deleteRecommendRule({ indexName, model, objectID }, requestOptions) {
198
+ if (!indexName) {
199
+ throw new Error("Parameter `indexName` is required when calling `deleteRecommendRule`.");
200
+ }
201
+ if (!model) {
202
+ throw new Error("Parameter `model` is required when calling `deleteRecommendRule`.");
203
+ }
204
+ if (!objectID) {
205
+ throw new Error("Parameter `objectID` is required when calling `deleteRecommendRule`.");
206
+ }
207
+ const requestPath = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}", encodeURIComponent(indexName)).replace("{model}", encodeURIComponent(model)).replace("{objectID}", encodeURIComponent(objectID));
208
+ const headers = {};
209
+ const queryParameters = {};
210
+ const request = {
211
+ method: "DELETE",
212
+ path: requestPath,
213
+ queryParameters,
214
+ headers
215
+ };
216
+ return transporter.request(request, requestOptions);
217
+ },
218
+ /**
219
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
220
+ *
221
+ * Required API Key ACLs:
222
+ * - settings.
223
+ *
224
+ * @param getRecommendRule - The getRecommendRule object.
225
+ * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
226
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
227
+ * @param getRecommendRule.objectID - Unique record identifier.
228
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
229
+ */
230
+ getRecommendRule({ indexName, model, objectID }, requestOptions) {
231
+ if (!indexName) {
232
+ throw new Error("Parameter `indexName` is required when calling `getRecommendRule`.");
233
+ }
234
+ if (!model) {
235
+ throw new Error("Parameter `model` is required when calling `getRecommendRule`.");
236
+ }
237
+ if (!objectID) {
238
+ throw new Error("Parameter `objectID` is required when calling `getRecommendRule`.");
239
+ }
240
+ const requestPath = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}".replace("{indexName}", encodeURIComponent(indexName)).replace("{model}", encodeURIComponent(model)).replace("{objectID}", encodeURIComponent(objectID));
241
+ const headers = {};
242
+ const queryParameters = {};
243
+ const request = {
244
+ method: "GET",
245
+ path: requestPath,
246
+ queryParameters,
247
+ headers
248
+ };
249
+ return transporter.request(request, requestOptions);
250
+ },
251
+ /**
252
+ * Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
253
+ *
254
+ * Required API Key ACLs:
255
+ * - editSettings.
256
+ *
257
+ * @param getRecommendStatus - The getRecommendStatus object.
258
+ * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
259
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
260
+ * @param getRecommendStatus.taskID - Unique task identifier.
261
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
262
+ */
263
+ getRecommendStatus({ indexName, model, taskID }, requestOptions) {
264
+ if (!indexName) {
265
+ throw new Error("Parameter `indexName` is required when calling `getRecommendStatus`.");
266
+ }
267
+ if (!model) {
268
+ throw new Error("Parameter `model` is required when calling `getRecommendStatus`.");
269
+ }
270
+ if (!taskID) {
271
+ throw new Error("Parameter `taskID` is required when calling `getRecommendStatus`.");
272
+ }
273
+ const requestPath = "/1/indexes/{indexName}/{model}/task/{taskID}".replace("{indexName}", encodeURIComponent(indexName)).replace("{model}", encodeURIComponent(model)).replace("{taskID}", encodeURIComponent(taskID));
274
+ const headers = {};
275
+ const queryParameters = {};
276
+ const request = {
277
+ method: "GET",
278
+ path: requestPath,
279
+ queryParameters,
280
+ headers
281
+ };
282
+ return transporter.request(request, requestOptions);
283
+ },
284
+ /**
285
+ * Retrieves recommendations from selected AI models.
286
+ *
287
+ * Required API Key ACLs:
288
+ * - search.
289
+ *
290
+ * @param getRecommendationsParams - The getRecommendationsParams object.
291
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
292
+ */
293
+ getRecommendations(getRecommendationsParams, requestOptions) {
294
+ if (getRecommendationsParams && Array.isArray(getRecommendationsParams)) {
295
+ const newSignatureRequest = {
296
+ requests: getRecommendationsParams
297
+ };
298
+ getRecommendationsParams = newSignatureRequest;
299
+ }
300
+ if (!getRecommendationsParams) {
301
+ throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");
302
+ }
303
+ if (!getRecommendationsParams.requests) {
304
+ throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");
305
+ }
306
+ const requestPath = "/1/indexes/*/recommendations";
307
+ const headers = {};
308
+ const queryParameters = {};
309
+ const request = {
310
+ method: "POST",
311
+ path: requestPath,
312
+ queryParameters,
313
+ headers,
314
+ data: getRecommendationsParams,
315
+ useReadTransporter: true,
316
+ cacheable: true
317
+ };
318
+ return transporter.request(request, requestOptions);
319
+ },
320
+ /**
321
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
322
+ *
323
+ * Required API Key ACLs:
324
+ * - settings.
325
+ *
326
+ * @param searchRecommendRules - The searchRecommendRules object.
327
+ * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
328
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
329
+ * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
330
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
331
+ */
332
+ searchRecommendRules({ indexName, model, searchRecommendRulesParams }, requestOptions) {
333
+ if (!indexName) {
334
+ throw new Error("Parameter `indexName` is required when calling `searchRecommendRules`.");
335
+ }
336
+ if (!model) {
337
+ throw new Error("Parameter `model` is required when calling `searchRecommendRules`.");
338
+ }
339
+ const requestPath = "/1/indexes/{indexName}/{model}/recommend/rules/search".replace("{indexName}", encodeURIComponent(indexName)).replace("{model}", encodeURIComponent(model));
340
+ const headers = {};
341
+ const queryParameters = {};
342
+ const request = {
343
+ method: "POST",
344
+ path: requestPath,
345
+ queryParameters,
346
+ headers,
347
+ data: searchRecommendRulesParams ? searchRecommendRulesParams : {},
348
+ useReadTransporter: true,
349
+ cacheable: true
350
+ };
351
+ return transporter.request(request, requestOptions);
352
+ }
353
+ };
354
+ }
355
+ export {
356
+ apiClientVersion,
357
+ createRecommendClient
358
+ };
359
+ //# sourceMappingURL=recommendClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/recommendClient.ts"],"sourcesContent":["// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.\n\nimport { createAuth, createTransporter, getAlgoliaAgent, shuffle } from '@algolia/client-common';\nimport type {\n CreateClientOptions,\n Headers,\n Host,\n QueryParameters,\n Request,\n RequestOptions,\n} from '@algolia/client-common';\n\nimport type {\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeleteRecommendRuleProps,\n GetRecommendRuleProps,\n GetRecommendStatusProps,\n LegacyGetRecommendationsParams,\n SearchRecommendRulesProps,\n} from '../model/clientMethodProps';\nimport type { DeletedAtResponse } from '../model/deletedAtResponse';\nimport type { GetRecommendTaskResponse } from '../model/getRecommendTaskResponse';\nimport type { GetRecommendationsParams } from '../model/getRecommendationsParams';\nimport type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';\nimport type { RecommendRule } from '../model/recommendRule';\nimport type { SearchRecommendRulesResponse } from '../model/searchRecommendRulesResponse';\n\nexport const apiClientVersion = '5.2.5';\n\nfunction getDefaultHosts(appId: string): Host[] {\n return (\n [\n {\n url: `${appId}-dsn.algolia.net`,\n accept: 'read',\n protocol: 'https',\n },\n {\n url: `${appId}.algolia.net`,\n accept: 'write',\n protocol: 'https',\n },\n ] as Host[]\n ).concat(\n shuffle([\n {\n url: `${appId}-1.algolianet.com`,\n accept: 'readWrite',\n protocol: 'https',\n },\n {\n url: `${appId}-2.algolianet.com`,\n accept: 'readWrite',\n protocol: 'https',\n },\n {\n url: `${appId}-3.algolianet.com`,\n accept: 'readWrite',\n protocol: 'https',\n },\n ]),\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function createRecommendClient({\n appId: appIdOption,\n apiKey: apiKeyOption,\n authMode,\n algoliaAgents,\n ...options\n}: CreateClientOptions) {\n const auth = createAuth(appIdOption, apiKeyOption, authMode);\n const transporter = createTransporter({\n hosts: getDefaultHosts(appIdOption),\n ...options,\n algoliaAgent: getAlgoliaAgent({\n algoliaAgents,\n client: 'Recommend',\n version: apiClientVersion,\n }),\n baseHeaders: {\n 'content-type': 'text/plain',\n ...auth.headers(),\n ...options.baseHeaders,\n },\n baseQueryParameters: {\n ...auth.queryParameters(),\n ...options.baseQueryParameters,\n },\n });\n\n return {\n transporter,\n\n /**\n * The `appId` currently in use.\n */\n appId: appIdOption,\n\n /**\n * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.\n */\n clearCache(): Promise<void> {\n return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);\n },\n\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return transporter.algoliaAgent.value;\n },\n\n /**\n * Adds a `segment` to the `x-algolia-agent` sent with every requests.\n *\n * @param segment - The algolia agent (user-agent) segment to add.\n * @param version - The version of the agent.\n */\n addAlgoliaAgent(segment: string, version?: string): void {\n transporter.algoliaAgent.add({ segment, version });\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customDelete - The customDelete object.\n * @param customDelete.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customDelete.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customDelete(\n { path, parameters }: CustomDeleteProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customDelete`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customGet - The customGet object.\n * @param customGet.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customGet.parameters - Query parameters to apply to the current query.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customGet`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customPost - The customPost object.\n * @param customPost.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPost.parameters - Query parameters to apply to the current query.\n * @param customPost.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPost(\n { path, parameters, body }: CustomPostProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPost`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * This method allow you to send requests to the Algolia REST API.\n *\n * @param customPut - The customPut object.\n * @param customPut.path - Path of the endpoint, anything after \\\"/1\\\" must be specified.\n * @param customPut.parameters - Query parameters to apply to the current query.\n * @param customPut.body - Parameters to send with the custom request.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n customPut(\n { path, parameters, body }: CustomPutProps,\n requestOptions?: RequestOptions,\n ): Promise<Record<string, unknown>> {\n if (!path) {\n throw new Error('Parameter `path` is required when calling `customPut`.');\n }\n\n const requestPath = '/{path}'.replace('{path}', path);\n const headers: Headers = {};\n const queryParameters: QueryParameters = parameters ? parameters : {};\n\n const request: Request = {\n method: 'PUT',\n path: requestPath,\n queryParameters,\n headers,\n data: body ? body : {},\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Deletes a Recommend rule from a recommendation scenario.\n *\n * Required API Key ACLs:\n * - editSettings.\n *\n * @param deleteRecommendRule - The deleteRecommendRule object.\n * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.\n * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).\n * @param deleteRecommendRule.objectID - Unique record identifier.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n deleteRecommendRule(\n { indexName, model, objectID }: DeleteRecommendRuleProps,\n requestOptions?: RequestOptions,\n ): Promise<DeletedAtResponse> {\n if (!indexName) {\n throw new Error('Parameter `indexName` is required when calling `deleteRecommendRule`.');\n }\n\n if (!model) {\n throw new Error('Parameter `model` is required when calling `deleteRecommendRule`.');\n }\n\n if (!objectID) {\n throw new Error('Parameter `objectID` is required when calling `deleteRecommendRule`.');\n }\n\n const requestPath = '/1/indexes/{indexName}/{model}/recommend/rules/{objectID}'\n .replace('{indexName}', encodeURIComponent(indexName))\n .replace('{model}', encodeURIComponent(model))\n .replace('{objectID}', encodeURIComponent(objectID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'DELETE',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves a Recommend rule that you previously created in the Algolia dashboard.\n *\n * Required API Key ACLs:\n * - settings.\n *\n * @param getRecommendRule - The getRecommendRule object.\n * @param getRecommendRule.indexName - Name of the index on which to perform the operation.\n * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).\n * @param getRecommendRule.objectID - Unique record identifier.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getRecommendRule(\n { indexName, model, objectID }: GetRecommendRuleProps,\n requestOptions?: RequestOptions,\n ): Promise<RecommendRule> {\n if (!indexName) {\n throw new Error('Parameter `indexName` is required when calling `getRecommendRule`.');\n }\n\n if (!model) {\n throw new Error('Parameter `model` is required when calling `getRecommendRule`.');\n }\n\n if (!objectID) {\n throw new Error('Parameter `objectID` is required when calling `getRecommendRule`.');\n }\n\n const requestPath = '/1/indexes/{indexName}/{model}/recommend/rules/{objectID}'\n .replace('{indexName}', encodeURIComponent(indexName))\n .replace('{model}', encodeURIComponent(model))\n .replace('{objectID}', encodeURIComponent(objectID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.\n *\n * Required API Key ACLs:\n * - editSettings.\n *\n * @param getRecommendStatus - The getRecommendStatus object.\n * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.\n * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).\n * @param getRecommendStatus.taskID - Unique task identifier.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getRecommendStatus(\n { indexName, model, taskID }: GetRecommendStatusProps,\n requestOptions?: RequestOptions,\n ): Promise<GetRecommendTaskResponse> {\n if (!indexName) {\n throw new Error('Parameter `indexName` is required when calling `getRecommendStatus`.');\n }\n\n if (!model) {\n throw new Error('Parameter `model` is required when calling `getRecommendStatus`.');\n }\n\n if (!taskID) {\n throw new Error('Parameter `taskID` is required when calling `getRecommendStatus`.');\n }\n\n const requestPath = '/1/indexes/{indexName}/{model}/task/{taskID}'\n .replace('{indexName}', encodeURIComponent(indexName))\n .replace('{model}', encodeURIComponent(model))\n .replace('{taskID}', encodeURIComponent(taskID));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'GET',\n path: requestPath,\n queryParameters,\n headers,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Retrieves recommendations from selected AI models.\n *\n * Required API Key ACLs:\n * - search.\n *\n * @param getRecommendationsParams - The getRecommendationsParams object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n getRecommendations(\n getRecommendationsParams: GetRecommendationsParams | LegacyGetRecommendationsParams,\n requestOptions?: RequestOptions,\n ): Promise<GetRecommendationsResponse> {\n if (getRecommendationsParams && Array.isArray(getRecommendationsParams)) {\n const newSignatureRequest: GetRecommendationsParams = {\n requests: getRecommendationsParams,\n };\n\n // eslint-disable-next-line no-param-reassign\n getRecommendationsParams = newSignatureRequest;\n }\n\n if (!getRecommendationsParams) {\n throw new Error('Parameter `getRecommendationsParams` is required when calling `getRecommendations`.');\n }\n\n if (!getRecommendationsParams.requests) {\n throw new Error('Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.');\n }\n\n const requestPath = '/1/indexes/*/recommendations';\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: getRecommendationsParams,\n useReadTransporter: true,\n cacheable: true,\n };\n\n return transporter.request(request, requestOptions);\n },\n\n /**\n * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.\n *\n * Required API Key ACLs:\n * - settings.\n *\n * @param searchRecommendRules - The searchRecommendRules object.\n * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.\n * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).\n * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.\n * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.\n */\n searchRecommendRules(\n { indexName, model, searchRecommendRulesParams }: SearchRecommendRulesProps,\n requestOptions?: RequestOptions,\n ): Promise<SearchRecommendRulesResponse> {\n if (!indexName) {\n throw new Error('Parameter `indexName` is required when calling `searchRecommendRules`.');\n }\n\n if (!model) {\n throw new Error('Parameter `model` is required when calling `searchRecommendRules`.');\n }\n\n const requestPath = '/1/indexes/{indexName}/{model}/recommend/rules/search'\n .replace('{indexName}', encodeURIComponent(indexName))\n .replace('{model}', encodeURIComponent(model));\n const headers: Headers = {};\n const queryParameters: QueryParameters = {};\n\n const request: Request = {\n method: 'POST',\n path: requestPath,\n queryParameters,\n headers,\n data: searchRecommendRulesParams ? searchRecommendRulesParams : {},\n useReadTransporter: true,\n cacheable: true,\n };\n\n return transporter.request(request, requestOptions);\n },\n };\n}\n"],"mappings":";AAEA,SAAS,YAAY,mBAAmB,iBAAiB,eAAe;AA4BjE,IAAM,mBAAmB;AAEhC,SAAS,gBAAgB,OAAuB;AAC9C,SACE;AAAA,IACE;AAAA,MACE,KAAK,GAAG,KAAK;AAAA,MACb,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA;AAAA,MACE,KAAK,GAAG,KAAK;AAAA,MACb,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EACF,EACA;AAAA,IACA,QAAQ;AAAA,MACN;AAAA,QACE,KAAK,GAAG,KAAK;AAAA,QACb,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MAC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F;AACF;","names":[]}
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/no-unresolved
2
- export * from './dist/builds/node';
2
+ export * from './dist/node';
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/no-commonjs,import/extensions
2
- module.exports = require('./dist/recommend.cjs');
2
+ module.exports = require('./dist/builds/node.cjs');
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.2.4",
2
+ "version": "5.2.5",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -7,50 +7,53 @@
7
7
  "type": "module",
8
8
  "license": "MIT",
9
9
  "author": "Algolia",
10
- "types": "./index.d.ts",
10
+ "scripts": {
11
+ "build": "yarn clean && yarn tsup && yarn rollup -c rollup.config.js",
12
+ "clean": "rm -rf ./dist || true",
13
+ "test:bundle": "publint . && attw --pack ."
14
+ },
11
15
  "name": "@algolia/recommend",
12
16
  "description": "JavaScript client for recommend",
13
- "jsdelivr": "./dist/recommend.umd.js",
14
- "unpkg": "./dist/recommend.umd.js",
15
- "browser": "./dist/recommend.umd.js",
16
17
  "exports": {
17
18
  ".": {
18
19
  "node": {
19
- "import": "./dist/recommend.esm.node.js",
20
- "module": "./dist/recommend.esm.node.js",
21
- "require": "./dist/recommend.cjs",
22
- "default": "./dist/recommend.cjs",
23
- "types": "./dist/builds/node.d.ts"
20
+ "types": {
21
+ "import": "./dist/node.d.ts",
22
+ "module": "./dist/node.d.ts",
23
+ "require": "./dist/node.d.cts"
24
+ },
25
+ "import": "./dist/builds/node.js",
26
+ "module": "./dist/builds/node.js",
27
+ "require": "./dist/builds/node.cjs"
24
28
  },
25
- "browser": {
26
- "umd": "./dist/recommend.umd.js",
27
- "module": "./dist/recommend.esm.browser.js",
28
- "import": "./dist/recommend.esm.browser.js",
29
- "default": "./dist/recommend.umd.js",
30
- "types": "./dist/builds/browser.d.ts"
29
+ "default": {
30
+ "types": "./dist/browser.d.ts",
31
+ "module": "./dist/builds/browser.js",
32
+ "import": "./dist/builds/browser.js",
33
+ "default": "./dist/builds/browser.umd.js"
31
34
  }
32
35
  },
33
- "./src/*": "./src/*.ts",
34
- "./model": "./model/index.ts"
36
+ "./src/*": "./src/*.ts"
35
37
  },
38
+ "jsdelivr": "./dist/builds/browser.umd.js",
39
+ "unpkg": "./dist/builds/browser.umd.js",
36
40
  "files": [
37
41
  "dist",
38
42
  "model",
39
43
  "index.js",
40
44
  "index.d.ts"
41
45
  ],
42
- "scripts": {
43
- "build": "yarn clean && rollup --config",
44
- "clean": "rm -rf ./dist || true"
45
- },
46
46
  "dependencies": {
47
- "@algolia/client-common": "5.2.4",
48
- "@algolia/requester-browser-xhr": "5.2.4",
49
- "@algolia/requester-node-http": "5.2.4"
47
+ "@algolia/client-common": "5.2.5",
48
+ "@algolia/requester-browser-xhr": "5.2.5",
49
+ "@algolia/requester-node-http": "5.2.5"
50
50
  },
51
51
  "devDependencies": {
52
+ "@arethetypeswrong/cli": "0.15.4",
52
53
  "@types/node": "22.5.1",
54
+ "publint": "0.2.10",
53
55
  "rollup": "4.21.2",
56
+ "tsup": "8.2.4",
54
57
  "typescript": "5.5.4"
55
58
  },
56
59
  "engines": {
@@ -1,24 +0,0 @@
1
- import type { ClientOptions } from '@algolia/client-common';
2
- export { apiClientVersion } from '../src/recommendClient';
3
- export * from '../model';
4
- /**
5
- * The client type.
6
- */
7
- export type RecommendClient = ReturnType<typeof recommendClient>;
8
- export declare function recommendClient(appId: string, apiKey: string, options?: ClientOptions): {
9
- transporter: import("@algolia/client-common").Transporter;
10
- appId: string;
11
- clearCache(): Promise<void>;
12
- readonly _ua: string;
13
- addAlgoliaAgent(segment: string, version?: string): void;
14
- customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
15
- customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
16
- customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
17
- customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
18
- deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeletedAtResponse>;
19
- getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RecommendRule>;
20
- getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRecommendTaskResponse>;
21
- getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams | import("../model").LegacyGetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRecommendationsResponse>;
22
- searchRecommendRules({ indexName, model, searchRecommendRulesParams }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SearchRecommendRulesResponse>;
23
- };
24
- //# sourceMappingURL=browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAa5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;EA2BrF"}
@@ -1,24 +0,0 @@
1
- import type { ClientOptions } from '@algolia/client-common';
2
- export { apiClientVersion } from '../src/recommendClient';
3
- export * from '../model';
4
- /**
5
- * The client type.
6
- */
7
- export type RecommendClient = ReturnType<typeof recommendClient>;
8
- export declare function recommendClient(appId: string, apiKey: string, options?: ClientOptions): {
9
- transporter: import("@algolia/client-common").Transporter;
10
- appId: string;
11
- clearCache(): Promise<void>;
12
- _ua: string;
13
- addAlgoliaAgent(segment: string, version?: string): void;
14
- customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
15
- customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
16
- customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
17
- customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<Record<string, unknown>>;
18
- deleteRecommendRule({ indexName, model, objectID }: import("../model").DeleteRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").DeletedAtResponse>;
19
- getRecommendRule({ indexName, model, objectID }: import("../model").GetRecommendRuleProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").RecommendRule>;
20
- getRecommendStatus({ indexName, model, taskID }: import("../model").GetRecommendStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRecommendTaskResponse>;
21
- getRecommendations(getRecommendationsParams: import("../model").GetRecommendationsParams | import("../model").LegacyGetRecommendationsParams, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").GetRecommendationsResponse>;
22
- searchRecommendRules({ indexName, model, searchRecommendRulesParams }: import("../model").SearchRecommendRulesProps, requestOptions?: import("@algolia/client-common").RequestOptions): Promise<import("../model").SearchRecommendRulesResponse>;
23
- };
24
- //# sourceMappingURL=node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAY5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAGjE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;EA0BrF"}
@@ -1,2 +0,0 @@
1
- export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
2
- //# sourceMappingURL=advancedSyntaxFeatures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"advancedSyntaxFeatures.d.ts","sourceRoot":"","sources":["../../model/advancedSyntaxFeatures.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,cAAc,CAAC"}
@@ -1,2 +0,0 @@
1
- export type AlternativesAsExact = 'ignorePlurals' | 'multiWordsSynonym' | 'singleWordSynonym';
2
- //# sourceMappingURL=alternativesAsExact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternativesAsExact.d.ts","sourceRoot":"","sources":["../../model/alternativesAsExact.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Range } from './range';
2
- /**
3
- * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
- */
5
- export type AroundPrecision = Range[] | number;
6
- //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { AroundRadiusAll } from './aroundRadiusAll';
2
- /**
3
- * Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
4
- */
5
- export type AroundRadius = AroundRadiusAll | number;
6
- //# sourceMappingURL=aroundRadius.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aroundRadius.d.ts","sourceRoot":"","sources":["../../model/aroundRadius.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,MAAM,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Return all records with a valid `_geoloc` attribute. Don\'t filter by distance.
3
- */
4
- export type AroundRadiusAll = 'all';
5
- //# sourceMappingURL=aroundRadiusAll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aroundRadiusAll.d.ts","sourceRoot":"","sources":["../../model/aroundRadiusAll.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
3
- */
4
- export type AutoFacetFilter = {
5
- /**
6
- * Facet attribute.
7
- */
8
- facet?: string;
9
- /**
10
- * Whether the filter is negative. If true, recommendations must not have the same value for the `facet` attribute. If false, recommendations must have the same value for the `facet` attribute.
11
- */
12
- negative?: boolean;
13
- };
14
- //# sourceMappingURL=autoFacetFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoFacetFilter.d.ts","sourceRoot":"","sources":["../../model/autoFacetFilter.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}