@typeform/api-client
Version:
JS SDK for Typeform API
32 lines (31 loc) • 862 B
TypeScript
import { Typeform } from './typeform-types';
export declare class Workspaces {
private _http;
constructor(_http: Typeform.HTTPClient);
add(args: {
name: string;
}): Promise<Typeform.Workspace>;
addMembers(args: {
id: string;
members: string | string[];
}): Promise<null>;
delete(args: {
id: string;
}): Promise<null>;
get(args: {
id: string;
}): Promise<Typeform.Workspace>;
list(args?: {
search?: string;
page?: number | 'auto';
pageSize?: number;
}): Promise<Typeform.API.Workspaces.List>;
removeMembers(args: {
id: string;
members: string | string[];
}): Promise<null>;
update(args: {
id: string;
data: Typeform.API.PATCH<'/name' | '/members'>[];
}): Promise<null>;
}