algoliasearch 5.2.4-beta.4 → 5.2.4-beta.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.
- package/builds/browser.ts +1 -1
- package/builds/models.ts +5 -5
- package/builds/node.ts +1 -1
- package/dist/algoliasearch.umd.js +3 -3
- package/dist/browser.js +1 -299
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/node.cjs +10 -234
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -299
- package/dist/node.js.map +1 -1
- package/package.json +9 -9
package/dist/node.js
CHANGED
|
@@ -19,85 +19,11 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
// builds/node.ts
|
|
20
20
|
var node_exports = {};
|
|
21
21
|
__export(node_exports, {
|
|
22
|
-
ABTestingRegion: () => ABTestingRegion,
|
|
23
22
|
AbtestingClient: () => AbtestingClient,
|
|
24
|
-
AdvancedSyntaxFeatures: () => AdvancedSyntaxFeatures,
|
|
25
|
-
AlternativesAsExact: () => AlternativesAsExact,
|
|
26
23
|
AnalyticsClient: () => AnalyticsClient,
|
|
27
|
-
AnalyticsRegion: () => AnalyticsRegion,
|
|
28
|
-
Anchoring: () => Anchoring,
|
|
29
|
-
AroundPrecision: () => AroundPrecision,
|
|
30
|
-
AroundRadius: () => AroundRadius,
|
|
31
|
-
AroundRadiusAll: () => AroundRadiusAll,
|
|
32
|
-
AutomaticFacetFilter: () => AutomaticFacetFilter,
|
|
33
|
-
AutomaticFacetFilters: () => AutomaticFacetFilters,
|
|
34
|
-
BaseSearchParams: () => BaseSearchParams,
|
|
35
|
-
BaseSearchParamsWithoutQuery: () => BaseSearchParamsWithoutQuery,
|
|
36
|
-
BaseSearchResponse: () => BaseSearchResponse,
|
|
37
|
-
BooleanString: () => BooleanString,
|
|
38
|
-
Condition: () => Condition,
|
|
39
|
-
Consequence: () => Consequence,
|
|
40
|
-
ConsequenceHide: () => ConsequenceHide,
|
|
41
|
-
ConsequenceParams: () => ConsequenceParams,
|
|
42
|
-
ConsequenceQuery: () => ConsequenceQuery,
|
|
43
|
-
ConsequenceQueryObject: () => ConsequenceQueryObject,
|
|
44
|
-
CustomDeleteProps: () => CustomDeleteProps,
|
|
45
|
-
CustomGetProps: () => CustomGetProps,
|
|
46
|
-
CustomPostProps: () => CustomPostProps,
|
|
47
|
-
CustomPutProps: () => CustomPutProps,
|
|
48
|
-
DeletedAtResponse: () => DeletedAtResponse,
|
|
49
|
-
Distinct: () => Distinct,
|
|
50
|
-
Edit: () => Edit,
|
|
51
|
-
EditType: () => EditType,
|
|
52
|
-
ErrorBase: () => ErrorBase,
|
|
53
|
-
ExactOnSingleWordQuery: () => ExactOnSingleWordQuery,
|
|
54
|
-
Exhaustive: () => Exhaustive,
|
|
55
|
-
FacetFilters: () => FacetFilters,
|
|
56
|
-
FacetOrdering: () => FacetOrdering,
|
|
57
|
-
FacetStats: () => FacetStats,
|
|
58
|
-
Facets: () => Facets,
|
|
59
|
-
HighlightResult: () => HighlightResult,
|
|
60
|
-
HighlightResultOption: () => HighlightResultOption,
|
|
61
|
-
IgnorePlurals: () => IgnorePlurals,
|
|
62
|
-
IndexSettingsAsSearchParams: () => IndexSettingsAsSearchParams,
|
|
63
|
-
MatchLevel: () => MatchLevel,
|
|
64
|
-
MatchedGeoLocation: () => MatchedGeoLocation,
|
|
65
|
-
Mode: () => Mode,
|
|
66
|
-
NumericFilters: () => NumericFilters,
|
|
67
|
-
OptionalFilters: () => OptionalFilters,
|
|
68
|
-
Params: () => Params,
|
|
69
|
-
Personalization: () => Personalization,
|
|
70
24
|
PersonalizationClient: () => PersonalizationClient,
|
|
71
|
-
Promote: () => Promote,
|
|
72
|
-
PromoteObjectID: () => PromoteObjectID,
|
|
73
|
-
PromoteObjectIDs: () => PromoteObjectIDs,
|
|
74
|
-
QueryType: () => QueryType,
|
|
75
|
-
Range: () => Range,
|
|
76
|
-
RankingInfo: () => RankingInfo,
|
|
77
|
-
ReRankingApplyFilter: () => ReRankingApplyFilter,
|
|
78
25
|
RecommendClient: () => RecommendClient,
|
|
79
|
-
Redirect: () => Redirect,
|
|
80
|
-
RedirectRuleIndexData: () => RedirectRuleIndexData,
|
|
81
|
-
RedirectRuleIndexMetadata: () => RedirectRuleIndexMetadata,
|
|
82
|
-
RedirectURL: () => RedirectURL,
|
|
83
|
-
RemoveStopWords: () => RemoveStopWords,
|
|
84
|
-
RemoveWordsIfNoResults: () => RemoveWordsIfNoResults,
|
|
85
|
-
RenderingContent: () => RenderingContent,
|
|
86
26
|
SearchClient: () => SearchClient,
|
|
87
|
-
SearchPagination: () => SearchPagination,
|
|
88
|
-
SearchParams: () => SearchParams,
|
|
89
|
-
SearchParamsObject: () => SearchParamsObject,
|
|
90
|
-
SearchParamsQuery: () => SearchParamsQuery,
|
|
91
|
-
SemanticSearch: () => SemanticSearch,
|
|
92
|
-
SnippetResult: () => SnippetResult,
|
|
93
|
-
SnippetResultOption: () => SnippetResultOption,
|
|
94
|
-
SortRemainingBy: () => SortRemainingBy,
|
|
95
|
-
SupportedLanguage: () => SupportedLanguage,
|
|
96
|
-
TagFilters: () => TagFilters,
|
|
97
|
-
TaskStatus: () => TaskStatus,
|
|
98
|
-
TypoTolerance: () => TypoTolerance,
|
|
99
|
-
TypoToleranceEnum: () => TypoToleranceEnum,
|
|
100
|
-
Value: () => Value,
|
|
101
27
|
algoliasearch: () => algoliasearch,
|
|
102
28
|
apiClientVersion: () => apiClientVersion
|
|
103
29
|
});
|
|
@@ -120,85 +46,11 @@ import { createHttpRequester } from "@algolia/requester-node-http";
|
|
|
120
46
|
// builds/models.ts
|
|
121
47
|
var models_exports = {};
|
|
122
48
|
__export(models_exports, {
|
|
123
|
-
ABTestingRegion: () => ABTestingRegion,
|
|
124
49
|
AbtestingClient: () => AbtestingClient,
|
|
125
|
-
AdvancedSyntaxFeatures: () => AdvancedSyntaxFeatures,
|
|
126
|
-
AlternativesAsExact: () => AlternativesAsExact,
|
|
127
50
|
AnalyticsClient: () => AnalyticsClient,
|
|
128
|
-
AnalyticsRegion: () => AnalyticsRegion,
|
|
129
|
-
Anchoring: () => Anchoring,
|
|
130
|
-
AroundPrecision: () => AroundPrecision,
|
|
131
|
-
AroundRadius: () => AroundRadius,
|
|
132
|
-
AroundRadiusAll: () => AroundRadiusAll,
|
|
133
|
-
AutomaticFacetFilter: () => AutomaticFacetFilter,
|
|
134
|
-
AutomaticFacetFilters: () => AutomaticFacetFilters,
|
|
135
|
-
BaseSearchParams: () => BaseSearchParams,
|
|
136
|
-
BaseSearchParamsWithoutQuery: () => BaseSearchParamsWithoutQuery,
|
|
137
|
-
BaseSearchResponse: () => BaseSearchResponse,
|
|
138
|
-
BooleanString: () => BooleanString,
|
|
139
|
-
Condition: () => Condition,
|
|
140
|
-
Consequence: () => Consequence,
|
|
141
|
-
ConsequenceHide: () => ConsequenceHide,
|
|
142
|
-
ConsequenceParams: () => ConsequenceParams,
|
|
143
|
-
ConsequenceQuery: () => ConsequenceQuery,
|
|
144
|
-
ConsequenceQueryObject: () => ConsequenceQueryObject,
|
|
145
|
-
CustomDeleteProps: () => CustomDeleteProps,
|
|
146
|
-
CustomGetProps: () => CustomGetProps,
|
|
147
|
-
CustomPostProps: () => CustomPostProps,
|
|
148
|
-
CustomPutProps: () => CustomPutProps,
|
|
149
|
-
DeletedAtResponse: () => DeletedAtResponse,
|
|
150
|
-
Distinct: () => Distinct,
|
|
151
|
-
Edit: () => Edit,
|
|
152
|
-
EditType: () => EditType,
|
|
153
|
-
ErrorBase: () => ErrorBase,
|
|
154
|
-
ExactOnSingleWordQuery: () => ExactOnSingleWordQuery,
|
|
155
|
-
Exhaustive: () => Exhaustive,
|
|
156
|
-
FacetFilters: () => FacetFilters,
|
|
157
|
-
FacetOrdering: () => FacetOrdering,
|
|
158
|
-
FacetStats: () => FacetStats,
|
|
159
|
-
Facets: () => Facets,
|
|
160
|
-
HighlightResult: () => HighlightResult,
|
|
161
|
-
HighlightResultOption: () => HighlightResultOption,
|
|
162
|
-
IgnorePlurals: () => IgnorePlurals,
|
|
163
|
-
IndexSettingsAsSearchParams: () => IndexSettingsAsSearchParams,
|
|
164
|
-
MatchLevel: () => MatchLevel,
|
|
165
|
-
MatchedGeoLocation: () => MatchedGeoLocation,
|
|
166
|
-
Mode: () => Mode,
|
|
167
|
-
NumericFilters: () => NumericFilters,
|
|
168
|
-
OptionalFilters: () => OptionalFilters,
|
|
169
|
-
Params: () => Params,
|
|
170
|
-
Personalization: () => Personalization,
|
|
171
51
|
PersonalizationClient: () => PersonalizationClient,
|
|
172
|
-
Promote: () => Promote,
|
|
173
|
-
PromoteObjectID: () => PromoteObjectID,
|
|
174
|
-
PromoteObjectIDs: () => PromoteObjectIDs,
|
|
175
|
-
QueryType: () => QueryType,
|
|
176
|
-
Range: () => Range,
|
|
177
|
-
RankingInfo: () => RankingInfo,
|
|
178
|
-
ReRankingApplyFilter: () => ReRankingApplyFilter,
|
|
179
52
|
RecommendClient: () => RecommendClient,
|
|
180
|
-
Redirect: () => Redirect,
|
|
181
|
-
RedirectRuleIndexData: () => RedirectRuleIndexData,
|
|
182
|
-
RedirectRuleIndexMetadata: () => RedirectRuleIndexMetadata,
|
|
183
|
-
RedirectURL: () => RedirectURL,
|
|
184
|
-
RemoveStopWords: () => RemoveStopWords,
|
|
185
|
-
RemoveWordsIfNoResults: () => RemoveWordsIfNoResults,
|
|
186
|
-
RenderingContent: () => RenderingContent,
|
|
187
53
|
SearchClient: () => SearchClient,
|
|
188
|
-
SearchPagination: () => SearchPagination,
|
|
189
|
-
SearchParams: () => SearchParams,
|
|
190
|
-
SearchParamsObject: () => SearchParamsObject,
|
|
191
|
-
SearchParamsQuery: () => SearchParamsQuery,
|
|
192
|
-
SemanticSearch: () => SemanticSearch,
|
|
193
|
-
SnippetResult: () => SnippetResult,
|
|
194
|
-
SnippetResultOption: () => SnippetResultOption,
|
|
195
|
-
SortRemainingBy: () => SortRemainingBy,
|
|
196
|
-
SupportedLanguage: () => SupportedLanguage,
|
|
197
|
-
TagFilters: () => TagFilters,
|
|
198
|
-
TaskStatus: () => TaskStatus,
|
|
199
|
-
TypoTolerance: () => TypoTolerance,
|
|
200
|
-
TypoToleranceEnum: () => TypoToleranceEnum,
|
|
201
|
-
Value: () => Value,
|
|
202
54
|
apiClientVersion: () => apiClientVersion
|
|
203
55
|
});
|
|
204
56
|
__reExport(models_exports, client_search_star);
|
|
@@ -206,83 +58,7 @@ __reExport(models_exports, recommend_star);
|
|
|
206
58
|
__reExport(models_exports, client_personalization_star);
|
|
207
59
|
__reExport(models_exports, client_analytics_star);
|
|
208
60
|
__reExport(models_exports, client_abtesting_star);
|
|
209
|
-
import {
|
|
210
|
-
import { Region as AnalyticsRegion } from "@algolia/client-analytics";
|
|
211
|
-
import {
|
|
212
|
-
AdvancedSyntaxFeatures,
|
|
213
|
-
AlternativesAsExact,
|
|
214
|
-
Anchoring,
|
|
215
|
-
AroundPrecision,
|
|
216
|
-
AroundRadius,
|
|
217
|
-
AroundRadiusAll,
|
|
218
|
-
AutomaticFacetFilter,
|
|
219
|
-
AutomaticFacetFilters,
|
|
220
|
-
BaseSearchParams,
|
|
221
|
-
BaseSearchParamsWithoutQuery,
|
|
222
|
-
BaseSearchResponse,
|
|
223
|
-
BooleanString,
|
|
224
|
-
Condition,
|
|
225
|
-
Consequence,
|
|
226
|
-
ConsequenceHide,
|
|
227
|
-
ConsequenceParams,
|
|
228
|
-
ConsequenceQuery,
|
|
229
|
-
ConsequenceQueryObject,
|
|
230
|
-
CustomDeleteProps,
|
|
231
|
-
CustomGetProps,
|
|
232
|
-
CustomPostProps,
|
|
233
|
-
CustomPutProps,
|
|
234
|
-
DeletedAtResponse,
|
|
235
|
-
Distinct,
|
|
236
|
-
Edit,
|
|
237
|
-
EditType,
|
|
238
|
-
ErrorBase,
|
|
239
|
-
ExactOnSingleWordQuery,
|
|
240
|
-
Exhaustive,
|
|
241
|
-
FacetFilters,
|
|
242
|
-
FacetOrdering,
|
|
243
|
-
Facets,
|
|
244
|
-
FacetStats,
|
|
245
|
-
HighlightResult,
|
|
246
|
-
HighlightResultOption,
|
|
247
|
-
IgnorePlurals,
|
|
248
|
-
IndexSettingsAsSearchParams,
|
|
249
|
-
MatchLevel,
|
|
250
|
-
MatchedGeoLocation,
|
|
251
|
-
Mode,
|
|
252
|
-
NumericFilters,
|
|
253
|
-
OptionalFilters,
|
|
254
|
-
Params,
|
|
255
|
-
Personalization,
|
|
256
|
-
Promote,
|
|
257
|
-
PromoteObjectID,
|
|
258
|
-
PromoteObjectIDs,
|
|
259
|
-
QueryType,
|
|
260
|
-
Range,
|
|
261
|
-
RankingInfo,
|
|
262
|
-
ReRankingApplyFilter,
|
|
263
|
-
Redirect,
|
|
264
|
-
RedirectRuleIndexMetadata,
|
|
265
|
-
RedirectRuleIndexData,
|
|
266
|
-
RedirectURL,
|
|
267
|
-
RemoveStopWords,
|
|
268
|
-
RemoveWordsIfNoResults,
|
|
269
|
-
RenderingContent,
|
|
270
|
-
SearchPagination,
|
|
271
|
-
SearchParams,
|
|
272
|
-
SearchParamsObject,
|
|
273
|
-
SearchParamsQuery,
|
|
274
|
-
SemanticSearch,
|
|
275
|
-
SnippetResult,
|
|
276
|
-
SnippetResultOption,
|
|
277
|
-
SortRemainingBy,
|
|
278
|
-
SupportedLanguage,
|
|
279
|
-
TagFilters,
|
|
280
|
-
TaskStatus,
|
|
281
|
-
TypoTolerance,
|
|
282
|
-
TypoToleranceEnum,
|
|
283
|
-
Value,
|
|
284
|
-
apiClientVersion
|
|
285
|
-
} from "@algolia/client-search";
|
|
61
|
+
import { apiClientVersion } from "@algolia/client-search";
|
|
286
62
|
import * as client_search_star from "@algolia/client-search";
|
|
287
63
|
import * as recommend_star from "@algolia/recommend";
|
|
288
64
|
import * as client_personalization_star from "@algolia/client-personalization";
|
|
@@ -402,85 +178,11 @@ function algoliasearch(appId, apiKey, options) {
|
|
|
402
178
|
};
|
|
403
179
|
}
|
|
404
180
|
export {
|
|
405
|
-
ABTestingRegion,
|
|
406
181
|
AbtestingClient,
|
|
407
|
-
AdvancedSyntaxFeatures,
|
|
408
|
-
AlternativesAsExact,
|
|
409
182
|
AnalyticsClient,
|
|
410
|
-
AnalyticsRegion,
|
|
411
|
-
Anchoring,
|
|
412
|
-
AroundPrecision,
|
|
413
|
-
AroundRadius,
|
|
414
|
-
AroundRadiusAll,
|
|
415
|
-
AutomaticFacetFilter,
|
|
416
|
-
AutomaticFacetFilters,
|
|
417
|
-
BaseSearchParams,
|
|
418
|
-
BaseSearchParamsWithoutQuery,
|
|
419
|
-
BaseSearchResponse,
|
|
420
|
-
BooleanString,
|
|
421
|
-
Condition,
|
|
422
|
-
Consequence,
|
|
423
|
-
ConsequenceHide,
|
|
424
|
-
ConsequenceParams,
|
|
425
|
-
ConsequenceQuery,
|
|
426
|
-
ConsequenceQueryObject,
|
|
427
|
-
CustomDeleteProps,
|
|
428
|
-
CustomGetProps,
|
|
429
|
-
CustomPostProps,
|
|
430
|
-
CustomPutProps,
|
|
431
|
-
DeletedAtResponse,
|
|
432
|
-
Distinct,
|
|
433
|
-
Edit,
|
|
434
|
-
EditType,
|
|
435
|
-
ErrorBase,
|
|
436
|
-
ExactOnSingleWordQuery,
|
|
437
|
-
Exhaustive,
|
|
438
|
-
FacetFilters,
|
|
439
|
-
FacetOrdering,
|
|
440
|
-
FacetStats,
|
|
441
|
-
Facets,
|
|
442
|
-
HighlightResult,
|
|
443
|
-
HighlightResultOption,
|
|
444
|
-
IgnorePlurals,
|
|
445
|
-
IndexSettingsAsSearchParams,
|
|
446
|
-
MatchLevel,
|
|
447
|
-
MatchedGeoLocation,
|
|
448
|
-
Mode,
|
|
449
|
-
NumericFilters,
|
|
450
|
-
OptionalFilters,
|
|
451
|
-
Params,
|
|
452
|
-
Personalization,
|
|
453
183
|
PersonalizationClient,
|
|
454
|
-
Promote,
|
|
455
|
-
PromoteObjectID,
|
|
456
|
-
PromoteObjectIDs,
|
|
457
|
-
QueryType,
|
|
458
|
-
Range,
|
|
459
|
-
RankingInfo,
|
|
460
|
-
ReRankingApplyFilter,
|
|
461
184
|
RecommendClient,
|
|
462
|
-
Redirect,
|
|
463
|
-
RedirectRuleIndexData,
|
|
464
|
-
RedirectRuleIndexMetadata,
|
|
465
|
-
RedirectURL,
|
|
466
|
-
RemoveStopWords,
|
|
467
|
-
RemoveWordsIfNoResults,
|
|
468
|
-
RenderingContent,
|
|
469
185
|
SearchClient,
|
|
470
|
-
SearchPagination,
|
|
471
|
-
SearchParams,
|
|
472
|
-
SearchParamsObject,
|
|
473
|
-
SearchParamsQuery,
|
|
474
|
-
SemanticSearch,
|
|
475
|
-
SnippetResult,
|
|
476
|
-
SnippetResultOption,
|
|
477
|
-
SortRemainingBy,
|
|
478
|
-
SupportedLanguage,
|
|
479
|
-
TagFilters,
|
|
480
|
-
TaskStatus,
|
|
481
|
-
TypoTolerance,
|
|
482
|
-
TypoToleranceEnum,
|
|
483
|
-
Value,
|
|
484
186
|
algoliasearch,
|
|
485
187
|
apiClientVersion
|
|
486
188
|
};
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../builds/node.ts","../builds/models.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 { createHmac } from 'node:crypto';\n\nimport type { AbtestingClient, Region as AbtestingRegion } from '@algolia/client-abtesting';\nimport { abtestingClient } from '@algolia/client-abtesting';\nimport type { AnalyticsClient, Region as AnalyticsRegion } from '@algolia/client-analytics';\nimport { analyticsClient } from '@algolia/client-analytics';\nimport type { ClientOptions } from '@algolia/client-common';\nimport {\n DEFAULT_CONNECT_TIMEOUT_NODE,\n DEFAULT_READ_TIMEOUT_NODE,\n DEFAULT_WRITE_TIMEOUT_NODE,\n createMemoryCache,\n createNullCache,\n serializeQueryParameters,\n} from '@algolia/client-common';\nimport type { PersonalizationClient, Region as PersonalizationRegion } from '@algolia/client-personalization';\nimport { personalizationClient } from '@algolia/client-personalization';\nimport { searchClient } from '@algolia/client-search';\nimport type { RecommendClient } from '@algolia/recommend';\nimport { recommendClient } from '@algolia/recommend';\nimport { createHttpRequester } from '@algolia/requester-node-http';\n\nimport type {\n InitClientOptions,\n InitClientRegion,\n GenerateSecuredApiKeyOptions,\n GetSecuredApiKeyRemainingValidityOptions,\n} from './models';\n\nexport * from './models';\n\n/**\n * The client type.\n */\nexport type Algoliasearch = ReturnType<typeof algoliasearch>;\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function algoliasearch(appId: string, apiKey: string, options?: ClientOptions) {\n if (!appId || typeof appId !== 'string') {\n throw new Error('`appId` is missing.');\n }\n\n if (!apiKey || typeof apiKey !== 'string') {\n throw new Error('`apiKey` is missing.');\n }\n function initRecommend(initOptions: InitClientOptions = {}): RecommendClient {\n return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);\n }\n\n function initAnalytics(initOptions: InitClientOptions & InitClientRegion<AnalyticsRegion> = {}): AnalyticsClient {\n return analyticsClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n function initAbtesting(initOptions: InitClientOptions & InitClientRegion<AbtestingRegion> = {}): AbtestingClient {\n return abtestingClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n function initPersonalization(\n initOptions: InitClientOptions & Required<InitClientRegion<PersonalizationRegion>>,\n ): PersonalizationClient {\n return personalizationClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n return {\n ...searchClient(appId, apiKey, {\n timeouts: {\n connect: DEFAULT_CONNECT_TIMEOUT_NODE,\n read: DEFAULT_READ_TIMEOUT_NODE,\n write: DEFAULT_WRITE_TIMEOUT_NODE,\n },\n requester: createHttpRequester(),\n algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],\n responsesCache: createNullCache(),\n requestsCache: createNullCache(),\n hostsCache: createMemoryCache(),\n ...options,\n }),\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return this.transporter.algoliaAgent.value;\n },\n initAbtesting,\n initAnalytics,\n initPersonalization,\n initRecommend,\n /**\n * Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.\n *\n * @summary Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.\n * @param generateSecuredApiKey - The `generateSecuredApiKey` object.\n * @param generateSecuredApiKey.parentApiKey - The base API key from which to generate the new secured one.\n * @param generateSecuredApiKey.restrictions - A set of properties defining the restrictions of the secured API key.\n */\n generateSecuredApiKey({ parentApiKey, restrictions = {} }: GenerateSecuredApiKeyOptions): string {\n let mergedRestrictions = restrictions;\n if (restrictions.searchParams) {\n // merge searchParams with the root restrictions\n mergedRestrictions = {\n ...restrictions,\n ...restrictions.searchParams,\n };\n\n delete mergedRestrictions.searchParams;\n }\n\n mergedRestrictions = Object.keys(mergedRestrictions)\n .sort()\n .reduce(\n (acc, key) => {\n // eslint-disable-next-line no-param-reassign\n acc[key] = (mergedRestrictions as any)[key];\n return acc;\n },\n {} as Record<string, unknown>,\n );\n\n const queryParameters = serializeQueryParameters(mergedRestrictions);\n return Buffer.from(\n createHmac('sha256', parentApiKey).update(queryParameters).digest('hex') + queryParameters,\n ).toString('base64');\n },\n\n /**\n * Helper: Retrieves the remaining validity of the previous generated `securedApiKey`, the `ValidUntil` parameter must have been provided.\n *\n * @summary Helper: Retrieves the remaining validity of the previous generated `secured_api_key`, the `ValidUntil` parameter must have been provided.\n * @param getSecuredApiKeyRemainingValidity - The `getSecuredApiKeyRemainingValidity` object.\n * @param getSecuredApiKeyRemainingValidity.securedApiKey - The secured API key generated with the `generateSecuredApiKey` method.\n */\n getSecuredApiKeyRemainingValidity({ securedApiKey }: GetSecuredApiKeyRemainingValidityOptions): number {\n const decodedString = Buffer.from(securedApiKey, 'base64').toString('ascii');\n const regex = /validUntil=(\\d+)/;\n const match = decodedString.match(regex);\n\n if (match === null) {\n throw new Error('validUntil not found in given secured api key.');\n }\n\n return parseInt(match[1], 10) - Math.round(new Date().getTime() / 1000);\n },\n };\n}\n","// 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 { Region as ABTestingRegion } from '@algolia/client-abtesting';\nimport { Region as AnalyticsRegion } from '@algolia/client-analytics';\nimport type { ClientOptions } from '@algolia/client-common';\nimport {\n AdvancedSyntaxFeatures,\n AlternativesAsExact,\n Anchoring,\n AroundPrecision,\n AroundRadius,\n AroundRadiusAll,\n AutomaticFacetFilter,\n AutomaticFacetFilters,\n BaseSearchParams,\n BaseSearchParamsWithoutQuery,\n BaseSearchResponse,\n BooleanString,\n Condition,\n Consequence,\n ConsequenceHide,\n ConsequenceParams,\n ConsequenceQuery,\n ConsequenceQueryObject,\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeletedAtResponse,\n Distinct,\n Edit,\n EditType,\n ErrorBase,\n ExactOnSingleWordQuery,\n Exhaustive,\n FacetFilters,\n FacetOrdering,\n Facets,\n FacetStats,\n HighlightResult,\n HighlightResultOption,\n IgnorePlurals,\n IndexSettingsAsSearchParams,\n MatchLevel,\n MatchedGeoLocation,\n Mode,\n NumericFilters,\n OptionalFilters,\n Params,\n Personalization,\n Promote,\n PromoteObjectID,\n PromoteObjectIDs,\n QueryType,\n Range,\n RankingInfo,\n ReRankingApplyFilter,\n Redirect,\n RedirectRuleIndexMetadata,\n RedirectRuleIndexData,\n RedirectURL,\n RemoveStopWords,\n RemoveWordsIfNoResults,\n RenderingContent,\n SearchPagination,\n SearchParams,\n SearchParamsObject,\n SearchParamsQuery,\n SemanticSearch,\n SnippetResult,\n SnippetResultOption,\n SortRemainingBy,\n SupportedLanguage,\n TagFilters,\n TaskStatus,\n TypoTolerance,\n TypoToleranceEnum,\n Value,\n apiClientVersion,\n} from '@algolia/client-search';\n\ntype Region = ABTestingRegion | AnalyticsRegion;\n\nexport * from '@algolia/client-search';\nexport * from '@algolia/recommend';\nexport * from '@algolia/client-personalization';\nexport * from '@algolia/client-analytics';\nexport * from '@algolia/client-abtesting';\n\nexport { SearchClient } from '@algolia/client-search';\nexport { RecommendClient } from '@algolia/recommend';\nexport { PersonalizationClient } from '@algolia/client-personalization';\nexport { AnalyticsClient } from '@algolia/client-analytics';\nexport { AbtestingClient } from '@algolia/client-abtesting';\n\nexport {\n AdvancedSyntaxFeatures,\n AlternativesAsExact,\n Anchoring,\n AroundPrecision,\n AroundRadius,\n AroundRadiusAll,\n AutomaticFacetFilter,\n AutomaticFacetFilters,\n BaseSearchParams,\n BaseSearchParamsWithoutQuery,\n BaseSearchResponse,\n BooleanString,\n Condition,\n Consequence,\n ConsequenceHide,\n ConsequenceParams,\n ConsequenceQuery,\n ConsequenceQueryObject,\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeletedAtResponse,\n Distinct,\n Edit,\n EditType,\n ErrorBase,\n ExactOnSingleWordQuery,\n Exhaustive,\n FacetFilters,\n FacetOrdering,\n Facets,\n FacetStats,\n HighlightResult,\n HighlightResultOption,\n IgnorePlurals,\n IndexSettingsAsSearchParams,\n MatchLevel,\n MatchedGeoLocation,\n Mode,\n NumericFilters,\n OptionalFilters,\n Params,\n Personalization,\n Promote,\n PromoteObjectID,\n PromoteObjectIDs,\n QueryType,\n Range,\n RankingInfo,\n ReRankingApplyFilter,\n Redirect,\n RedirectRuleIndexMetadata,\n RedirectRuleIndexData,\n RedirectURL,\n RemoveStopWords,\n RemoveWordsIfNoResults,\n RenderingContent,\n SearchParams,\n SearchParamsObject,\n SearchParamsQuery,\n SemanticSearch,\n SearchPagination,\n SnippetResult,\n SnippetResultOption,\n SortRemainingBy,\n SupportedLanguage,\n TagFilters,\n TaskStatus,\n TypoTolerance,\n TypoToleranceEnum,\n Value,\n apiClientVersion,\n AnalyticsRegion,\n ABTestingRegion,\n Region,\n};\n\n/**\n * Options forwarded to the client initialized via the `init` method.\n */\nexport type InitClientOptions = Partial<{\n /**\n * App to target with the initialized client, defaults to the `algoliasearch` appId.\n */\n appId: string;\n /**\n * API key of the targeted app ID, defaults to the `algoliasearch` apiKey.\n */\n apiKey: string;\n options: ClientOptions;\n}>;\n\nexport type InitClientRegion<TRegion> = Partial<{\n /**\n * Available regions of the initialized client.\n */\n region: TRegion;\n}>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,SAAS,kBAAkB;AAG3B,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;AAEhC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAE7B,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;;;ACtBpC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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EACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../builds/node.ts","../builds/models.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 { createHmac } from 'node:crypto';\n\nimport type { AbtestingClient, Region as AbtestingRegion } from '@algolia/client-abtesting';\nimport { abtestingClient } from '@algolia/client-abtesting';\nimport type { AnalyticsClient, Region as AnalyticsRegion } from '@algolia/client-analytics';\nimport { analyticsClient } from '@algolia/client-analytics';\nimport {\n DEFAULT_CONNECT_TIMEOUT_NODE,\n DEFAULT_READ_TIMEOUT_NODE,\n DEFAULT_WRITE_TIMEOUT_NODE,\n createMemoryCache,\n createNullCache,\n serializeQueryParameters,\n} from '@algolia/client-common';\nimport type { ClientOptions } from '@algolia/client-common';\nimport type { PersonalizationClient, Region as PersonalizationRegion } from '@algolia/client-personalization';\nimport { personalizationClient } from '@algolia/client-personalization';\nimport { searchClient } from '@algolia/client-search';\nimport type { RecommendClient } from '@algolia/recommend';\nimport { recommendClient } from '@algolia/recommend';\nimport { createHttpRequester } from '@algolia/requester-node-http';\n\nimport type {\n InitClientOptions,\n InitClientRegion,\n GenerateSecuredApiKeyOptions,\n GetSecuredApiKeyRemainingValidityOptions,\n} from './models';\n\nexport * from './models';\n\n/**\n * The client type.\n */\nexport type Algoliasearch = ReturnType<typeof algoliasearch>;\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function algoliasearch(appId: string, apiKey: string, options?: ClientOptions) {\n if (!appId || typeof appId !== 'string') {\n throw new Error('`appId` is missing.');\n }\n\n if (!apiKey || typeof apiKey !== 'string') {\n throw new Error('`apiKey` is missing.');\n }\n function initRecommend(initOptions: InitClientOptions = {}): RecommendClient {\n return recommendClient(initOptions.appId || appId, initOptions.apiKey || apiKey, initOptions.options);\n }\n\n function initAnalytics(initOptions: InitClientOptions & InitClientRegion<AnalyticsRegion> = {}): AnalyticsClient {\n return analyticsClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n function initAbtesting(initOptions: InitClientOptions & InitClientRegion<AbtestingRegion> = {}): AbtestingClient {\n return abtestingClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n function initPersonalization(\n initOptions: InitClientOptions & Required<InitClientRegion<PersonalizationRegion>>,\n ): PersonalizationClient {\n return personalizationClient(\n initOptions.appId || appId,\n initOptions.apiKey || apiKey,\n initOptions.region,\n initOptions.options,\n );\n }\n\n return {\n ...searchClient(appId, apiKey, {\n timeouts: {\n connect: DEFAULT_CONNECT_TIMEOUT_NODE,\n read: DEFAULT_READ_TIMEOUT_NODE,\n write: DEFAULT_WRITE_TIMEOUT_NODE,\n },\n requester: createHttpRequester(),\n algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],\n responsesCache: createNullCache(),\n requestsCache: createNullCache(),\n hostsCache: createMemoryCache(),\n ...options,\n }),\n /**\n * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.\n */\n get _ua(): string {\n return this.transporter.algoliaAgent.value;\n },\n initAbtesting,\n initAnalytics,\n initPersonalization,\n initRecommend,\n /**\n * Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.\n *\n * @summary Helper: Generates a secured API key based on the given `parentApiKey` and given `restrictions`.\n * @param generateSecuredApiKey - The `generateSecuredApiKey` object.\n * @param generateSecuredApiKey.parentApiKey - The base API key from which to generate the new secured one.\n * @param generateSecuredApiKey.restrictions - A set of properties defining the restrictions of the secured API key.\n */\n generateSecuredApiKey({ parentApiKey, restrictions = {} }: GenerateSecuredApiKeyOptions): string {\n let mergedRestrictions = restrictions;\n if (restrictions.searchParams) {\n // merge searchParams with the root restrictions\n mergedRestrictions = {\n ...restrictions,\n ...restrictions.searchParams,\n };\n\n delete mergedRestrictions.searchParams;\n }\n\n mergedRestrictions = Object.keys(mergedRestrictions)\n .sort()\n .reduce(\n (acc, key) => {\n // eslint-disable-next-line no-param-reassign\n acc[key] = (mergedRestrictions as any)[key];\n return acc;\n },\n {} as Record<string, unknown>,\n );\n\n const queryParameters = serializeQueryParameters(mergedRestrictions);\n return Buffer.from(\n createHmac('sha256', parentApiKey).update(queryParameters).digest('hex') + queryParameters,\n ).toString('base64');\n },\n\n /**\n * Helper: Retrieves the remaining validity of the previous generated `securedApiKey`, the `ValidUntil` parameter must have been provided.\n *\n * @summary Helper: Retrieves the remaining validity of the previous generated `secured_api_key`, the `ValidUntil` parameter must have been provided.\n * @param getSecuredApiKeyRemainingValidity - The `getSecuredApiKeyRemainingValidity` object.\n * @param getSecuredApiKeyRemainingValidity.securedApiKey - The secured API key generated with the `generateSecuredApiKey` method.\n */\n getSecuredApiKeyRemainingValidity({ securedApiKey }: GetSecuredApiKeyRemainingValidityOptions): number {\n const decodedString = Buffer.from(securedApiKey, 'base64').toString('ascii');\n const regex = /validUntil=(\\d+)/;\n const match = decodedString.match(regex);\n\n if (match === null) {\n throw new Error('validUntil not found in given secured api key.');\n }\n\n return parseInt(match[1], 10) - Math.round(new Date().getTime() / 1000);\n },\n };\n}\n","// 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 type { Region as ABTestingRegion } from '@algolia/client-abtesting';\nimport type { Region as AnalyticsRegion } from '@algolia/client-analytics';\nimport type { ClientOptions } from '@algolia/client-common';\nimport type {\n AdvancedSyntaxFeatures,\n AlternativesAsExact,\n Anchoring,\n AroundPrecision,\n AroundRadius,\n AroundRadiusAll,\n AutomaticFacetFilter,\n AutomaticFacetFilters,\n BaseSearchParams,\n BaseSearchParamsWithoutQuery,\n BaseSearchResponse,\n BooleanString,\n Condition,\n Consequence,\n ConsequenceHide,\n ConsequenceParams,\n ConsequenceQuery,\n ConsequenceQueryObject,\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeletedAtResponse,\n Distinct,\n Edit,\n EditType,\n ErrorBase,\n ExactOnSingleWordQuery,\n Exhaustive,\n FacetFilters,\n FacetOrdering,\n Facets,\n FacetStats,\n HighlightResult,\n HighlightResultOption,\n IgnorePlurals,\n IndexSettingsAsSearchParams,\n MatchLevel,\n MatchedGeoLocation,\n Mode,\n NumericFilters,\n OptionalFilters,\n Params,\n Personalization,\n Promote,\n PromoteObjectID,\n PromoteObjectIDs,\n QueryType,\n Range,\n RankingInfo,\n ReRankingApplyFilter,\n Redirect,\n RedirectRuleIndexMetadata,\n RedirectRuleIndexData,\n RedirectURL,\n RemoveStopWords,\n RemoveWordsIfNoResults,\n RenderingContent,\n SearchPagination,\n SearchParams,\n SearchParamsObject,\n SearchParamsQuery,\n SemanticSearch,\n SnippetResult,\n SnippetResultOption,\n SortRemainingBy,\n SupportedLanguage,\n TagFilters,\n TaskStatus,\n TypoTolerance,\n TypoToleranceEnum,\n Value,\n} from '@algolia/client-search';\nimport { apiClientVersion } from '@algolia/client-search';\n\ntype Region = ABTestingRegion | AnalyticsRegion;\n\nexport * from '@algolia/client-search';\nexport * from '@algolia/recommend';\nexport * from '@algolia/client-personalization';\nexport * from '@algolia/client-analytics';\nexport * from '@algolia/client-abtesting';\n\nexport { SearchClient } from '@algolia/client-search';\nexport { RecommendClient } from '@algolia/recommend';\nexport { PersonalizationClient } from '@algolia/client-personalization';\nexport { AnalyticsClient } from '@algolia/client-analytics';\nexport { AbtestingClient } from '@algolia/client-abtesting';\n\nexport {\n AdvancedSyntaxFeatures,\n AlternativesAsExact,\n Anchoring,\n AroundPrecision,\n AroundRadius,\n AroundRadiusAll,\n AutomaticFacetFilter,\n AutomaticFacetFilters,\n BaseSearchParams,\n BaseSearchParamsWithoutQuery,\n BaseSearchResponse,\n BooleanString,\n Condition,\n Consequence,\n ConsequenceHide,\n ConsequenceParams,\n ConsequenceQuery,\n ConsequenceQueryObject,\n CustomDeleteProps,\n CustomGetProps,\n CustomPostProps,\n CustomPutProps,\n DeletedAtResponse,\n Distinct,\n Edit,\n EditType,\n ErrorBase,\n ExactOnSingleWordQuery,\n Exhaustive,\n FacetFilters,\n FacetOrdering,\n Facets,\n FacetStats,\n HighlightResult,\n HighlightResultOption,\n IgnorePlurals,\n IndexSettingsAsSearchParams,\n MatchLevel,\n MatchedGeoLocation,\n Mode,\n NumericFilters,\n OptionalFilters,\n Params,\n Personalization,\n Promote,\n PromoteObjectID,\n PromoteObjectIDs,\n QueryType,\n Range,\n RankingInfo,\n ReRankingApplyFilter,\n Redirect,\n RedirectRuleIndexMetadata,\n RedirectRuleIndexData,\n RedirectURL,\n RemoveStopWords,\n RemoveWordsIfNoResults,\n RenderingContent,\n SearchParams,\n SearchParamsObject,\n SearchParamsQuery,\n SemanticSearch,\n SearchPagination,\n SnippetResult,\n SnippetResultOption,\n SortRemainingBy,\n SupportedLanguage,\n TagFilters,\n TaskStatus,\n TypoTolerance,\n TypoToleranceEnum,\n Value,\n AnalyticsRegion,\n ABTestingRegion,\n Region,\n apiClientVersion,\n};\n\n/**\n * Options forwarded to the client initialized via the `init` method.\n */\nexport type InitClientOptions = Partial<{\n /**\n * App to target with the initialized client, defaults to the `algoliasearch` appId.\n */\n appId: string;\n /**\n * API key of the targeted app ID, defaults to the `algoliasearch` apiKey.\n */\n apiKey: string;\n options: ClientOptions;\n}>;\n\nexport type InitClientRegion<TRegion> = Partial<{\n /**\n * Available regions of the initialized client.\n */\n region: TRegion;\n}>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,SAAS,kBAAkB;AAG3B,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAE7B,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;;;ACtBpC;AAAA;A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AI,KAAK,GAAE,QAAQ,IAAI,GAAI;AAAA,IACxE;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.2.4-beta.
|
|
2
|
+
"version": "5.2.4-beta.5",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"lite.d.ts"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@algolia/client-abtesting": "5.2.4-beta.
|
|
69
|
-
"@algolia/client-analytics": "5.2.4-beta.
|
|
70
|
-
"@algolia/client-common": "5.2.4-beta.
|
|
71
|
-
"@algolia/client-personalization": "5.2.4-beta.
|
|
72
|
-
"@algolia/client-search": "5.2.4-beta.
|
|
73
|
-
"@algolia/recommend": "5.2.4-beta.
|
|
74
|
-
"@algolia/requester-browser-xhr": "5.2.4-beta.
|
|
75
|
-
"@algolia/requester-node-http": "5.2.4-beta.
|
|
68
|
+
"@algolia/client-abtesting": "5.2.4-beta.5",
|
|
69
|
+
"@algolia/client-analytics": "5.2.4-beta.5",
|
|
70
|
+
"@algolia/client-common": "5.2.4-beta.5",
|
|
71
|
+
"@algolia/client-personalization": "5.2.4-beta.5",
|
|
72
|
+
"@algolia/client-search": "5.2.4-beta.5",
|
|
73
|
+
"@algolia/recommend": "5.2.4-beta.5",
|
|
74
|
+
"@algolia/requester-browser-xhr": "5.2.4-beta.5",
|
|
75
|
+
"@algolia/requester-node-http": "5.2.4-beta.5"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@arethetypeswrong/cli": "0.15.4",
|