@algolia/client-personalization 5.2.4 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +190 -0
- package/dist/builds/browser.js +323 -0
- package/dist/builds/browser.js.map +1 -0
- package/dist/builds/browser.min.js +2 -0
- package/dist/builds/browser.min.js.map +1 -0
- package/dist/builds/browser.umd.js +12 -0
- package/dist/builds/node.cjs +341 -0
- package/dist/builds/node.cjs.map +1 -0
- package/dist/builds/node.js +321 -0
- package/dist/builds/node.js.map +1 -0
- package/dist/node.d.cts +190 -0
- package/dist/node.d.ts +190 -0
- package/dist/src/personalizationClient.cjs +308 -0
- package/dist/src/personalizationClient.cjs.map +1 -0
- package/dist/src/personalizationClient.js +281 -0
- package/dist/src/personalizationClient.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +28 -25
- package/dist/builds/browser.d.ts +0 -24
- package/dist/builds/browser.d.ts.map +0 -1
- package/dist/builds/node.d.ts +0 -24
- package/dist/builds/node.d.ts.map +0 -1
- package/dist/client-personalization.cjs +0 -297
- package/dist/client-personalization.esm.browser.js +0 -971
- package/dist/client-personalization.esm.node.js +0 -294
- package/dist/client-personalization.umd.js +0 -2
- package/dist/model/clientMethodProps.d.ts +0 -79
- package/dist/model/clientMethodProps.d.ts.map +0 -1
- package/dist/model/deleteUserProfileResponse.d.ts +0 -11
- package/dist/model/deleteUserProfileResponse.d.ts.map +0 -1
- package/dist/model/errorBase.d.ts +0 -7
- package/dist/model/errorBase.d.ts.map +0 -1
- package/dist/model/eventScoring.d.ts +0 -13
- package/dist/model/eventScoring.d.ts.map +0 -1
- package/dist/model/eventType.d.ts +0 -5
- package/dist/model/eventType.d.ts.map +0 -1
- package/dist/model/facetScoring.d.ts +0 -11
- package/dist/model/facetScoring.d.ts.map +0 -1
- package/dist/model/getUserTokenResponse.d.ts +0 -15
- package/dist/model/getUserTokenResponse.d.ts.map +0 -1
- package/dist/model/index.d.ts +0 -10
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/personalizationStrategyParams.d.ts +0 -17
- package/dist/model/personalizationStrategyParams.d.ts.map +0 -1
- package/dist/model/setPersonalizationStrategyResponse.d.ts +0 -7
- package/dist/model/setPersonalizationStrategyResponse.d.ts.map +0 -1
- package/dist/src/personalizationClient.d.ts +0 -113
- package/dist/src/personalizationClient.d.ts.map +0 -1
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { CreateClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import type { CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteUserProfileProps, GetUserTokenProfileProps } from '../model/clientMethodProps';
|
|
3
|
-
import type { DeleteUserProfileResponse } from '../model/deleteUserProfileResponse';
|
|
4
|
-
import type { GetUserTokenResponse } from '../model/getUserTokenResponse';
|
|
5
|
-
import type { PersonalizationStrategyParams } from '../model/personalizationStrategyParams';
|
|
6
|
-
import type { SetPersonalizationStrategyResponse } from '../model/setPersonalizationStrategyResponse';
|
|
7
|
-
export declare const apiClientVersion = "5.2.4";
|
|
8
|
-
export declare const REGIONS: readonly ["eu", "us"];
|
|
9
|
-
export type Region = (typeof REGIONS)[number];
|
|
10
|
-
export declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
|
|
11
|
-
region: Region;
|
|
12
|
-
}): {
|
|
13
|
-
transporter: import("@algolia/client-common").Transporter;
|
|
14
|
-
/**
|
|
15
|
-
* The `appId` currently in use.
|
|
16
|
-
*/
|
|
17
|
-
appId: string;
|
|
18
|
-
/**
|
|
19
|
-
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
20
|
-
*/
|
|
21
|
-
clearCache(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
|
|
24
|
-
*/
|
|
25
|
-
readonly _ua: string;
|
|
26
|
-
/**
|
|
27
|
-
* Adds a `segment` to the `x-algolia-agent` sent with every requests.
|
|
28
|
-
*
|
|
29
|
-
* @param segment - The algolia agent (user-agent) segment to add.
|
|
30
|
-
* @param version - The version of the agent.
|
|
31
|
-
*/
|
|
32
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
35
|
-
*
|
|
36
|
-
* @param customDelete - The customDelete object.
|
|
37
|
-
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
38
|
-
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
39
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
40
|
-
*/
|
|
41
|
-
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
42
|
-
/**
|
|
43
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
44
|
-
*
|
|
45
|
-
* @param customGet - The customGet object.
|
|
46
|
-
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
47
|
-
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
48
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
49
|
-
*/
|
|
50
|
-
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
51
|
-
/**
|
|
52
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
53
|
-
*
|
|
54
|
-
* @param customPost - The customPost object.
|
|
55
|
-
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
56
|
-
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
57
|
-
* @param customPost.body - Parameters to send with the custom request.
|
|
58
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
59
|
-
*/
|
|
60
|
-
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
61
|
-
/**
|
|
62
|
-
* This method allow you to send requests to the Algolia REST API.
|
|
63
|
-
*
|
|
64
|
-
* @param customPut - The customPut object.
|
|
65
|
-
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
66
|
-
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
67
|
-
* @param customPut.body - Parameters to send with the custom request.
|
|
68
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
69
|
-
*/
|
|
70
|
-
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
71
|
-
/**
|
|
72
|
-
* Deletes a user profile. The response includes a date and time when the user profile can safely be considered deleted.
|
|
73
|
-
*
|
|
74
|
-
* Required API Key ACLs:
|
|
75
|
-
* - recommendation.
|
|
76
|
-
*
|
|
77
|
-
* @param deleteUserProfile - The deleteUserProfile object.
|
|
78
|
-
* @param deleteUserProfile.userToken - Unique identifier representing a user for which to fetch the personalization profile.
|
|
79
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
80
|
-
*/
|
|
81
|
-
deleteUserProfile({ userToken }: DeleteUserProfileProps, requestOptions?: RequestOptions): Promise<DeleteUserProfileResponse>;
|
|
82
|
-
/**
|
|
83
|
-
* Retrieves the current personalization strategy.
|
|
84
|
-
*
|
|
85
|
-
* Required API Key ACLs:
|
|
86
|
-
* - recommendation.
|
|
87
|
-
*
|
|
88
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
89
|
-
*/
|
|
90
|
-
getPersonalizationStrategy(requestOptions?: RequestOptions): Promise<PersonalizationStrategyParams>;
|
|
91
|
-
/**
|
|
92
|
-
* Retrieves a user profile and their affinities for different facets.
|
|
93
|
-
*
|
|
94
|
-
* Required API Key ACLs:
|
|
95
|
-
* - recommendation.
|
|
96
|
-
*
|
|
97
|
-
* @param getUserTokenProfile - The getUserTokenProfile object.
|
|
98
|
-
* @param getUserTokenProfile.userToken - Unique identifier representing a user for which to fetch the personalization profile.
|
|
99
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
100
|
-
*/
|
|
101
|
-
getUserTokenProfile({ userToken }: GetUserTokenProfileProps, requestOptions?: RequestOptions): Promise<GetUserTokenResponse>;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a new personalization strategy.
|
|
104
|
-
*
|
|
105
|
-
* Required API Key ACLs:
|
|
106
|
-
* - recommendation.
|
|
107
|
-
*
|
|
108
|
-
* @param personalizationStrategyParams - The personalizationStrategyParams object.
|
|
109
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
110
|
-
*/
|
|
111
|
-
setPersonalizationStrategy(personalizationStrategyParams: PersonalizationStrategyParams, requestOptions?: RequestOptions): Promise<SetPersonalizationStrategyResponse>;
|
|
112
|
-
};
|
|
113
|
-
//# sourceMappingURL=personalizationClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personalizationClient.d.ts","sourceRoot":"","sources":["../../src/personalizationClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AAEtG,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,eAAO,MAAM,O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