@qlik/api 1.27.0 → 1.29.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 (65) hide show
  1. package/api-keys.d.ts +20 -0
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +134 -5
  4. package/apps.js +2 -2
  5. package/audits.d.ts +1 -1
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +13 -1
  9. package/automations.js +2 -2
  10. package/brands.js +2 -2
  11. package/chunks/{V3TZ54UE.js → 2B7YWDQC.js} +3 -3
  12. package/chunks/{4K3CNR7C.js → 5MRIMVKS.js} +1 -1
  13. package/chunks/{55SZVSAG.js → 5XNSGPGZ.js} +1 -1
  14. package/chunks/{EOGHK2R4.js → KYCIMQ4L.js} +1 -1
  15. package/chunks/{WY7IOA3Q.js → WQYEWU54.js} +2 -2
  16. package/collections.d.ts +1 -1
  17. package/collections.js +2 -2
  18. package/csp-origins.js +2 -2
  19. package/data-assets.d.ts +1 -1
  20. package/data-assets.js +2 -2
  21. package/data-connections.d.ts +82 -0
  22. package/data-connections.js +2 -2
  23. package/data-credentials.d.ts +28 -0
  24. package/data-credentials.js +2 -2
  25. package/data-files.d.ts +90 -0
  26. package/data-files.js +2 -2
  27. package/extensions.js +2 -2
  28. package/glossaries.d.ts +15 -1
  29. package/glossaries.js +2 -2
  30. package/groups.d.ts +70 -0
  31. package/groups.js +2 -2
  32. package/identity-providers.js +2 -2
  33. package/index.js +8 -4
  34. package/items.d.ts +1 -1
  35. package/items.js +2 -2
  36. package/licenses.d.ts +191 -0
  37. package/licenses.js +2 -2
  38. package/package.json +4 -4
  39. package/qix.d.ts +26 -2
  40. package/qix.js +2 -2
  41. package/quotas.js +2 -2
  42. package/reload-tasks.d.ts +20 -0
  43. package/reload-tasks.js +2 -2
  44. package/reloads.d.ts +38 -1
  45. package/reloads.js +2 -2
  46. package/reports.d.ts +157 -17
  47. package/reports.js +2 -2
  48. package/roles.d.ts +30 -0
  49. package/roles.js +2 -2
  50. package/spaces.d.ts +225 -38
  51. package/spaces.js +47 -2
  52. package/temp-contents.js +2 -2
  53. package/tenants.d.ts +47 -1
  54. package/tenants.js +2 -2
  55. package/themes.js +2 -2
  56. package/transports.d.ts +9 -0
  57. package/transports.js +2 -2
  58. package/users.d.ts +88 -0
  59. package/users.js +2 -2
  60. package/web-integrations.d.ts +20 -0
  61. package/web-integrations.js +2 -2
  62. package/web-notifications.d.ts +19 -0
  63. package/web-notifications.js +2 -2
  64. package/webhooks.d.ts +3 -3
  65. package/webhooks.js +2 -2
package/reports.d.ts CHANGED
@@ -10,7 +10,7 @@ type AppError = {
10
10
  /** The method that is failing. */
11
11
  method?: string;
12
12
  /** Parameters of method that fails. */
13
- parameters?: unknown;
13
+ parameters?: Record<string, string>;
14
14
  };
15
15
  /**
16
16
  * Errors occurring when dealing with the app.
@@ -39,12 +39,21 @@ type ComposableTemplate = {
39
39
  /** Template type and version using semantic versioning. It must have the following name convention, dashed-separated-template-name-MAJOR.MINOR */
40
40
  type: "sense-image-1.0" | "sense-sheet-1.0";
41
41
  };
42
+ type CycleOutput = {
43
+ /** Output to be used to export an excel template. */
44
+ excelOutput?: ExcelOutput;
45
+ /** not needed at initial phase */
46
+ namingPattern?: "fieldValueWithUnderscore";
47
+ /** 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. */
48
+ pdfOutput?: PdfOutput;
49
+ type: "excel" | "pdf" | "html";
50
+ };
42
51
  /**
43
52
  * 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
53
  */
