import { BaseAPI, route } from "../base"; import { Group, GroupInvitation, GroupInvitationCreate, GroupStatistics, GroupUpdate } from "../types/data-contracts"; export class GroupApi extends BaseAPI { createInvitation(data: GroupInvitationCreate) { return this.http.post({ url: route("/groups/invitations"), body: data, }); } update(data: GroupUpdate) { return this.http.put({ url: route("/groups"), body: data, }); } get() { return this.http.get({ url: route("/groups"), }); } statistics() { return this.http.get({ url: route("/groups/statistics"), }); } }