@@ -18,9 +18,9 @@ export class Group {
18
18
}
19
19
}
20
20
21
- async create ( attributes : CreateGroup ) {
21
+ async create ( attributes : CreateGroup , query ?: any ) {
22
22
try {
23
- const { data } = await this . client . httpPost ( `/groups` , attributes ) ;
23
+ const { data } = await this . client . httpPost ( `/groups` , attributes , query ) ;
24
24
return data ;
25
25
} catch ( error ) {
26
26
ResponseHelper . handleErrors ( error ) ;
@@ -36,18 +36,18 @@ export class Group {
36
36
}
37
37
}
38
38
39
- async update ( id : string , attributes : UpdateGroup ) {
39
+ async update ( id : string , attributes : UpdateGroup , query ?: any ) {
40
40
try {
41
- const { data } = await this . client . httpPut ( `/groups/${ id } ` , attributes ) ;
41
+ const { data } = await this . client . httpPut ( `/groups/${ id } ` , attributes , query ) ;
42
42
return data ;
43
43
} catch ( error ) {
44
44
ResponseHelper . handleErrors ( error ) ;
45
45
}
46
46
}
47
47
48
- async delete ( id : string , attributes ?: any ) {
48
+ async delete ( id : string , attributes ?: any , query ?: any ) {
49
49
try {
50
- const { data } = await this . client . httpDelete ( `/groups/${ id } ` , attributes ) ;
50
+ const { data } = await this . client . httpDelete ( `/groups/${ id } ` , attributes , query ) ;
51
51
return data ;
52
52
} catch ( error ) {
53
53
ResponseHelper . handleErrors ( error ) ;
0 commit comments