@webuildbots/webuildbots-sdk
Version:
webuildbots sdk
26 lines (25 loc) • 1.09 kB
TypeScript
import { BlockTypes } from '../const/block-enums';
import BlockObj from '../interfaces/block';
export default class ResponseService {
private apiService;
private client;
constructor(token: string, client: any, rootURL?: string);
private formatBlockValues;
createResponse(content: BlockObj['content'], module: string, description: string, type: BlockTypes, name?: string, group?: string, formFieldCallbackArgs?: BlockObj['formFieldCallback'], next?: string, functionObj?: BlockObj['function']): Promise<any>;
updateResponse(blockId: any, body: {
version?: number;
type?: BlockTypes;
created?: string;
content?: BlockObj['content'];
module?: string;
description?: string;
name?: string;
group?: string;
formFieldCallbackArgs?: any;
next?: string;
function?: BlockObj['function'];
}): Promise<any>;
deleteResponse(blockId: any): Promise<any>;
getResponses(searchText?: string, types?: any[], groups?: any[]): Promise<any>;
getResponse(id: any): Promise<any>;
}