added new q param (#26739)

fixes: #26231

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-02-12 09:33:11 +01:00 committed by GitHub
parent cdb1841828
commit e2f42c5ac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@ import type UserRepresentation from "../defs/userRepresentation.js";
import Resource from "./resource.js";
interface Query {
q?: string;
search?: string;
exact?: boolean;
}
@ -35,7 +36,14 @@ export interface GroupCountQuery {
export class Groups extends Resource<{ realm?: string }> {
public find = this.makeRequest<GroupQuery, GroupRepresentation[]>({
method: "GET",
queryParamKeys: ["search", "exact", "briefRepresentation", "first", "max"],
queryParamKeys: [
"search",
"q",
"exact",
"briefRepresentation",
"first",
"max",
],
});
public create = this.makeRequest<GroupRepresentation, { id: string }>({