@qlik/api 1.28.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.
- package/api-keys.d.ts +20 -0
- package/apps.d.ts +134 -5
- package/audits.d.ts +1 -1
- package/automations.d.ts +13 -1
- package/chunks/WQYEWU54.js +1 -1
- package/collections.d.ts +1 -1
- package/data-assets.d.ts +1 -1
- package/data-connections.d.ts +82 -0
- package/data-credentials.d.ts +28 -0
- package/data-files.d.ts +90 -0
- package/glossaries.d.ts +14 -1
- package/groups.d.ts +70 -0
- package/index.js +4 -0
- package/items.d.ts +1 -1
- package/licenses.d.ts +191 -0
- package/package.json +4 -4
- package/qix.d.ts +17 -1
- package/reload-tasks.d.ts +20 -0
- package/reloads.d.ts +39 -10
- package/reports.d.ts +157 -17
- package/roles.d.ts +30 -0
- package/spaces.d.ts +225 -38
- package/spaces.js +45 -0
- package/tenants.d.ts +47 -1
- package/transports.d.ts +9 -0
- package/users.d.ts +88 -0
- package/web-integrations.d.ts +20 -0
- package/web-notifications.d.ts +19 -0
- package/webhooks.d.ts +3 -3
package/reloads.d.ts
CHANGED
|
@@ -7,20 +7,35 @@ type Error = {
|
|
|
7
7
|
detail?: string;
|
|
8
8
|
title: string;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* {
|
|
13
|
+
* errors: [
|
|
14
|
+
* {
|
|
15
|
+
* code: "HTTP-123",
|
|
16
|
+
* title: "short error message"
|
|
17
|
+
* }
|
|
18
|
+
* ]
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
10
21
|
type Errors = {
|
|
11
22
|
errors?: Error[];
|
|
12
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* {
|
|
27
|
+
* href: "http://example.com"
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
13
30
|
type Href = {
|
|
14
31
|
href?: string;
|
|
15
32
|
};
|
|
16
33
|
/**
|
|
17
34
|
* The boolean value used to present the reload is partial or not.
|
|
35
|
+
* @example
|
|
36
|
+
* false
|
|
18
37
|
*/
|
|
19
38
|
type Partial = boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The priority of the reload. The higher the priority, the sooner the reload will be scheduled relative to other reloads for the same tenant.
|
|
22
|
-
*/
|
|
23
|
-
type Priority = number;
|
|
24
39
|
type Reload = {
|
|
25
40
|
/** The ID of the app. */
|
|
26
41
|
appId: string;
|
|
@@ -41,8 +56,6 @@ type Reload = {
|
|
|
41
56
|
log?: string;
|
|
42
57
|
/** The boolean value used to present the reload is partial or not. */
|
|
43
58
|
partial?: Partial;
|
|
44
|
-
/** The priority of the reload. The higher the priority, the sooner the reload will be scheduled relative to other reloads for the same tenant. */
|
|
45
|
-
priority?: Priority;
|
|
46
59
|
/** The time the reload job was consumed from the queue. */
|
|
47
60
|
startTime?: string;
|
|
48
61
|
/** The status of the reload. There are seven statuses. `QUEUED`, `RELOADING`, `CANCELING` are the active statuses. `SUCCEEDED`, `FAILED`, `CANCELED`, `EXCEEDED_LIMIT` are the end statuses. */
|
|
@@ -62,8 +75,6 @@ type ReloadRequest = {
|
|
|
62
75
|
appId: string;
|
|
63
76
|
/** The boolean value used to present the reload is partial or not */
|
|
64
77
|
partial?: boolean;
|
|
65
|
-
/** The priority of the reload. The higher the priority, the sooner the reload will be scheduled relative to other reloads for the same tenant. */
|
|
66
|
-
priority?: Priority;
|
|
67
78
|
};
|
|
68
79
|
type Reloads = {
|
|
69
80
|
data: Reload[];
|
|
@@ -75,21 +86,32 @@ type ReloadsLinks = ReloadLinks & {
|
|
|
75
86
|
};
|
|
76
87
|
/**
|
|
77
88
|
* The status of the reload. There are seven statuses. `QUEUED`, `RELOADING`, `CANCELING` are the active statuses. `SUCCEEDED`, `FAILED`, `CANCELED`, `EXCEEDED_LIMIT` are the end statuses.
|
|
89
|
+
* @example
|
|
90
|
+
* "FAILED"
|
|
78
91
|
*/
|
|
79
92
|
type Status = "QUEUED" | "RELOADING" | "CANCELING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "EXCEEDED_LIMIT";
|
|
80
93
|
/**
|
|
81
94
|
* What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data, choreographer = reload triggered by choreographer.
|
|
95
|
+
* @example
|
|
96
|
+
* "chronos"
|
|
82
97
|
*/
|
|
83
98
|
type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh" | "choreographer";
|
|
84
99
|
/**
|
|
85
100
|
* Finds and returns the reloads that the user has access to.
|
|
101
|
+
* @example
|
|
102
|
+
* getReloads(
|
|
103
|
+
* {
|
|
104
|
+
* filter: "(status eq \"FAILED\" or status eq \"EXCEEDED_LIMIT\") and partial eq \"false\" and type eq \"chronos\"
|
|
105
|
+
* "
|
|
106
|
+
* }
|
|
107
|
+
* )
|
|
86
108
|
*
|
|
87
109
|
* @param query an object with query parameters
|
|
88
110
|
* @throws GetReloadsHttpError
|
|
89
111
|
*/
|
|
90
112
|
declare const getReloads: (query: {
|
|
91
113
|
/** The UUID formatted string used to search for an app's reload history entries. TenantAdmin users may omit this parameter to list all reload history in the tenant. */
|
|
92
|
-
appId
|
|
114
|
+
appId: string;
|
|
93
115
|
/** SCIM filter expression used to search for reloads.
|
|
94
116
|
* The filter syntax is defined in RFC 7644 section 3.4.2.2
|
|
95
117
|
*
|
|
@@ -180,6 +202,13 @@ declare function clearCache(): void;
|
|
|
180
202
|
interface ReloadsAPI {
|
|
181
203
|
/**
|
|
182
204
|
* Finds and returns the reloads that the user has access to.
|
|
205
|
+
* @example
|
|
206
|
+
* getReloads(
|
|
207
|
+
* {
|
|
208
|
+
* filter: "(status eq \"FAILED\" or status eq \"EXCEEDED_LIMIT\") and partial eq \"false\" and type eq \"chronos\"
|
|
209
|
+
* "
|
|
210
|
+
* }
|
|
211
|
+
* )
|
|
183
212
|
*
|
|
184
213
|
* @param query an object with query parameters
|
|
185
214
|
* @throws GetReloadsHttpError
|
|
@@ -216,4 +245,4 @@ interface ReloadsAPI {
|
|
|
216
245
|
*/
|
|
217
246
|
declare const reloadsExport: ReloadsAPI;
|
|
218
247
|
|
|
219
|
-
export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type
|
|
248
|
+
export { type CancelReloadHttpError, type CancelReloadHttpResponse, type Error, type Errors, type GetReloadHttpError, type GetReloadHttpResponse, type GetReloadsHttpError, type GetReloadsHttpResponse, type Href, type Partial, type QueueReloadHttpError, type QueueReloadHttpResponse, type Reload, type ReloadLinks, type ReloadRequest, type Reloads, type ReloadsAPI, type ReloadsLinks, type Status, type Type, cancelReload, clearCache, reloadsExport as default, getReload, getReloads, queueReload };
|
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?:
|
|
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?:
|
|
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
|
|
238
|
-
* - pptx requires
|
|
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-
|
|
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
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
-
/**
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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/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 = {
|