@algolia/client-personalization 5.27.0 → 5.29.0
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/README.md +4 -4
- package/dist/browser.d.ts +19 -19
- package/dist/builds/browser.js +5 -5
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +5 -5
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +5 -5
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +5 -5
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +5 -5
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +19 -19
- package/dist/node.d.cts +19 -19
- package/dist/node.d.ts +19 -19
- package/dist/src/personalizationClient.cjs +5 -5
- package/dist/src/personalizationClient.cjs.map +1 -1
- package/dist/src/personalizationClient.js +5 -5
- package/dist/src/personalizationClient.js.map +1 -1
- package/dist/worker.d.ts +19 -19
- package/package.json +7 -7
package/dist/worker.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ type SetPersonalizationStrategyResponse = {
|
|
|
82
82
|
*/
|
|
83
83
|
type CustomDeleteProps = {
|
|
84
84
|
/**
|
|
85
|
-
* Path of the endpoint,
|
|
85
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
86
86
|
*/
|
|
87
87
|
path: string;
|
|
88
88
|
/**
|
|
@@ -90,14 +90,14 @@ type CustomDeleteProps = {
|
|
|
90
90
|
*/
|
|
91
91
|
parameters?: {
|
|
92
92
|
[key: string]: any;
|
|
93
|
-
};
|
|
93
|
+
} | undefined;
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
96
96
|
* Properties for the `customGet` method.
|
|
97
97
|
*/
|
|
98
98
|
type CustomGetProps = {
|
|
99
99
|
/**
|
|
100
|
-
* Path of the endpoint,
|
|
100
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
101
101
|
*/
|
|
102
102
|
path: string;
|
|
103
103
|
/**
|
|
@@ -105,14 +105,14 @@ type CustomGetProps = {
|
|
|
105
105
|
*/
|
|
106
106
|
parameters?: {
|
|
107
107
|
[key: string]: any;
|
|
108
|
-
};
|
|
108
|
+
} | undefined;
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* Properties for the `customPost` method.
|
|
112
112
|
*/
|
|
113
113
|
type CustomPostProps = {
|
|
114
114
|
/**
|
|
115
|
-
* Path of the endpoint,
|
|
115
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
116
116
|
*/
|
|
117
117
|
path: string;
|
|
118
118
|
/**
|
|
@@ -120,18 +120,18 @@ type CustomPostProps = {
|
|
|
120
120
|
*/
|
|
121
121
|
parameters?: {
|
|
122
122
|
[key: string]: any;
|
|
123
|
-
};
|
|
123
|
+
} | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Parameters to send with the custom request.
|
|
126
126
|
*/
|
|
127
|
-
body?: Record<string, unknown
|
|
127
|
+
body?: Record<string, unknown> | undefined;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* Properties for the `customPut` method.
|
|
131
131
|
*/
|
|
132
132
|
type CustomPutProps = {
|
|
133
133
|
/**
|
|
134
|
-
* Path of the endpoint,
|
|
134
|
+
* Path of the endpoint, for example `1/newFeature`.
|
|
135
135
|
*/
|
|
136
136
|
path: string;
|
|
137
137
|
/**
|
|
@@ -139,11 +139,11 @@ type CustomPutProps = {
|
|
|
139
139
|
*/
|
|
140
140
|
parameters?: {
|
|
141
141
|
[key: string]: any;
|
|
142
|
-
};
|
|
142
|
+
} | undefined;
|
|
143
143
|
/**
|
|
144
144
|
* Parameters to send with the custom request.
|
|
145
145
|
*/
|
|
146
|
-
body?: Record<string, unknown
|
|
146
|
+
body?: Record<string, unknown> | undefined;
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
149
149
|
* Properties for the `deleteUserProfile` method.
|
|
@@ -164,7 +164,7 @@ type GetUserTokenProfileProps = {
|
|
|
164
164
|
userToken: string;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
declare const apiClientVersion = "5.
|
|
167
|
+
declare const apiClientVersion = "5.29.0";
|
|
168
168
|
declare const REGIONS: readonly ["eu", "us"];
|
|
169
169
|
type Region = (typeof REGIONS)[number];
|
|
170
170
|
type RegionOptions = {
|
|
@@ -194,7 +194,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
194
194
|
* @param segment - The algolia agent (user-agent) segment to add.
|
|
195
195
|
* @param version - The version of the agent.
|
|
196
196
|
*/
|
|
197
|
-
addAlgoliaAgent(segment: string, version?: string): void;
|
|
197
|
+
addAlgoliaAgent(segment: string, version?: string | undefined): void;
|
|
198
198
|
/**
|
|
199
199
|
* Helper method to switch the API key used to authenticate the requests.
|
|
200
200
|
*
|
|
@@ -207,7 +207,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
207
207
|
/**
|
|
208
208
|
* This method lets you send requests to the Algolia REST API.
|
|
209
209
|
* @param customDelete - The customDelete object.
|
|
210
|
-
* @param customDelete.path - Path of the endpoint,
|
|
210
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
211
211
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
212
212
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
213
213
|
*/
|
|
@@ -215,7 +215,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
215
215
|
/**
|
|
216
216
|
* This method lets you send requests to the Algolia REST API.
|
|
217
217
|
* @param customGet - The customGet object.
|
|
218
|
-
* @param customGet.path - Path of the endpoint,
|
|
218
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
219
219
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
220
220
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
221
221
|
*/
|
|
@@ -223,7 +223,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
223
223
|
/**
|
|
224
224
|
* This method lets you send requests to the Algolia REST API.
|
|
225
225
|
* @param customPost - The customPost object.
|
|
226
|
-
* @param customPost.path - Path of the endpoint,
|
|
226
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
227
227
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
228
228
|
* @param customPost.body - Parameters to send with the custom request.
|
|
229
229
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -232,7 +232,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
232
232
|
/**
|
|
233
233
|
* This method lets you send requests to the Algolia REST API.
|
|
234
234
|
* @param customPut - The customPut object.
|
|
235
|
-
* @param customPut.path - Path of the endpoint,
|
|
235
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
236
236
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
237
237
|
* @param customPut.body - Parameters to send with the custom request.
|
|
238
238
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -255,7 +255,7 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
255
255
|
* - recommendation
|
|
256
256
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
257
257
|
*/
|
|
258
|
-
getPersonalizationStrategy(requestOptions?: RequestOptions): Promise<PersonalizationStrategyParams>;
|
|
258
|
+
getPersonalizationStrategy(requestOptions?: RequestOptions | undefined): Promise<PersonalizationStrategyParams>;
|
|
259
259
|
/**
|
|
260
260
|
* Retrieves a user profile and their affinities for different facets.
|
|
261
261
|
*
|
|
@@ -281,11 +281,11 @@ declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKe
|
|
|
281
281
|
* Error.
|
|
282
282
|
*/
|
|
283
283
|
type ErrorBase = Record<string, any> & {
|
|
284
|
-
message?: string;
|
|
284
|
+
message?: string | undefined;
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
type PersonalizationClient = ReturnType<typeof createPersonalizationClient>;
|
|
288
288
|
|
|
289
|
-
declare function personalizationClient(appId: string, apiKey: string, region: Region, options?: ClientOptions): PersonalizationClient;
|
|
289
|
+
declare function personalizationClient(appId: string, apiKey: string, region: Region, options?: ClientOptions | undefined): PersonalizationClient;
|
|
290
290
|
|
|
291
291
|
export { type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type DeleteUserProfileProps, type DeleteUserProfileResponse, type ErrorBase, type EventType, type EventsScoring, type FacetsScoring, type GetUserTokenProfileProps, type GetUserTokenResponse, type PersonalizationClient, type PersonalizationStrategyParams, type Region, type RegionOptions, type SetPersonalizationStrategyResponse, apiClientVersion, personalizationClient };
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.29.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.29.0",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.29.0",
|
|
54
|
+
"@algolia/requester-fetch": "5.29.0",
|
|
55
|
+
"@algolia/requester-node-http": "5.29.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@arethetypeswrong/cli": "0.18.
|
|
59
|
-
"@types/node": "22.15.
|
|
58
|
+
"@arethetypeswrong/cli": "0.18.2",
|
|
59
|
+
"@types/node": "22.15.31",
|
|
60
60
|
"publint": "0.3.12",
|
|
61
61
|
"rollup": "4.41.0",
|
|
62
62
|
"tsup": "8.5.0",
|