@qlik/api 1.31.0 → 1.32.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 (95) hide show
  1. package/api-keys.js +2 -2
  2. package/apps.js +2 -2
  3. package/assistants.d.ts +1301 -0
  4. package/assistants.js +273 -0
  5. package/audits.js +2 -2
  6. package/auth.js +2 -2
  7. package/automation-connections.d.ts +366 -0
  8. package/automation-connections.js +91 -0
  9. package/automations.js +2 -2
  10. package/automl-deployments.d.ts +97 -0
  11. package/automl-deployments.js +27 -0
  12. package/automl-predictions.d.ts +214 -0
  13. package/automl-predictions.js +72 -0
  14. package/brands.js +2 -2
  15. package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
  16. package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
  17. package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
  18. package/collections.js +2 -2
  19. package/conditions.d.ts +662 -0
  20. package/conditions.js +113 -0
  21. package/consumption.d.ts +182 -0
  22. package/consumption.js +24 -0
  23. package/csp-origins.js +2 -2
  24. package/csrf-token.d.ts +62 -0
  25. package/csrf-token.js +23 -0
  26. package/data-alerts.d.ts +1004 -0
  27. package/data-alerts.js +155 -0
  28. package/data-assets.js +2 -2
  29. package/data-connections.js +2 -2
  30. package/data-credentials.js +2 -2
  31. package/data-files.js +2 -2
  32. package/data-qualities.d.ts +175 -0
  33. package/data-qualities.js +44 -0
  34. package/data-sets.d.ts +424 -0
  35. package/data-sets.js +75 -0
  36. package/data-sources.d.ts +268 -0
  37. package/data-sources.js +39 -0
  38. package/data-stores.d.ts +537 -0
  39. package/data-stores.js +108 -0
  40. package/dcaas.d.ts +192 -0
  41. package/dcaas.js +39 -0
  42. package/di-projects.d.ts +673 -0
  43. package/di-projects.js +164 -0
  44. package/encryption.d.ts +370 -0
  45. package/encryption.js +98 -0
  46. package/extensions.js +2 -2
  47. package/glossaries.js +2 -2
  48. package/groups.js +2 -2
  49. package/identity-providers.js +2 -2
  50. package/index.d.ts +105 -1
  51. package/index.js +556 -4
  52. package/items.js +2 -2
  53. package/knowledgebases.d.ts +890 -0
  54. package/knowledgebases.js +169 -0
  55. package/licenses.d.ts +1 -1
  56. package/licenses.js +2 -2
  57. package/lineage-graphs.d.ts +712 -0
  58. package/lineage-graphs.js +92 -0
  59. package/ml.d.ts +2628 -0
  60. package/ml.js +384 -0
  61. package/notes.d.ts +110 -0
  62. package/notes.js +31 -0
  63. package/notifications.d.ts +98 -0
  64. package/notifications.js +24 -0
  65. package/oauth-clients.js +2 -2
  66. package/oauth-tokens.d.ts +126 -0
  67. package/oauth-tokens.js +31 -0
  68. package/package.json +28 -2
  69. package/qix.d.ts +1 -1
  70. package/qix.js +2 -2
  71. package/questions.d.ts +364 -0
  72. package/questions.js +34 -0
  73. package/quotas.js +2 -2
  74. package/reload-tasks.js +2 -2
  75. package/reloads.js +2 -2
  76. package/report-templates.d.ts +287 -0
  77. package/report-templates.js +80 -0
  78. package/reports.js +2 -2
  79. package/roles.js +2 -2
  80. package/sharing-tasks.d.ts +952 -0
  81. package/sharing-tasks.js +105 -0
  82. package/spaces.js +2 -2
  83. package/tasks.d.ts +564 -0
  84. package/tasks.js +106 -0
  85. package/temp-contents.js +2 -2
  86. package/tenants.js +2 -2
  87. package/themes.js +2 -2
  88. package/transports.js +2 -2
  89. package/ui-config.d.ts +274 -0
  90. package/ui-config.js +77 -0
  91. package/users.js +2 -2
  92. package/web-integrations.js +2 -2
  93. package/web-notifications.js +2 -2
  94. package/webhooks.js +2 -2
  95. /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
