@algolia/recommend 5.0.0-alpha.52 → 5.0.0-alpha.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builds/browser.d.ts +5 -5
- package/dist/builds/node.d.ts +5 -5
- package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
- package/dist/model/alternativesAsExact.d.ts +1 -1
- package/dist/model/aroundRadius.d.ts +5 -5
- package/dist/model/aroundRadiusAll.d.ts +1 -1
- package/dist/model/baseRecommendRequest.d.ts +17 -17
- package/dist/model/baseRecommendationRequest.d.ts +8 -8
- package/dist/model/baseSearchParams.d.ts +3 -3
- package/dist/model/baseSearchParamsWithoutQuery.d.ts +122 -122
- package/dist/model/baseSearchResponse.d.ts +101 -101
- package/dist/model/baseTrendingRequest.d.ts +12 -12
- package/dist/model/clientMethodProps.d.ts +60 -60
- package/dist/model/distinct.d.ts +4 -4
- package/dist/model/errorBase.d.ts +6 -6
- package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
- package/dist/model/facetFilters.d.ts +5 -5
- package/dist/model/facetOrdering.d.ts +12 -12
- package/dist/model/facets.d.ts +9 -9
- package/dist/model/facetsStats.d.ts +18 -18
- package/dist/model/getRecommendationsParams.d.ts +10 -10
- package/dist/model/getRecommendationsResponse.d.ts +4 -4
- package/dist/model/highlightResult.d.ts +2 -2
- package/dist/model/highlightResultOption.d.ts +19 -19
- package/dist/model/ignorePlurals.d.ts +4 -4
- package/dist/model/index.d.ts +53 -53
- package/dist/model/indexSettingsAsSearchParams.d.ts +156 -156
- package/dist/model/matchLevel.d.ts +4 -4
- package/dist/model/matchedGeoLocation.d.ts +14 -14
- package/dist/model/mixedSearchFilters.d.ts +1 -1
- package/dist/model/numericFilters.d.ts +5 -5
- package/dist/model/optionalFilters.d.ts +5 -5
- package/dist/model/personalization.d.ts +14 -14
- package/dist/model/queryType.d.ts +4 -4
- package/dist/model/rankingInfo.d.ts +50 -50
- package/dist/model/reRankingApplyFilter.d.ts +5 -5
- package/dist/model/recommendHit.d.ts +26 -26
- package/dist/model/recommendHits.d.ts +4 -4
- package/dist/model/recommendationModels.d.ts +4 -4
- package/dist/model/recommendationRequest.d.ts +3 -3
- package/dist/model/recommendationsRequest.d.ts +3 -3
- package/dist/model/recommendationsResponse.d.ts +3 -3
- package/dist/model/removeStopWords.d.ts +4 -4
- package/dist/model/removeWordsIfNoResults.d.ts +4 -4
- package/dist/model/renderingContent.d.ts +7 -7
- package/dist/model/searchParamsObject.d.ts +3 -3
- package/dist/model/searchParamsQuery.d.ts +6 -6
- package/dist/model/snippetResult.d.ts +2 -2
- package/dist/model/snippetResultOption.d.ts +11 -11
- package/dist/model/sortRemainingBy.d.ts +4 -4
- package/dist/model/tagFilters.d.ts +5 -5
- package/dist/model/trendingModels.d.ts +4 -4
- package/dist/model/trendingRequest.d.ts +3 -3
- package/dist/model/typoTolerance.d.ts +5 -5
- package/dist/model/typoToleranceEnum.d.ts +1 -1
- package/dist/model/value.d.ts +8 -8
- package/dist/recommend.cjs.js +235 -235
- package/dist/recommend.esm.browser.js +359 -359
- package/dist/recommend.esm.node.js +235 -235
- package/dist/recommend.umd.js +2 -2
- package/dist/src/recommendClient.d.ts +81 -81
- package/package.json +6 -6
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import type { DelProps, GetProps, PostProps, PutProps } from '../model/clientMethodProps';
|
|
3
|
-
import type { GetRecommendationsParams } from '../model/getRecommendationsParams';
|
|
4
|
-
import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
|
|
5
|
-
export declare const apiClientVersion = "5.0.0-alpha.
|
|
6
|
-
export declare function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
7
|
-
transporter: import("@algolia/client-common").Transporter;
|
|
8
|
-
/**
|
|
9
|
-
* The `appId` currently in use.
|
|
10
|
-
*/
|
|
11
|
-
appId: string;
|
|
12
|
-
/**
|
|
13
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
14
|
-
*/
|
|
15
|
-
clearCache(): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
18
|
-
*/
|
|
19
|
-
readonly _ua: string;
|
|
20
|
-
/**
|
|
21
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
22
|
-
*
|
|
23
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
24
|
-
* @param version - The version of the agent.
|
|
25
|
-
*/
|
|
26
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
29
|
-
*
|
|
30
|
-
* @summary Send requests to the Algolia REST API.
|
|
31
|
-
* @param del - The del object.
|
|
32
|
-
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
33
|
-
* @param del.parameters - Query parameters to be applied to the current query.
|
|
34
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
35
|
-
*/
|
|
36
|
-
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
37
|
-
/**
|
|
38
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
39
|
-
*
|
|
40
|
-
* @summary Send requests to the Algolia REST API.
|
|
41
|
-
* @param get - The get object.
|
|
42
|
-
* @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
43
|
-
* @param get.parameters - Query parameters to be applied to the current query.
|
|
44
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
45
|
-
*/
|
|
46
|
-
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
47
|
-
/**
|
|
48
|
-
* Returns recommendations or trending results, for a specific model and `objectID`.
|
|
49
|
-
*
|
|
50
|
-
* @summary Get results.
|
|
51
|
-
* @param getRecommendationsParams - The getRecommendationsParams object.
|
|
52
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
53
|
-
*/
|
|
54
|
-
getRecommendations(getRecommendationsParams: GetRecommendationsParams, requestOptions?: RequestOptions): Promise<GetRecommendationsResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
57
|
-
*
|
|
58
|
-
* @summary Send requests to the Algolia REST API.
|
|
59
|
-
* @param post - The post object.
|
|
60
|
-
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
61
|
-
* @param post.parameters - Query parameters to be applied to the current query.
|
|
62
|
-
* @param post.body - The parameters to send with the custom request.
|
|
63
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
64
|
-
*/
|
|
65
|
-
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
66
|
-
/**
|
|
67
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
68
|
-
*
|
|
69
|
-
* @summary Send requests to the Algolia REST API.
|
|
70
|
-
* @param put - The put object.
|
|
71
|
-
* @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
72
|
-
* @param put.parameters - Query parameters to be applied to the current query.
|
|
73
|
-
* @param put.body - The parameters to send with the custom request.
|
|
74
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
75
|
-
*/
|
|
76
|
-
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* The client type.
|
|
80
|
-
*/
|
|
81
|
-
export type RecommendClient = ReturnType<typeof createRecommendClient>;
|
|
1
|
+
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
+
import type { DelProps, GetProps, PostProps, PutProps } from '../model/clientMethodProps';
|
|
3
|
+
import type { GetRecommendationsParams } from '../model/getRecommendationsParams';
|
|
4
|
+
import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
|
|
5
|
+
export declare const apiClientVersion = "5.0.0-alpha.54";
|
|
6
|
+
export declare function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
7
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
8
|
+
/**
|
|
9
|
+
* The `appId` currently in use.
|
|
10
|
+
*/
|
|
11
|
+
appId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
14
|
+
*/
|
|
15
|
+
clearCache(): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
18
|
+
*/
|
|
19
|
+
readonly _ua: string;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
22
|
+
*
|
|
23
|
+
* @param segment - The algolia agent (user-agent) segment to add.
|
|
24
|
+
* @param version - The version of the agent.
|
|
25
|
+
*/
|
|
26
|
+
addAlgoliaAgent(segment: string, version?: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
29
|
+
*
|
|
30
|
+
* @summary Send requests to the Algolia REST API.
|
|
31
|
+
* @param del - The del object.
|
|
32
|
+
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
33
|
+
* @param del.parameters - Query parameters to be applied to the current query.
|
|
34
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
35
|
+
*/
|
|
36
|
+
del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
39
|
+
*
|
|
40
|
+
* @summary Send requests to the Algolia REST API.
|
|
41
|
+
* @param get - The get object.
|
|
42
|
+
* @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
43
|
+
* @param get.parameters - Query parameters to be applied to the current query.
|
|
44
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
45
|
+
*/
|
|
46
|
+
get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns recommendations or trending results, for a specific model and `objectID`.
|
|
49
|
+
*
|
|
50
|
+
* @summary Get results.
|
|
51
|
+
* @param getRecommendationsParams - The getRecommendationsParams object.
|
|
52
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
53
|
+
*/
|
|
54
|
+
getRecommendations(getRecommendationsParams: GetRecommendationsParams, requestOptions?: RequestOptions): Promise<GetRecommendationsResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
57
|
+
*
|
|
58
|
+
* @summary Send requests to the Algolia REST API.
|
|
59
|
+
* @param post - The post object.
|
|
60
|
+
* @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
61
|
+
* @param post.parameters - Query parameters to be applied to the current query.
|
|
62
|
+
* @param post.body - The parameters to send with the custom request.
|
|
63
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
64
|
+
*/
|
|
65
|
+
post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
66
|
+
/**
|
|
67
|
+
* This method allow you to send requests to the Algolia REST API.
|
|
68
|
+
*
|
|
69
|
+
* @summary Send requests to the Algolia REST API.
|
|
70
|
+
* @param put - The put object.
|
|
71
|
+
* @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
|
|
72
|
+
* @param put.parameters - Query parameters to be applied to the current query.
|
|
73
|
+
* @param put.body - The parameters to send with the custom request.
|
|
74
|
+
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
75
|
+
*/
|
|
76
|
+
put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* The client type.
|
|
80
|
+
*/
|
|
81
|
+
export type RecommendClient = ReturnType<typeof createRecommendClient>;
|
|
82
82
|
//# sourceMappingURL=recommendClient.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/recommend",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.54",
|
|
4
4
|
"description": "JavaScript client for recommend",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"clean": "rm -rf ./dist || true"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
42
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
43
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
41
|
+
"@algolia/client-common": "5.0.0-alpha.54",
|
|
42
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.54",
|
|
43
|
+
"@algolia/requester-node-http": "5.0.0-alpha.54"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/node": "18.
|
|
46
|
+
"@types/node": "18.15.3",
|
|
47
47
|
"rollup": "2.79.1",
|
|
48
|
-
"typescript": "
|
|
48
|
+
"typescript": "5.0.2"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">= 14.0.0"
|