@acorex-platform/module-report-management-client 0.0.18 → 0.0.24
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/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs +4232 -0
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +85 -149
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs +24 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs +166 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs +113 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -3584
- package/fesm2022/acorex-platform-module-report-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +280 -120
- package/types/acorex-platform-module-report-management-client.d.ts +256 -206
- package/fesm2022/acorex-platform-module-report-management-client-report-drill-popup.component-BdZPBD7t.mjs +0 -59
- package/fesm2022/acorex-platform-module-report-management-client-report-drill-popup.component-BdZPBD7t.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-runner-root-page.component-CVG3HiJX.mjs +0 -504
- package/fesm2022/acorex-platform-module-report-management-client-report-runner-root-page.component-CVG3HiJX.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { AXPWidgetColumnNode } from '@acorex-platform/framework-shared/widget-core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { AXPQuerySort, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { AXPMultiLanguageString, AXPCategoryEntity, AXPWidgetNode, AXPActionMenuItem, AXPSystemActionType, AXPExportOptions, AXPRuntimeQueryResult, AXPRuntimeCollectionData } from '@acorex-platform/framework-shared/core';
|
|
4
|
+
|
|
5
|
+
declare const AXMReportManagementCommandKeys: {
|
|
6
|
+
readonly RecalculateQuerySnapshots: "ReportManagement:RecalculateQuerySnapshots";
|
|
7
|
+
readonly RefreshQuerySnapshots: "ReportManagement:RefreshQuerySnapshots";
|
|
8
|
+
readonly ReportGeneration: {
|
|
9
|
+
readonly Create: "ReportManagement:ReportGeneration:Create";
|
|
10
|
+
readonly Execute: "ReportManagement:ReportGeneration:Execute";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY: "ReportManagement:RecalculateQuerySnapshots";
|
|
14
|
+
declare const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY: "ReportManagement:RefreshQuerySnapshots";
|
|
5
15
|
|
|
6
16
|
declare const AXPReportManagementFeatureKeys: {
|
|
7
17
|
readonly ReportBuilder: "ReportManagement:Feature:ReportBuilder";
|
|
@@ -17,22 +27,38 @@ declare const AXPReportManagementMenuKeys: {
|
|
|
17
27
|
readonly DataSets: "report-management:menu:data-sets";
|
|
18
28
|
};
|
|
19
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Insights & Reporting capabilities used by this module.
|
|
32
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
33
|
+
*/
|
|
34
|
+
declare const AXPInsightsReportingPermissionKeys: {
|
|
35
|
+
readonly Access: "InsightsReporting:Permission:Access";
|
|
36
|
+
readonly MaintainReports: "InsightsReporting:Permission:MaintainReports";
|
|
37
|
+
readonly MaintainData: "InsightsReporting:Permission:MaintainData";
|
|
38
|
+
readonly ViewActivityInsight: "InsightsReporting:Permission:ViewActivityInsight";
|
|
39
|
+
readonly ManageActivityInsight: "InsightsReporting:Permission:ManageActivityInsight";
|
|
40
|
+
readonly Setup: "InsightsReporting:Permission:Setup";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
|
|
44
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
45
|
+
*/
|
|
20
46
|
declare const AXMPermissionsKeys: {
|
|
21
|
-
ReportManagement: {
|
|
22
|
-
Management:
|
|
23
|
-
Report: {
|
|
24
|
-
Management:
|
|
25
|
-
View:
|
|
26
|
-
Create:
|
|
27
|
-
Update:
|
|
28
|
-
Delete:
|
|
47
|
+
readonly ReportManagement: {
|
|
48
|
+
readonly Management: "InsightsReporting:Permission:MaintainReports";
|
|
49
|
+
readonly Report: {
|
|
50
|
+
readonly Management: "InsightsReporting:Permission:MaintainReports";
|
|
51
|
+
readonly View: "InsightsReporting:Permission:MaintainReports";
|
|
52
|
+
readonly Create: "InsightsReporting:Permission:MaintainReports";
|
|
53
|
+
readonly Update: "InsightsReporting:Permission:MaintainReports";
|
|
54
|
+
readonly Delete: "InsightsReporting:Permission:MaintainReports";
|
|
29
55
|
};
|
|
30
|
-
Category: {
|
|
31
|
-
Management:
|
|
32
|
-
View:
|
|
33
|
-
Create:
|
|
34
|
-
Update:
|
|
35
|
-
Delete:
|
|
56
|
+
readonly Category: {
|
|
57
|
+
readonly Management: "InsightsReporting:Permission:Setup";
|
|
58
|
+
readonly View: "InsightsReporting:Permission:Setup";
|
|
59
|
+
readonly Create: "InsightsReporting:Permission:Setup";
|
|
60
|
+
readonly Update: "InsightsReporting:Permission:Setup";
|
|
61
|
+
readonly Delete: "InsightsReporting:Permission:Setup";
|
|
36
62
|
};
|
|
37
63
|
};
|
|
38
64
|
};
|
|
@@ -56,8 +82,8 @@ declare const RootConfig: {
|
|
|
56
82
|
readonly icon: "fa-light fa-default";
|
|
57
83
|
};
|
|
58
84
|
readonly category: {
|
|
59
|
-
readonly name: "
|
|
60
|
-
readonly fullName: `${string}.
|
|
85
|
+
readonly name: "ReportCategory";
|
|
86
|
+
readonly fullName: `${string}.ReportCategory`;
|
|
61
87
|
readonly title: `@${string}:reports.entities.category.title`;
|
|
62
88
|
readonly titlePlural: `@${string}:reports.entities.category.plural`;
|
|
63
89
|
readonly icon: "fa-light fa-folder";
|
|
@@ -69,6 +95,27 @@ declare const RootConfig: {
|
|
|
69
95
|
readonly titlePlural: `@${string}:reports.entities.report.plural`;
|
|
70
96
|
readonly icon: "fa-light fa-file-chart-pie";
|
|
71
97
|
};
|
|
98
|
+
readonly querySnapshotPolicy: {
|
|
99
|
+
readonly name: "QuerySnapshotPolicy";
|
|
100
|
+
readonly fullName: `${string}.QuerySnapshotPolicy`;
|
|
101
|
+
readonly title: `@${string}:query-snapshots.entities.policy.title`;
|
|
102
|
+
readonly titlePlural: `@${string}:query-snapshots.entities.policy.plural`;
|
|
103
|
+
readonly icon: "fa-light fa-sliders";
|
|
104
|
+
};
|
|
105
|
+
readonly querySnapshot: {
|
|
106
|
+
readonly name: "QuerySnapshot";
|
|
107
|
+
readonly fullName: `${string}.QuerySnapshot`;
|
|
108
|
+
readonly title: `@${string}:query-snapshots.entities.snapshot.title`;
|
|
109
|
+
readonly titlePlural: `@${string}:query-snapshots.entities.snapshot.plural`;
|
|
110
|
+
readonly icon: "fa-light fa-camera";
|
|
111
|
+
};
|
|
112
|
+
readonly reportGenerationRequest: {
|
|
113
|
+
readonly name: "ReportGenerationRequest";
|
|
114
|
+
readonly fullName: `${string}.ReportGenerationRequest`;
|
|
115
|
+
readonly title: `@${string}:report-generation.entities.request.title`;
|
|
116
|
+
readonly titlePlural: `@${string}:report-generation.entities.request.plural`;
|
|
117
|
+
readonly icon: "fa-light fa-file-export";
|
|
118
|
+
};
|
|
72
119
|
};
|
|
73
120
|
};
|
|
74
121
|
|
|
@@ -93,15 +140,70 @@ type AXPReportLayoutType = 'table' | 'chart' | 'cards' | 'custom' | 'pdf';
|
|
|
93
140
|
*/
|
|
94
141
|
interface AXPReportCategory extends AXPCategoryEntity {
|
|
95
142
|
}
|
|
143
|
+
/** How an entity-bound report is surfaced on the host entity UI. */
|
|
144
|
+
type AXPReportEntityDisplay = 'action' | 'page' | 'popup';
|
|
145
|
+
/**
|
|
146
|
+
* Parameter value on an entity binding:
|
|
147
|
+
* - field path / expression string (e.g. `id`)
|
|
148
|
+
* - `'today'` → local calendar day `{ from, to }`
|
|
149
|
+
* - explicit `{ from, to }` date range
|
|
150
|
+
*/
|
|
151
|
+
type AXPReportEntityParameterValue = string | {
|
|
152
|
+
from: string;
|
|
153
|
+
to: string;
|
|
154
|
+
};
|
|
155
|
+
/** Binds a report to a host entity type for Reports page discovery. */
|
|
156
|
+
interface AXPReportEntityBinding {
|
|
157
|
+
/** Fully qualified entity type, e.g. `SecurityManagement.User`. */
|
|
158
|
+
entity: string;
|
|
159
|
+
/** Optional list title (i18n key or plain text). Falls back to report title. */
|
|
160
|
+
title?: string;
|
|
161
|
+
/** Optional list description (i18n key or plain text). Falls back to report description. */
|
|
162
|
+
description?: string;
|
|
163
|
+
layoutId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Where to surface the report. Defaults to `['page']` (Reports side-menu page).
|
|
166
|
+
* `action` / `popup` are retained for data compatibility but are not contributed as entity Actions.
|
|
167
|
+
*/
|
|
168
|
+
display?: AXPReportEntityDisplay | AXPReportEntityDisplay[];
|
|
169
|
+
/**
|
|
170
|
+
* Map report parameter path → entity field / expression / date token.
|
|
171
|
+
* Example: `{ userId: 'id', dateRange: 'today' }`
|
|
172
|
+
*/
|
|
173
|
+
parameters?: Record<string, AXPReportEntityParameterValue>;
|
|
174
|
+
order?: number;
|
|
175
|
+
}
|
|
96
176
|
interface AXPReportDefinition {
|
|
97
177
|
id: string;
|
|
98
|
-
title:
|
|
99
|
-
description?:
|
|
178
|
+
title: AXPMultiLanguageString;
|
|
179
|
+
description?: AXPMultiLanguageString;
|
|
100
180
|
categoryIds: string[];
|
|
101
181
|
parameterGroups: AXPReportParameterGroup[];
|
|
102
182
|
permissions?: string[];
|
|
103
183
|
layouts: AXPReportLayoutDefinition[];
|
|
104
184
|
defaultLayoutId: string;
|
|
185
|
+
/** Optional host-entity bindings for the entity `reports` plugin. */
|
|
186
|
+
entities?: AXPReportEntityBinding[];
|
|
187
|
+
/** Background / choose / interactive generation options. Omitted = interactive. */
|
|
188
|
+
generation?: AXPReportGenerationOptions;
|
|
189
|
+
}
|
|
190
|
+
type AXPReportGenerationMode = 'interactive' | 'background' | 'choose';
|
|
191
|
+
type AXPReportArtifactKind = 'viewer' | 'pdf' | 'excel' | 'csv';
|
|
192
|
+
type AXPReportFreezeLayouts = 'current' | 'all';
|
|
193
|
+
interface AXPReportGenerationOptions {
|
|
194
|
+
/** Omitted = interactive (today’s viewer). */
|
|
195
|
+
mode?: AXPReportGenerationMode;
|
|
196
|
+
/** Default `['viewer']` when mode is background or choose. */
|
|
197
|
+
formats?: AXPReportArtifactKind[];
|
|
198
|
+
executionTimeoutMs?: number;
|
|
199
|
+
/** Default 30. Used to set `expiresAt` when the run finishes. */
|
|
200
|
+
retentionDays?: number;
|
|
201
|
+
/** Default `'all'` query layouts. `'current'` freezes only the layout the user ran. */
|
|
202
|
+
freezeLayouts?: AXPReportFreezeLayouts;
|
|
203
|
+
/** Default true. Store layout/title/parameter snapshot in the viewer freeze file. */
|
|
204
|
+
pinDefinition?: boolean;
|
|
205
|
+
/** Demo/local only. Worker waits this long after marking the run running. */
|
|
206
|
+
simulateDelayMs?: number;
|
|
105
207
|
}
|
|
106
208
|
type AXPReportLayoutAction = AXPActionMenuItem & {
|
|
107
209
|
priority: 'primary' | 'secondary';
|
|
@@ -111,8 +213,8 @@ type AXPReportLayoutAction = AXPActionMenuItem & {
|
|
|
111
213
|
*/
|
|
112
214
|
interface AXPReportLayoutDefinition {
|
|
113
215
|
id: string;
|
|
114
|
-
title:
|
|
115
|
-
description?:
|
|
216
|
+
title: AXPMultiLanguageString;
|
|
217
|
+
description?: AXPMultiLanguageString;
|
|
116
218
|
icon?: string;
|
|
117
219
|
layout: AXPReportLayout;
|
|
118
220
|
dataSource?: AXPReportDataSource;
|
|
@@ -122,14 +224,19 @@ interface AXPReportLayoutDefinition {
|
|
|
122
224
|
}
|
|
123
225
|
interface AXPReportParameterGroup {
|
|
124
226
|
name: string;
|
|
125
|
-
title:
|
|
126
|
-
description?:
|
|
227
|
+
title: AXPMultiLanguageString;
|
|
228
|
+
description?: AXPMultiLanguageString;
|
|
127
229
|
parameters: AXPReportParameter[];
|
|
128
230
|
}
|
|
129
231
|
interface AXPReportParameter {
|
|
130
232
|
path: string;
|
|
131
|
-
title:
|
|
132
|
-
description?:
|
|
233
|
+
title: AXPMultiLanguageString;
|
|
234
|
+
description?: AXPMultiLanguageString;
|
|
235
|
+
/**
|
|
236
|
+
* Boolean or expression (e.g. `{{ permission.check("…") }}` / `{{ feature.check("…") }}`).
|
|
237
|
+
* Omitted / `true` means visible. Evaluated by the Report Viewer layout renderer.
|
|
238
|
+
*/
|
|
239
|
+
visible?: boolean | string;
|
|
133
240
|
widget: AXPWidgetNode;
|
|
134
241
|
}
|
|
135
242
|
type AXPReportDataSource = AXPQueryDataSource | AXPCustomDataSource | AXPAggregatedDataSource | AXPTransformedDataSource;
|
|
@@ -288,7 +395,13 @@ interface AXPChartDataMapping {
|
|
|
288
395
|
*/
|
|
289
396
|
interface AXPChartStyling {
|
|
290
397
|
colorScheme?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'custom';
|
|
398
|
+
/** Palette applied by series index when `seriesColors` is not set. */
|
|
291
399
|
customColors?: string[];
|
|
400
|
+
/**
|
|
401
|
+
* Per-series fill colors keyed by chart category id/label
|
|
402
|
+
* (e.g. Online → success, Away → warning, Busy → danger).
|
|
403
|
+
*/
|
|
404
|
+
seriesColors?: Record<string, string>;
|
|
292
405
|
gridLines?: boolean;
|
|
293
406
|
legend?: {
|
|
294
407
|
show: boolean;
|
|
@@ -384,7 +497,11 @@ interface AXPReportPdfOptions {
|
|
|
384
497
|
interface AXPReportColumn {
|
|
385
498
|
field: string;
|
|
386
499
|
title?: string;
|
|
387
|
-
|
|
500
|
+
/**
|
|
501
|
+
* Boolean or expression (e.g. `{{ permission.check("…") }}`).
|
|
502
|
+
* Omitted / `true` means visible. Evaluated when building the table view.
|
|
503
|
+
*/
|
|
504
|
+
visible?: boolean | string;
|
|
388
505
|
width?: number | 'auto';
|
|
389
506
|
align?: 'left' | 'center' | 'right';
|
|
390
507
|
/** When true, column header supports interactive sort (opt-in). */
|
|
@@ -438,7 +555,7 @@ interface AXPReportHeaderFooter {
|
|
|
438
555
|
*/
|
|
439
556
|
interface AXPLayoutSwitcherOption {
|
|
440
557
|
id: string;
|
|
441
|
-
title:
|
|
558
|
+
title: AXPMultiLanguageString;
|
|
442
559
|
icon?: string;
|
|
443
560
|
type: AXPReportLayoutType;
|
|
444
561
|
}
|
|
@@ -450,105 +567,148 @@ interface AXPReportLayoutState {
|
|
|
450
567
|
activeLayoutId: string;
|
|
451
568
|
availableLayouts: AXPLayoutSwitcherOption[];
|
|
452
569
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
interface
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
570
|
+
|
|
571
|
+
type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
572
|
+
type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';
|
|
573
|
+
interface AXPReportGenerationArtifact {
|
|
574
|
+
kind: AXPReportArtifactKind;
|
|
575
|
+
fileId?: string;
|
|
576
|
+
contentType?: string;
|
|
577
|
+
fileName?: string;
|
|
578
|
+
rowCount?: number;
|
|
579
|
+
byteLength?: number;
|
|
580
|
+
lastError?: string;
|
|
581
|
+
}
|
|
582
|
+
interface AXMReportGenerationRequest extends AXPEntityModel<string> {
|
|
583
|
+
reportId: string;
|
|
584
|
+
layoutId?: string;
|
|
585
|
+
layoutIds?: string[];
|
|
586
|
+
parameters?: Record<string, unknown>;
|
|
587
|
+
formats: AXPReportArtifactKind[];
|
|
588
|
+
trigger: AXPReportGenerationTrigger;
|
|
589
|
+
status: AXPReportGenerationStatus;
|
|
590
|
+
requestedBy?: string;
|
|
591
|
+
jobId?: string;
|
|
592
|
+
scheduleId?: string;
|
|
593
|
+
scheduledOccurrence?: string;
|
|
594
|
+
startedAt?: string;
|
|
595
|
+
completedAt?: string;
|
|
596
|
+
durationMs?: number;
|
|
597
|
+
lastError?: string;
|
|
598
|
+
expiresAt?: string;
|
|
599
|
+
sourceRequestId?: string;
|
|
600
|
+
artifacts: AXPReportGenerationArtifact[];
|
|
601
|
+
}
|
|
602
|
+
interface AXPReportViewerFreeze {
|
|
603
|
+
version: 1;
|
|
604
|
+
reportId: string;
|
|
605
|
+
generatedAt: string;
|
|
606
|
+
parameters: Record<string, unknown>;
|
|
607
|
+
definition?: {
|
|
608
|
+
title: AXPMultiLanguageString;
|
|
609
|
+
defaultLayoutId: string;
|
|
610
|
+
layouts: AXPReportLayoutDefinition[];
|
|
611
|
+
};
|
|
612
|
+
dataSources: Array<{
|
|
613
|
+
layoutId: string;
|
|
614
|
+
queryName: string;
|
|
615
|
+
result: AXPRuntimeQueryResult;
|
|
616
|
+
}>;
|
|
468
617
|
}
|
|
469
|
-
|
|
470
|
-
* Layout execution context with resolved data source
|
|
471
|
-
*/
|
|
472
|
-
interface AXPLayoutExecutionContext {
|
|
618
|
+
interface AXPReportGenerationCreateInput {
|
|
473
619
|
reportId: string;
|
|
474
|
-
layoutId
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
620
|
+
layoutId?: string;
|
|
621
|
+
layoutIds?: string[];
|
|
622
|
+
parameters?: Record<string, unknown>;
|
|
623
|
+
formats?: AXPReportArtifactKind[];
|
|
624
|
+
trigger?: AXPReportGenerationTrigger;
|
|
625
|
+
sourceRequestId?: string;
|
|
626
|
+
scheduleId?: string;
|
|
627
|
+
scheduledOccurrence?: string;
|
|
628
|
+
}
|
|
629
|
+
interface AXPReportGenerationCreateResult {
|
|
630
|
+
id: string;
|
|
631
|
+
jobId?: string;
|
|
632
|
+
status: AXPReportGenerationStatus;
|
|
481
633
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
items: Record<string, unknown>[];
|
|
485
|
-
total: number;
|
|
486
|
-
summary?: AXPReportTableSummaryResult;
|
|
487
|
-
} | {
|
|
488
|
-
type: 'chart';
|
|
489
|
-
data: Record<string, unknown>;
|
|
490
|
-
} | {
|
|
491
|
-
type: 'cards';
|
|
492
|
-
items: Record<string, unknown>[];
|
|
493
|
-
} | {
|
|
494
|
-
type: 'custom';
|
|
495
|
-
data: unknown;
|
|
496
|
-
} | {
|
|
497
|
-
type: 'pdf';
|
|
498
|
-
url?: string;
|
|
499
|
-
base64?: string;
|
|
500
|
-
blob?: Blob;
|
|
501
|
-
filename?: string;
|
|
502
|
-
};
|
|
503
|
-
type AXPExecutionReportCommandResult = AXPReportLayout & {
|
|
504
|
-
data: AXPExecutionReportResult;
|
|
505
|
-
};
|
|
506
|
-
interface AXPExecutionReportCommand extends AXPCommand<AXPLayoutExecutionContext, AXPExecutionReportCommandResult> {
|
|
634
|
+
interface AXPReportGenerationExecuteInput {
|
|
635
|
+
reportRequestId: string;
|
|
507
636
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
reportId: string;
|
|
513
|
-
layoutId: string;
|
|
514
|
-
status: 'pending' | 'executing' | 'completed' | 'failed' | 'cancelled';
|
|
515
|
-
startTime: Date;
|
|
516
|
-
endTime?: Date;
|
|
517
|
-
duration?: number;
|
|
518
|
-
recordCount?: number;
|
|
519
|
-
error?: AXPReportExecutionError;
|
|
637
|
+
interface AXPReportGenerationExecuteResult {
|
|
638
|
+
reportRequestId: string;
|
|
639
|
+
fileIds: string[];
|
|
640
|
+
rowCount?: number;
|
|
520
641
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
*/
|
|
524
|
-
interface AXPReportExecutionError {
|
|
525
|
-
code: string;
|
|
526
|
-
message: string;
|
|
527
|
-
details?: Record<string, unknown>;
|
|
528
|
-
stack?: string;
|
|
642
|
+
interface AXPReportGenerationGetInput {
|
|
643
|
+
id: string;
|
|
529
644
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
*/
|
|
533
|
-
interface AXPReportExecutionRequest {
|
|
534
|
-
reportId: string;
|
|
535
|
-
layoutId: string;
|
|
536
|
-
parameters: Record<string, unknown>;
|
|
537
|
-
options?: AXPReportExecutionOptions;
|
|
645
|
+
interface AXPReportGenerationGetViewerFreezeInput {
|
|
646
|
+
id: string;
|
|
538
647
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
interface AXPReportExecutionOptions {
|
|
543
|
-
timeout?: number;
|
|
544
|
-
priority?: 'low' | 'normal' | 'high';
|
|
545
|
-
cache?: boolean;
|
|
546
|
-
cacheTimeout?: number;
|
|
648
|
+
interface AXPReportGenerationListMineInput {
|
|
649
|
+
skip?: number;
|
|
650
|
+
take?: number;
|
|
547
651
|
}
|
|
548
652
|
|
|
549
|
-
declare
|
|
653
|
+
declare const AXMReportManagementQueryKeys: {
|
|
654
|
+
readonly Category: {
|
|
655
|
+
readonly ListRoot: "ReportManagement:Category:ListRoot";
|
|
656
|
+
readonly GetById: "ReportManagement:Category:GetById";
|
|
657
|
+
};
|
|
658
|
+
readonly Report: {
|
|
659
|
+
readonly GetDefinition: "ReportManagement:Report:GetDefinition";
|
|
660
|
+
};
|
|
661
|
+
readonly ReportGeneration: {
|
|
662
|
+
readonly Get: "ReportManagement:ReportGeneration:Get";
|
|
663
|
+
readonly ListMine: "ReportManagement:ReportGeneration:ListMine";
|
|
664
|
+
readonly GetViewerFreeze: "ReportManagement:ReportGeneration:GetViewerFreeze";
|
|
665
|
+
};
|
|
666
|
+
};
|
|
550
667
|
|
|
551
|
-
|
|
668
|
+
type AXMQuerySnapshotTriggerOperation = 'create' | 'update' | 'delete';
|
|
669
|
+
interface AXMQuerySnapshotPolicyTriggers {
|
|
670
|
+
entities: string[];
|
|
671
|
+
operations: AXMQuerySnapshotTriggerOperation[];
|
|
672
|
+
debounceMs: number;
|
|
673
|
+
}
|
|
674
|
+
interface AXMQuerySnapshotPolicyEntityModel extends AXPEntityModel<string> {
|
|
675
|
+
queryName: string;
|
|
676
|
+
enabled: boolean;
|
|
677
|
+
schedule: string;
|
|
678
|
+
staleAfterMs: number;
|
|
679
|
+
triggers: AXMQuerySnapshotPolicyTriggers;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
type AXMQuerySnapshotStatus = 'ready' | 'stale' | 'failed';
|
|
683
|
+
type AXMQuerySnapshotPayload = {
|
|
684
|
+
success: true;
|
|
685
|
+
kind: 'value';
|
|
686
|
+
data: unknown;
|
|
687
|
+
} | {
|
|
688
|
+
success: true;
|
|
689
|
+
kind: 'object';
|
|
690
|
+
data: unknown;
|
|
691
|
+
} | {
|
|
692
|
+
success: true;
|
|
693
|
+
kind: 'collection';
|
|
694
|
+
data: AXPRuntimeCollectionData;
|
|
695
|
+
};
|
|
696
|
+
interface AXMQuerySnapshotEntityModel extends AXPEntityModel<string> {
|
|
697
|
+
key: string;
|
|
698
|
+
status: AXMQuerySnapshotStatus;
|
|
699
|
+
calculatedAt: string;
|
|
700
|
+
durationMs: number;
|
|
701
|
+
lastError?: string;
|
|
702
|
+
payload: AXMQuerySnapshotPayload;
|
|
703
|
+
}
|
|
704
|
+
interface AXMRecalculateQuerySnapshotsInput {
|
|
705
|
+
tenantId?: string;
|
|
706
|
+
applicationId?: string;
|
|
707
|
+
queryKeys?: string[];
|
|
708
|
+
}
|
|
709
|
+
interface AXMRefreshQuerySnapshotsInput {
|
|
710
|
+
queryKeys?: string[];
|
|
711
|
+
}
|
|
552
712
|
|
|
553
|
-
export { AXMPermissionsKeys,
|
|
554
|
-
export type {
|
|
713
|
+
export { AXMPermissionsKeys, AXMReportManagementCommandKeys, AXMReportManagementQueryKeys, AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY, AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY, AXPInsightsReportingPermissionKeys, AXPReportManagementFeatureKeys, AXPReportManagementMenuKeys, RootConfig };
|
|
714
|
+
export type { AXMQuerySnapshotEntityModel, AXMQuerySnapshotPayload, AXMQuerySnapshotPolicyEntityModel, AXMQuerySnapshotPolicyTriggers, AXMQuerySnapshotStatus, AXMQuerySnapshotTriggerOperation, AXMRecalculateQuerySnapshotsInput, AXMRefreshQuerySnapshotsInput, AXMReportGenerationRequest, AXPAggregatedDataSource, AXPAggregation, AXPChartAxisConfig, AXPChartDataMapping, AXPChartInteractivity, AXPChartStyling, AXPConditionalFormatRule, AXPCustomDataSource, AXPDataTransformation, AXPLayoutSwitcherOption, AXPQueryDataSource, AXPReportArtifactKind, AXPReportCategory, AXPReportChartLayout, AXPReportChartOptions, AXPReportColumn, AXPReportColumnInteractivity, AXPReportDataSource, AXPReportDefinition, AXPReportDrillDownConfig, AXPReportEntityBinding, AXPReportEntityDisplay, AXPReportEntityParameterValue, AXPReportFreezeLayouts, AXPReportGenerationArtifact, AXPReportGenerationCreateInput, AXPReportGenerationCreateResult, AXPReportGenerationExecuteInput, AXPReportGenerationExecuteResult, AXPReportGenerationGetInput, AXPReportGenerationGetViewerFreezeInput, AXPReportGenerationListMineInput, AXPReportGenerationMode, AXPReportGenerationOptions, AXPReportGenerationStatus, AXPReportGenerationTrigger, AXPReportGroupByDefinition, AXPReportHeaderFooter, AXPReportLayout, AXPReportLayoutAction, AXPReportLayoutDefinition, AXPReportLayoutState, AXPReportLayoutType, AXPReportParameter, AXPReportParameterBinding, AXPReportParameterGroup, AXPReportPdfLayout, AXPReportPdfOptions, AXPReportSummaryOptions, AXPReportTableLayout, AXPReportTableLayoutRowAction, AXPReportTableSummaryResult, AXPReportViewerFreeze, AXPTableOptions, AXPTransformedDataSource };
|