diff --git a/types/qlik-engineapi/index.d.ts b/types/qlik-engineapi/index.d.ts index 17f7a7892b..d908d5a313 100644 --- a/types/qlik-engineapi/index.d.ts +++ b/types/qlik-engineapi/index.d.ts @@ -6911,7 +6911,7 @@ declare namespace EngineAPI { * This class describes all the methods that apply at global level. * The handle member in the JSON request for all methods listed in this section is -1. */ - interface IGlobal { + interface IGlobal extends enigmaJS.IGeneratedAPI { /** * Sets an abort flag on all pending and ongoing requests in the current engine session. * If an abort flag is set on a pending request, the request is aborted. diff --git a/types/qlik-visualizationextensions/index.d.ts b/types/qlik-visualizationextensions/index.d.ts index 5d10ff9bcb..6baee98c1b 100644 --- a/types/qlik-visualizationextensions/index.d.ts +++ b/types/qlik-visualizationextensions/index.d.ts @@ -2566,8 +2566,33 @@ declare module "qvangular" { export = e; } +/** + * This section is added because the Qlik Sense Client after > 3.2 contains a engineapi + * an this makes the handling more fluent for users of that files. + */ declare namespace enigmaJS { interface IGeneratedAPI { + /** + * This property contains the unique identifier for this API. + */ + id: string; + + /** + * This property contains the schema class name for this API. + */ + type: string; + + /** + * Despite the name, this property corresponds to the qInfo.qType property on your generic object's properties object. + */ + genericType: string; + + /** + * This property contains the handle QIX Engine assigned to the API. + * Used internally in enigma.js for caches and JSON-RPC + */ + handle: number; + /** * register a function for events * @param event - function called if this event occures @@ -2580,8 +2605,5 @@ declare namespace enigmaJS { * @param event - event that occures */ emit(event: "changed" | "closed"): void; - - // ? not in Docu - id: string; } }