UNPKG

@webuildbots/webuildbots-sdk

Version:
25 lines (24 loc) 910 B
export default class EntityService { private apiService; private client; constructor(token: string, client: string, rootURL?: string); createEntity(title: string, values: Record<string, any>[], name: string, template?: string, module?: string, isWbbDocument?: boolean): Promise<any>; updateEntity(_id: string, body: { title?: string; values?: Record<string, any>[]; name?: string; created?: string; template?: string; module?: string; isWbbDocument?: boolean; }): Promise<any>; getEntity(id: any): Promise<any>; getEntities(searchText?: string): Promise<any>; deleteEntity(_id: string): Promise<any>; createMapping(block: { blockId: string; module?: string; }, entityId: string): Promise<any>; deleteMapping(_id: string): Promise<any>; getMappings(responseId?: string): Promise<any>; }