qlik-saas-api
Version:
Interact with Qlik Sense SaaS REST API
97 lines (96 loc) • 2.32 kB
TypeScript
import { QlikSaaSClient } from "qlik-rest-api";
import { Privileges, ResourceType } from "../types/types";
import { IApp } from "./Apps.interfaces";
import { ILinks } from "../types/Common";
export interface IResourceAttributeNote {
thumbnail: string;
}
export interface IResourceAttributeLink {
linkType: string;
url: string;
}
export interface IITemCollections {
createdAt: string;
creatorId: string;
description: string;
id: string;
itemCount: number;
links: {
items: {
href: string;
};
self: {
href: string;
};
};
meta: {
items: {
data: IItem[];
links: {
collection: {
href: string;
};
next: {
href: string;
};
prev: {
href: string;
};
self: {
href: string;
};
};
};
};
name: string;
tenantId: string;
type: string;
updatedAt: string;
updaterId: string;
}
export interface IItem {
name: string;
description: string;
resourceAttributes: IApp | IResourceAttributeNote | IResourceAttributeLink;
resourceCustomAttributes: null;
resourceUpdatedAt: string;
resourceType: ResourceType;
resourceId: string;
resourceCreatedAt: string;
id: string;
createdAt: string;
updatedAt: string;
creatorId: string;
updaterId: string;
tenantId: string;
isFavorited: boolean;
links: ILinks;
actions: Privileges[];
collectionIds: string[];
meta: {
isFavorited: boolean;
actions: Privileges[];
tags: {
id: string;
name: string;
}[];
collections: string[];
};
ownerId: string;
resourceReloadEndTime: string;
resourceReloadStatus: string;
resourceSize: {
appFile: number;
appMemory: number;
};
itemViews: {};
}
export declare class Item {
#private;
details: IItem;
constructor(saasClient: QlikSaaSClient, id: string, details?: IItem);
init(): Promise<void>;
remove(): Promise<number>;
collections(): Promise<any>;
publishedItems(): Promise<any>;
}