@qlik/api 1.6.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api-keys.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/api-keys.ts
9
9
  var getApiKeys = async (query, options) => invokeFetch("api-keys", {
package/apps.d.ts CHANGED
@@ -1883,7 +1883,7 @@ type GetAppReportFilterHttpError = {
1883
1883
  };
1884
1884
  /**
1885
1885
  * Retrieves the script history for an app.
1886
- * Returns information about the saved versions of the script.
1886
+ * Returns information about the saved versions of the script in a list sorted with latest first.
1887
1887
  *
1888
1888
  * @param appId Identifier of the app.
1889
1889
  * @param query an object with query parameters
@@ -1932,13 +1932,13 @@ type UpdateAppScriptHttpError = {
1932
1932
  };
1933
1933
  /**
1934
1934
  * Deletes a specific version of the script for an app.
1935
- * Fails if the version to delete is the current version.
1935
+ * Fails if the supplied id is the current version.
1936
1936
  *
1937
1937
  * @param appId Identifier of the app.
1938
- * @param version Identifier of the script version
1938
+ * @param id Identifier of the script version
1939
1939
  * @throws DeleteAppScriptHttpError
1940
1940
  */
1941
- declare const deleteAppScript: (appId: string, version: string, options?: ApiCallOptions) => Promise<DeleteAppScriptHttpResponse>;
1941
+ declare const deleteAppScript: (appId: string, id: string, options?: ApiCallOptions) => Promise<DeleteAppScriptHttpResponse>;
1942
1942
  type DeleteAppScriptHttpResponse = {
1943
1943
  data: void;
1944
1944
  headers: Headers;
@@ -1954,10 +1954,10 @@ type DeleteAppScriptHttpError = {
1954
1954
  * Returns the script text.
1955
1955
  *
1956
1956
  * @param appId Identifier of the app.
1957
- * @param version Identifier of the script version, or 'current' for retrieving the current version.
1957
+ * @param id Identifier of the script version, or 'current' for retrieving the current version.
1958
1958
  * @throws GetAppScriptHttpError
1959
1959
  */
1960
- declare const getAppScript: (appId: string, version: string, options?: ApiCallOptions) => Promise<GetAppScriptHttpResponse>;
1960
+ declare const getAppScript: (appId: string, id: string, options?: ApiCallOptions) => Promise<GetAppScriptHttpResponse>;
1961
1961
  type GetAppScriptHttpResponse = {
1962
1962
  data: ScriptVersion;
1963
1963
  headers: Headers;
@@ -1972,11 +1972,11 @@ type GetAppScriptHttpError = {
1972
1972
  * Updates a specific version of the script for an app.
1973
1973
  *
1974
1974
  * @param appId Identifier of the app.
1975
- * @param version Identifier of the script version.
1975
+ * @param id Identifier of the script version.
1976
1976
  * @param body an object with the body content
1977
1977
  * @throws PatchAppScriptHttpError
1978
1978
  */
1979
- declare const patchAppScript: (appId: string, version: string, body: NxPatch, options?: ApiCallOptions) => Promise<PatchAppScriptHttpResponse>;
1979
+ declare const patchAppScript: (appId: string, id: string, body: NxPatch[], options?: ApiCallOptions) => Promise<PatchAppScriptHttpResponse>;
1980
1980
  type PatchAppScriptHttpResponse = {
1981
1981
  data: void;
1982
1982
  headers: Headers;
@@ -2359,7 +2359,7 @@ interface AppsAPI {
2359
2359
  getAppReportFilter: typeof getAppReportFilter;
2360
2360
  /**
2361
2361
  * Retrieves the script history for an app.
2362
- * Returns information about the saved versions of the script.
2362
+ * Returns information about the saved versions of the script in a list sorted with latest first.
2363
2363
  *
2364
2364
  * @param appId Identifier of the app.
2365
2365
  * @param query an object with query parameters
@@ -2376,10 +2376,10 @@ interface AppsAPI {
2376
2376
  updateAppScript: typeof updateAppScript;
2377
2377
  /**
2378
2378
  * Deletes a specific version of the script for an app.
2379
- * Fails if the version to delete is the current version.
2379
+ * Fails if the supplied id is the current version.
2380
2380
  *
2381
2381
  * @param appId Identifier of the app.
2382
- * @param version Identifier of the script version
2382
+ * @param id Identifier of the script version
2383
2383
  * @throws DeleteAppScriptHttpError
2384
2384
  */
2385
2385
  deleteAppScript: typeof deleteAppScript;
@@ -2388,7 +2388,7 @@ interface AppsAPI {
2388
2388
  * Returns the script text.
2389
2389
  *
2390
2390
  * @param appId Identifier of the app.
2391
- * @param version Identifier of the script version, or 'current' for retrieving the current version.
2391
+ * @param id Identifier of the script version, or 'current' for retrieving the current version.
2392
2392
  * @throws GetAppScriptHttpError
2393
2393
  */
2394
2394
  getAppScript: typeof getAppScript;
@@ -2396,7 +2396,7 @@ interface AppsAPI {
2396
2396
  * Updates a specific version of the script for an app.
2397
2397
  *
2398
2398
  * @param appId Identifier of the app.
2399
- * @param version Identifier of the script version.
2399
+ * @param id Identifier of the script version.
2400
2400
  * @param body an object with the body content
2401
2401
  * @throws PatchAppScriptHttpError
2402
2402
  */
package/apps.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/apps.ts
9
9
  var createApp = async (body, options) => invokeFetch("apps", {
@@ -252,22 +252,22 @@ var updateAppScript = async (appId, body, options) => invokeFetch("apps", {
252
252
  contentType: "application/json",
253
253
  options
254
254
  });
255
- var deleteAppScript = async (appId, version, options) => invokeFetch("apps", {
255
+ var deleteAppScript = async (appId, id, options) => invokeFetch("apps", {
256
256
  method: "delete",
257
- pathTemplate: "/api/v1/apps/{appId}/scripts/{version}",
258
- pathVariables: { appId, version },
257
+ pathTemplate: "/api/v1/apps/{appId}/scripts/{id}",
258
+ pathVariables: { appId, id },
259
259
  options
260
260
  });
261
- var getAppScript = async (appId, version, options) => invokeFetch("apps", {
261
+ var getAppScript = async (appId, id, options) => invokeFetch("apps", {
262
262
  method: "get",
263
- pathTemplate: "/api/v1/apps/{appId}/scripts/{version}",
264
- pathVariables: { appId, version },
263
+ pathTemplate: "/api/v1/apps/{appId}/scripts/{id}",
264
+ pathVariables: { appId, id },
265
265
  options
266
266
  });
267
- var patchAppScript = async (appId, version, body, options) => invokeFetch("apps", {
267
+ var patchAppScript = async (appId, id, body, options) => invokeFetch("apps", {
268
268
  method: "patch",
269
- pathTemplate: "/api/v1/apps/{appId}/scripts/{version}",
270
- pathVariables: { appId, version },
269
+ pathTemplate: "/api/v1/apps/{appId}/scripts/{id}",
270
+ pathVariables: { appId, id },
271
271
  body,
272
272
  contentType: "application/json",
273
273
  options
package/audits.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/audits.ts
9
9
  var getAudits = async (query, options) => invokeFetch("audits", {
package/auth.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  logout,
5
5
  registerAuthModule,
6
6
  setDefaultHostConfig
7
- } from "./chunks/BPM4DLZK.js";
8
- import "./chunks/I5CSZHWM.js";
7
+ } from "./chunks/JR4AYAEK.js";
8
+ import "./chunks/7C6WMELW.js";
9
9
  export {
10
10
  auth_default as default,
11
11
  getAccessToken,
package/automations.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/automations.ts
9
9
  var getAutomations = async (query, options) => invokeFetch("automations", {
package/brands.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/brands.ts
9
9
  var getBrands = async (query, options) => invokeFetch("brands", {
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/@qlik+runtime-module-loader@1.0.3_bufferutil@4.0.8/node_modules/@qlik/runtime-module-loader/dist/index.js
1
+ // node_modules/.pnpm/@qlik+runtime-module-loader@1.0.4_bufferutil@4.0.8/node_modules/@qlik/runtime-module-loader/dist/index.js
2
2
  window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
3
3
  window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
4
4
  window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
@@ -10371,9 +10371,6 @@ async function createEnigmaSession({
10371
10371
  }) {
10372
10372
  const locationUrl = toValidWebsocketLocationUrl(hostConfig);
10373
10373
  const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
10374
- if (!identity && withoutData) {
10375
- identity = "no_data";
10376
- }
10377
10374
  const identityPart = identity ? `/identity/${identity}` : "";
10378
10375
  const reloadEnginePart = useReloadEngine ? "&workloadType=interactive-reload" : "";
10379
10376
  let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}${reloadEnginePart}`.replace(
@@ -1,17 +1,17 @@
1
1
  // src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!globalThis.process?.argv;
4
- return isNode ? import("./5WSW4QG3.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? import("./5WSW4QG3.js") : import("./6P5HRFLL.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
5
  }
6
6
  async function getQixRuntimeModule(hostConfig) {
7
7
  await getAuthRuntimeModule(hostConfig);
8
8
  const isNode = !!globalThis.process?.argv;
9
- return isNode ? import("./CUE3GZGJ.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? import("./HZ5LN65C.js") : import("./6P5HRFLL.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
10
  }
11
11
  async function getInvokeFetchRuntimeModule(hostConfig) {
12
12
  await getAuthRuntimeModule(hostConfig);
13
13
  const isNode = !!globalThis.process?.argv;
14
- return isNode ? import("./SW3DXPAP.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? import("./SW3DXPAP.js") : import("./6P5HRFLL.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
  export {
@@ -101,7 +101,7 @@ function listenForWindowsAuthenticationInformation(session) {
101
101
  return authSuggestedInWebsocket;
102
102
  }
103
103
  async function createAndSetupEnigmaSession(props, canRetry) {
104
- const { createEnigmaSession } = await import("./FFVTXKKA.js");
104
+ const { createEnigmaSession } = await import("./6UGE6PR7.js");
105
105
  const session = await createEnigmaSession(props);
106
106
  setupSessionListeners(session, props);
107
107
  let global;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./I5CSZHWM.js";
3
+ } from "./7C6WMELW.js";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./I5CSZHWM.js";
3
+ } from "./7C6WMELW.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -1,12 +1,12 @@
1
+ import {
2
+ getInvokeFetchRuntimeModule
3
+ } from "./7C6WMELW.js";
1
4
  import {
2
5
  isBrowser
3
6
  } from "./2ZQ3ZX7F.js";
4
- import {
5
- getInvokeFetchRuntimeModule
6
- } from "./I5CSZHWM.js";
7
7
 
8
8
  // src/public/invoke-fetch.ts
9
- var defaultUserAgent = "qlik-api/1.6.1";
9
+ var defaultUserAgent = "qlik-api/1.8.0";
10
10
  async function invokeFetch(api, props) {
11
11
  const hostConfig = props.options?.hostConfig;
12
12
  let userAgent;
package/collections.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/collections.ts
9
9
  var getCollections = async (query, options) => invokeFetch("collections", {
package/csp-origins.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/csp-origins.ts
9
9
  var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
package/data-assets.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/data-assets.ts
9
9
  var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/data-connections.ts
9
9
  var getDataConnections = async (query, options) => invokeFetch("data-connections", {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/data-credentials.ts
9
9
  var deleteDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
package/data-files.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/data-files.ts
9
9
  var getDataFiles = async (query, options) => invokeFetch("data-files", {
package/docs/features.md CHANGED
@@ -5,7 +5,6 @@
5
5
  - [Typed API calls](#typed-api-calls)
6
6
  - [Caching](#caching)
7
7
  - [Paging](#paging)
8
- - [Request/response interceptors](#interceptors)
9
8
 
10
9
  ## Typed API Calls
11
10
 
@@ -79,51 +78,4 @@ try {
79
78
 
80
79
  Many "list" APIs return links to the next and previous page in the list GET response body. If the API follows the conventions and declares this in the OpenAPI spec next and prev functions will be available in the API response type. Note that the next and prev functions are only defined when there actually is a next and prev page.
81
80
 
82
- ## Interceptors
83
-
84
- Consumer of `@qlik/api` can inject an interceptor in every api method. There are two interception points, before request and after response. The request interceptor can also be an async function.
85
-
86
- **NOTE:** to add headers to the request, use a regular object instead of `new Headers()`. It causes a loss of all the original headers. See the example below.
87
-
88
- ```ts
89
- import { getItems, interceptors } from "@qlik/api/items";
90
-
91
- // intercept requests
92
- interceptors.getItems.request.use((url, request) => {
93
- const headers = {
94
- ...request.headers,
95
- "x-qlik-custom-header": "value",
96
- };
97
-
98
- // modify fetch request
99
- request.headers = headers;
100
-
101
- return request;
102
- });
103
-
104
- // intercept responses
105
- interceptors.getItems.response.use((response) => {
106
- response.data.YOU_ARE_INTERCEPTED = true;
107
- return response;
108
- });
109
-
110
- try {
111
- const { status, data: items } = await getItems();
112
-
113
- if (items.YOU_ARE_INTERCEPTED) {
114
- // ok!
115
- }
116
- }
117
- ```
118
-
119
- when adding an interceptor you get an interceptor ID that can be used to eject the interceptor later.
120
-
121
- ```ts
122
- const interceptorId = interceptors.getItems.response.use(...);
123
- // now interceptor will execute on response
124
-
125
- interceptors.getItems.response.eject(interceptorId);
126
- // now interceptor will NOT execute on response
127
- ```
128
-
129
81
  ◁ [Back to overview](../README.md)
package/docs/qix.md CHANGED
@@ -35,7 +35,7 @@ The app sesssion settings have the following properties.
35
35
  - `hostConfig` - Optional Hostconfig to connect to a URL and authenticate an app session. Only needed if default HostConfig has not been set, or if connection should be different from the default.
36
36
  - `withoutData` - Optional boolean, set to true if app should be opened without loading the data blob
37
37
 
38
- **_note_** - when using `withoutData: true` and no `identity` the websocket url will include `/identity/no_data` to prevent that engine throws error "App is opened in a different mode".
38
+ **_note_** - when using `withoutData: true` and no `identity` it is likely that engine throws error "App is opened in a different mode" if the app has already been opened with data or if the app is opened in `Qlik Sense` after script has been run without data. So it is _strongly recommended_ to use the `identity` parameter when opening the app without data. E.g `qix.openAppSession({ appId: "app-id", identity: "no-data", withoutData: true, ... })`
39
39
 
40
40
  ## Usage example
41
41
 
package/extensions.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/extensions.ts
9
9
  var getExtensions = async (options) => invokeFetch("extensions", {
package/glossaries.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/glossaries.ts
9
9
  var getGlossaries = async (query, options) => invokeFetch("glossaries", {
package/groups.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/groups.ts
9
9
  var getGroups = async (query, options) => invokeFetch("groups", {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/identity-providers.ts
9
9
  var getIdps = async (query, options) => invokeFetch("identity-providers", {
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ import { LicensesAPI } from './licenses.js';
20
20
  import { QuotasAPI } from './quotas.js';
21
21
  import { ReloadTasksAPI } from './reload-tasks.js';
22
22
  import { ReloadsAPI } from './reloads.js';
23
+ import { ReportsAPI } from './reports.js';
23
24
  import { RolesAPI } from './roles.js';
24
25
  import { SpacesAPI } from './spaces.js';
25
26
  import { TempContentsAPI } from './temp-contents.js';
@@ -61,6 +62,7 @@ declare const qix: {
61
62
  declare const quotas: QuotasAPI;
62
63
  declare const reloadTasks: ReloadTasksAPI;
63
64
  declare const reloads: ReloadsAPI;
65
+ declare const reports: ReportsAPI;
64
66
  declare const roles: RolesAPI;
65
67
  declare const spaces: SpacesAPI;
66
68
  declare const tempContents: TempContentsAPI;
@@ -116,6 +118,8 @@ interface QlikAPI {
116
118
  reloadTasks: typeof reloadTasks;
117
119
  /** Functions for the reloads api */
118
120
  reloads: typeof reloads;
121
+ /** Functions for the reports api */
122
+ reports: typeof reports;
119
123
  /** Functions for the roles api */
120
124
  roles: typeof roles;
121
125
  /** Functions for the spaces api */
@@ -140,4 +144,4 @@ interface QlikAPI {
140
144
  /** Javascript/Typescript bindings to Qlik's platform API's */
141
145
  declare const api: QlikAPI;
142
146
 
143
- export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
147
+ export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
package/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import {
2
- auth_default
3
- } from "./chunks/BPM4DLZK.js";
4
1
  import {
5
2
  qix_default
6
- } from "./chunks/NR2F7MAJ.js";
3
+ } from "./chunks/IEB2MTJ3.js";
4
+ import {
5
+ auth_default
6
+ } from "./chunks/JR4AYAEK.js";
7
7
  import {
8
8
  clearApiCache,
9
9
  invokeFetch
10
- } from "./chunks/S3X62FNR.js";
10
+ } from "./chunks/QXDBGF7B.js";
11
+ import "./chunks/7C6WMELW.js";
11
12
  import "./chunks/2ZQ3ZX7F.js";
12
- import "./chunks/I5CSZHWM.js";
13
13
 
14
14
  // src/public/public-runtime-api-generator/public-runtime-api-generator.ts
15
15
  var methodAbbreviations = {
@@ -226,7 +226,7 @@ var apps = apiDefToApi("apps", {
226
226
  },
227
227
  scripts: {
228
228
  "": ["getAppScriptHistory:GQ:", "updateAppScript:PBJ:"],
229
- "{version}": ["deleteAppScript:D:", "getAppScript:G:", "patchAppScript:ABJ:"]
229
+ "{id}": ["deleteAppScript:D:", "getAppScript:G:", "patchAppScript:ABJ:"]
230
230
  },
231
231
  space: ["removeAppFromSpace:D:", "moveAppToSpace:UBJ:"]
232
232
  },
@@ -520,6 +520,9 @@ var reloads = apiDefToApi("reloads", {
520
520
  }
521
521
  }
522
522
  });
523
+ var reports = apiDefToApi("reports", {
524
+ api: { v1: { reports: { "": ["createReport:PBJ:"], "{id}": { status: ["getReportStatus:G:"] } } } }
525
+ });
523
526
  var roles = apiDefToApi("roles", {
524
527
  api: { v1: { roles: { "": ["getRoles:GQ:"], "{id}": ["getRole:G:"] } } }
525
528
  });
@@ -667,6 +670,7 @@ var api = {
667
670
  quotas,
668
671
  reloadTasks,
669
672
  reloads,
673
+ reports,
670
674
  roles,
671
675
  spaces,
672
676
  tempContents,
@@ -703,6 +707,7 @@ export {
703
707
  quotas,
704
708
  reloadTasks,
705
709
  reloads,
710
+ reports,
706
711
  roles,
707
712
  spaces,
708
713
  tempContents,
package/items.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/items.ts
9
9
  var getItems = async (query, options) => invokeFetch("items", {
package/licenses.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/S3X62FNR.js";
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
5
6
  import "./chunks/2ZQ3ZX7F.js";
6
- import "./chunks/I5CSZHWM.js";
7
7
 
8
8
  // src/public/rest/licenses.ts
9
9
  var getLicenseAssignments = async (query, options) => invokeFetch("licenses", {
package/package.json CHANGED
@@ -41,6 +41,7 @@
41
41
  "./quotas": "./quotas.js",
42
42
  "./reload-tasks": "./reload-tasks.js",
43
43
  "./reloads": "./reloads.js",
44
+ "./reports": "./reports.js",
44
45
  "./roles": "./roles.js",
45
46
  "./spaces": "./spaces.js",
46
47
  "./temp-contents": "./temp-contents.js",
@@ -54,5 +55,5 @@
54
55
  "./qix": "./qix.js",
55
56
  "./auth": "./auth.js"
56
57
  },
57
- "version": "1.6.1"
58
+ "version": "1.8.0"
58
59
  }