Skip to content

Commit 2dfc215

Browse files
algolia-botraed667shortcuts
committed
fix(specs): fix type in realtime_user (#5012) (generated) [skip ci]
Co-authored-by: Raed <raed.chammam@algolia.com> Co-authored-by: shortcuts <vannicattec@gmail.com>
1 parent 928de4a commit 2dfc215

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

clients/algoliasearch-client-javascript/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';
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
*/

clients/algoliasearch-client-javascript/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
}

docs/bundled/advanced-personalization.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@
585585
"content": {
586586
"application/json": {
587587
"schema": {
588-
"$ref": "#/components/schemas/RealtimeUser_user"
588+
"$ref": "#/components/schemas/RealtimeUser"
589589
}
590590
}
591591
}
@@ -1393,7 +1393,8 @@
13931393
}
13941394
}
13951395
},
1396-
"RealtimeUser_user": {
1396+
"RealtimeUser": {
1397+
"title": "RealtimeUser",
13971398
"type": "object",
13981399
"additionalProperties": false,
13991400
"required": [

docs/bundled/advanced-personalization.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ paths:
749749
content:
750750
application/json:
751751
schema:
752-
$ref: '#/components/schemas/RealtimeUser_user'
752+
$ref: '#/components/schemas/RealtimeUser'
753753
'400':
754754
$ref: '#/components/responses/BadRequest'
755755
'402':
@@ -1404,7 +1404,8 @@ components:
14041404
$ref: '#/components/schemas/strategy'
14051405
filters:
14061406
$ref: '#/components/schemas/searchFilter'
1407-
RealtimeUser_user:
1407+
RealtimeUser:
1408+
title: RealtimeUser
14081409
type: object
14091410
additionalProperties: false
14101411
required:

specs/bundled/advanced-personalization.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ paths:
502502
content:
503503
application/json:
504504
schema:
505-
$ref: '#/components/schemas/RealtimeUser_user'
505+
$ref: '#/components/schemas/RealtimeUser'
506506
'400':
507507
$ref: '#/components/responses/BadRequest'
508508
'402':
@@ -1114,7 +1114,8 @@ components:
11141114
$ref: '#/components/schemas/strategy'
11151115
filters:
11161116
$ref: '#/components/schemas/searchFilter'
1117-
RealtimeUser_user:
1117+
RealtimeUser:
1118+
title: RealtimeUser
11181119
type: object
11191120
additionalProperties: false
11201121
required:

0 commit comments

Comments
 (0)