Skip to content

Commit 4f2e815

Browse files
committed
add support for query strings to group endpoints
1 parent 809c6bc commit 4f2e815

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Api/group.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export class Group {
1818
}
1919
}
2020

21-
async create(attributes: CreateGroup) {
21+
async create(attributes: CreateGroup, query?: any) {
2222
try {
23-
const { data } = await this.client.httpPost(`/groups`, attributes);
23+
const { data } = await this.client.httpPost(`/groups`, attributes, query);
2424
return data;
2525
} catch (error) {
2626
ResponseHelper.handleErrors(error);
@@ -36,18 +36,18 @@ export class Group {
3636
}
3737
}
3838

39-
async update(id: string, attributes: UpdateGroup) {
39+
async update(id: string, attributes: UpdateGroup, query?: any) {
4040
try {
41-
const { data } = await this.client.httpPut(`/groups/${id}`, attributes);
41+
const { data } = await this.client.httpPut(`/groups/${id}`, attributes, query);
4242
return data;
4343
} catch (error) {
4444
ResponseHelper.handleErrors(error);
4545
}
4646
}
4747

48-
async delete(id: string, attributes?: any) {
48+
async delete(id: string, attributes?: any, query?: any) {
4949
try {
50-
const { data } = await this.client.httpDelete(`/groups/${id}`, attributes);
50+
const { data } = await this.client.httpDelete(`/groups/${id}`, attributes, query);
5151
return data;
5252
} catch (error) {
5353
ResponseHelper.handleErrors(error);

0 commit comments

Comments
 (0)