@qlik/api 1.31.0 → 1.33.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.
Files changed (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +329 -0
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +113 -4
  78. package/index.js +626 -40
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +287 -0
  112. package/report-templates.js +94 -0
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +274 -0
  132. package/ui-config.js +91 -0
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/interceptors.d.ts CHANGED
@@ -1,5 +1,12 @@
1
- import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ /**
5
+ * This module provides a way to intercept requests and responses in the qmfe-api.
6
+ * It allows you to modify the request before it is sent and the response before it is returned.
7
+ * This is useful for adding headers, modifying the request body, or handling errors.
8
+ * @module interceptors
9
+ */
3
10
 
4
11
  /**
5
12
  * The RestInterceptor type is a function that can be used to intercept requests and responses
package/interceptors.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  getInterceptors,
6
6
  interceptors_default,
7
7
  removeInterceptor
8
- } from "./chunks/3RGGGGAR.js";
9
- import "./chunks/2ZQ3ZX7F.js";
8
+ } from "./chunks/ZCTVPXGO.js";
9
+ import "./chunks/7MMXU6EL.js";
10
10
  export {
11
11
  addDefaultInterceptors,
12
12
  addInterceptor,
@@ -0,0 +1,98 @@
1
+ import { H as HostConfig } from './auth-types-Cj5bM3Yk.js';
2
+
3
+ /** The typical base return type of a fetch call */
4
+ type InvokeFetchResponse = {
5
+ status: number;
6
+ headers: Headers;
7
+ data: unknown;
8
+ prev?: () => Promise<InvokeFetchResponse>;
9
+ next?: () => Promise<InvokeFetchResponse>;
10
+ };
11
+ /** Additional options for an api call done with invoke-fetch */
12
+ type ApiCallOptions = {
13
+ /** Additional headers to pass on to the request. */
14
+ headers?: Record<string, string>;
15
+ /** if set to true the call will not use a cached result */
16
+ noCache?: boolean;
17
+ /**
18
+ * Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
19
+ */
20
+ maxCacheAge?: number | undefined;
21
+ /**
22
+ * Only results cached on or after the `ifCachedSince` timestamp are used.
23
+ */
24
+ useCacheIfAfter?: Date;
25
+ /**
26
+ * Specify the host configif the api call is a cross-domain request. Typically used in embedding and mashups
27
+ */
28
+ hostConfig?: HostConfig;
29
+ /**
30
+ * Set the amount of time to wait for a response.
31
+ * If the timeout is exceeded the request is aborted.
32
+ * If both timeoutMs and signal is present, timeoutMs will have no effect, as
33
+ * there is already an abort-signal specified.
34
+ */
35
+ timeoutMs?: number;
36
+ /**
37
+ * An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
38
+ * by taking the .signal property of an AbortController.
39
+ */
40
+ signal?: AbortSignal;
41
+ /**
42
+ * Ensure that the request is kept alive even if the page that initiated it is unloaded
43
+ * before the request is completed.
44
+ */
45
+ keepalive?: boolean;
46
+ /**
47
+ * Options for progress-reporting. Specify any combination of the callbacks `onUpload`
48
+ * and `onDownload`. Progress will be reported continuously.
49
+ */
50
+ progress?: ProgressOptions;
51
+ };
52
+ type InvokeFetchProperties = {
53
+ /** http method */
54
+ method: string;
55
+ /** data passed to api call */
56
+ body?: unknown;
57
+ /** additional api call options */
58
+ options?: ApiCallOptions;
59
+ /** override default RequestInit options */
60
+ requestInitOverrides?: RequestInit;
61
+ /** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
62
+ pathTemplate: string;
63
+ /** path variables to be used in the path template */
64
+ pathVariables?: Record<string, string>;
65
+ /** additional query to url */
66
+ query?: Record<string, unknown>;
67
+ /** specify what content-type to send, if omitted "application/json" is assumed */
68
+ contentType?: string;
69
+ /** override the default user-agent with this value. This will also override any browser's UA. */
70
+ userAgent?: string;
71
+ };
72
+ type DownloadableBlob = Blob & {
73
+ /** download the blob in a using the specified filename */
74
+ download: (filename: string) => Promise<void>;
75
+ };
76
+ /** The callback options for reporting progress. */
77
+ type ProgressOptions = {
78
+ /** upload callback, called repeatedly when upload-progress is available */
79
+ onUpload?: (event: PartialProgressEvent) => void;
80
+ /** download callback, called repeatedly when upload-progress is available */
81
+ onDownload?: (event: PartialProgressEvent) => void;
82
+ };
83
+ /** Represents the current upload or download progress a API-call.
84
+ *
85
+ * It contains the number of loaded bytes and, if computable, the total payload size.
86
+ * If the total size cannot be determined, `total` will be undefined.
87
+ *
88
+ *
89
+ * See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
90
+ */
91
+ type PartialProgressEvent = {
92
+ /** Number of bytes currently loaded. */
93
+ loaded: ProgressEvent["loaded"];
94
+ /** The total size of the payload, if computable. */
95
+ total?: ProgressEvent["total"];
96
+ };
97
+
98
+ export type { ApiCallOptions as A, DownloadableBlob as D, InvokeFetchResponse as I, InvokeFetchProperties as a };
package/items.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type CollectionTypes = "private" | "public" | "publicgoverned";
5
5
  type ErrorResponseBody = {
@@ -110,6 +110,7 @@ type CollectionsLinksResponseBody = {
110
110
  type ItemLinksResponseBody = {
111
111
  collections?: Link;
112
112
  open?: Link;
113
+ qvPlugin?: Link;
113
114
  self?: Link;
114
115
  thumbnail?: Link;
115
116
  };
@@ -251,7 +252,7 @@ type SpaceTypeEnum = "shared" | "managed" | "personal" | "data";
251
252
  * @param query an object with query parameters
252
253
  * @throws GetItemsHttpError
253
254
  */
254
- declare const getItems: (query: {
255
+ declare function getItems(query: {
255
256
  /** The collection's unique identifier. Used to filter for items with a specific tag (collection type `public`), or collection. */
256
257
  collectionId?: string;
257
258
  /** User's unique identifier. */
@@ -295,7 +296,7 @@ declare const getItems: (query: {
295
296
  spaceId?: string;
296
297
  /** The case-sensitive string used to filter items on space type(s). For example '?spaceType=shared,personal'. */
297
298
  spaceType?: SpaceTypeEnum;
298
- }, options?: ApiCallOptions) => Promise<GetItemsHttpResponse>;
299
+ }, options?: ApiCallOptions): Promise<GetItemsHttpResponse>;
299
300
  type GetItemsHttpResponse = {
300
301
  data: ItemsListItemsResponseBody;
301
302
  headers: Headers;
@@ -313,7 +314,7 @@ type GetItemsHttpError = {
313
314
  *
314
315
  * @throws GetItemsSettingsHttpError
315
316
  */
316
- declare const getItemsSettings: (options?: ApiCallOptions) => Promise<GetItemsSettingsHttpResponse>;
317
+ declare function getItemsSettings(options?: ApiCallOptions): Promise<GetItemsSettingsHttpResponse>;
317
318
  type GetItemsSettingsHttpResponse = {
318
319
  data: ItemsSettingsResponseBody;
319
320
  headers: Headers;
@@ -330,7 +331,7 @@ type GetItemsSettingsHttpError = {
330
331
  * @param body an object with the body content
331
332
  * @throws PatchItemsSettingsHttpError
332
333
  */
333
- declare const patchItemsSettings: (body: ItemsSettingsPatch, options?: ApiCallOptions) => Promise<PatchItemsSettingsHttpResponse>;
334
+ declare function patchItemsSettings(body: ItemsSettingsPatch, options?: ApiCallOptions): Promise<PatchItemsSettingsHttpResponse>;
334
335
  type PatchItemsSettingsHttpResponse = {
335
336
  data: ItemsSettingsResponseBody;
336
337
  headers: Headers;
@@ -347,7 +348,7 @@ type PatchItemsSettingsHttpError = {
347
348
  * @param itemId The item's unique identifier.
348
349
  * @throws DeleteItemHttpError
349
350
  */
350
- declare const deleteItem: (itemId: string, options?: ApiCallOptions) => Promise<DeleteItemHttpResponse>;
351
+ declare function deleteItem(itemId: string, options?: ApiCallOptions): Promise<DeleteItemHttpResponse>;
351
352
  type DeleteItemHttpResponse = {
352
353
  data: void;
353
354
  headers: Headers;
@@ -364,7 +365,7 @@ type DeleteItemHttpError = {
364
365
  * @param itemId The item's unique identifier
365
366
  * @throws GetItemHttpError
366
367
  */
367
- declare const getItem: (itemId: string, options?: ApiCallOptions) => Promise<GetItemHttpResponse>;
368
+ declare function getItem(itemId: string, options?: ApiCallOptions): Promise<GetItemHttpResponse>;
368
369
  type GetItemHttpResponse = {
369
370
  data: ItemResultResponseBody;
370
371
  headers: Headers;
@@ -382,7 +383,7 @@ type GetItemHttpError = {
382
383
  * @param body an object with the body content
383
384
  * @throws UpdateItemHttpError
384
385
  */
385
- declare const updateItem: (itemId: string, body: ItemsUpdateItemRequestBody, options?: ApiCallOptions) => Promise<UpdateItemHttpResponse>;
386
+ declare function updateItem(itemId: string, body: ItemsUpdateItemRequestBody, options?: ApiCallOptions): Promise<UpdateItemHttpResponse>;
386
387
  type UpdateItemHttpResponse = {
387
388
  data: ItemResultResponseBody;
388
389
  headers: Headers;
@@ -400,7 +401,7 @@ type UpdateItemHttpError = {
400
401
  * @param query an object with query parameters
401
402
  * @throws GetItemCollectionsHttpError
402
403
  */
403
- declare const getItemCollections: (itemId: string, query: {
404
+ declare function getItemCollections(itemId: string, query: {
404
405
  /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
405
406
  limit?: number;
406
407
  /** The case-sensitive string used to search for a collection by name. */
@@ -415,7 +416,7 @@ declare const getItemCollections: (itemId: string, query: {
415
416
  sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
416
417
  /** The case-sensitive string used to search for a collection by type. */
417
418
  type?: CollectionTypes;
418
- }, options?: ApiCallOptions) => Promise<GetItemCollectionsHttpResponse>;
419
+ }, options?: ApiCallOptions): Promise<GetItemCollectionsHttpResponse>;
419
420
  type GetItemCollectionsHttpResponse = {
420
421
  data: ItemsListItemCollectionsResponseBody;
421
422
  headers: Headers;
@@ -435,7 +436,7 @@ type GetItemCollectionsHttpError = {
435
436
  * @param query an object with query parameters
436
437
  * @throws GetPublishedItemsHttpError
437
438
  */
438
- declare const getPublishedItems: (itemId: string, query: {
439
+ declare function getPublishedItems(itemId: string, query: {
439
440
  /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
440
441
  limit?: number;
441
442
  /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
@@ -446,7 +447,7 @@ declare const getPublishedItems: (itemId: string, query: {
446
447
  resourceType?: ItemResourceTypeEnum;
447
448
  /** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
448
449
  sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
449
- }, options?: ApiCallOptions) => Promise<GetPublishedItemsHttpResponse>;
450
+ }, options?: ApiCallOptions): Promise<GetPublishedItemsHttpResponse>;
450
451
  type GetPublishedItemsHttpResponse = {
451
452
  data: ItemsListItemCollectionsResponseBody;
452
453
  headers: Headers;
package/items.js CHANGED
@@ -1,63 +1,79 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/items.ts
9
- var getItems = async (query, options) => invokeFetch("items", {
10
- method: "get",
11
- pathTemplate: "/api/v1/items",
12
- query,
13
- options
14
- });
15
- var getItemsSettings = async (options) => invokeFetch("items", {
16
- method: "get",
17
- pathTemplate: "/api/v1/items/settings",
18
- options
19
- });
20
- var patchItemsSettings = async (body, options) => invokeFetch("items", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/items/settings",
23
- body,
24
- contentType: "application/json",
25
- options
26
- });
27
- var deleteItem = async (itemId, options) => invokeFetch("items", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/items/{itemId}",
30
- pathVariables: { itemId },
31
- options
32
- });
33
- var getItem = async (itemId, options) => invokeFetch("items", {
34
- method: "get",
35
- pathTemplate: "/api/v1/items/{itemId}",
36
- pathVariables: { itemId },
37
- options
38
- });
39
- var updateItem = async (itemId, body, options) => invokeFetch("items", {
40
- method: "put",
41
- pathTemplate: "/api/v1/items/{itemId}",
42
- pathVariables: { itemId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- var getItemCollections = async (itemId, query, options) => invokeFetch("items", {
48
- method: "get",
49
- pathTemplate: "/api/v1/items/{itemId}/collections",
50
- pathVariables: { itemId },
51
- query,
52
- options
53
- });
54
- var getPublishedItems = async (itemId, query, options) => invokeFetch("items", {
55
- method: "get",
56
- pathTemplate: "/api/v1/items/{itemId}/publisheditems",
57
- pathVariables: { itemId },
58
- query,
59
- options
60
- });
9
+ async function getItems(query, options) {
10
+ return invokeFetch("items", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/items",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function getItemsSettings(options) {
18
+ return invokeFetch("items", {
19
+ method: "get",
20
+ pathTemplate: "/api/v1/items/settings",
21
+ options
22
+ });
23
+ }
24
+ async function patchItemsSettings(body, options) {
25
+ return invokeFetch("items", {
26
+ method: "patch",
27
+ pathTemplate: "/api/v1/items/settings",
28
+ body,
29
+ contentType: "application/json",
30
+ options
31
+ });
32
+ }
33
+ async function deleteItem(itemId, options) {
34
+ return invokeFetch("items", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/items/{itemId}",
37
+ pathVariables: { itemId },
38
+ options
39
+ });
40
+ }
41
+ async function getItem(itemId, options) {
42
+ return invokeFetch("items", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/items/{itemId}",
45
+ pathVariables: { itemId },
46
+ options
47
+ });
48
+ }
49
+ async function updateItem(itemId, body, options) {
50
+ return invokeFetch("items", {
51
+ method: "put",
52
+ pathTemplate: "/api/v1/items/{itemId}",
53
+ pathVariables: { itemId },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
59
+ async function getItemCollections(itemId, query, options) {
60
+ return invokeFetch("items", {
61
+ method: "get",
62
+ pathTemplate: "/api/v1/items/{itemId}/collections",
63
+ pathVariables: { itemId },
64
+ query,
65
+ options
66
+ });
67
+ }
68
+ async function getPublishedItems(itemId, query, options) {
69
+ return invokeFetch("items", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/items/{itemId}/publisheditems",
72
+ pathVariables: { itemId },
73
+ query,
74
+ options
75
+ });
76
+ }
61
77
  function clearCache() {
62
78
  return clearApiCache("items");
63
79
  }