UNPKG

@webuildbots/webuildbots-sdk

Version:
26 lines (25 loc) 941 B
export default class IntentService { private apiService; private client; constructor(token: string, client: string, rootURL?: string); createIntent(title: string, utterances: string[], name: string, groups?: string[], parentName?: string, module?: string, isWbbDocument?: boolean): Promise<any>; updateIntent(_id: string, body: { title?: string; utterances?: string[]; name?: string; created?: string; groups?: string[]; parentName?: string; module?: string; isWbbDocument?: boolean; }): Promise<any>; getIntent(id: any): Promise<any>; getIntents(searchText?: string): Promise<any>; deleteIntent(_id: string): Promise<any>; createMapping(block: { blockId: string; module?: string; }, intentId: string): Promise<any>; deleteMapping(_id: string): Promise<any>; getMappings(responseId?: string): Promise<any>; }