45
54
  type Definitions = {
46
55
  /** It maps an ID to a selectionsByState object. */
47
- selectionsByState?: unknown;
56
+ selectionsByState?: Record<string, Record<string, QSelection[]>>;
48
57
  };
49
58
  /**
50
59
  * 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.
@@ -65,6 +74,14 @@ type ExcelOutput = {
65
74
  /** The output format of the report to be produced. */
66
75
  outFormat?: "xlsx";
67
76
  };
77
+ type ExportDataOptions = {
78
+ /** Show the Selections Applied to the Visualization in the artifact produced */
79
+ showSelections?: boolean;
80
+ /** Show Visualization Title, SubTitle, Footnote in the artifact produced */
81
+ showTitles?: boolean;
82
+ /** Show Visualization Totals in the artifact produced */
83
+ showTotals?: boolean;
84
+ };
68
85
  /**
69
86
  * Error occured during report generation.
70
87
  */
@@ -144,7 +161,8 @@ type ExportError = {
144
161
  * - "REP-400050" Error retrieving outputs.
145
162
  * - "REP-400052" Report Request Aborted from internal error.
146
163
  * - "REP-500053" Unexpected number of generated cycle reports.
147
- * - "REP-400054" The number of generated cycle reports exceeds the maximum allowed. */
164
+ * - "REP-400054" The number of generated cycle reports exceeds the maximum allowed.
165
+ * - "REP-400055" Export options not allowed for this object. */
148
166
  code: string;
149
167
  /** Optional. MAY be used to provide more concrete details. */
150
168
  detail?: string;
@@ -204,9 +222,30 @@ type NxPatch = {
204
222
  /** Corresponds to the value of the property to add or to the new value of the property to update. */
205
223
  qValue?: string;
206
224
  };
225
+ /**
226
+ * @example
227
+ * {
228
+ * outputId: "output1",
229
+ * pdfOutput: {
230
+ * align: {
231
+ * horizontal: "center",
232
+ * vertical: "middle"
233
+ * },
234
+ * imageRenderingDpi: 300,
235
+ * orientation: "P",
236
+ * resizeData: {
237
+ * fit: "210mmx287mm"
238
+ * },
239
+ * resizeType: "fit",
240
+ * size: "A4"
241
+ * },
242
+ * type: "pdf"
243
+ * }
244
+ */
207
245
  type OutputItem = {
208
246
  /** The callback to be performed once the report is done. */
209
247
  callBackAction?: CallBackAction;
248
+ cycleOutput?: CycleOutput;
210
249
  /** Output to be used to export an excel template. */
211
250
  excelOutput?: ExcelOutput;
212
251
  /** Output to be used to export a single visualization as image. */
@@ -234,8 +273,8 @@ type OutputItem = {
234
273
  * - excel requires excelOutput to be set
235
274
  * - pdfcomposition requires pdfCompositionOutput to be set
236
275
  * - pptxcomposition requires pptxCompositionOutput to be set
237
- * - pdf requires pdfOuput to be set
238
- * - pptx requires pptxOuput to be set
276
+ * - pdf requires pdfOutput to be set
277
+ * - pptx requires pptxOutput to be set
239
278
  * - image requires imageOutput to be set
240
279
  * - csv doesn't have csv output
241
280
  * - xlsx requires xlsxOutput to be set */
@@ -329,6 +368,78 @@ type Reason = {
329
368
  outputId?: string;
330
369
  traceId?: string;
331
370
  };
371
+ /**
372
+ * @example
373
+ * {
374
+ * compositionTemplates: [
375
+ * {
376
+ * senseSheetTemplate: {
377
+ * appId: "2451e58e-a1b9-4047-abf6-315e91d8a610",
378
+ * selectionsByStateDef: "sel1",
379
+ * sheet: {
380
+ * id: "5ffe3801-1b6d-439d-a849-84d0748358f1"
381
+ * }
382
+ * },
383
+ * type: "sense-sheet-1.0"
384
+ * },
385
+ * {
386
+ * senseSheetTemplate: {
387
+ * appId: "2451e58e-a1b9-4047-abf6-315e91d8a610",
388
+ * selectionsByStateDef: "sel1",
389
+ * sheet: {
390
+ * id: "ffrxJyA"
391
+ * }
392
+ * },
393
+ * type: "sense-sheet-1.0"
394
+ * }
395
+ * ],
396
+ * definitions: {
397
+ * selectionsByState: {
398
+ * "sel1": {
399
+ * "$": [
400
+ * {
401
+ * defaultIsNumeric: false,
402
+ * fieldName: "Region",
403
+ * values: [
404
+ * {
405
+ * isNumeric: false,
406
+ * text: "Arizona"
407
+ * }
408
+ * ]
409
+ * }
410
+ * ]
411
+ * }
412
+ * }
413
+ * },
414
+ * output: {
415
+ * outputId: "composition1",
416
+ * pdfCompositionOutput: {
417
+ * pdfOutputs: [
418
+ * {
419
+ * align: {
420
+ * horizontal: "center",
421
+ * vertical: "middle"
422
+ * },
423
+ * orientation: "A",
424
+ * resizeType: "autofit",
425
+ * size: "A4"
426
+ * },
427
+ * {
428
+ * align: {
429
+ * horizontal: "center",
430
+ * vertical: "middle"
431
+ * },
432
+ * orientation: "A",
433
+ * resizeType: "autofit",
434
+ * size: "A4"
435
+ * }
436
+ * ]
437
+ * },
438
+ * type: "pdfcomposition"
439
+ * },
440
+ * type: "composition-1.0"
441
+ * }
442
+ */
332
443
  type ReportRequest = {
333
444
  /** Composition of senseSheetTemplate and/or senseImageTemplate templates. */
334
445
  compositionTemplates?: ComposableTemplate[];
@@ -351,7 +462,7 @@ type ReportRequest = {
351
462
  /** Used to export a sheet as pdf or pptx. */
352
463
  senseSheetTemplate?: SenseSheetTemplate;
353
464
  /** Template type and version using semantic versioning. It must have the following name convention: dashed-separated-template-name-MAJOR.MINOR.
354
- * Please note that sense-pixel-perfect-template-1.0, sense-html-template-1.0, sense-story-x.0 and qv-data-x.0 are only for internal use.
465
+ * Please note that sense-html-template-1.0, sense-story-x.0 and qv-data-x.0 are only for internal use.
355
466
  *
356
467
  * Each type requires a specific template to be provided:
357
468
  * - composition-1.0 requires compositionTemplates to be set
@@ -359,15 +470,39 @@ type ReportRequest = {
359
470
  * - sense-image-1.0 requires senseImageTemplate to be set
360
471
  * - sense-sheet-1.0 requires senseSheetTemplate to be set
361
472
  * - sense-data-1.0 requires senseDataTemplate to be set
473
+ * - sense-pixel-perfect-template-1.0 requires sensePixelPerfectTemplate to be set
362
474
  *
363
475
  * Each template type supports specific output types:
364
- * - composition-1.0 supports pdfcomposition and pptxComposition output type
476
+ * - composition-1.0 supports pdfcomposition and pptxcomposition output type
365
477
  * - sense-excel-template-1.0 supports excel and pdf output type
366
478
  * - sense-image-1.0 supports pdf, pptx and png output types
367
479
  * - sense-sheet-1.0 supports pdf, pptx output type
368
- * - sense-data-1.0 supports xlsx output type */
480
+ * - sense-data-1.0 supports xlsx output type
481
+ * - sense-pixel-perfect-template-1.0 supports pdf output types
482
+ *
483
+ * Each output type requires a specific output to be provided:
484
+ * - pdfcomposition requires pdfCompositionOutput to be set
485
+ * - pptxcomposition requires pptxCompositionOutput to be set
486
+ * - pdf requires pdfOutput to be set
487
+ * - pptx requires pptxOutput to be set
488
+ * - image requires imageOutput to be set
489
+ * - xlsx requires xlsxOutput to be set */
369
490
  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" | "sense-pixel-perfect-template-1.0" | "sense-html-template-1.0";
370
491
  };
492
+ /**
493
+ * @example
494
+ * {
495
+ * resolutionAttempts: 1,
496
+ * results: [
497
+ * {
498
+ * location: "https://qlikcloud.com:443/api/v1/temp-contents/619baab68023910001efcb86?inline=1",
499
+ * outputId: "output1"
500
+ * }
501
+ * ],
502
+ * status: "done",
503
+ * statusLocation: "/reports/01562a37-23e3-4b43-865d-84c26122276c/status"
504
+ * }
505
+ */
371
506
  type ReportStatus = {
372
507
  /** @deprecated
373
508
  * Present when status is failed. Deprecated. Use /reports/{id}/outputs instead. */
@@ -421,14 +556,15 @@ type SelectionError = {
421
556
  type SelectionErrors = SelectionError[];
422
557
  type SelectionFilter = {
423
558
  /** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
424
- patchesById?: unknown;
559
+ patchesById?: Record<string, NxPatch[]>;
425
560
  /** 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. */
426
- selectionsByState?: unknown;
561
+ selectionsByState?: Record<string, QSelection[]>;
427
562
  variables?: unknown[];
428
563
  };
429
564
  type SelectionStrategy = "failOnErrors" | "ignoreErrorsReturnDetails" | "ignoreErrorsNoDetails";
430
565
  type SenseDataTemplate = {
431
566
  appId: string;
567
+ exportOptions?: ExportDataOptions;
432
568
  /** Sense visualization id. Visualizations created "on the fly" are not supported. */
433
569
  id: string;
434
570
  patches?: NxPatch[];
@@ -438,7 +574,7 @@ type SenseDataTemplate = {
438
574
  selectionStrategy?: SelectionStrategy;
439
575
  selectionType?: SenseSelectionType;
440
576
  /** 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. */
441
- selectionsByState?: unknown;
577
+ selectionsByState?: Record<string, QSelection[]>;
442
578
  /** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
443
579
  temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
444
580
  variables?: unknown[];
@@ -447,7 +583,9 @@ type SenseDataTemplate = {
447
583
  * Used to produce reports from a template file.
448
584
  */
449
585
  type SenseFileTemplate = {
450
- /** 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. */
586
+ /** The values of the field to be selected. */
587
+ cycleFields?: string[];
588
+ /** 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" and "language" properties are supported. */
451
589
  jsOpts?: unknown;
452
590
  /** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
453
591
  reloadTimestampMatchType?: ReloadTimestampMatchType;
@@ -467,7 +605,7 @@ type SenseImageTemplate = {
467
605
  selectionStrategy?: SelectionStrategy;
468
606
  selectionType?: SenseSelectionType;
469
607
  /** 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. */
470
- selectionsByState?: unknown;
608
+ selectionsByState?: Record<string, QSelection[]>;
471
609
  /** The definition ID referring to a selectionsByState definition declared in definitions. */
472
610
  selectionsByStateDef?: string;
473
611
  /** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
@@ -490,7 +628,7 @@ type SenseSheetTemplate = {
490
628
  selectionStrategy?: SelectionStrategy;
491
629
  selectionType?: SenseSelectionType;
492
630
  /** 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. */
493
- selectionsByState?: unknown;
631
+ selectionsByState?: Record<string, QSelection[]>;
494
632
  /** The definition ID referring to a selectionsByState definition declared in definitions. */
495
633
  selectionsByStateDef?: string;
496
634
  /** 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. */
@@ -516,9 +654,9 @@ type Sheet = {
516
654
  /** 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. */
517
655
  jsOpts?: unknown;
518
656
  /** A map for applying jsOpts to specific visualization IDs within the sheet. */
519
- jsOptsById?: unknown;
657
+ jsOptsById?: Record<string, unknown>;
520
658
  /** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
521
- patchesById?: unknown;
659
+ patchesById?: Record<string, NxPatch[]>;
522
660
  /** 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 */
523
661
  widthPx?: number;
524
662
  };
@@ -546,6 +684,8 @@ type Visualization = {
546
684
  };
547
685
  /**
548
686
  * Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck.
687
+ * @example
688
+ * "noCheck"
549
689
  */
550
690
  type ReloadTimestampMatchType = "noCheck" | "requestTimeExact";
551
691
  /**
@@ -611,4 +751,4 @@ interface ReportsAPI {
611
751
  */
612
752
  declare const reportsExport: ReportsAPI;
613
753
 
614
- 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 SenseDataTemplate, type SenseFileTemplate, type SenseImageTemplate, type SensePersistentBookmark, type SenseSelectionType, type SenseSheetTemplate, type SenseTemporaryBookmarkV2, type Sheet, type TemplateLocation, type Visualization, clearCache, createReport, reportsExport as default, getReportStatus };
754
+ export { type AppError, type AppErrors, type CallBackAction, type ChainableSelection, type ChainableSelectionType, type ComposableTemplate, type CreateReportHttpError, type CreateReportHttpResponse, type CycleOutput, type Definitions, type DocProperties, type Error, type ExcelOutput, type ExportDataOptions, 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 SenseDataTemplate, type SenseFileTemplate, type SenseImageTemplate, type SensePersistentBookmark, type SenseSelectionType, type SenseSheetTemplate, type SenseTemporaryBookmarkV2, type Sheet, type TemplateLocation, type Visualization, clearCache, createReport, reportsExport as default, getReportStatus };
package/reports.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WY7IOA3Q.js";
5
- import "./chunks/V3TZ54UE.js";
4
+ } from "./chunks/WQYEWU54.js";
5
+ import "./chunks/2B7YWDQC.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/reports.ts
package/roles.d.ts CHANGED
@@ -31,6 +31,16 @@ type Error = {
31
31
  };
32
32
  /**
33
33
  * The error response object describing the error from the handling of an HTTP request.
34
+ * @example
35
+ * {
36
+ * errors: [
37
+ * {
38
+ * code: "IDENTITIES-10402",
39
+ * title: "Not Found"
40
+ * }
41
+ * ],
42
+ * traceId: "0000000000000000200ba0714061b982"
43
+ * }
34
44
  */
35
45
  type Errors = {
36
46
  /** An array of errors related to the operation. */
@@ -73,6 +83,26 @@ type PatchRole = {
73
83
  };
74
84
  /**
75
85
  * An array of JSON Patch documents
86
+ * @example
87
+ * [
88
+ * {
89
+ * op: "replace",
90
+ * path: "/name",
91
+ * value: "Role1"
92
+ * },
93
+ * {
94
+ * op: "replace",
95
+ * path: "/assignedScopes",
96
+ * value: [
97
+ * "knowledgebase"
98
+ * ]
99
+ * },
100
+ * {
101
+ * op: "replace",
102
+ * path: "/description",
103
+ * value: "My custom role description"
104
+ * }
105
+ * ]
76
106
  */
77
107
  type PatchRoles = PatchRole[];
78
108
  type Role = {
package/roles.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/WY7IOA3Q.js";
5
- import "./chunks/V3TZ54UE.js";
4
+ } from "./chunks/WQYEWU54.js";
5
+ import "./chunks/2B7YWDQC.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/roles.ts