UNPKG

@pubby/sdk

Version:
12 lines (11 loc) 486 B
import { ApiModule } from ".."; import { Paged, Rest } from "../../../lib/Rest"; import { Friendship } from "../../../models/friendship"; export default class FriendshipsService extends Rest<Friendship> { constructor(api: ApiModule); getByUser(userId: string): Promise<Friendship>; pending(params?: {}): Promise<Paged<Friendship>>; add(userId: string): Promise<any>; accept(requestId: string): Promise<any>; reject(requestId: string): Promise<any>; }