@qlik/api 2.2.0 → 2.3.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/analytics/change-stores.d.ts +386 -0
- package/analytics/change-stores.js +123 -0
- package/analytics.d.ts +14 -0
- package/analytics.js +13 -0
- package/api-keys.d.ts +362 -3
- package/api-keys.js +2 -3
- package/apps.d.ts +2673 -3
- package/apps.js +2 -3
- package/assistants.d.ts +1370 -3
- package/assistants.js +2 -3
- package/audits.d.ts +318 -3
- package/audits.js +4 -4
- package/auth-types.d.ts +1 -1
- package/auth-types.js +1 -2
- package/auth.d.ts +94 -2
- package/auth.js +63 -3
- package/automation-connections.d.ts +366 -3
- package/automation-connections.js +2 -3
- package/automation-connectors.d.ts +84 -3
- package/automation-connectors.js +2 -3
- package/automations.d.ts +805 -3
- package/automations.js +2 -3
- package/automl-deployments.d.ts +101 -3
- package/automl-deployments.js +2 -3
- package/automl-predictions.d.ts +238 -3
- package/automl-predictions.js +2 -3
- package/banners.d.ts +184 -3
- package/banners.js +2 -3
- package/brands.d.ts +670 -3
- package/brands.js +2 -3
- package/chunks/{auth-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
- package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
- package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
- package/chunks/{auth-functions-BmZgZYSs.js → interceptors-DipDBQQ5.js} +258 -54
- package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
- package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
- package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
- package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
- package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
- package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.js} +48 -50
- package/collections.d.ts +582 -3
- package/collections.js +2 -3
- package/conditions.d.ts +662 -3
- package/conditions.js +2 -3
- package/consumption.d.ts +182 -3
- package/consumption.js +2 -3
- package/core/ip-policies.d.ts +328 -4
- package/core/ip-policies.js +108 -5
- package/core.d.ts +13 -4
- package/core.js +3 -4
- package/csp-origins.d.ts +273 -3
- package/csp-origins.js +2 -3
- package/csrf-token.d.ts +62 -3
- package/csrf-token.js +2 -3
- package/data-alerts.d.ts +1004 -3
- package/data-alerts.js +2 -3
- package/data-assets.d.ts +207 -3
- package/data-assets.js +2 -3
- package/data-connections.d.ts +678 -3
- package/data-connections.js +2 -3
- package/data-credentials.d.ts +292 -3
- package/data-credentials.js +2 -3
- package/data-files.d.ts +860 -3
- package/data-files.js +2 -3
- package/data-qualities.d.ts +175 -3
- package/data-qualities.js +2 -3
- package/data-sets.d.ts +424 -3
- package/data-sets.js +2 -3
- package/data-sources.d.ts +348 -3
- package/data-sources.js +2 -3
- package/data-stores.d.ts +537 -3
- package/data-stores.js +2 -3
- package/dcaas.d.ts +192 -3
- package/dcaas.js +2 -3
- package/di-projects.d.ts +812 -4
- package/di-projects.js +25 -4
- package/direct-access-agents.d.ts +710 -4
- package/direct-access-agents.js +37 -5
- package/docs/authentication.md +1 -1
- package/encryption.d.ts +372 -3
- package/encryption.js +2 -3
- package/extensions.d.ts +295 -3
- package/extensions.js +2 -3
- package/global-types.d.ts +1 -1
- package/global-types.js +0 -2
- package/glossaries.d.ts +1223 -3
- package/glossaries.js +2 -3
- package/groups.d.ts +510 -3
- package/groups.js +2 -3
- package/identity-providers.d.ts +711 -3
- package/identity-providers.js +2 -3
- package/index.d.ts +78 -69
- package/index.js +28 -10
- package/interceptors.d.ts +52 -3
- package/interceptors.js +1 -2
- package/invoke-fetch-types.d.ts +1 -1
- package/items.d.ts +536 -3
- package/items.js +2 -3
- package/knowledgebases.d.ts +976 -3
- package/knowledgebases.js +2 -3
- package/licenses.d.ts +663 -3
- package/licenses.js +2 -3
- package/lineage-graphs.d.ts +704 -3
- package/lineage-graphs.js +2 -3
- package/ml.d.ts +2808 -3
- package/ml.js +2 -3
- package/notes.d.ts +110 -3
- package/notes.js +2 -3
- package/notifications.d.ts +98 -3
- package/notifications.js +2 -3
- package/oauth-callback.iife.js +1151 -0
- package/oauth-clients.d.ts +562 -3
- package/oauth-clients.js +2 -3
- package/oauth-tokens.d.ts +126 -3
- package/oauth-tokens.js +2 -3
- package/package.json +6 -4
- package/qix.d.ts +3 -3
- package/qix.js +38 -3
- package/questions.d.ts +364 -3
- package/questions.js +2 -3
- package/quotas.d.ts +112 -3
- package/quotas.js +2 -3
- package/reload-tasks.d.ts +249 -3
- package/reload-tasks.js +2 -3
- package/reloads.d.ts +260 -3
- package/reloads.js +2 -3
- package/report-templates.d.ts +287 -3
- package/report-templates.js +2 -3
- package/reports.d.ts +863 -3
- package/reports.js +2 -3
- package/roles.d.ts +312 -3
- package/roles.js +2 -3
- package/sharing-tasks.d.ts +1164 -3
- package/sharing-tasks.js +2 -3
- package/spaces.d.ts +779 -3
- package/spaces.js +2 -3
- package/tasks.d.ts +564 -3
- package/tasks.js +2 -3
- package/temp-contents.d.ts +167 -3
- package/temp-contents.js +2 -3
- package/tenants.d.ts +360 -3
- package/tenants.js +2 -3
- package/themes.d.ts +270 -3
- package/themes.js +2 -3
- package/transports.d.ts +435 -4
- package/transports.js +20 -5
- package/ui-config.d.ts +274 -3
- package/ui-config.js +2 -3
- package/users.d.ts +674 -3
- package/users.js +2 -3
- package/web-integrations.d.ts +294 -3
- package/web-integrations.js +2 -3
- package/web-notifications.d.ts +273 -3
- package/web-notifications.js +2 -3
- package/webhooks.d.ts +505 -3
- package/webhooks.js +2 -3
- package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
- package/chunks/apps-BwpXUGDb.d.ts +0 -2673
- package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
- package/chunks/audits-DakwzT97.d.ts +0 -316
- package/chunks/auth-6mptVm5Q.d.ts +0 -95
- package/chunks/auth-D11iO7ZV.js +0 -65
- package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
- package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
- package/chunks/automations-BGy83EBO.d.ts +0 -797
- package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
- package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
- package/chunks/banners-CgBRnZGv.d.ts +0 -184
- package/chunks/brands-DCgk6Gqx.d.ts +0 -671
- package/chunks/collections-BpYjcpIY.d.ts +0 -582
- package/chunks/conditions-CJJG7Uph.d.ts +0 -662
- package/chunks/consumption-DerFk437.d.ts +0 -182
- package/chunks/core-DQXNZdnf.d.ts +0 -12
- package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
- package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
- package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
- package/chunks/data-assets-CJDcssoX.d.ts +0 -207
- package/chunks/data-connections-VSB13K6g.d.ts +0 -678
- package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
- package/chunks/data-files-CVzn9M6V.d.ts +0 -860
- package/chunks/data-qualities-DBrot957.d.ts +0 -176
- package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
- package/chunks/data-sources-IsAaof_C.d.ts +0 -346
- package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
- package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
- package/chunks/di-projects-DVQTxASr.d.ts +0 -777
- package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
- package/chunks/encryption-BjA6xbCO.d.ts +0 -372
- package/chunks/extensions-OO0WtInj.d.ts +0 -294
- package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
- package/chunks/groups-C86-UG7S.d.ts +0 -511
- package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
- package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
- package/chunks/interceptors-DTYm37AU.js +0 -104
- package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
- package/chunks/ip-policies-DXlf172B.js +0 -108
- package/chunks/items-C-jzqvFW.d.ts +0 -536
- package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
- package/chunks/licenses-xzjnkitW.d.ts +0 -663
- package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
- package/chunks/ml-Abt2MUva.d.ts +0 -2809
- package/chunks/notes-BZxuyDgt.d.ts +0 -111
- package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
- package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
- package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
- package/chunks/qix-CYQsLyGQ.js +0 -40
- package/chunks/questions-BVp0tvNs.d.ts +0 -364
- package/chunks/quotas-CfAebRJd.d.ts +0 -113
- package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
- package/chunks/reloads-CwmagnFx.d.ts +0 -260
- package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
- package/chunks/reports-DzNC6Uq3.d.ts +0 -861
- package/chunks/roles-BYFIY6E7.d.ts +0 -312
- package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
- package/chunks/spaces-BK823t-b.d.ts +0 -780
- package/chunks/tasks-COKDfShO.d.ts +0 -564
- package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
- package/chunks/tenants-Bhn86519.d.ts +0 -361
- package/chunks/themes-v9NbhiBo.d.ts +0 -269
- package/chunks/transports-CqEiFxD3.d.ts +0 -362
- package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
- package/chunks/users-BSOBU_fg.d.ts +0 -675
- package/chunks/web-integrations-MisPAHod.d.ts +0 -295
- package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
- package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
- /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
- /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
- /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
- /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
- /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
- /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/reports.d.ts
CHANGED
|
@@ -1,4 +1,864 @@
|
|
|
1
|
-
import "./chunks/auth-types-
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
3
|
-
|
|
1
|
+
import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
|
|
2
|
+
import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
3
|
+
|
|
4
|
+
//#region src/public/rest/reports.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Error in resource handling
|
|
7
|
+
*/
|
|
8
|
+
type AppError = {
|
|
9
|
+
/** app id */
|
|
10
|
+
appId?: string;
|
|
11
|
+
/** The method that is failing. */
|
|
12
|
+
method?: string;
|
|
13
|
+
/** Parameters of method that fails. */
|
|
14
|
+
parameters?: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Errors occurring when dealing with the app.
|
|
18
|
+
*/
|
|
19
|
+
type AppErrors = AppError[];
|
|
20
|
+
/**
|
|
21
|
+
* The callback to be performed once the report is done.
|
|
22
|
+
*/
|
|
23
|
+
type CallBackAction = {
|
|
24
|
+
/** Http callback. The provided uri will be called once the report is done. */
|
|
25
|
+
httpRequest?: HttpRequest;
|
|
26
|
+
};
|
|
27
|
+
type ChainableSelection = {
|
|
28
|
+
persistentBookmark?: SensePersistentBookmark;
|
|
29
|
+
selectionFilter?: SelectionFilter;
|
|
30
|
+
selectionType: ChainableSelectionType;
|
|
31
|
+
/** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
|
|
32
|
+
temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
|
|
33
|
+
};
|
|
34
|
+
type ChainableSelectionType = "selectionFilter" | "persistentBookmark" | "temporaryBookmarkV2";
|
|
35
|
+
type ComposableTemplate = {
|
|
36
|
+
/** Used to export a single visualization as pdf, pptx or png. */
|
|
37
|
+
senseImageTemplate?: SenseImageTemplate;
|
|
38
|
+
/** Used to export a sheet as pdf or pptx. */
|
|
39
|
+
senseSheetTemplate?: SenseSheetTemplate;
|
|
40
|
+
/** Template type and version using semantic versioning. It must have the following name convention, dashed-separated-template-name-MAJOR.MINOR */
|
|
41
|
+
type: "sense-image-1.0" | "sense-sheet-1.0";
|
|
42
|
+
};
|
|
43
|
+
type CycleOutput = {
|
|
44
|
+
/** Output to be used to export an excel template. */
|
|
45
|
+
excelOutput?: ExcelOutput;
|
|
46
|
+
/** not needed at initial phase */
|
|
47
|
+
namingPattern?: "fieldValueWithUnderscore";
|
|
48
|
+
/** 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. */
|
|
49
|
+
pdfOutput?: PdfOutput;
|
|
50
|
+
type: "excel" | "pdf" | "html" | "powerpoint" | "word";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Definitions of common properties that are shared between templates, e.g. selectionsByState can be the same for all templates within a composition of templates.
|
|
54
|
+
*/
|
|
55
|
+
type Definitions = {
|
|
56
|
+
/** It maps an ID to a selectionsByState object. */
|
|
57
|
+
selectionsByState?: Record<string, Record<string, QSelection[]>>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 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.
|
|
61
|
+
*/
|
|
62
|
+
type DocProperties = {
|
|
63
|
+
author?: string;
|
|
64
|
+
subject?: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
};
|
|
67
|
+
type Error = {
|
|
68
|
+
/** Errors occured during report generation. */
|
|
69
|
+
errors?: ExportErrors;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Output to be used to export an excel template.
|
|
73
|
+
*/
|
|
74
|
+
type ExcelOutput = {
|
|
75
|
+
/** The output format of the report to be produced. */
|
|
76
|
+
outFormat?: "xlsx";
|
|
77
|
+
};
|
|
78
|
+
type ExportDataOptions = {
|
|
79
|
+
/** Show the Selections Applied to the Visualization in the artifact produced */
|
|
80
|
+
showSelections?: boolean;
|
|
81
|
+
/** Show Visualization Title, SubTitle, Footnote in the artifact produced */
|
|
82
|
+
showTitles?: boolean;
|
|
83
|
+
/** Show Visualization Totals in the artifact produced */
|
|
84
|
+
showTotals?: boolean;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Error occured during report generation.
|
|
88
|
+
*/
|
|
89
|
+
type ExportError = {
|
|
90
|
+
/** The unique code for the error
|
|
91
|
+
*
|
|
92
|
+
* - "REP-400000" Bad request. The server could not understand the request due to invalid syntax.
|
|
93
|
+
* - "REP-400008" Selections error.
|
|
94
|
+
* - "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.
|
|
95
|
+
* - "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.
|
|
96
|
+
* - "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.
|
|
97
|
+
* - "REP-400015" Bad request in enigma request. The patch value has invalid JSON format.
|
|
98
|
+
* - "REP-400017" Static App size exceeded.
|
|
99
|
+
* - "REP-400018" Excel string length exceeded.
|
|
100
|
+
* - "REP-400020" Invalid Issuer.
|
|
101
|
+
* - "REP-400024" Cannot extract claims from JWT.
|
|
102
|
+
* - "REP-400028" Invalid Tags.
|
|
103
|
+
* - "REP-400029" Reload Entitlement Limit Reached.
|
|
104
|
+
* - "REP-400035" Multiple selections detected in a field having OneAndOnlyone attribute.
|
|
105
|
+
* - "REP-400036" No selection detected in a field having OneAndOnlyone attribute.
|
|
106
|
+
* - "REP-400037" Max number of images exceeded in a report.
|
|
107
|
+
* - "REP-400038" Max number of nested levels exceeded in report.
|
|
108
|
+
* - "REP-400039" Max number of objects exceeded in a report.
|
|
109
|
+
* - "REP-400040" Max number of templates exceeded in a report.
|
|
110
|
+
* - "REP-400041" Unsupported dimension type for level tag.
|
|
111
|
+
* - "REP-400050" Error retrieving outputs.
|
|
112
|
+
* - "REP-400052" Report Request Aborted from internal error.
|
|
113
|
+
* - "REP-400054" The number of generated cycle reports exceeds the maximum allowed.
|
|
114
|
+
* - "REP-400055" Export options not allowed for this object.
|
|
115
|
+
* - "REP-400057" The sense object has an empty GenericType.
|
|
116
|
+
* - "REP-400102" Image rendering invalid strategy error on Sense client.
|
|
117
|
+
* - "REP-400240" Engine Client Global generic closure error
|
|
118
|
+
* - "REP-400260" Engine Client generic closure error.
|
|
119
|
+
* - "REP-400280" Engine Client proxy generic closure error.
|
|
120
|
+
* - "REP-401000" Unauthorized. The client must authenticate itself to get the requested response.
|
|
121
|
+
* - "REP-401001" Unauthorized, bad JWT.
|
|
122
|
+
* - "REP-403000" Forbidden. The client does not have access rights to the content.
|
|
123
|
+
* - "REP-403001" App forbidden, the user does not have read permission on the app.
|
|
124
|
+
* - "REP-403002" Chart type not supported.
|
|
125
|
+
* - "REP-403019" Export is not available for app with enabled directQuery feature.
|
|
126
|
+
* - "REP-403025" No entitlement to perform the operation.
|
|
127
|
+
* - "REP-403026" No entitlement to perform the operation. Export capability is off.
|
|
128
|
+
* - "REP-403027" Object without Hypercube or unsupported object type.
|
|
129
|
+
* - "REP-403048" Forbidden. User does not have permission to export the report (access control usePermission)
|
|
130
|
+
* - "REP-404000" Not found. The server can not find the requested resource.
|
|
131
|
+
* - "REP-404001" App not found, the app does not exist or it has been deleted.
|
|
132
|
+
* - "REP-404002" Chart not found, the chart does not exist or it has been deleted.
|
|
133
|
+
* - "REP-404003" Sheet not found, the sheet does not exist or it has been deleted or it is unavailable.
|
|
134
|
+
* - "REP-404004" Story not found, the story does not exist or it has been deleted or it is unavailable.
|
|
135
|
+
* - "REP-409001" App conflict.
|
|
136
|
+
* - "REP-409021" Reload timestamp constraint not met.
|
|
137
|
+
* - "REP-409046" Report aborted due to app reload.
|
|
138
|
+
* - "REP-422030" Apply variables error.
|
|
139
|
+
* - "REP-422051" There is no report to produce due to empty dataset or missing fields (the measure/dimension was removed or omitted in Section Access)
|
|
140
|
+
* - "REP-429000" Too many request. The user has sent too many requests in a given amount of time ("rate limiting").
|
|
141
|
+
* - "REP-429012" Exceeded max session tenant quota. A tenant has opened too many different sessions at the same time.
|
|
142
|
+
* - "REP-429014" The export could not be completed within the requested deadline.
|
|
143
|
+
* - "REP-429016" Exceeded max session tenant quota per day.
|
|
144
|
+
* - "REP-429022" Enigma generic abort.
|
|
145
|
+
* - "REP-500000" Fail to resolve resource.
|
|
146
|
+
* - "REP-500006" Fail to get report session parameters.
|
|
147
|
+
* - "REP-500014" The app did not open within 10 minutes.
|
|
148
|
+
* - "REP-500023" Validate Report Request Tags failure.
|
|
149
|
+
* - "REP-500045" Failure setting Bookmark timestamp.
|
|
150
|
+
* - "REP-500047" Error setting GroupState.
|
|
151
|
+
* - "REP-500053" Unexpected number of generated cycle reports.
|
|
152
|
+
* - "REP-500059" The App is corrupt.
|
|
153
|
+
* - "REP-500061" Engine Memory limit reached.
|
|
154
|
+
* - "REP-500100" Image rendering generic error on Sense client.
|
|
155
|
+
* - "REP-500101" Image rendering could not set cookies error on Sense client.
|
|
156
|
+
* - "REP-500103" Image rendering JS timeout error on Sense client.
|
|
157
|
+
* - "REP-500104" Image rendering load URL timeout error on Sense client.
|
|
158
|
+
* - "REP-500105" Image rendering max paint attempts exceeded error on Sense client.
|
|
159
|
+
* - "REP-500106" Image rendering max JS attempts exceeded error on Sense client.
|
|
160
|
+
* - "REP-500107" Image rendering render timeout error on Sense client.
|
|
161
|
+
* - "REP-500108" Image rendering JS failure due to timeout error on Sense client.
|
|
162
|
+
* - "REP-500109" Image rendering generic JS failure error on Sense client.
|
|
163
|
+
* - "REP-500200" Report Generator error.
|
|
164
|
+
* - "REP-500240" Engine Global generic closure error.
|
|
165
|
+
* - "REP-500260" Engine Websocket generic closure error.
|
|
166
|
+
* - "REP-500280" Engine proxy generic closure error.
|
|
167
|
+
* - "REP-503001" Rest Engine Error.
|
|
168
|
+
* - "REP-503005" Engine unavailable, qix-sessions error no engines available.
|
|
169
|
+
* - "REP-503013" Session unavailable. The engine session used to create the report is unavailable.
|
|
170
|
+
* - "REP-503060" Engine Service unavailable. */
|
|
171
|
+
code: string;
|
|
172
|
+
/** Optional. MAY be used to provide more concrete details. */
|
|
173
|
+
detail?: string;
|
|
174
|
+
/** Define the export error metadata. Each property is filled if it is related to the export error type. */
|
|
175
|
+
meta?: MetaExportError;
|
|
176
|
+
/** A summary in english explaining what went wrong. */
|
|
177
|
+
title: string;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Errors occured during report generation.
|
|
181
|
+
*/
|
|
182
|
+
type ExportErrors = ExportError[];
|
|
183
|
+
type Float64 = number;
|
|
184
|
+
/**
|
|
185
|
+
* Http callback. The provided uri will be called once the report is done.
|
|
186
|
+
*/
|
|
187
|
+
type HttpRequest = {
|
|
188
|
+
/** URI of the request. */
|
|
189
|
+
uri?: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Output to be used to export a single visualization as image.
|
|
193
|
+
*/
|
|
194
|
+
type ImageOutput = {
|
|
195
|
+
/** Image resolution in DPI (default 96 DPI). */
|
|
196
|
+
outDpi?: number;
|
|
197
|
+
/** The image format of the report to be produced. */
|
|
198
|
+
outFormat?: "png" | "jsondata";
|
|
199
|
+
/** 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. */
|
|
200
|
+
outZoom?: number;
|
|
201
|
+
};
|
|
202
|
+
type LinkResponse = {
|
|
203
|
+
href?: string;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* @example
|
|
207
|
+
* {
|
|
208
|
+
* next: {
|
|
209
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
210
|
+
* },
|
|
211
|
+
* prev: {
|
|
212
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
213
|
+
* },
|
|
214
|
+
* self: {
|
|
215
|
+
* href: "https://tenant.qlik-cloud.com:443/api/v1/apps/816e23e1-03d2-446b-8721-cdee6b5e59cf/report-filters?filter=&filterTypes=REP&filterTypes=REP&limit=20&page=0&sort=%2Bname"
|
|
216
|
+
* }
|
|
217
|
+
* }
|
|
218
|
+
*/
|
|
219
|
+
type LinksResponse = {
|
|
220
|
+
next: LinkResponse;
|
|
221
|
+
prev: LinkResponse;
|
|
222
|
+
self: LinkResponse;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Define the request metadata. It includes priority, deadline and future settings on execution policy of the request.
|
|
226
|
+
*/
|
|
227
|
+
type Meta = {
|
|
228
|
+
/** 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 4 hours. The recommended value for standard apps and exports (image, data, sheet) is 10 minutes, for larger apps or reports using composition or file based templates (Excel, PixelPerfect, HTML...) it should be set to 1 hour. */
|
|
229
|
+
exportDeadline?: string;
|
|
230
|
+
/** 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. */
|
|
231
|
+
outputTtl?: string;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Define the export error metadata. Each property is filled if it is related to the export error type.
|
|
235
|
+
*/
|
|
236
|
+
type MetaExportError = {
|
|
237
|
+
/** Errors occurring when dealing with the app. */
|
|
238
|
+
appErrors?: AppErrors;
|
|
239
|
+
/** Errors occurring in selections. */
|
|
240
|
+
selectionErrors?: SelectionErrors;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Patches to apply to sense charts. Patches are soft properties meaning that are not persistent and they live within a session.
|
|
244
|
+
*/
|
|
245
|
+
type NxPatch = {
|
|
246
|
+
qOp: "add" | "remove" | "replace";
|
|
247
|
+
/** Path to the property to add, remove or replace. */
|
|
248
|
+
qPath: string;
|
|
249
|
+
/** Corresponds to the value of the property to add or to the new value of the property to update. */
|
|
250
|
+
qValue?: string;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* @example
|
|
254
|
+
* {
|
|
255
|
+
* outputId: "output1",
|
|
256
|
+
* pdfOutput: {
|
|
257
|
+
* align: {
|
|
258
|
+
* horizontal: "center",
|
|
259
|
+
* vertical: "middle"
|
|
260
|
+
* },
|
|
261
|
+
* imageRenderingDpi: 300,
|
|
262
|
+
* orientation: "P",
|
|
263
|
+
* resizeData: {
|
|
264
|
+
* fit: "210mmx287mm"
|
|
265
|
+
* },
|
|
266
|
+
* resizeType: "fit",
|
|
267
|
+
* size: "A4"
|
|
268
|
+
* },
|
|
269
|
+
* type: "pdf"
|
|
270
|
+
* }
|
|
271
|
+
*/
|
|
272
|
+
type OutputItem = {
|
|
273
|
+
/** The callback to be performed once the report is done. */
|
|
274
|
+
callBackAction?: CallBackAction;
|
|
275
|
+
cycleOutput?: CycleOutput;
|
|
276
|
+
/** Output to be used to export an excel template. */
|
|
277
|
+
excelOutput?: ExcelOutput;
|
|
278
|
+
/** Output to be used to export a single visualization as image. */
|
|
279
|
+
imageOutput?: ImageOutput;
|
|
280
|
+
/** 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. */
|
|
281
|
+
outputId: string;
|
|
282
|
+
/** Output to be used to export a composition of templates as pdf. */
|
|
283
|
+
pdfCompositionOutput?: PdfCompositionOutput;
|
|
284
|
+
/** 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. */
|
|
285
|
+
pdfOutput?: PdfOutput;
|
|
286
|
+
/** Output to be used to export a composition of templates as pptx. */
|
|
287
|
+
pptxCompositionOutput?: PptxCompositionOutput;
|
|
288
|
+
/** Output to be used to export a single visualization or a sheet as PowerPoint presentation. */
|
|
289
|
+
pptxOutput?: PptxOutput;
|
|
290
|
+
/** The generated report type.
|
|
291
|
+
*
|
|
292
|
+
* Each template type supports specific output types:
|
|
293
|
+
* - composition-1.0 supports only pdfcomposition and pptxcomposition output types
|
|
294
|
+
* - sense-excel-template-1.0 supports only excel and pdf output type
|
|
295
|
+
* - sense-pixel-perfect-template-1.0 supports only pdf output type
|
|
296
|
+
* - sense-html-template-1.0 supports only html output type
|
|
297
|
+
* - sense-powerpoint-template-1.0 supports powerpoint and pdf output types
|
|
298
|
+
* - sense-word-template-1.0 supports word and pdf output types
|
|
299
|
+
* - sense-image-1.0 supports pdf, pptx and image output types
|
|
300
|
+
* - sense-sheet-1.0 supports pdf and pptx output type
|
|
301
|
+
* - sense-data-1.0 supports xlsx output type
|
|
302
|
+
*
|
|
303
|
+
* Each output type requires a specific output to be provided:
|
|
304
|
+
* - excel requires excelOutput to be set
|
|
305
|
+
* - pdfcomposition requires pdfCompositionOutput to be set
|
|
306
|
+
* - pptxcomposition requires pptxCompositionOutput to be set
|
|
307
|
+
* - pdf requires pdfOutput to be set
|
|
308
|
+
* - pptx requires pptxOutput to be set
|
|
309
|
+
* - image requires imageOutput to be set
|
|
310
|
+
* - csv doesn't have csv output
|
|
311
|
+
* - xlsx requires xlsxOutput to be set */
|
|
312
|
+
type: "image" | "pdf" | "xlsx" | "jsondata" | "pdfcomposition" | "excel" | "pptx" | "pptxcomposition" | "csv" | "cycle" | "html" | "powerpoint" | "word";
|
|
313
|
+
};
|
|
314
|
+
type OutputList = {
|
|
315
|
+
/** a list of outputs containing all the report outputs */
|
|
316
|
+
data: OutputListItem[];
|
|
317
|
+
links: LinksResponse;
|
|
318
|
+
};
|
|
319
|
+
type OutputListItem = {
|
|
320
|
+
cycleSelections?: QSelection[];
|
|
321
|
+
/** Errors occured during report generation. */
|
|
322
|
+
exportErrors?: ExportErrors;
|
|
323
|
+
/** Location to download the generated report file. */
|
|
324
|
+
location?: string;
|
|
325
|
+
/** The output ID */
|
|
326
|
+
readonly outputId?: string;
|
|
327
|
+
/** output size in bytes */
|
|
328
|
+
sizeBytes?: number;
|
|
329
|
+
/** Status of the requested report. */
|
|
330
|
+
status?: "queued" | "processing" | "done" | "failed" | "aborted" | "aborting";
|
|
331
|
+
traceId?: string;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Output to be used to export a composition of templates as pdf.
|
|
335
|
+
*/
|
|
336
|
+
type PdfCompositionOutput = {
|
|
337
|
+
/** The ordered list of PDF outputs, the number must match the composable templates. */
|
|
338
|
+
pdfOutputs?: PdfOutput[];
|
|
339
|
+
/** 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. */
|
|
340
|
+
properties?: DocProperties;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* 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.
|
|
344
|
+
*/
|
|
345
|
+
type PdfOutput = {
|
|
346
|
+
/** Content alignment. */
|
|
347
|
+
align?: {
|
|
348
|
+
horizontal?: "left" | "center" | "right";
|
|
349
|
+
vertical?: "top" | "middle" | "bottom";
|
|
350
|
+
};
|
|
351
|
+
/** This value is used for rendered images only, set to a default of 300 dpi. */
|
|
352
|
+
imageRenderingDpi?: number;
|
|
353
|
+
/** 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. */
|
|
354
|
+
orientation?: "P" | "L" | "A";
|
|
355
|
+
/** 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. */
|
|
356
|
+
properties?: DocProperties;
|
|
357
|
+
/** The area where the object (eg. sheet, chart) is printed. Required in case of "fit" resizeType. */
|
|
358
|
+
resizeData?: {
|
|
359
|
+
/** 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). */
|
|
360
|
+
fit?: string;
|
|
361
|
+
};
|
|
362
|
+
/** The type of resize to be performed:
|
|
363
|
+
* - 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.
|
|
364
|
+
* - 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.
|
|
365
|
+
* - fit fits the visualization, sheet or story into the area specified in resizeData. The content will be rescaled to fit in that area. */
|
|
366
|
+
resizeType?: "none" | "autofit" | "fit";
|
|
367
|
+
/** Size of the pdf page. */
|
|
368
|
+
size?: "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "Letter" | "Legal" | "Tabloid";
|
|
369
|
+
};
|
|
370
|
+
type PostReportsResponse = {
|
|
371
|
+
/** A message indicating the status of the request. */
|
|
372
|
+
message?: string;
|
|
373
|
+
/** The absolute URL to get the outputs of the report request. */
|
|
374
|
+
outputsUrl?: string;
|
|
375
|
+
/** The report request ID */
|
|
376
|
+
readonly requestId?: string;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Output to be used to export a composition of templates as pptx.
|
|
380
|
+
*/
|
|
381
|
+
type PptxCompositionOutput = {
|
|
382
|
+
/** Output to be used to export a single visualization or a sheet as PowerPoint presentation. */
|
|
383
|
+
pptxOutput?: PptxOutput;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Output to be used to export a single visualization or a sheet as PowerPoint presentation.
|
|
387
|
+
*/
|
|
388
|
+
type PptxOutput = {
|
|
389
|
+
/** This value is used for rendered images only, set to a default of 300 dpi. */
|
|
390
|
+
imageRenderingDpi?: number;
|
|
391
|
+
/** L for landscape, P for portrait and A for auto-detect. Auto-detect sets landscape, the default PowerPoint orientation. */
|
|
392
|
+
orientation?: "L" | "P" | "A";
|
|
393
|
+
/** 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. */
|
|
394
|
+
properties?: DocProperties;
|
|
395
|
+
/** The type of resize to be performed. Autofit automatically fits the visualization, sheet or story into the output size (i.e. Widescreen, OnScreen etc.). */
|
|
396
|
+
resizeType?: "autofit";
|
|
397
|
+
/** Size of the PowerPoint slide:
|
|
398
|
+
* - Widescreen: 960x540
|
|
399
|
+
* - OnScreen: 720x540
|
|
400
|
+
* - OnScreen16x9: 720x405
|
|
401
|
+
* - OnScreen16x10: 720x450 */
|
|
402
|
+
size?: "Widescreen" | "OnScreen" | "OnScreen16x9" | "OnScreen16x10";
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* 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.
|
|
406
|
+
*/
|
|
407
|
+
type QFieldValue = {
|
|
408
|
+
/** IsNumeric tells whether the field value is text or number. Default value is equal to defaultIsNumeric property in QSelection. */
|
|
409
|
+
isNumeric?: boolean;
|
|
410
|
+
number?: Float64;
|
|
411
|
+
/** String value of the field value. */
|
|
412
|
+
text?: string;
|
|
413
|
+
};
|
|
414
|
+
type QSelection = {
|
|
415
|
+
/** Default value that QFieldValue isNumeric property takes if missing. */
|
|
416
|
+
defaultIsNumeric: boolean;
|
|
417
|
+
/** The name of the field to be selected. */
|
|
418
|
+
fieldName: string;
|
|
419
|
+
/** The values of the field to be selected. */
|
|
420
|
+
values: QFieldValue[];
|
|
421
|
+
};
|
|
422
|
+
type Reason = {
|
|
423
|
+
/** Errors occured during report generation. */
|
|
424
|
+
exportErrors?: ExportErrors;
|
|
425
|
+
/** The output identifier which uniquely identifies an output (PDF, image etc.) within the same request. */
|
|
426
|
+
outputId?: string;
|
|
427
|
+
traceId?: string;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* @example
|
|
431
|
+
* {
|
|
432
|
+
* compositionTemplates: [
|
|
433
|
+
* {
|
|
434
|
+
* senseSheetTemplate: {
|
|
435
|
+
* appId: "2451e58e-a1b9-4047-abf6-315e91d8a610",
|
|
436
|
+
* selectionsByStateDef: "sel1",
|
|
437
|
+
* sheet: {
|
|
438
|
+
* id: "5ffe3801-1b6d-439d-a849-84d0748358f1"
|
|
439
|
+
* }
|
|
440
|
+
* },
|
|
441
|
+
* type: "sense-sheet-1.0"
|
|
442
|
+
* },
|
|
443
|
+
* {
|
|
444
|
+
* senseSheetTemplate: {
|
|
445
|
+
* appId: "2451e58e-a1b9-4047-abf6-315e91d8a610",
|
|
446
|
+
* selectionsByStateDef: "sel1",
|
|
447
|
+
* sheet: {
|
|
448
|
+
* id: "ffrxJyA"
|
|
449
|
+
* }
|
|
450
|
+
* },
|
|
451
|
+
* type: "sense-sheet-1.0"
|
|
452
|
+
* }
|
|
453
|
+
* ],
|
|
454
|
+
* definitions: {
|
|
455
|
+
* selectionsByState: {
|
|
456
|
+
* "sel1": {
|
|
457
|
+
* "$": [
|
|
458
|
+
* {
|
|
459
|
+
* defaultIsNumeric: false,
|
|
460
|
+
* fieldName: "Region",
|
|
461
|
+
* values: [
|
|
462
|
+
* {
|
|
463
|
+
* isNumeric: false,
|
|
464
|
+
* text: "Arizona"
|
|
465
|
+
* }
|
|
466
|
+
* ]
|
|
467
|
+
* }
|
|
468
|
+
* ]
|
|
469
|
+
* }
|
|
470
|
+
* }
|
|
471
|
+
* },
|
|
472
|
+
* output: {
|
|
473
|
+
* outputId: "composition1",
|
|
474
|
+
* pdfCompositionOutput: {
|
|
475
|
+
* pdfOutputs: [
|
|
476
|
+
* {
|
|
477
|
+
* align: {
|
|
478
|
+
* horizontal: "center",
|
|
479
|
+
* vertical: "middle"
|
|
480
|
+
* },
|
|
481
|
+
* orientation: "A",
|
|
482
|
+
* resizeType: "autofit",
|
|
483
|
+
* size: "A4"
|
|
484
|
+
* },
|
|
485
|
+
* {
|
|
486
|
+
* align: {
|
|
487
|
+
* horizontal: "center",
|
|
488
|
+
* vertical: "middle"
|
|
489
|
+
* },
|
|
490
|
+
* orientation: "A",
|
|
491
|
+
* resizeType: "autofit",
|
|
492
|
+
* size: "A4"
|
|
493
|
+
* }
|
|
494
|
+
* ]
|
|
495
|
+
* },
|
|
496
|
+
* type: "pdfcomposition"
|
|
497
|
+
* },
|
|
498
|
+
* type: "composition-1.0"
|
|
499
|
+
* }
|
|
500
|
+
*/
|
|
501
|
+
type ReportRequest = {
|
|
502
|
+
/** Composition of senseSheetTemplate and/or senseImageTemplate templates. */
|
|
503
|
+
compositionTemplates?: ComposableTemplate[];
|
|
504
|
+
/** Definitions of common properties that are shared between templates, e.g. selectionsByState can be the same for all templates within a composition of templates. */
|
|
505
|
+
definitions?: Definitions;
|
|
506
|
+
/** Define the request metadata. It includes priority, deadline and future settings on execution policy of the request. */
|
|
507
|
+
meta?: Meta;
|
|
508
|
+
output: OutputItem;
|
|
509
|
+
/** The callback to be performed once the report is done. */
|
|
510
|
+
requestCallBackAction?: CallBackAction;
|
|
511
|
+
senseDataTemplate?: SenseDataTemplate;
|
|
512
|
+
/** Used to produce reports from a template file. */
|
|
513
|
+
senseExcelTemplate?: SenseFileTemplate;
|
|
514
|
+
/** Used to produce reports from a template file. */
|
|
515
|
+
senseHtmlTemplate?: SenseFileTemplate;
|
|
516
|
+
/** Used to export a single visualization as pdf, pptx or png. */
|
|
517
|
+
senseImageTemplate?: SenseImageTemplate;
|
|
518
|
+
/** Used to produce reports from a template file. */
|
|
519
|
+
sensePixelPerfectTemplate?: SenseFileTemplate;
|
|
520
|
+
/** Used to produce reports from a template file. */
|
|
521
|
+
sensePowerPointTemplate?: SenseFileTemplate;
|
|
522
|
+
/** Used to export a sheet as pdf or pptx. */
|
|
523
|
+
senseSheetTemplate?: SenseSheetTemplate;
|
|
524
|
+
/** Used to produce reports from a template file. */
|
|
525
|
+
senseWordTemplate?: SenseFileTemplate;
|
|
526
|
+
/** Template type and version using semantic versioning. It must have the following name convention: dashed-separated-template-name-MAJOR.MINOR.
|
|
527
|
+
* Please note that sense-powerpoint-template-1.0, sense-word-template-1.0, sense-story-x.0 and qv-data-x.0 are only for internal use.
|
|
528
|
+
*
|
|
529
|
+
* Each type requires a specific template to be provided:
|
|
530
|
+
* - composition-1.0 requires compositionTemplates to be set
|
|
531
|
+
* - sense-excel-template-1.0 requires senseExcelTemplate to be set
|
|
532
|
+
* - sense-image-1.0 requires senseImageTemplate to be set
|
|
533
|
+
* - sense-sheet-1.0 requires senseSheetTemplate to be set
|
|
534
|
+
* - sense-data-1.0 requires senseDataTemplate to be set
|
|
535
|
+
* - sense-pixel-perfect-template-1.0 requires sensePixelPerfectTemplate to be set
|
|
536
|
+
* - sense-html-template-1.0 requires senseHtmlTemplate to be set
|
|
537
|
+
* - sense-powerpoint-template-1.0 requires sensePowerPointTemplate to be set
|
|
538
|
+
* - sense-word-template-1.0 requires senseWordTemplate to be set
|
|
539
|
+
*
|
|
540
|
+
* Each template type supports specific output types:
|
|
541
|
+
* - composition-1.0 supports pdfcomposition and pptxcomposition output type
|
|
542
|
+
* - sense-excel-template-1.0 supports excel and pdf output type
|
|
543
|
+
* - sense-image-1.0 supports pdf, pptx and png output types
|
|
544
|
+
* - sense-sheet-1.0 supports pdf, pptx output type
|
|
545
|
+
* - sense-data-1.0 supports xlsx output type
|
|
546
|
+
* - sense-pixel-perfect-template-1.0 supports pdf output types
|
|
547
|
+
* - sense-html-template-1.0 supports html output types
|
|
548
|
+
* - sense-powerpoint-template-1.0 supports powerpoint and pdf output types
|
|
549
|
+
* - sense-word-template-1.0 supports word and pdf output types
|
|
550
|
+
*
|
|
551
|
+
* Each output type requires a specific output to be provided:
|
|
552
|
+
* - pdfcomposition requires pdfCompositionOutput to be set
|
|
553
|
+
* - pptxcomposition requires pptxCompositionOutput to be set
|
|
554
|
+
* - pdf requires pdfOutput to be set
|
|
555
|
+
* - pptx requires pptxOutput to be set
|
|
556
|
+
* - image requires imageOutput to be set
|
|
557
|
+
* - xlsx requires xlsxOutput to be set */
|
|
558
|
+
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" | "sense-powerpoint-template-1.0" | "sense-word-template-1.0";
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* @example
|
|
562
|
+
* {
|
|
563
|
+
* resolutionAttempts: 1,
|
|
564
|
+
* results: [
|
|
565
|
+
* {
|
|
566
|
+
* location: "https://qlikcloud.com:443/api/v1/temp-contents/619baab68023910001efcb86?inline=1",
|
|
567
|
+
* outputId: "output1"
|
|
568
|
+
* }
|
|
569
|
+
* ],
|
|
570
|
+
* status: "done",
|
|
571
|
+
* statusLocation: "/reports/01562a37-23e3-4b43-865d-84c26122276c/status"
|
|
572
|
+
* }
|
|
573
|
+
*/
|
|
574
|
+
type ReportStatus = {
|
|
575
|
+
/** @deprecated
|
|
576
|
+
* Present when status is failed. Deprecated. Use /reports/{id}/outputs instead. */
|
|
577
|
+
reasons?: Reason[];
|
|
578
|
+
/** Errors occured during report generation. */
|
|
579
|
+
requestErrors?: ExportErrors;
|
|
580
|
+
/** Count how many times the resolution of this report was attempted. */
|
|
581
|
+
resolutionAttempts?: number;
|
|
582
|
+
/** @deprecated
|
|
583
|
+
* Present when the status is "done". Deprecated. Use /reports/{id}/outputs instead. */
|
|
584
|
+
results?: Result[];
|
|
585
|
+
/** Status of the requested report. */
|
|
586
|
+
status: "queued" | "processing" | "done" | "failed" | "aborted" | "visiting" | "aborting";
|
|
587
|
+
/** Relative path to status location. */
|
|
588
|
+
statusLocation?: string;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Result and info about the generated report.
|
|
592
|
+
*/
|
|
593
|
+
type Result = {
|
|
594
|
+
/** Errors occured during report generation. */
|
|
595
|
+
exportErrors?: ExportErrors;
|
|
596
|
+
/** Location to download the generated report. */
|
|
597
|
+
location: string;
|
|
598
|
+
/** The output identifier which uniquely identifies an output (PDF, image etc.) within the same request. */
|
|
599
|
+
outputId: string;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* Array of ChainableSelection
|
|
603
|
+
*/
|
|
604
|
+
type SelectionChain = ChainableSelection[];
|
|
605
|
+
/**
|
|
606
|
+
* Selection error related to a fieldName. The field name is missing or some of his selection values are missing or a state is missing
|
|
607
|
+
*/
|
|
608
|
+
type SelectionError = {
|
|
609
|
+
/** Details about the field selection error. */
|
|
610
|
+
detail?: string;
|
|
611
|
+
errorType?: "fieldMissing" | "fieldValuesMissing" | "stateMissing" | "groupStateGroupMissing" | "groupStateGroupNotApplicable" | "groupStateFieldDefMissing";
|
|
612
|
+
/** The field name that is missing. */
|
|
613
|
+
fieldName?: string;
|
|
614
|
+
/** @deprecated
|
|
615
|
+
* Deprecated, use errorType instead. True if the fieldName is missing. The missingValues array is empty in this case */
|
|
616
|
+
isFieldNameMissing?: boolean;
|
|
617
|
+
missingValues?: QFieldValue[];
|
|
618
|
+
/** The state name that is missing. */
|
|
619
|
+
stateName?: string;
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Errors occurring in selections.
|
|
623
|
+
*/
|
|
624
|
+
type SelectionErrors = SelectionError[];
|
|
625
|
+
type SelectionFilter = {
|
|
626
|
+
/** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
|
|
627
|
+
patchesById?: Record<string, NxPatch[]>;
|
|
628
|
+
/** 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. */
|
|
629
|
+
selectionsByState?: Record<string, QSelection[]>;
|
|
630
|
+
variables?: unknown[];
|
|
631
|
+
};
|
|
632
|
+
type SelectionStrategy = "failOnErrors" | "ignoreErrorsReturnDetails" | "ignoreErrorsNoDetails";
|
|
633
|
+
type SenseDataTemplate = {
|
|
634
|
+
appId: string;
|
|
635
|
+
exportOptions?: ExportDataOptions;
|
|
636
|
+
/** Sense visualization id. Visualizations created "on the fly" are not supported. */
|
|
637
|
+
id: string;
|
|
638
|
+
patches?: NxPatch[];
|
|
639
|
+
persistentBookmark?: SensePersistentBookmark;
|
|
640
|
+
/** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
|
|
641
|
+
reloadTimestampMatchType?: ReloadTimestampMatchType;
|
|
642
|
+
selectionStrategy?: SelectionStrategy;
|
|
643
|
+
selectionType?: SenseSelectionType;
|
|
644
|
+
/** 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. */
|
|
645
|
+
selectionsByState?: Record<string, QSelection[]>;
|
|
646
|
+
/** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
|
|
647
|
+
temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
|
|
648
|
+
variables?: unknown[];
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* Used to produce reports from a template file.
|
|
652
|
+
*/
|
|
653
|
+
type SenseFileTemplate = {
|
|
654
|
+
/** The values of the field to be selected. */
|
|
655
|
+
cycleFields?: string[];
|
|
656
|
+
/** 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. */
|
|
657
|
+
jsOpts?: unknown;
|
|
658
|
+
/** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
|
|
659
|
+
reloadTimestampMatchType?: ReloadTimestampMatchType;
|
|
660
|
+
/** Array of ChainableSelection */
|
|
661
|
+
selectionChain?: SelectionChain;
|
|
662
|
+
/** 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 */
|
|
663
|
+
templateLocation: TemplateLocation;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* Used to export a single visualization as pdf, pptx or png.
|
|
667
|
+
*/
|
|
668
|
+
type SenseImageTemplate = {
|
|
669
|
+
appId: string;
|
|
670
|
+
persistentBookmark?: SensePersistentBookmark;
|
|
671
|
+
/** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
|
|
672
|
+
reloadTimestampMatchType?: ReloadTimestampMatchType;
|
|
673
|
+
selectionStrategy?: SelectionStrategy;
|
|
674
|
+
selectionType?: SenseSelectionType;
|
|
675
|
+
/** 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. */
|
|
676
|
+
selectionsByState?: Record<string, QSelection[]>;
|
|
677
|
+
/** The definition ID referring to a selectionsByState definition declared in definitions. */
|
|
678
|
+
selectionsByStateDef?: string;
|
|
679
|
+
/** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
|
|
680
|
+
temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
|
|
681
|
+
visualization: Visualization;
|
|
682
|
+
};
|
|
683
|
+
type SensePersistentBookmark = {
|
|
684
|
+
/** Sense Persistence Bookmark id. */
|
|
685
|
+
id: string;
|
|
686
|
+
};
|
|
687
|
+
type SenseSelectionType = "selectionsByState" | "temporaryBookmark" | "persistentBookmark" | "temporaryBookmarkV2";
|
|
688
|
+
/**
|
|
689
|
+
* Used to export a sheet as pdf or pptx.
|
|
690
|
+
*/
|
|
691
|
+
type SenseSheetTemplate = {
|
|
692
|
+
appId: string;
|
|
693
|
+
persistentBookmark?: SensePersistentBookmark;
|
|
694
|
+
/** Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck. */
|
|
695
|
+
reloadTimestampMatchType?: ReloadTimestampMatchType;
|
|
696
|
+
selectionStrategy?: SelectionStrategy;
|
|
697
|
+
selectionType?: SenseSelectionType;
|
|
698
|
+
/** 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. */
|
|
699
|
+
selectionsByState?: Record<string, QSelection[]>;
|
|
700
|
+
/** The definition ID referring to a selectionsByState definition declared in definitions. */
|
|
701
|
+
selectionsByStateDef?: string;
|
|
702
|
+
/** 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. */
|
|
703
|
+
sheet: Sheet;
|
|
704
|
+
/** The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend. */
|
|
705
|
+
temporaryBookmarkV2?: SenseTemporaryBookmarkV2;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* The temporary bookmark to apply. Patches and Variables are ignored if passed to the API, because they already are applied in the backend.
|
|
709
|
+
*/
|
|
710
|
+
type SenseTemporaryBookmarkV2 = {
|
|
711
|
+
/** Sense Temporary Bookmark id. */
|
|
712
|
+
id: string;
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* 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.
|
|
716
|
+
*/
|
|
717
|
+
type Sheet = {
|
|
718
|
+
/** 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 */
|
|
719
|
+
heightPx?: number;
|
|
720
|
+
/** The id of the sheet. */
|
|
721
|
+
id: string;
|
|
722
|
+
/** 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. */
|
|
723
|
+
jsOpts?: unknown;
|
|
724
|
+
/** A map for applying jsOpts to specific visualization IDs within the sheet. */
|
|
725
|
+
jsOptsById?: Record<string, unknown>;
|
|
726
|
+
/** A map for applying soft properties, aka patches, to specific visualization IDs within the sheet. */
|
|
727
|
+
patchesById?: Record<string, NxPatch[]>;
|
|
728
|
+
/** 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 */
|
|
729
|
+
widthPx?: number;
|
|
730
|
+
};
|
|
731
|
+
/**
|
|
732
|
+
* 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
|
|
733
|
+
*/
|
|
734
|
+
type TemplateLocation = {
|
|
735
|
+
format?: "url";
|
|
736
|
+
/** The report template location path. */
|
|
737
|
+
path: string;
|
|
738
|
+
};
|
|
739
|
+
type Visualization = {
|
|
740
|
+
/** Height in pixels. */
|
|
741
|
+
heightPx: number;
|
|
742
|
+
/** The sense visualization id or json definition. */
|
|
743
|
+
id: string;
|
|
744
|
+
/** A JSON object that is passed as-is to the mashup page while rendering. */
|
|
745
|
+
jsOpts?: unknown;
|
|
746
|
+
/** Soft properties, aka patches, to be applied to the visualization. */
|
|
747
|
+
patches?: NxPatch[];
|
|
748
|
+
/** 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. */
|
|
749
|
+
type?: "visualization" | "sessionobject";
|
|
750
|
+
/** Width in pixels. */
|
|
751
|
+
widthPx: number;
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* Choose the reloadTimestamp constraint to apply. An empty value leads to the default noCheck.
|
|
755
|
+
* @example
|
|
756
|
+
* "noCheck"
|
|
757
|
+
*/
|
|
758
|
+
type ReloadTimestampMatchType = "noCheck" | "requestTimeExact";
|
|
759
|
+
/**
|
|
760
|
+
* Queue a new report request generation.
|
|
761
|
+
*
|
|
762
|
+
* @param body an object with the body content
|
|
763
|
+
* @throws CreateReportHttpError
|
|
764
|
+
*/
|
|
765
|
+
declare function createReport(body: ReportRequest, options?: ApiCallOptions): Promise<CreateReportHttpResponse>;
|
|
766
|
+
type CreateReportHttpResponse = {
|
|
767
|
+
data: PostReportsResponse;
|
|
768
|
+
headers: Headers;
|
|
769
|
+
status: 202;
|
|
770
|
+
};
|
|
771
|
+
type CreateReportHttpError = {
|
|
772
|
+
data: Error;
|
|
773
|
+
headers: Headers;
|
|
774
|
+
status: 400 | 401 | 403 | 404 | 409 | 429 | 500;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* Get the list of the outputs produced so far for the given report request. The outputs are generated asynchronously
|
|
778
|
+
* and are complete only when the status of the report request is 'done' or 'failed' or 'aborted'.
|
|
779
|
+
*
|
|
780
|
+
* @param id Identifier of the request.
|
|
781
|
+
* @param query an object with query parameters
|
|
782
|
+
* @throws GetReportOutputsHttpError
|
|
783
|
+
*/
|
|
784
|
+
declare function getReportOutputs(id: string, query: {
|
|
785
|
+
/** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. Cannot be combined with any of the fields marked as deprecated. All conditional statements within this query parameter are case insensitive.
|
|
786
|
+
* The following fields support the `eq` (equals) operator: `outputId`
|
|
787
|
+
* Example:
|
|
788
|
+
* outputId eq "123" or outputId eq "321" */
|
|
789
|
+
filter?: string;
|
|
790
|
+
/** Limit the returned result set */
|
|
791
|
+
limit?: number;
|
|
792
|
+
/** If present, the cursor that starts the page of data that is returned. */
|
|
793
|
+
page?: string;
|
|
794
|
+
/** Sorting parameters */
|
|
795
|
+
sort?: ("+outputId" | "-outputId" | "+sizeBytes" | "-sizeBytes")[];
|
|
796
|
+
}, options?: ApiCallOptions): Promise<GetReportOutputsHttpResponse>;
|
|
797
|
+
type GetReportOutputsHttpResponse = {
|
|
798
|
+
data: OutputList;
|
|
799
|
+
headers: Headers;
|
|
800
|
+
status: 200;
|
|
801
|
+
prev?: (options?: ApiCallOptions) => Promise<GetReportOutputsHttpResponse>;
|
|
802
|
+
next?: (options?: ApiCallOptions) => Promise<GetReportOutputsHttpResponse>;
|
|
803
|
+
};
|
|
804
|
+
type GetReportOutputsHttpError = {
|
|
805
|
+
data: Error;
|
|
806
|
+
headers: Headers;
|
|
807
|
+
status: 400 | 401 | 403 | 404 | 409 | 429 | 500;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Get report request processing status.
|
|
811
|
+
*
|
|
812
|
+
* @param id Identifier of the request.
|
|
813
|
+
* @throws GetReportStatusHttpError
|
|
814
|
+
*/
|
|
815
|
+
declare function getReportStatus(id: string, options?: ApiCallOptions): Promise<GetReportStatusHttpResponse>;
|
|
816
|
+
type GetReportStatusHttpResponse = {
|
|
817
|
+
data: ReportStatus;
|
|
818
|
+
headers: Headers;
|
|
819
|
+
status: 200;
|
|
820
|
+
};
|
|
821
|
+
type GetReportStatusHttpError = {
|
|
822
|
+
data: Error;
|
|
823
|
+
headers: Headers;
|
|
824
|
+
status: 400 | 401 | 403 | 404 | 409 | 429 | 500;
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* Clears the cache for reports api requests.
|
|
828
|
+
*/
|
|
829
|
+
declare function clearCache(): void;
|
|
830
|
+
type ReportsAPI = {
|
|
831
|
+
/**
|
|
832
|
+
* Queue a new report request generation.
|
|
833
|
+
*
|
|
834
|
+
* @param body an object with the body content
|
|
835
|
+
* @throws CreateReportHttpError
|
|
836
|
+
*/
|
|
837
|
+
createReport: typeof createReport;
|
|
838
|
+
/**
|
|
839
|
+
* Get the list of the outputs produced so far for the given report request. The outputs are generated asynchronously
|
|
840
|
+
* and are complete only when the status of the report request is 'done' or 'failed' or 'aborted'.
|
|
841
|
+
*
|
|
842
|
+
* @param id Identifier of the request.
|
|
843
|
+
* @param query an object with query parameters
|
|
844
|
+
* @throws GetReportOutputsHttpError
|
|
845
|
+
*/
|
|
846
|
+
getReportOutputs: typeof getReportOutputs;
|
|
847
|
+
/**
|
|
848
|
+
* Get report request processing status.
|
|
849
|
+
*
|
|
850
|
+
* @param id Identifier of the request.
|
|
851
|
+
* @throws GetReportStatusHttpError
|
|
852
|
+
*/
|
|
853
|
+
getReportStatus: typeof getReportStatus;
|
|
854
|
+
/**
|
|
855
|
+
* Clears the cache for reports api requests.
|
|
856
|
+
*/
|
|
857
|
+
clearCache: typeof clearCache;
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Functions for the reports api
|
|
861
|
+
*/
|
|
862
|
+
declare const reportsExport: ReportsAPI;
|
|
863
|
+
//#endregion
|
|
4
864
|
export { AppError, AppErrors, CallBackAction, ChainableSelection, ChainableSelectionType, ComposableTemplate, CreateReportHttpError, CreateReportHttpResponse, CycleOutput, Definitions, DocProperties, Error, ExcelOutput, ExportDataOptions, ExportError, ExportErrors, Float64, GetReportOutputsHttpError, GetReportOutputsHttpResponse, GetReportStatusHttpError, GetReportStatusHttpResponse, HttpRequest, ImageOutput, LinkResponse, LinksResponse, Meta, MetaExportError, NxPatch, OutputItem, OutputList, OutputListItem, PdfCompositionOutput, PdfOutput, PostReportsResponse, PptxCompositionOutput, PptxOutput, QFieldValue, QSelection, Reason, ReloadTimestampMatchType, ReportRequest, ReportStatus, ReportsAPI, Result, SelectionChain, SelectionError, SelectionErrors, SelectionFilter, SelectionStrategy, SenseDataTemplate, SenseFileTemplate, SenseImageTemplate, SensePersistentBookmark, SenseSelectionType, SenseSheetTemplate, SenseTemporaryBookmarkV2, Sheet, TemplateLocation, Visualization, clearCache, createReport, reportsExport as default, getReportOutputs, getReportStatus };
|