qlik-saas-api
Version:
Interact with Qlik Sense SaaS REST API
40 lines (39 loc) • 1.25 kB
TypeScript
import { QlikSaaSClient } from "qlik-rest-api";
import { ReportTemplate } from "./ReportTemplate";
export interface ICreateTemplateRequest {
/**
* Template name
*/
name: string;
/**
* Template description
*/
description?: string;
/**
* The ID of the app that this template is using as data source. The id stored in the template file metadata is used if no value is specified
*/
sourceAppId?: string;
/**
* Specifies the action to perform with the given source app id. Use "validate" to verify that the template source app matches the provided value. Use "replace" to migrate the template to a different app by replacing the source app id
*/
sourceAppAction?: "validate" | "replace";
/**
* The ID of a previously uploaded temporary content file
*/
temporaryContentId: string;
}
export declare class ReportTemplates {
#private;
constructor(saasClient: QlikSaaSClient);
get(arg: {
id: string;
}): Promise<ReportTemplate>;
/**
* Returns a list of report templates as an instance
*/
getAll(): Promise<any>;
/**
* Creates a new report template
*/
create(arg: ICreateTemplateRequest): Promise<ReportTemplate>;
}