UNPKG

qlik-saas-api

Version:

Interact with Qlik Sense SaaS REST API

63 lines (62 loc) 1.46 kB
import { QlikSaaSClient } from "qlik-rest-api"; export interface INLAsk { text: string; lang?: string; app?: { id?: string; name?: string; }; disableNarrative?: boolean; disableConversationContext?: boolean; disableFollowups?: boolean; clearEntityContext?: boolean; recommendationId?: string; } export interface INL { conversationalResponse: { responses: { type: string; sentence: { text: string; }; imageUrl: string; narrative: { text: string; }; infoType: string; infoValues: []; followupSentence: string; }[]; drillDownURI: string; contextInfo: string; apps: [ { id: string; name: string; } ]; sentenceWithMatches: string; }[]; apps: { id: string; name: string; }[]; nluInfo: { elements: { entity: boolean; errorText: string; filterFieldName: string; filterText: string; isFilter: boolean; text: string; type: string; typeName: string; typeTranslated: string; }[]; }; } export declare class NL { #private; constructor(saasClient: QlikSaaSClient); ask(arg: INLAsk): Promise<any>; }