@@ -0,0 +1,287 @@
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
+
4
+ type CreateTemplateRequest = {
5
+ /** Template description */
6
+ description?: string;
7
+ /** Template name */
8
+ name: string;
9
+ /** Specifies the action to perform with the given source app id. Use "validate" to verify that the template source app matches the provided value. Use "replace" to migrate the template to a different app by replacing the source app id. */
10
+ sourceAppAction?: "validate" | "replace";
11
+ /** The ID of the app that this template is using as data source. The id stored in the template file metadata is used if no value is specified. */
12
+ sourceAppId?: string;
13
+ /** The ID of a previously uploaded temporary content file */
14
+ temporaryContentId: string;
15
+ };
16
+ type ErrorResponseItem = {
17
+ /** The error code. */
18
+ code?: string;
19
+ /** A human-readable explanation specific to this occurrence of the problem. */
20
+ detail?: string;
21
+ /** Additional error metadata. */
22
+ meta?: unknown;
23
+ /** Summary of the problem. */
24
+ title?: string;
25
+ };
26
+ type ErrorResult = {
27
+ /** List of errors and their properties. */
28
+ errors?: ErrorResponseItem[];
29
+ readonly statusCode?: number;
30
+ };
31
+ type GetTemplatesResponse = {
32
+ /** The current page data. */
33
+ data?: ReportTemplateResponse[];
34
+ links?: PaginationLinks;
35
+ };
36
+ type Operation = {
37
+ from?: string;
38
+ op?: string;
39
+ path?: string;
40
+ value?: unknown;
41
+ };
42
+ type PaginationLink = {
43
+ /** The URL for the pagination link. */
44
+ href?: string;
45
+ };
46
+ type PaginationLinks = {
47
+ next?: PaginationLink;
48
+ prev?: PaginationLink;
49
+ self?: PaginationLink;
50
+ };
51
+ type ReportTemplateResponse = {
52
+ /** The date and time when the template was created. */
53
+ createdAt?: string;
54
+ /** The id of the user who created the template. */
55
+ createdBy?: string;
56
+ /** Template description */
57
+ description?: string;
58
+ /** The template ID */
59
+ id?: string;
60
+ /** The template metadata version */
61
+ metadataVersion?: number;
62
+ /** Template name */
63
+ name?: string;
64
+ /** The user that this template is scoped to. */
65
+ ownerId?: string;
66
+ /** The id of the app that this template is using as data source. */
67
+ sourceAppId?: string;
68
+ /** The name of the app that this template is using as data source. */
69
+ sourceAppName?: string;
70
+ /** The date and time when the template was last updated. */
71
+ updatedAt?: string;
72
+ /** The id of the user who last updated the template. */
73
+ updatedBy?: string;
74
+ };
75
+ type UpdateTemplateRequest = {
76
+ /** Template description */
77
+ description?: string;
78
+ /** Template name */
79
+ name: string;
80
+ /** Specifies the action to perform with the new source app. Use "validate" to verify that the source app of the uploaded template matches the target app. Use "replace" to migrate the uploaded template to the target app by replacing the source app id. */
81
+ sourceAppAction?: "validate" | "replace";
82
+ /** The ID of a previously uploaded temporary content file */
83
+ temporaryContentId: string;
84
+ };
85
+ /**
86
+ * Get descriptive info for the specified templates.
87
+ *
88
+ * @param query an object with query parameters
89
+ * @throws GetReportTemplatesHttpError
90
+ */
91
+ declare const getReportTemplates: (query: {
92
+ /** If present, restrict the number of returned items to this value. */
93
+ limit?: number;
94
+ /** Template name to search and filter for. Case-insensitive open search with wildcards both as prefix and suffix. */
95
+ name?: string;
96
+ /** Return the templates for the specified owner. */
97
+ ownerId?: string;
98
+ /** If present, skip this number of the returned values in the result set (facilitates paging). */
99
+ skip?: number;
100
+ /** Field to sort by. Prefix with +/- to indicate ascending/descending. By default, the sort order is ascending. */
101
+ sort?: ("name" | "+name" | "-name" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt" | "type" | "+type" | "-type")[];
102
+ /** Return the templates that are using the specified app as data source. */
103
+ sourceAppId?: string;
104
+ }, options?: ApiCallOptions) => Promise<GetReportTemplatesHttpResponse>;
105
+ type GetReportTemplatesHttpResponse = {
106
+ data: GetTemplatesResponse;
107
+ headers: Headers;
108
+ status: 200;
109
+ prev?: (options?: ApiCallOptions) => Promise<GetReportTemplatesHttpResponse>;
110
+ next?: (options?: ApiCallOptions) => Promise<GetReportTemplatesHttpResponse>;
111
+ };
112
+ type GetReportTemplatesHttpError = {
113
+ data: ErrorResult;
114
+ headers: Headers;
115
+ status: 400;
116
+ };
117
+ /**
118
+ * Create a new report template.
119
+ *
120
+ * @param body an object with the body content
121
+ * @throws CreateReportTemplateHttpError
122
+ */
123
+ declare const createReportTemplate: (body: CreateTemplateRequest, options?: ApiCallOptions) => Promise<CreateReportTemplateHttpResponse>;
124
+ type CreateReportTemplateHttpResponse = {
125
+ data: ReportTemplateResponse;
126
+ headers: Headers;
127
+ status: 201;
128
+ };
129
+ type CreateReportTemplateHttpError = {
130
+ data: ErrorResult;
131
+ headers: Headers;
132
+ status: 400 | 403 | 404 | 413;
133
+ };
134
+ /**
135
+ * Delete the specified report template.
136
+ *
137
+ * @param id The ID of the report template to delete.
138
+ * @throws DeleteReportTemplateHttpError
139
+ */
140
+ declare const deleteReportTemplate: (id: string, options?: ApiCallOptions) => Promise<DeleteReportTemplateHttpResponse>;
141
+ type DeleteReportTemplateHttpResponse = {
142
+ data: void;
143
+ headers: Headers;
144
+ status: 204;
145
+ };
146
+ type DeleteReportTemplateHttpError = {
147
+ data: ErrorResult;
148
+ headers: Headers;
149
+ status: 400 | 403 | 404;
150
+ };
151
+ /**
152
+ * Get descriptive info for the specified report template.
153
+ *
154
+ * @param id The ID of the report template.
155
+ * @throws GetReportTemplateHttpError
156
+ */
157
+ declare const getReportTemplate: (id: string, options?: ApiCallOptions) => Promise<GetReportTemplateHttpResponse>;
158
+ type GetReportTemplateHttpResponse = {
159
+ data: ReportTemplateResponse;
160
+ headers: Headers;
161
+ status: 200;
162
+ };
163
+ type GetReportTemplateHttpError = {
164
+ data: ErrorResult;
165
+ headers: Headers;
166
+ status: 400 | 403 | 404;
167
+ };
168
+ /**
169
+ * Patch an existing report template.
170
+ *
171
+ * @param id The ID of the report template to patch.
172
+ * @param body an object with the body content
173
+ * @throws PatchReportTemplateHttpError
174
+ */
175
+ declare const patchReportTemplate: (id: string, body: Operation[], options?: ApiCallOptions) => Promise<PatchReportTemplateHttpResponse>;
176
+ type PatchReportTemplateHttpResponse = {
177
+ data: void;
178
+ headers: Headers;
179
+ status: 204;
180
+ };
181
+ type PatchReportTemplateHttpError = {
182
+ data: ErrorResult;
183
+ headers: Headers;
184
+ status: 400 | 403 | 404 | 409 | 413;
185
+ };
186
+ /**
187
+ * Update an existing report template.
188
+ *
189
+ * @param id The ID of the report template to update.
190
+ * @param body an object with the body content
191
+ * @throws UpdateReportTemplateHttpError
192
+ */
193
+ declare const updateReportTemplate: (id: string, body: UpdateTemplateRequest, options?: ApiCallOptions) => Promise<UpdateReportTemplateHttpResponse>;
194
+ type UpdateReportTemplateHttpResponse = {
195
+ data: ReportTemplateResponse;
196
+ headers: Headers;
197
+ status: 201;
198
+ };
199
+ type UpdateReportTemplateHttpError = {
200
+ data: ErrorResult;
201
+ headers: Headers;
202
+ status: 400 | 403 | 404 | 409 | 413;
203
+ };
204
+ /**
205
+ * Download the template file of the specified report template
206
+ *
207
+ * @param id The ID of the report template.
208
+ * @throws DownloadReportTemplateHttpError
209
+ */
210
+ declare const downloadReportTemplate: (id: string, options?: ApiCallOptions) => Promise<DownloadReportTemplateHttpResponse>;
211
+ type DownloadReportTemplateHttpResponse = {
212
+ data: DownloadableBlob;
213
+ headers: Headers;
214
+ status: 200;
215
+ };
216
+ type DownloadReportTemplateHttpError = {
217
+ data: ErrorResult;
218
+ headers: Headers;
219
+ status: 400 | 403 | 404;
220
+ };
221
+ /**
222
+ * Clears the cache for report-templates api requests.
223
+ */
224
+ declare function clearCache(): void;
225
+ interface ReportTemplatesAPI {
226
+ /**
227
+ * Get descriptive info for the specified templates.
228
+ *
229
+ * @param query an object with query parameters
230
+ * @throws GetReportTemplatesHttpError
231
+ */
232
+ getReportTemplates: typeof getReportTemplates;
233
+ /**
234
+ * Create a new report template.
235
+ *
236
+ * @param body an object with the body content
237
+ * @throws CreateReportTemplateHttpError
238
+ */
239
+ createReportTemplate: typeof createReportTemplate;
240
+ /**
241
+ * Delete the specified report template.
242
+ *
243
+ * @param id The ID of the report template to delete.
244
+ * @throws DeleteReportTemplateHttpError
245
+ */
246
+ deleteReportTemplate: typeof deleteReportTemplate;
247
+ /**
248
+ * Get descriptive info for the specified report template.
249
+ *
250
+ * @param id The ID of the report template.
251
+ * @throws GetReportTemplateHttpError
252
+ */
253
+ getReportTemplate: typeof getReportTemplate;
254
+ /**
255
+ * Patch an existing report template.
256
+ *
257
+ * @param id The ID of the report template to patch.
258
+ * @param body an object with the body content
259
+ * @throws PatchReportTemplateHttpError
260
+ */
261
+ patchReportTemplate: typeof patchReportTemplate;
262
+ /**
263
+ * Update an existing report template.
264
+ *
265
+ * @param id The ID of the report template to update.
266
+ * @param body an object with the body content
267
+ * @throws UpdateReportTemplateHttpError
268
+ */
269
+ updateReportTemplate: typeof updateReportTemplate;
270
+ /**
271
+ * Download the template file of the specified report template
272
+ *
273
+ * @param id The ID of the report template.
274
+ * @throws DownloadReportTemplateHttpError
275
+ */
276
+ downloadReportTemplate: typeof downloadReportTemplate;
277
+ /**
278
+ * Clears the cache for report-templates api requests.
279
+ */
280
+ clearCache: typeof clearCache;
281
+ }
282
+ /**
283
+ * Functions for the report-templates api
284
+ */
285
+ declare const reportTemplatesExport: ReportTemplatesAPI;
286
+
287
+ export { type CreateReportTemplateHttpError, type CreateReportTemplateHttpResponse, type CreateTemplateRequest, type DeleteReportTemplateHttpError, type DeleteReportTemplateHttpResponse, type DownloadReportTemplateHttpError, type DownloadReportTemplateHttpResponse, type ErrorResponseItem, type ErrorResult, type GetReportTemplateHttpError, type GetReportTemplateHttpResponse, type GetReportTemplatesHttpError, type GetReportTemplatesHttpResponse, type GetTemplatesResponse, type Operation, type PaginationLink, type PaginationLinks, type PatchReportTemplateHttpError, type PatchReportTemplateHttpResponse, type ReportTemplateResponse, type ReportTemplatesAPI, type UpdateReportTemplateHttpError, type UpdateReportTemplateHttpResponse, type UpdateTemplateRequest, clearCache, createReportTemplate, reportTemplatesExport as default, deleteReportTemplate, downloadReportTemplate, getReportTemplate, getReportTemplates, patchReportTemplate, updateReportTemplate };
@@ -0,0 +1,80 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/report-templates.ts
9
+ var getReportTemplates = async (query, options) => invokeFetch("report-templates", {
10
+ method: "get",
11
+ pathTemplate: "/api/v1/report-templates",
12
+ query,
13
+ options
14
+ });
15
+ var createReportTemplate = async (body, options) => invokeFetch("report-templates", {
16
+ method: "post",
17
+ pathTemplate: "/api/v1/report-templates",
18
+ body,
19
+ contentType: "application/json",
20
+ options
21
+ });
22
+ var deleteReportTemplate = async (id, options) => invokeFetch("report-templates", {
23
+ method: "delete",
24
+ pathTemplate: "/api/v1/report-templates/{id}",
25
+ pathVariables: { id },
26
+ options
27
+ });
28
+ var getReportTemplate = async (id, options) => invokeFetch("report-templates", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/report-templates/{id}",
31
+ pathVariables: { id },
32
+ options
33
+ });
34
+ var patchReportTemplate = async (id, body, options) => invokeFetch("report-templates", {
35
+ method: "patch",
36
+ pathTemplate: "/api/v1/report-templates/{id}",
37
+ pathVariables: { id },
38
+ body,
39
+ contentType: "application/json",
40
+ options
41
+ });
42
+ var updateReportTemplate = async (id, body, options) => invokeFetch("report-templates", {
43
+ method: "put",
44
+ pathTemplate: "/api/v1/report-templates/{id}",
45
+ pathVariables: { id },
46
+ body,
47
+ contentType: "application/json",
48
+ options
49
+ });
50
+ var downloadReportTemplate = async (id, options) => invokeFetch("report-templates", {
51
+ method: "post",
52
+ pathTemplate: "/api/v1/report-templates/{id}/actions/download",
53
+ pathVariables: { id },
54
+ options
55
+ });
56
+ function clearCache() {
57
+ return clearApiCache("report-templates");
58
+ }
59
+ var reportTemplatesExport = {
60
+ getReportTemplates,
61
+ createReportTemplate,
62
+ deleteReportTemplate,
63
+ getReportTemplate,
64
+ patchReportTemplate,
65
+ updateReportTemplate,
66
+ downloadReportTemplate,
67
+ clearCache
68
+ };
69
+ var report_templates_default = reportTemplatesExport;
70
+ export {
71
+ clearCache,
72
+ createReportTemplate,
73
+ report_templates_default as default,
74
+ deleteReportTemplate,
75
+ downloadReportTemplate,
76
+ getReportTemplate,
77
+ getReportTemplates,
78
+ patchReportTemplate,
79
+ updateReportTemplate
80
+ };
package/reports.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/reports.ts
package/roles.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/roles.ts