@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/reports.d.ts ADDED
@@ -0,0 +1,545 @@
1
+ import { A as ApiCallOptions } from './global.types-Xt6XzwlN.js';
2
+ import './auth-types-Bqw3vbLs.js';
3
+
4
+ /**
5
+ * Error in resource handling
6
+ */
7
+ type AppError = {
8
+ /** app id */
9
+ appId?: string;
10
+ /** The method that is failing. */
11
+ method?: string;
12
+ /** Parameters of method that fails. */
13
+ parameters?: unknown;
14
+ };
15
+ /**
16
+ * Errors occurring when dealing with the app.
17
+ */
18
+ type AppErrors = AppError[];
19
+ /**
20
+ * The callback to be performed once the report is done.
21
+ */
22
+ type CallBackAction = {
23
+ /** Http callback. The provided uri will be called once the report is done. */
24
+ httpRequest?: HttpRequest;
25
+ };
26
+ type ChainableSelection = {
27
+ persistentBookmark?: SensePersistentBookmark;
28
+ selectionFilter?: SelectionFilter;
29
+ selectionType: ChainableSelectionType;
30
+ /** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
31
+ temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
32
+ };
33
+ type ChainableSelectionType = "selectionFilter" | "persistentBookmark" | "temporaryBookmarkV2";
34
+ type ComposableTemplate = {
35
+ /** Used to export a single visualization as pdf, pptx or png. */
36
+ senseImageTemplate?: SenseImageTemplate;
37
+ /** Used to export a sheet as pdf or pptx. */
38
+ senseSheetTemplate?: SenseSheetTemplate;
39
+ /** Template type and version using semantic versioning. It must have the following name convention, dashed-separated-template-name-MAJOR.MINOR */
40
+ type: "sense-image-1.0" | "sense-sheet-1.0";
41
+ };
42
+ /**
43
+ * Definitions of common properties that are shared between templates, e.g. selectionsByState can be the same for all templates within a composition of templates.
44
+ */
45
+ type Definitions = {
46
+ /** It maps an ID to a selectionsByState object. */
47
+ selectionsByState?: unknown;
48
+ };
49
+ /**
50
+ * Properties of the document. In case of multiple composition, only properties specified in the composition output are taken and the ones specified in each output item are ignored.
51
+ */
52
+ type DocProperties = {
53
+ author?: string;
54
+ subject?: string;
55
+ title?: string;
56
+ };
57
+ type Error = {
58
+ /** Errors occured during report generation. */
59
+ errors?: ExportErrors;
60
+ };
61
+ /**
62
+ * Output to be used to export a excel template.
63
+ */
64
+ type ExcelOutput = {
65
+ /** The image format of the report to be produced. */
66
+ outFormat?: "xlsx";
67
+ };
68
+ /**
69
+ * Error occured during report generation.
70
+ */
71
+ type ExportError = {
72
+ /** The unique code for the error
73
+ *
74
+ * - "REP-400000" Bad request. The server could not understand the request due to invalid syntax.
75
+ * - "REP-400008" Selections error.
76
+ * - "REP-400009" Maximum 16384 columns limit exceeded. Download data in a visualization can't generate an .xlsx file due to limitations to the number of columns you can download.
77
+ * - "REP-400010" Maximum 1048566 rows limit exceeded. Download data in a visualization can't generate an .xlsx file due to limitations to the number of rows you can download.
78
+ * - "REP-400011" The size of the downloaded Excel file exceed 100 MB limit. Download data in a visualization can't generate an .xlsx file due to limitations to the amount of data you can download.
79
+ * - "REP-400015" Bad request in enigma request. The patch value has invalid JSON format.
80
+ * - "REP-401000" Unauthorized. The client must authenticate itself to get the requested response.
81
+ * - "REP-401001" Unauthorized, bad JWT.
82
+ * - "REP-403000" Forbidden. The client does not have access rights to the content.
83
+ * - "REP-403001" App forbidden, the user does not have read permission on the app.
84
+ * - "REP-403002" Chart type not supported.
85
+ * - "REP-404000" Not found. The server can not find the requested resource.
86
+ * - "REP-404001" App not found, the app does not exist or it has been deleted.
87
+ * - "REP-404002" Chart not found, the chart does not exist or it has been deleted.
88
+ * - "REP-404003" Sheet not found, the sheet does not exist or it has been deleted or it is unavailable.
89
+ * - "REP-404004" Story not found, the story does not exist or it has been deleted or it is unavailable.
90
+ * - "REP-429000" Too many request. The user has sent too many requests in a given amount of time ("rate limiting").
91
+ * - "REP-429012" Exceeded max session tenant quota. A tenant has opened too many different sessions at the same time.
92
+ * - "REP-429014" Reporting service was not able to return inside of request export deadline. Too many request at the same time for the same tenant.
93
+ * - "REP-429016" Exceeded max session tenant quota per day.
94
+ * - "REP-500000" Fail to resolve resource.
95
+ * - "REP-500006" Fail to get report session parameters.
96
+ * - "REP-503005" Engine unavailable, qix-sessions error no engines available.
97
+ * - "REP-503013" Session unavailable. The engine session used to create the report is unavailable.
98
+ * - "REP-500100" Image rendering generic error on Sense client.
99
+ * - "REP-500101" Image rendering could not set cookies error on Sense client.
100
+ * - "REP-400102" Image rendering invalid strategy error on Sense client.
101
+ * - "REP-500103" Image rendering JS timeout error on Sense client.
102
+ * - "REP-500104" Image rendering load URL timeout error on Sense client.
103
+ * - "REP-500105" Image rendering max paint attempts exceeded error on Sense client.
104
+ * - "REP-500106" Image rendering max JS attempts exceeded error on Sense client.
105
+ * - "REP-500107" Image rendering render timeout error on Sense client.
106
+ * - "REP-500108" Image rendering JS failure due to timeout error on Sense client.
107
+ * - "REP-500109" Image rendering generic JS failure error on Sense client.
108
+ * - "REP-400029" Reload Entitlement Limit Reached.
109
+ * - "REP-409046" Report aborted due to app reload.
110
+ * - "REP-500047" Error setting GroupState.
111
+ * - "REP-403048" Forbidden. User does not have permission to export the report (access control usePermission) */
112
+ code: string;
113
+ /** Optional. MAY be used to provide more concrete details. */
114
+ detail?: string;
115
+ /** Define the export error metadata. Each property is filled if it is related to the export error type. */
116
+ meta?: MetaExportError;
117
+ /** A summary in english explaining what went wrong. */
118
+ title: string;
119
+ };
120
+ /**
121
+ * Errors occured during report generation.
122
+ */
123
+ type ExportErrors = ExportError[];
124
+ type Float64 = number;
125
+ /**
126
+ * Http callback. The provided uri will be called once the report is done.
127
+ */
128
+ type HttpRequest = {
129
+ /** URI of the request. */
130
+ uri?: string;
131
+ };
132
+ /**
133
+ * Output to be used to export a single visualization as image.
134
+ */
135
+ type ImageOutput = {
136
+ /** Image resolution in DPI (default 96 DPI). */
137
+ outDpi?: number;
138
+ /** The image format of the report to be produced. */
139
+ outFormat?: "png" | "jsondata";
140
+ /** The scale factor to be applied in image scaling. A zoom greater than 5 will not be applied to the device pixel ratio which will remain fixed at 5. */
141
+ outZoom?: number;
142
+ };
143
+ /**
144
+ * Define the request metadata. It includes priority, deadline and future settings on execution policy of the request.
145
+ */
146
+ type Meta = {
147
+ /** The maximum interval, starting from the time the API request is received, within which a report must be produced, past this interval the report generation fails. The default value is 10 minutes, the maximum allowed value is 2 hours. */
148
+ exportDeadline?: string;
149
+ /** Time to live of the final result artifacts in ISO8601 duration format. After that duration the request and underlying output files will not be guaranteed to be available. Default is 1 hour. */
150
+ outputTtl?: string;
151
+ };
152
+ /**
153
+ * Define the export error metadata. Each property is filled if it is related to the export error type.
154
+ */
155
+ type MetaExportError = {
156
+ /** Errors occurring when dealing with the app. */
157
+ appErrors?: AppErrors;
158
+ /** Errors occurring in selections. */
159
+ selectionErrors?: SelectionErrors;
160
+ };
161
+ /**
162
+ * Patches to apply to sense charts. Patches are soft properties meaning that are not persistent and they live within a session.
163
+ */
164
+ type NxPatch = {
165
+ qOp: "add" | "remove" | "replace";
166
+ /** Path to the property to add, remove or replace. */
167
+ qPath: string;
168
+ /** Corresponds to the value of the property to add or to the new value of the property to update. */
169
+ qValue?: string;
170
+ };
171
+ type OutputItem = {
172
+ /** The callback to be performed once the report is done. */
173
+ callBackAction?: CallBackAction;
174
+ /** Output to be used to export a excel template. */
175
+ excelOutput?: ExcelOutput;
176
+ /** Output to be used to export a single visualization as image. */
177
+ imageOutput?: ImageOutput;
178
+ /** The output identifier which uniquely identifies an output (PDF, image etc.) within the same request. It does not need to be a GUID. No spaces and colons are allowed in the outputId string. */
179
+ outputId: string;
180
+ /** Output to be used to export a composition of templates as pdf. */
181
+ pdfCompositionOutput?: PdfCompositionOutput;
182
+ /** Output to be used to export a single visualization, a sheet, Sense Excel template as pdf. For Sense Excel template (sense-excel-template-1.0) no properties are needed, any property specified has no effect. */
183
+ pdfOutput?: PdfOutput;
184
+ /** Output to be used to export a composition of templates as pptx. */
185
+ pptxCompositionOutput?: PptxCompositionOutput;
186
+ /** Output to be used to export a single visualization or a sheet as PowerPoint presentation. */
187
+ pptxOutput?: PptxOutput;
188
+ /** The generated report type.
189
+ *
190
+ * Each template type supports specific output types:
191
+ * - composition-1.0 supports only pdfcomposition and pptxcomposition output types
192
+ * - excel-1.0 supports only excel and pdf output type
193
+ * - sense-image-1.0 supports pdf, pptx and image output types
194
+ * - sense-sheet-1.0 supports pdf and pptx output type
195
+ *
196
+ * Each output type requires a specific output to be provided:
197
+ * - excel requires excelOutput to be set
198
+ * - pdfcomposition requires pdfCompositionOutput to be set
199
+ * - pptxcomposition requires pptxCompositionOutput to be set
200
+ * - pdf requires pdfOuput to be set
201
+ * - pptx requires pptxOuput to be set
202
+ * - image requires imageOutput to be set
203
+ * - csv doesn't have csv output. */
204
+ type: "image" | "pdf" | "xlsx" | "jsondata" | "pdfcomposition" | "excel" | "pptx" | "pptxcomposition" | "csv" | "cycle";
205
+ };
206
+ /**
207
+ * Output to be used to export a composition of templates as pdf.
208
+ */
209
+ type PdfCompositionOutput = {
210
+ /** The ordered list of PDF outputs, the number must match the composable templates. */
211
+ pdfOutputs?: PdfOutput[];
212
+ /** Properties of the document. In case of multiple composition, only properties specified in the composition output are taken and the ones specified in each output item are ignored. */
213
+ properties?: DocProperties;
214
+ };
215
+ /**
216
+ * Output to be used to export a single visualization, a sheet, Sense Excel template as pdf. For Sense Excel template (sense-excel-template-1.0) no properties are needed, any property specified has no effect.
217
+ */
218
+ type PdfOutput = {
219
+ /** Content alignment. */
220
+ align?: {
221
+ horizontal?: "left" | "center" | "right";
222
+ vertical?: "top" | "middle" | "bottom";
223
+ };
224
+ /** This value is used for rendered images only, set to a default of 300 dpi. */
225
+ imageRenderingDpi?: number;
226
+ /** P for portrait, L for landscape and A for auto-detect. Auto-detect sets the orientation depending on the content width and height proportions: if content width > height the orientation is automatically set to landscape, portrait otherwise. */
227
+ orientation?: "P" | "L" | "A";
228
+ /** Properties of the document. In case of multiple composition, only properties specified in the composition output are taken and the ones specified in each output item are ignored. */
229
+ properties?: DocProperties;
230
+ /** The area where the object (eg. sheet, chart) is printed. Required in case of "fit" resizeType. */
231
+ resizeData?: {
232
+ /** The size of the area in the following format "{width}{cm|mm}x{height}{cm|mm}" (e.g. "297mmx210mm"). Please remember that PDF page orientation (landscape or portrait) should match the width and height set for this field (eg. A4 landscape is "297mmx210mm", A4 portrait is "210mmx287mm"). Note that the minimum printable area is 1.5cmx1.5cm (corresponding to 0.6x0.6 inches at 96 DPI). */
233
+ fit?: string;
234
+ };
235
+ /** The type of resize to be performed:
236
+ * - none is used to export a visualization, sheet or story as is (e.g. normal size), regardless of its size. This may result in cropping.
237
+ * - autofit automatically fits the visualization, sheet or story into the output size (i.e. A4, A3 etc.). Any provided resizeData parameter will be ignored for this configuration.
238
+ * - fit fits the visualization, sheet or story into the area specified in resizeData. The content will be rescaled to fit in that area. */
239
+ resizeType?: "none" | "autofit" | "fit";
240
+ /** Size of the pdf page. */
241
+ size?: "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "Letter" | "Legal" | "Tabloid";
242
+ };
243
+ /**
244
+ * Output to be used to export a composition of templates as pptx.
245
+ */
246
+ type PptxCompositionOutput = {
247
+ /** Output to be used to export a single visualization or a sheet as PowerPoint presentation. */
248
+ pptxOutput?: PptxOutput;
249
+ };
250
+ /**
251
+ * Output to be used to export a single visualization or a sheet as PowerPoint presentation.
252
+ */
253
+ type PptxOutput = {
254
+ /** This value is used for rendered images only, set to a default of 300 dpi. */
255
+ imageRenderingDpi?: number;
256
+ /** L for landscape, P for portrait and A for auto-detect. Auto-detect sets landscape, the default PowerPoint orientation. */
257
+ orientation?: "L" | "P" | "A";
258
+ /** Properties of the document. In case of multiple composition, only properties specified in the composition output are taken and the ones specified in each output item are ignored. */
259
+ properties?: DocProperties;
260
+ /** The type of resize to be performed. Autofit automatically fits the visualization, sheet or story into the output size (i.e. Widescreen, OnScreen etc.). */
261
+ resizeType?: "autofit";
262
+ /** Size of the PowerPoint slide:
263
+ * - Widescreen: 960x540
264
+ * - OnScreen: 720x540
265
+ * - OnScreen16x9: 720x405
266
+ * - OnScreen16x10: 720x450 */
267
+ size?: "Widescreen" | "OnScreen" | "OnScreen16x9" | "OnScreen16x10";
268
+ };
269
+ /**
270
+ * In order to apply a selection just one of text/number needs to be set, this must be associated with the correct isNumeric bool. In some scenarios both text and number may be set.
271
+ */
272
+ type QFieldValue = {
273
+ /** IsNumeric tells whether the field value is text or number. Default value is equal to defaultIsNumeric property in QSelection. */
274
+ isNumeric?: boolean;
275
+ number?: Float64;
276
+ /** String value of the field value. */
277
+ text?: string;
278
+ };
279
+ type QSelection = {
280
+ /** Default value that QFieldValue isNumeric property takes if missing. */
281
+ defaultIsNumeric: boolean;
282
+ /** The name of the field to be selected. */
283
+ fieldName: string;
284
+ /** The values of the field to be selected. */
285
+ values: QFieldValue[];
286
+ };
287
+ type Reason = {
288
+ /** Errors occured during report generation. */
289
+ exportErrors?: ExportErrors;
290
+ /** The output identifier which uniquely identifies an output (PDF, image etc.) within the same request. */
291
+ outputId?: string;
292
+ traceId?: string;
293
+ };
294
+ type ReportRequest = {
295
+ /** Composition of senseSheetTemplate and/or senseImageTemplate templates. */
296
+ compositionTemplates?: ComposableTemplate[];
297
+ /** Definitions of common properties that are shared between templates, e.g. selectionsByState can be the same for all templates within a composition of templates. */
298
+ definitions?: Definitions;
299
+ /** Define the request metadata. It includes priority, deadline and future settings on execution policy of the request. */
300
+ meta?: Meta;
301
+ output: OutputItem;
302
+ /** Used to export an excel template. */
303
+ senseExcelTemplate?: SenseExcelTemplate;
304
+ /** Used to export a single visualization as pdf, pptx or png. */
305
+ senseImageTemplate?: SenseImageTemplate;
306
+ /** Used to export a sheet as pdf or pptx. */
307
+ senseSheetTemplate?: SenseSheetTemplate;
308
+ /** Template type and version using semantic versioning. It must have the following name convention: dashed-separated-template-name-MAJOR.MINOR.
309
+ * Please note that sense-story-x.0, sense-data-x.0 and qv-data-x.0 are only for internal use.
310
+ *
311
+ * Each type requires a specific template to be provided:
312
+ * - composition-1.0 requires compositionTemplates to be set
313
+ * - sense-excel-template-1.0 requires senseExcelTemplate to be set
314
+ * - sense-image-1.0 requires senseImageTemplate to be set
315
+ * - sense-sheet-1.0 requires senseSheetTemplate to be set
316
+ * - cycle-1.0 requires cycleTemplate to be set
317
+ *
318
+ * Each template type supports specific output types:
319
+ * - composition-1.0 supports pdfcomposition and pptxComposition output type
320
+ * - sense-excel-template-1.0 supports excel and pdf output type
321
+ * - sense-image-1.0 supports pdf, pptx and png output types
322
+ * - sense-sheet-1.0 supports pdf, pptx output type */
323
+ type: "composition-1.0" | "sense-image-1.0" | "sense-data-1.0" | "sense-sheet-1.0" | "sense-story-1.0" | "qv-data-1.0" | "qv-data-2.0" | "sense-excel-template-1.0" | "cycle-template-1.0";
324
+ };
325
+ type ReportStatus = {
326
+ /** Present when status is failed. */
327
+ reasons?: Reason[];
328
+ /** Count how many times the resolution of this report was attempted. */
329
+ resolutionAttempts?: number;
330
+ /** Present when the status is "done". */
331
+ results?: Result[];
332
+ /** Status of the requested report. */
333
+ status: "queued" | "processing" | "done" | "failed" | "aborted" | "visiting" | "aborting";
334
+ /** Relative path to status location. */
335
+ statusLocation?: string;
336
+ };
337
+ /**
338
+ * Result and info about the generated report.
339
+ */
340
+ type Result = {
341
+ /** Errors occured during report generation. */
342
+ exportErrors?: ExportErrors;
343
+ /** Location to download the generated report. */
344
+ location: string;
345
+ /** The output identifier which uniquely identifies an output (PDF, image etc.) within the same request. */
346
+ outputId: string;
347
+ };
348
+ /**
349
+ * Array of ChainableSelection
350
+ */
351
+ type SelectionChain = ChainableSelection[];
352
+ /**
353
+ * Selection error related to a fieldName. The field name is missing or some of his selection values are missing or a state is missing
354
+ */
355
+ type SelectionError = {
356
+ /** Details about the field selection error. */
357
+ detail?: string;
358
+ errorType?: "fieldMissing" | "fieldValuesMissing" | "stateMissing" | "groupStateGroupMissing" | "groupStateGroupNotApplicable" | "groupStateFieldDefMissing";
359
+ /** The field name that is missing. */
360
+ fieldName?: string;
361
+ /** @deprecated
362
+ * Deprecated, use errorType instead. True if the fieldName is missing. The missingValues array is empty in this case */
363
+ isFieldNameMissing?: boolean;
364
+ missingValues?: QFieldValue[];
365
+ /** The state name that is missing. */
366
+ stateName?: string;
367
+ };
368
+ /**
369
+ * Errors occurring in selections.
370
+ */
371
+ type SelectionErrors = SelectionError[];
372
+ type SelectionFilter = {
373
+ /** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
374
+ patchesById?: unknown;
375
+ /** Map of selections to apply by state. Maximum number of states allowed is 125. Maximum number of fields allowed is 125 and Maximum number of overall field values allowed is 150000. */
376
+ selectionsByState?: unknown;
377
+ variables?: unknown[];
378
+ };
379
+ type SelectionStrategy = "failOnErrors" | "ignoreErrorsReturnDetails" | "ignoreErrorsNoDetails";
380
+ /**
381
+ * Used to export an excel template.
382
+ */
383
+ type SenseExcelTemplate = {
384
+ /** A JSON object that is passed as-is to the mashup page while rendering, this will be applied to all charts within the sheet. It includes properties of the whole sheet such as theme, gradient etc. Currently only the "theme" property is supported. */
385
+ jsOpts?: unknown;
386
+ /** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
387
+ reloadTimestampMatchType?: ReloadTimestampMatchType;
388
+ /** Array of ChainableSelection */
389
+ selectionChain?: SelectionChain;
390
+ /** The location of the report template. Currently it can be an absolute or relative URL to a persisted report template, or to a template file saved as temporary content, as in the following examples: - https://qlikcloud.com:443/api/v1/report-templates/223940f7-3170-46b7-91ea-e0c81230adf7 - https://qlikcloud.com:443/api/v1/temp-contents/653bb4acae966r0730da15fc */
391
+ templateLocation: TemplateLocation;
392
+ };
393
+ /**
394
+ * Used to export a single visualization as pdf, pptx or png.
395
+ */
396
+ type SenseImageTemplate = {
397
+ appId: string;
398
+ persistentBookmark?: SensePersistentBookmark;
399
+ /** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
400
+ reloadTimestampMatchType?: ReloadTimestampMatchType;
401
+ selectionStrategy?: SelectionStrategy;
402
+ /** Map of selections to apply by state. Maximum number of states allowed is 125. Maximum number of fields allowed is 125 and maximum number of overall field values allowed is 150000. */
403
+ selectionsByState?: unknown;
404
+ /** The definition ID referring to a selectionsByState definition declared in definitions. */
405
+ selectionsByStateDef?: string;
406
+ /** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
407
+ temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
408
+ visualization: Visualization;
409
+ };
410
+ type SensePersistentBookmark = {
411
+ /** Sense Persistence Bookmark id. */
412
+ id: string;
413
+ };
414
+ /**
415
+ * Used to export a sheet as pdf or pptx.
416
+ */
417
+ type SenseSheetTemplate = {
418
+ appId: string;
419
+ persistentBookmark?: SensePersistentBookmark;
420
+ /** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
421
+ reloadTimestampMatchType?: ReloadTimestampMatchType;
422
+ selectionStrategy?: SelectionStrategy;
423
+ /** Map of selections to apply by state. Maximum number of states allowed is 125. Maximum number of fields allowed is 125 and maximum number of overall field values allowed is 150000. */
424
+ selectionsByState?: unknown;
425
+ /** The definition ID referring to a selectionsByState definition declared in definitions. */
426
+ selectionsByStateDef?: string;
427
+ /** It refers to the Sense Sheet to be exported. Note that if widthPx and heightPx are not specified, default values will be applied depending on the actual size and layout properties of the Sense Sheet object. */
428
+ sheet: Sheet;
429
+ /** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
430
+ temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
431
+ };
432
+ /**
433
+ * The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend.
434
+ */
435
+ type SenseTemporaryBookmarkV2 = {
436
+ /** Sense Temporary Bookmark id. */
437
+ id: string;
438
+ };
439
+ /**
440
+ * It refers to the Sense Sheet to be exported. Note that if widthPx and heightPx are not specified, default values will be applied depending on the actual size and layout properties of the Sense Sheet object.
441
+ */
442
+ type Sheet = {
443
+ /** The height of the sheet in pixels. Default value is: - 1120 pixels for responsive sheet - 1680 pixels for extended sheet - same height set in sheet properties for custom sheet */
444
+ heightPx?: number;
445
+ /** The id of the sheet. */
446
+ id: string;
447
+ /** A JSON object that is passed as-is to the mashup page while rendering, this will be applied to all charts within the sheet. It includes properties of the whole sheet such as theme, gradient etc. */
448
+ jsOpts?: unknown;
449
+ /** A map for applying jsOpts to specific visualization IDs within the sheet. */
450
+ jsOptsById?: unknown;
451
+ /** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
452
+ patchesById?: unknown;
453
+ /** The width of the sheet in pixels. Default value is: - 1680 pixels for responsive sheet - 1120 pixels for extended sheet - same width set in sheet properties for custom sheet */
454
+ widthPx?: number;
455
+ };
456
+ /**
457
+ * The location of the report template. Currently it can be an absolute or relative URL to a persisted report template, or to a template file saved as temporary content, as in the following examples: - https://qlikcloud.com:443/api/v1/report-templates/223940f7-3170-46b7-91ea-e0c81230adf7 - https://qlikcloud.com:443/api/v1/temp-contents/653bb4acae966r0730da15fc
458
+ */
459
+ type TemplateLocation = {
460
+ format?: "url";
461
+ /** The report template location path. */
462
+ path: string;
463
+ };
464
+ type Visualization = {
465
+ /** Height in pixels. */
466
+ heightPx: number;
467
+ /** The sense visualization id or json definition. */
468
+ id: string;
469
+ /** A JSON object that is passed as-is to the mashup page while rendering. */
470
+ jsOpts?: unknown;
471
+ /** Soft properties, aka patches, to be applied to the visualization. */
472
+ patches?: NxPatch[];
473
+ /** Choose visualization to export an image of a sense chart, sessionobject for a visualization to be created on-the-fly. An empty value leads to the type being inferred by its id. */
474
+ type?: "visualization" | "sessionobject";
475
+ /** Width in pixels. */
476
+ widthPx: number;
477
+ };
478
+ /**
479
+ * Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck.
480
+ */
481
+ type ReloadTimestampMatchType = "noCheck" | "requestTimeExact";
482
+ /**
483
+ * Queue a new report request generation.
484
+ *
485
+ * @param body an object with the body content
486
+ * @throws CreateReportHttpError
487
+ */
488
+ declare const createReport: (body: ReportRequest, options?: ApiCallOptions) => Promise<CreateReportHttpResponse>;
489
+ type CreateReportHttpResponse = {
490
+ data: void;
491
+ headers: Headers;
492
+ status: number;
493
+ };
494
+ type CreateReportHttpError = {
495
+ data: Error;
496
+ headers: Headers;
497
+ status: number;
498
+ };
499
+ /**
500
+ * Get report request processing status.
501
+ *
502
+ * @param id Identifier of the request.
503
+ * @throws GetReportStatusHttpError
504
+ */
505
+ declare const getReportStatus: (id: string, options?: ApiCallOptions) => Promise<GetReportStatusHttpResponse>;
506
+ type GetReportStatusHttpResponse = {
507
+ data: ReportStatus;
508
+ headers: Headers;
509
+ status: number;
510
+ };
511
+ type GetReportStatusHttpError = {
512
+ data: Error;
513
+ headers: Headers;
514
+ status: number;
515
+ };
516
+ /**
517
+ * Clears the cache for reports api requests.
518
+ */
519
+ declare function clearCache(): void;
520
+ interface ReportsAPI {
521
+ /**
522
+ * Queue a new report request generation.
523
+ *
524
+ * @param body an object with the body content
525
+ * @throws CreateReportHttpError
526
+ */
527
+ createReport: typeof createReport;
528
+ /**
529
+ * Get report request processing status.
530
+ *
531
+ * @param id Identifier of the request.
532
+ * @throws GetReportStatusHttpError
533
+ */
534
+ getReportStatus: typeof getReportStatus;
535
+ /**
536
+ * Clears the cache for reports api requests.
537
+ */
538
+ clearCache: typeof clearCache;
539
+ }
540
+ /**
541
+ * Functions for the reports api
542
+ */
543
+ declare const reportsExport: ReportsAPI;
544
+
545
+ export { type AppError, type AppErrors, type CallBackAction, type ChainableSelection, type ChainableSelectionType, type ComposableTemplate, type CreateReportHttpError, type CreateReportHttpResponse, type Definitions, type DocProperties, type Error, type ExcelOutput, type ExportError, type ExportErrors, type Float64, type GetReportStatusHttpError, type GetReportStatusHttpResponse, type HttpRequest, type ImageOutput, type Meta, type MetaExportError, type NxPatch, type OutputItem, type PdfCompositionOutput, type PdfOutput, type PptxCompositionOutput, type PptxOutput, type QFieldValue, type QSelection, type Reason, type ReloadTimestampMatchType, type ReportRequest, type ReportStatus, type ReportsAPI, type Result, type SelectionChain, type SelectionError, type SelectionErrors, type SelectionFilter, type SelectionStrategy, type SenseExcelTemplate, type SenseImageTemplate, type SensePersistentBookmark, type SenseSheetTemplate, type SenseTemporaryBookmarkV2, type Sheet, type TemplateLocation, type Visualization, clearCache, createReport, reportsExport as default, getReportStatus };
package/reports.js ADDED
@@ -0,0 +1,32 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/QXDBGF7B.js";
5
+ import "./chunks/7C6WMELW.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/reports.ts
9
+ var createReport = async (body, options) => invokeFetch("reports", {
10
+ method: "post",
11
+ pathTemplate: "/api/v1/reports",
12
+ body,
13
+ contentType: "application/json",
14
+ options
15
+ });
16
+ var getReportStatus = async (id, options) => invokeFetch("reports", {
17
+ method: "get",
18
+ pathTemplate: "/api/v1/reports/{id}/status",
19
+ pathVariables: { id },
20
+ options
21
+ });
22
+ function clearCache() {
23
+ return clearApiCache("reports");
24
+ }
25
+ var reportsExport = { createReport, getReportStatus, clearCache };
26
+ var reports_default = reportsExport;
27
+ export {
28
+ clearCache,
29
+ createReport,
30
+ reports_default as default,
31
+ getReportStatus
32
+ };
package/roles.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/roles.ts
9
9
  var getRoles = async (query, options) => invokeFetch("roles", {
package/spaces.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/spaces.ts
9
9
  var getSpaces = async (query, options) => invokeFetch("spaces", {
package/temp-contents.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/temp-contents.ts
9
9
  var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
package/tenants.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/tenants.ts
9
9
  var createTenant = async (body, options) => invokeFetch("tenants", {
package/themes.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/themes.ts
9
9
  var getThemes = async (options) => invokeFetch("themes", {
package/transports.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/transports.ts
9
9
  var deleteEmailConfig = async (options) => invokeFetch("transports", {
package/users.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/users.ts
9
9
  var getUsers = async (query, options) => invokeFetch("users", {