Skip to content

Commit b2a41b6

Browse files
algolia-botraed667shortcuts
committed
fix(specs): fix type in realtime_user (generated)
algolia/api-clients-automation#5012 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 52444fe commit b2a41b6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/advanced-personalization/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export * from './personalizationReRanking';
4242
export * from './profileType';
4343
export * from './putConfigResponse';
4444
export * from './realtime';
45-
export * from './realtimeUserUser';
45+
export * from './realtimeUser';
4646
export * from './searchFilter';
4747
export * from './searchFilters';
4848
export * from './source';

packages/advanced-personalization/model/realtimeUserUser.ts renamed to packages/advanced-personalization/model/realtimeUser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import type { SearchFilters } from './searchFilters';
44

5-
export type RealtimeUserUser = {
5+
export type RealtimeUser = {
66
/**
77
* Version of the response format.
88
*/

packages/advanced-personalization/src/advancedPersonalizationClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type { DeleteUserResponse } from '../model/deleteUserResponse';
1818

1919
import type { GetUsersResponse } from '../model/getUsersResponse';
2020
import type { PutConfigResponse } from '../model/putConfigResponse';
21-
import type { RealtimeUserUser } from '../model/realtimeUserUser';
21+
import type { RealtimeUser } from '../model/realtimeUser';
2222

2323
import type { User } from '../model/user';
2424

@@ -336,7 +336,7 @@ export function createAdvancedPersonalizationClient({
336336
* @param getRealtimeUser.userToken - Unique identifier representing a user for which to fetch the personalization profile.
337337
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
338338
*/
339-
getRealtimeUser({ userToken }: GetRealtimeUserProps, requestOptions?: RequestOptions): Promise<RealtimeUserUser> {
339+
getRealtimeUser({ userToken }: GetRealtimeUserProps, requestOptions?: RequestOptions): Promise<RealtimeUser> {
340340
if (!userToken) {
341341
throw new Error('Parameter `userToken` is required when calling `getRealtimeUser`.');
342342
}

0 commit comments

Comments
 (0)