@algolia/client-query-suggestions 5.2.3 → 5.2.4-beta.3

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 (113) hide show
  1. package/dist/browser.d.ts +282 -0
  2. package/dist/builds/browser.js +386 -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 +404 -0
  8. package/dist/builds/node.cjs.map +1 -0
  9. package/dist/builds/node.js +384 -0
  10. package/dist/builds/node.js.map +1 -0
  11. package/dist/model/appID.cjs +19 -0
  12. package/dist/model/appID.cjs.map +1 -0
  13. package/dist/model/appID.js +1 -0
  14. package/dist/model/appID.js.map +1 -0
  15. package/dist/model/baseResponse.cjs +19 -0
  16. package/dist/model/baseResponse.cjs.map +1 -0
  17. package/dist/model/baseResponse.js +1 -0
  18. package/dist/model/baseResponse.js.map +1 -0
  19. package/dist/model/clientMethodProps.cjs +19 -0
  20. package/dist/model/clientMethodProps.cjs.map +1 -0
  21. package/dist/model/clientMethodProps.js +1 -0
  22. package/dist/model/clientMethodProps.js.map +1 -0
  23. package/dist/model/configStatus.cjs +19 -0
  24. package/dist/model/configStatus.cjs.map +1 -0
  25. package/dist/model/configStatus.js +1 -0
  26. package/dist/model/configStatus.js.map +1 -0
  27. package/dist/model/configuration.cjs +19 -0
  28. package/dist/model/configuration.cjs.map +1 -0
  29. package/dist/model/configuration.js +1 -0
  30. package/dist/model/configuration.js.map +1 -0
  31. package/dist/model/configurationResponse.cjs +19 -0
  32. package/dist/model/configurationResponse.cjs.map +1 -0
  33. package/dist/model/configurationResponse.js +1 -0
  34. package/dist/model/configurationResponse.js.map +1 -0
  35. package/dist/model/configurationWithIndex.cjs +19 -0
  36. package/dist/model/configurationWithIndex.cjs.map +1 -0
  37. package/dist/model/configurationWithIndex.js +1 -0
  38. package/dist/model/configurationWithIndex.js.map +1 -0
  39. package/dist/model/errorBase.cjs +19 -0
  40. package/dist/model/errorBase.cjs.map +1 -0
  41. package/dist/model/errorBase.js +1 -0
  42. package/dist/model/errorBase.js.map +1 -0
  43. package/dist/model/facet.cjs +19 -0
  44. package/dist/model/facet.cjs.map +1 -0
  45. package/dist/model/facet.js +1 -0
  46. package/dist/model/facet.js.map +1 -0
  47. package/dist/model/index.cjs +19 -0
  48. package/dist/model/index.cjs.map +1 -0
  49. package/dist/model/index.js +1 -0
  50. package/dist/model/index.js.map +1 -0
  51. package/dist/model/languages.cjs +19 -0
  52. package/dist/model/languages.cjs.map +1 -0
  53. package/dist/model/languages.js +1 -0
  54. package/dist/model/languages.js.map +1 -0
  55. package/dist/model/logFile.cjs +19 -0
  56. package/dist/model/logFile.cjs.map +1 -0
  57. package/dist/model/logFile.js +1 -0
  58. package/dist/model/logFile.js.map +1 -0
  59. package/dist/model/logLevel.cjs +19 -0
  60. package/dist/model/logLevel.cjs.map +1 -0
  61. package/dist/model/logLevel.js +1 -0
  62. package/dist/model/logLevel.js.map +1 -0
  63. package/dist/model/sourceIndex.cjs +19 -0
  64. package/dist/model/sourceIndex.cjs.map +1 -0
  65. package/dist/model/sourceIndex.js +1 -0
  66. package/dist/model/sourceIndex.js.map +1 -0
  67. package/dist/node.d.cts +282 -0
  68. package/dist/node.d.ts +282 -0
  69. package/dist/src/querySuggestionsClient.cjs +371 -0
  70. package/dist/src/querySuggestionsClient.cjs.map +1 -0
  71. package/dist/src/querySuggestionsClient.js +344 -0
  72. package/dist/src/querySuggestionsClient.js.map +1 -0
  73. package/index.d.ts +1 -1
  74. package/index.js +1 -1
  75. package/package.json +33 -30
  76. package/dist/builds/browser.d.ts +0 -27
  77. package/dist/builds/browser.d.ts.map +0 -1
  78. package/dist/builds/node.d.ts +0 -27
  79. package/dist/builds/node.d.ts.map +0 -1
  80. package/dist/client-query-suggestions.cjs +0 -371
  81. package/dist/client-query-suggestions.esm.browser.js +0 -1045
  82. package/dist/client-query-suggestions.esm.node.js +0 -368
  83. package/dist/client-query-suggestions.umd.js +0 -2
  84. package/dist/model/appID.d.ts +0 -7
  85. package/dist/model/appID.d.ts.map +0 -1
  86. package/dist/model/baseResponse.d.ts +0 -11
  87. package/dist/model/baseResponse.d.ts.map +0 -1
  88. package/dist/model/clientMethodProps.d.ts +0 -108
  89. package/dist/model/clientMethodProps.d.ts.map +0 -1
  90. package/dist/model/configStatus.d.ts +0 -23
  91. package/dist/model/configStatus.d.ts.map +0 -1
  92. package/dist/model/configuration.d.ts +0 -22
  93. package/dist/model/configuration.d.ts.map +0 -1
  94. package/dist/model/configurationResponse.d.ts +0 -7
  95. package/dist/model/configurationResponse.d.ts.map +0 -1
  96. package/dist/model/configurationWithIndex.d.ts +0 -6
  97. package/dist/model/configurationWithIndex.d.ts.map +0 -1
  98. package/dist/model/errorBase.d.ts +0 -7
  99. package/dist/model/errorBase.d.ts.map +0 -1
  100. package/dist/model/facet.d.ts +0 -14
  101. package/dist/model/facet.d.ts.map +0 -1
  102. package/dist/model/index.d.ts +0 -14
  103. package/dist/model/index.d.ts.map +0 -1
  104. package/dist/model/languages.d.ts +0 -5
  105. package/dist/model/languages.d.ts.map +0 -1
  106. package/dist/model/logFile.d.ts +0 -17
  107. package/dist/model/logFile.d.ts.map +0 -1
  108. package/dist/model/logLevel.d.ts +0 -5
  109. package/dist/model/logLevel.d.ts.map +0 -1
  110. package/dist/model/sourceIndex.d.ts +0 -27
  111. package/dist/model/sourceIndex.d.ts.map +0 -1
  112. package/dist/src/querySuggestionsClient.d.ts +0 -148
  113. package/dist/src/querySuggestionsClient.d.ts.map +0 -1
