We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5019e24 commit d1c7a0bCopy full SHA for d1c7a0b
1 file changed
src/modes/rest/resources/user.ts
@@ -45,6 +45,7 @@ type NewUser = {
45
type GetUserProfilesParams = {
46
pageSize: number
47
page: number
48
+ searchQuery?: string
49
}
50
51
type GetUserProfilesResponseData = {
@@ -129,7 +130,7 @@ export class UserResource implements IRestResource {
129
130
131
async getUserProfiles(params: GetUserProfilesParams): Promise<GetUserProfilesResponseData> {
132
return await fetchGet<GetUserProfilesResponse>(
- `${this.client.apiBaseUrl}/users?page_size=${params.pageSize}&page=${params.page - 1}`,
133
+ `${this.client.apiBaseUrl}/users?page_size=${params.pageSize}&page=${params.page - 1}${params.searchQuery ? "&search=" + params.searchQuery : ""}`,
134
{
135
"Authorization": `Bearer ${this.client.authToken}`,
136
"Content-Type": "application/json"
0 commit comments