File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ type NewUser = {
4545type GetUserProfilesParams = {
4646 pageSize : number
4747 page : number
48+ searchQuery ?: string
4849}
4950
5051type GetUserProfilesResponseData = {
@@ -129,7 +130,7 @@ export class UserResource implements IRestResource {
129130 }
130131 async getUserProfiles ( params : GetUserProfilesParams ) : Promise < GetUserProfilesResponseData > {
131132 return await fetchGet < GetUserProfilesResponse > (
132- `${ 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 : "" } ` ,
133134 {
134135 "Authorization" : `Bearer ${ this . client . authToken } ` ,
135136 "Content-Type" : "application/json"
You can’t perform that action at this time.
0 commit comments