@@ -1,368 +0,0 @@
1
- import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT_NODE, DEFAULT_READ_TIMEOUT_NODE, DEFAULT_WRITE_TIMEOUT_NODE, createNullCache, createMemoryCache } from '@algolia/client-common';
2
- import { createHttpRequester } from '@algolia/requester-node-http';
3
-
4
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
- const apiClientVersion = '5.2.3';
6
- const REGIONS = ['eu', 'us'];
7
- function getDefaultHosts(region) {
8
- const url = 'query-suggestions.{region}.algolia.com'.replace('{region}', region);
9
- return [{ url, accept: 'readWrite', protocol: 'https' }];
10
- }
11
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
12
- function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }) {
13
- const auth = createAuth(appIdOption, apiKeyOption, authMode);
14
- const transporter = createTransporter({
15
- hosts: getDefaultHosts(regionOption),
16
- ...options,
17
- algoliaAgent: getAlgoliaAgent({
18
- algoliaAgents,
19
- client: 'QuerySuggestions',
20
- version: apiClientVersion,
21
- }),
22
- baseHeaders: {
23
- 'content-type': 'text/plain',
24
- ...auth.headers(),
25
- ...options.baseHeaders,
26
- },
27
- baseQueryParameters: {
28
- ...auth.queryParameters(),
29
- ...options.baseQueryParameters,
30
- },
31
- });
32
- return {
33
- transporter,
34
- /**
35
- * The `appId` currently in use.
36
- */
37
- appId: appIdOption,
38
- /**
39
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
40
- */
41
- clearCache() {
42
- return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => undefined);
43
- },
44
- /**
45
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
46
- */
47
- get _ua() {
48
- return transporter.algoliaAgent.value;
49
- },
50
- /**
51
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
52
- *
53
- * @param segment - The algolia agent (user-agent) segment to add.
54
- * @param version - The version of the agent.
55
- */
56
- addAlgoliaAgent(segment, version) {
57
- transporter.algoliaAgent.add({ segment, version });
58
- },
59
- /**
60
- * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
61
- *
62
- * Required API Key ACLs:
63
- * - editSettings.
64
- *
65
- * @param configurationWithIndex - The configurationWithIndex object.
66
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
67
- */
68
- createConfig(configurationWithIndex, requestOptions) {
69
- if (!configurationWithIndex) {
70
- throw new Error('Parameter `configurationWithIndex` is required when calling `createConfig`.');
71
- }
72
- const requestPath = '/1/configs';
73
- const headers = {};
74
- const queryParameters = {};
75
- const request = {
76
- method: 'POST',
77
- path: requestPath,
78
- queryParameters,
79
- headers,
80
- data: configurationWithIndex,
81
- };
82
- return transporter.request(request, requestOptions);
83
- },
84
- /**
85
- * This method allow you to send requests to the Algolia REST API.
86
- *
87
- * @param customDelete - The customDelete object.
88
- * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
89
- * @param customDelete.parameters - Query parameters to apply to the current query.
90
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
91
- */
92
- customDelete({ path, parameters }, requestOptions) {
93
- if (!path) {
94
- throw new Error('Parameter `path` is required when calling `customDelete`.');
95
- }
96
- const requestPath = '/{path}'.replace('{path}', path);
97
- const headers = {};
98
- const queryParameters = parameters ? parameters : {};
99
- const request = {
100
- method: 'DELETE',
101
- path: requestPath,
102
- queryParameters,
103
- headers,
104
- };
105
- return transporter.request(request, requestOptions);
106
- },
107
- /**
108
- * This method allow you to send requests to the Algolia REST API.
109
- *
110
- * @param customGet - The customGet object.
111
- * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
112
- * @param customGet.parameters - Query parameters to apply to the current query.
113
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
114
- */
115
- customGet({ path, parameters }, requestOptions) {
116
- if (!path) {
117
- throw new Error('Parameter `path` is required when calling `customGet`.');
118
- }
119
- const requestPath = '/{path}'.replace('{path}', path);
120
- const headers = {};
121
- const queryParameters = parameters ? parameters : {};
122
- const request = {
123
- method: 'GET',
124
- path: requestPath,
125
- queryParameters,
126
- headers,
127
- };
128
- return transporter.request(request, requestOptions);
129
- },
130
- /**
131
- * This method allow you to send requests to the Algolia REST API.
132
- *
133
- * @param customPost - The customPost object.
134
- * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
135
- * @param customPost.parameters - Query parameters to apply to the current query.
136
- * @param customPost.body - Parameters to send with the custom request.
137
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
138
- */
139
- customPost({ path, parameters, body }, requestOptions) {
140
- if (!path) {
141
- throw new Error('Parameter `path` is required when calling `customPost`.');
142
- }
143
- const requestPath = '/{path}'.replace('{path}', path);
144
- const headers = {};
145
- const queryParameters = parameters ? parameters : {};
146
- const request = {
147
- method: 'POST',
148
- path: requestPath,
149
- queryParameters,
150
- headers,
151
- data: body ? body : {},
152
- };
153
- return transporter.request(request, requestOptions);
154
- },
155
- /**
156
- * This method allow you to send requests to the Algolia REST API.
157
- *
158
- * @param customPut - The customPut object.
159
- * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
160
- * @param customPut.parameters - Query parameters to apply to the current query.
161
- * @param customPut.body - Parameters to send with the custom request.
162
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
163
- */
164
- customPut({ path, parameters, body }, requestOptions) {
165
- if (!path) {
166
- throw new Error('Parameter `path` is required when calling `customPut`.');
167
- }
168
- const requestPath = '/{path}'.replace('{path}', path);
169
- const headers = {};
170
- const queryParameters = parameters ? parameters : {};
171
- const request = {
172
- method: 'PUT',
173
- path: requestPath,
174
- queryParameters,
175
- headers,
176
- data: body ? body : {},
177
- };
178
- return transporter.request(request, requestOptions);
179
- },
180
- /**
181
- * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the [Delete an index](/specs/search#tag/Indices/operation/deleteIndex) operation.
182
- *
183
- * Required API Key ACLs:
184
- * - editSettings.
185
- *
186
- * @param deleteConfig - The deleteConfig object.
187
- * @param deleteConfig.indexName - Query Suggestions index name.
188
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
189
- */
190
- deleteConfig({ indexName }, requestOptions) {
191
- if (!indexName) {
192
- throw new Error('Parameter `indexName` is required when calling `deleteConfig`.');
193
- }
194
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
195
- const headers = {};
196
- const queryParameters = {};
197
- const request = {
198
- method: 'DELETE',
199
- path: requestPath,
200
- queryParameters,
201
- headers,
202
- };
203
- return transporter.request(request, requestOptions);
204
- },
205
- /**
206
- * Retrieves all Query Suggestions configurations of your Algolia application.
207
- *
208
- * Required API Key ACLs:
209
- * - settings.
210
- *
211
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
212
- */
213
- getAllConfigs(requestOptions) {
214
- const requestPath = '/1/configs';
215
- const headers = {};
216
- const queryParameters = {};
217
- const request = {
218
- method: 'GET',
219
- path: requestPath,
220
- queryParameters,
221
- headers,
222
- };
223
- return transporter.request(request, requestOptions);
224
- },
225
- /**
226
- * Retrieves a single Query Suggestions configuration by its index name.
227
- *
228
- * Required API Key ACLs:
229
- * - settings.
230
- *
231
- * @param getConfig - The getConfig object.
232
- * @param getConfig.indexName - Query Suggestions index name.
233
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
234
- */
235
- getConfig({ indexName }, requestOptions) {
236
- if (!indexName) {
237
- throw new Error('Parameter `indexName` is required when calling `getConfig`.');
238
- }
239
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
240
- const headers = {};
241
- const queryParameters = {};
242
- const request = {
243
- method: 'GET',
244
- path: requestPath,
245
- queryParameters,
246
- headers,
247
- };
248
- return transporter.request(request, requestOptions);
249
- },
250
- /**
251
- * Reports the status of a Query Suggestions index.
252
- *
253
- * Required API Key ACLs:
254
- * - settings.
255
- *
256
- * @param getConfigStatus - The getConfigStatus object.
257
- * @param getConfigStatus.indexName - Query Suggestions index name.
258
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
259
- */
260
- getConfigStatus({ indexName }, requestOptions) {
261
- if (!indexName) {
262
- throw new Error('Parameter `indexName` is required when calling `getConfigStatus`.');
263
- }
264
- const requestPath = '/1/configs/{indexName}/status'.replace('{indexName}', encodeURIComponent(indexName));
265
- const headers = {};
266
- const queryParameters = {};
267
- const request = {
268
- method: 'GET',
269
- path: requestPath,
270
- queryParameters,
271
- headers,
272
- };
273
- return transporter.request(request, requestOptions);
274
- },
275
- /**
276
- * Retrieves the logs for a single Query Suggestions index.
277
- *
278
- * Required API Key ACLs:
279
- * - settings.
280
- *
281
- * @param getLogFile - The getLogFile object.
282
- * @param getLogFile.indexName - Query Suggestions index name.
283
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
284
- */
285
- getLogFile({ indexName }, requestOptions) {
286
- if (!indexName) {
287
- throw new Error('Parameter `indexName` is required when calling `getLogFile`.');
288
- }
289
- const requestPath = '/1/logs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
290
- const headers = {};
291
- const queryParameters = {};
292
- const request = {
293
- method: 'GET',
294
- path: requestPath,
295
- queryParameters,
296
- headers,
297
- };
298
- return transporter.request(request, requestOptions);
299
- },
300
- /**
301
- * Updates a QuerySuggestions configuration.
302
- *
303
- * Required API Key ACLs:
304
- * - editSettings.
305
- *
306
- * @param updateConfig - The updateConfig object.
307
- * @param updateConfig.indexName - Query Suggestions index name.
308
- * @param updateConfig.configuration - The configuration object.
309
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
310
- */
311
- updateConfig({ indexName, configuration }, requestOptions) {
312
- if (!indexName) {
313
- throw new Error('Parameter `indexName` is required when calling `updateConfig`.');
314
- }
315
- if (!configuration) {
316
- throw new Error('Parameter `configuration` is required when calling `updateConfig`.');
317
- }
318
- if (!configuration.sourceIndices) {
319
- throw new Error('Parameter `configuration.sourceIndices` is required when calling `updateConfig`.');
320
- }
321
- const requestPath = '/1/configs/{indexName}'.replace('{indexName}', encodeURIComponent(indexName));
322
- const headers = {};
323
- const queryParameters = {};
324
- const request = {
325
- method: 'PUT',
326
- path: requestPath,
327
- queryParameters,
328
- headers,
329
- data: configuration,
330
- };
331
- return transporter.request(request, requestOptions);
332
- },
333
- };
334
- }
335
-
336
- // 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.
337
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
338
- function querySuggestionsClient(appId, apiKey, region, options) {
339
- if (!appId || typeof appId !== 'string') {
340
- throw new Error('`appId` is missing.');
341
- }
342
- if (!apiKey || typeof apiKey !== 'string') {
343
- throw new Error('`apiKey` is missing.');
344
- }
345
- if (!region || (region && (typeof region !== 'string' || !REGIONS.includes(region)))) {
346
- throw new Error(`\`region\` is required and must be one of the following: ${REGIONS.join(', ')}`);
347
- }
348
- return {
349
- ...createQuerySuggestionsClient({
350
- appId,
351
- apiKey,
352
- region,
353
- timeouts: {
354
- connect: DEFAULT_CONNECT_TIMEOUT_NODE,
355
- read: DEFAULT_READ_TIMEOUT_NODE,
356
- write: DEFAULT_WRITE_TIMEOUT_NODE,
357
- },
358
- requester: createHttpRequester(),
359
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
360
- responsesCache: createNullCache(),
361
- requestsCache: createNullCache(),
362
- hostsCache: createMemoryCache(),
363
- ...options,
364
- }),
365
- };
366
- }
367
-
368
- export { apiClientVersion, querySuggestionsClient };
@@ -1,2 +0,0 @@
1
- /*! client-query-suggestions.umd.js | 5.2.3 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-query-suggestions"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function n(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(n(s),!t)return;n(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const n=a();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(n)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,n={miss:()=>Promise.resolve()})=>s.get(e,a,n).catch((()=>r({caches:t}).get(e,a,n))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const n=JSON.stringify(r);if(n in t)return Promise.resolve(e.serializable?JSON.parse(t[n]):t[n]);const o=s();return o.then((e=>a.miss(e))).then((()=>o))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function n(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),o(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends i{constructor(e,t,r){super(e,r),o(this,"stackTrace",void 0),this.stackTrace=t}}class c extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class l extends u{constructor(e,t,r,s="ApiError"){super(e,r,s),o(this,"status",void 0),this.status=t}}class m extends i{constructor(e,t){super(e,"DeserializationError"),o(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),o(this,"error",void 0),this.error=r}}function h(e,t,r){const s=(a=r,Object.keys(a).filter((e=>void 0!==a[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replaceAll("+","%20")}`)).join("&"));var a;let n=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(n+=`?${s}`),n}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:o,requester:i,requestsCache:u,responsesCache:g}){async function f(u,g,f=!0){const y=[],P=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(u,g),w=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,u.headers,g.headers),q="GET"===u.method?{...u.data,...g.data}:{},v={...s,...u.queryParameters,...q};if(a.value&&(v["x-algolia-agent"]=a.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?v[e]=g.queryParameters[e].toString():v[e]=g.queryParameters[e];let T=0;const b=async(e,r)=>{const s=e.pop();if(void 0===s)throw new c(function(e){return e.map((e=>p(e)))}(y));const a={...o,...g.timeouts},q={data:P,headers:w,method:u.method,url:h(s,u.path,v),connectTimeout:r(T,a.connect),responseTimeout:r(T,f?a.read:a.write)},E=t=>{const r={request:q,response:t,host:s,triesLeft:e.length};return y.push(r),r},O=await i.send(q);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(O)){const a=E(O);return O.isTimedOut&&T++,console.log("Retryable failure",p(a)),await t.set(s,n(s,O.isTimedOut?"timed out":"down")),b(e,r)}if(function({status:e}){return 2==~~(e/100)}(O))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(O);throw E(O),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch{}return new l(e,t,r)}(O,y)},E=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),O=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(n(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),o=[...s,...a];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(E);return b([...O.hosts].reverse(),O.getTimeout)}return{hostsCache:t,requester:i,timeouts:o,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const n=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return n();const o={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return g.get(o,(()=>u.get(o,(()=>u.set(o,n()).then((e=>Promise.all([u.delete(o),e])),(e=>Promise.all([u.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>g.set(o,e)})},requestsCache:u,responsesCache:g}}function f({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const y="5.2.3",P=["eu","us"];e.apiClientVersion=y,e.querySuggestionsClient=function(e,a,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!n||n&&("string"!=typeof n||!P.includes(n)))throw new Error(`\`region\` is required and must be one of the following: ${P.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...n}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=g({hosts:(u=a,[{url:"query-suggestions.{region}.algolia.com".replace("{region}",u),accept:"readWrite",protocol:"https"}]),...n,algoliaAgent:f({algoliaAgents:s,client:"QuerySuggestions",version:y}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});var u;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},createConfig(e,t){if(!e)throw new Error("Parameter `configurationWithIndex` is required when calling `createConfig`.");const r={method:"POST",path:"/1/configs",queryParameters:{},headers:{},data:e};return i.request(r,t)},customDelete({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customDelete`.");const s={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customGet({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `customGet`.");const s={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},customPut({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPut`.");const a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},deleteConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `deleteConfig`.");const r={method:"DELETE",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getAllConfigs(e){const t={method:"GET",path:"/1/configs",queryParameters:{},headers:{}};return i.request(t,e)},getConfig({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfig`.");const r={method:"GET",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getConfigStatus({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getConfigStatus`.");const r={method:"GET",path:"/1/configs/{indexName}/status".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},getLogFile({indexName:e},t){if(!e)throw new Error("Parameter `indexName` is required when calling `getLogFile`.");const r={method:"GET",path:"/1/logs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},updateConfig({indexName:e,configuration:t},r){if(!e)throw new Error("Parameter `indexName` is required when calling `updateConfig`.");if(!t)throw new Error("Parameter `configuration` is required when calling `updateConfig`.");if(!t.sourceIndices)throw new Error("Parameter `configuration.sourceIndices` is required when calling `updateConfig`.");const s={method:"PUT",path:"/1/configs/{indexName}".replace("{indexName}",encodeURIComponent(e)),queryParameters:{},headers:{},data:t};return i.request(s,r)}}}({appId:e,apiKey:a,region:n,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let n;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${y}-${e}`}),s()]}),...o})}}));
@@ -1,7 +0,0 @@
1
- export type AppID = {
2
- /**
3
- * Algolia application ID to which this Query Suggestions configuration belongs.
4
- */
5
- appID?: string;
6
- };
7
- //# sourceMappingURL=appID.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appID.d.ts","sourceRoot":"","sources":["../../model/appID.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,11 +0,0 @@
1
- export type BaseResponse = {
2
- /**
3
- * HTTP status code.
4
- */
5
- status?: number;
6
- /**
7
- * Details about the response, such as error messages.
8
- */
9
- message?: string;
10
- };
11
- //# sourceMappingURL=baseResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseResponse.d.ts","sourceRoot":"","sources":["../../model/baseResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,108 +0,0 @@
1
- import type { Configuration } from './configuration';
2
- /**
3
- * Properties for the `customDelete` method.
4
- */
5
- export type CustomDeleteProps = {
6
- /**
7
- * Path of the endpoint, anything after \"/1\" must be specified.
8
- */
9
- path: string;
10
- /**
11
- * Query parameters to apply to the current query.
12
- */
13
- parameters?: Record<string, any>;
14
- };
15
- /**
16
- * Properties for the `customGet` method.
17
- */
18
- export type CustomGetProps = {
19
- /**
20
- * Path of the endpoint, anything after \"/1\" must be specified.
21
- */
22
- path: string;
23
- /**
24
- * Query parameters to apply to the current query.
25
- */
26
- parameters?: Record<string, any>;
27
- };
28
- /**
29
- * Properties for the `customPost` method.
30
- */
31
- export type CustomPostProps = {
32
- /**
33
- * Path of the endpoint, anything after \"/1\" must be specified.
34
- */
35
- path: string;
36
- /**
37
- * Query parameters to apply to the current query.
38
- */
39
- parameters?: Record<string, any>;
40
- /**
41
- * Parameters to send with the custom request.
42
- */
43
- body?: Record<string, unknown>;
44
- };
45
- /**
46
- * Properties for the `customPut` method.
47
- */
48
- export type CustomPutProps = {
49
- /**
50
- * Path of the endpoint, anything after \"/1\" must be specified.
51
- */
52
- path: string;
53
- /**
54
- * Query parameters to apply to the current query.
55
- */
56
- parameters?: Record<string, any>;
57
- /**
58
- * Parameters to send with the custom request.
59
- */
60
- body?: Record<string, unknown>;
61
- };
62
- /**
63
- * Properties for the `deleteConfig` method.
64
- */
65
- export type DeleteConfigProps = {
66
- /**
67
- * Query Suggestions index name.
68
- */
69
- indexName: string;
70
- };
71
- /**
72
- * Properties for the `getConfig` method.
73
- */
74
- export type GetConfigProps = {
75
- /**
76
- * Query Suggestions index name.
77
- */
78
- indexName: string;
79
- };
80
- /**
81
- * Properties for the `getConfigStatus` method.
82
- */
83
- export type GetConfigStatusProps = {
84
- /**
85
- * Query Suggestions index name.
86
- */
87
- indexName: string;
88
- };
89
- /**
90
- * Properties for the `getLogFile` method.
91
- */
92
- export type GetLogFileProps = {
93
- /**
94
- * Query Suggestions index name.
95
- */
96
- indexName: string;
97
- };
98
- /**
99
- * Properties for the `updateConfig` method.
100
- */
101
- export type UpdateConfigProps = {
102
- /**
103
- * Query Suggestions index name.
104
- */
105
- indexName: string;
106
- configuration: Configuration;
107
- };
108
- //# sourceMappingURL=clientMethodProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC"}
@@ -1,23 +0,0 @@
1
- export type ConfigStatus = {
2
- /**
3
- * Name of the Query Suggestions index (case-sensitive).
4
- */
5
- indexName?: string;
6
- /**
7
- * Whether the creation or update of the Query Suggestions index is in progress.
8
- */
9
- isRunning?: boolean;
10
- /**
11
- * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
12
- */
13
- lastBuiltAt?: string;
14
- /**
15
- * Date and time when the Query Suggestions index was last updated successfully.
16
- */
17
- lastSuccessfulBuiltAt?: string;
18
- /**
19
- * Duration of the last successful build in seconds.
20
- */
21
- lastSuccessfulBuildDuration?: string;
22
- };
23
- //# sourceMappingURL=configStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configStatus.d.ts","sourceRoot":"","sources":["../../model/configStatus.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC,CAAC"}
@@ -1,22 +0,0 @@
1
- import type { Languages } from './languages';
2
- import type { SourceIndex } from './sourceIndex';
3
- /**
4
- * Query Suggestions configuration.
5
- */
6
- export type Configuration = {
7
- /**
8
- * Algolia indices from which to get the popular searches for query suggestions.
9
- */
10
- sourceIndices: SourceIndex[];
11
- languages?: Languages;
12
- exclude?: string[] | null;
13
- /**
14
- * Whether to turn on personalized query suggestions.
15
- */
16
- enablePersonalization?: boolean;
17
- /**
18
- * Whether to include suggestions with special characters.
19
- */
20
- allowSpecialCharacters?: boolean;
21
- };
22
- //# sourceMappingURL=configuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../model/configuration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,EAAE,WAAW,EAAE,CAAC;IAE7B,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { AppID } from './appID';
2
- import type { ConfigurationWithIndex } from './configurationWithIndex';
3
- /**
4
- * API response for retrieving Query Suggestions configurations.
5
- */
6
- export type ConfigurationResponse = AppID & ConfigurationWithIndex;
7
- //# sourceMappingURL=configurationResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurationResponse.d.ts","sourceRoot":"","sources":["../../model/configurationResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,sBAAsB,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Configuration } from './configuration';
2
- /**
3
- * Query Suggestions configuration.
4
- */
5
- export type ConfigurationWithIndex = Configuration & Record<string, unknown>;
6
- //# sourceMappingURL=configurationWithIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurationWithIndex.d.ts","sourceRoot":"","sources":["../../model/configurationWithIndex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Error.
3
- */
4
- export type ErrorBase = Record<string, any> & {
5
- message?: string;
6
- };
7
- //# sourceMappingURL=errorBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorBase.d.ts","sourceRoot":"","sources":["../../model/errorBase.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Facet to use as category.
3
- */
4
- export type Facet = {
5
- /**
6
- * Facet name.
7
- */
8
- attribute?: string;
9
- /**
10
- * Number of suggestions.
11
- */
12
- amount?: number;
13
- };
14
- //# sourceMappingURL=facet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../model/facet.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}