qlik-oss / qlik-api-ts

Typescript types and Javascript library for consuming Qlik API's
https://qlik.dev
ISC License
8 stars 3 forks source link

qix.d.ts - Bookmarks #61

Closed HaTiIn closed 1 month ago

HaTiIn commented 1 month ago

Hi,

the typings of the method getBookmarks in qix.d.ts seem to be incomplete: getBookmarks: <QData>(options: NxGetBookmarkOptions) => Promise<NxContainerEntry<QData>[]>; I cannot find the typing for the title of the bookmark, i.e.: bookmarks[0].qMeta.title

Or am I wrong?

goldbergjeffrey commented 1 month ago

you want to getBookmarkList and then you can get what you want. e.g. const bookmarks = await app.getBookmarkList(); console.log(bookmarks[0].qMeta.title);

https://github.com/qlik-oss/qlik-api-ts/blob/9b60580214e2e9168aa487c9104511458361dffd/qix.d.ts#L11590

HaTiIn commented 1 month ago

Hello Jeffrey, thank you very much for your reply. I simply overlooked the method.

HaTiIn commented 1 month ago

A quick note in case anyone else finds this issue: The title is not to be found under qMeta, but under qData.