@acorex-platform/module-report-management-client 1.0.2 → 2.0.0-beta.1
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-eSjEqt5D.mjs → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs} +36 -53
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs +0 -14
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs +2 -16
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs +179 -25
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs} +4 -20
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs} +4 -4
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs +292 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +1866 -25
- 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-CaxletoS.mjs → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-CaxletoS.mjs.map → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs.map → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs +0 -2
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs +67 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs +255 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs +28 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs +876 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs → acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs} +258 -41
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs.map → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs → acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs} +84 -26
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
- package/i18n/en-AU/report-management.json +260 -35
- package/i18n/en-US/report-management.json +260 -35
- package/i18n/fa-IR/report-management.json +260 -35
- package/package.json +2 -9
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +395 -109
- package/types/acorex-platform-module-report-management-client.d.ts +5 -5
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs +0 -157
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs +0 -197
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs +0 -97
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs +0 -137
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs +0 -124
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs.map +0 -1
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.d.ts +0 -5
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.d.ts +0 -5
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { AXPWidgetColumnNode } from '@acorex-platform/framework-shared/widget-core';
|
|
2
2
|
import { AXPQuerySort, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { AXPMultiLanguageString, AXPCategoryEntity, AXPWidgetNode, AXPActionMenuItem, AXPSystemActionType, AXPExportOptions, AXPModuleManifest, AXPRuntimeQueryResult,
|
|
3
|
+
import { AXPMultiLanguageString, AXPCategoryEntity, AXPWidgetNode, AXPFilterDefinition, AXPActionMenuItem, AXPSystemActionType, AXPExportOptions, AXPModuleManifest, AXPRuntimeQueryResult, AXPFilterClause } from '@acorex-platform/framework-shared/core';
|
|
4
|
+
import { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';
|
|
5
|
+
import { InterchangeExportDefinition, InterchangeCloneContext, InterchangeFormat } from '@acorex-platform/framework-shared/interchange';
|
|
6
|
+
export { InterchangeExportDefinition } from '@acorex-platform/framework-shared/interchange';
|
|
4
7
|
|
|
5
8
|
declare const AXMReportManagementCommandKeys: {
|
|
6
|
-
readonly RecalculateQuerySnapshots: "ReportManagement:RecalculateQuerySnapshots";
|
|
7
|
-
readonly RefreshQuerySnapshots: "ReportManagement:RefreshQuerySnapshots";
|
|
8
9
|
readonly ReportGeneration: {
|
|
9
10
|
readonly Create: "ReportManagement:ReportGeneration:Create";
|
|
10
11
|
readonly Execute: "ReportManagement:ReportGeneration:Execute";
|
|
11
12
|
readonly ReleaseInlineWatch: "ReportManagement:ReportGeneration:ReleaseInlineWatch";
|
|
12
13
|
};
|
|
14
|
+
readonly Export: {
|
|
15
|
+
readonly Run: "ReportManagement:Export:Run";
|
|
16
|
+
readonly ListTemplates: "ReportManagement:Export:ListTemplates";
|
|
17
|
+
readonly Clone: "ReportManagement:Export:Clone";
|
|
18
|
+
readonly Save: "ReportManagement:Export:Save";
|
|
19
|
+
};
|
|
13
20
|
};
|
|
14
|
-
declare const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY: "ReportManagement:RecalculateQuerySnapshots";
|
|
15
|
-
declare const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY: "ReportManagement:RefreshQuerySnapshots";
|
|
16
21
|
|
|
17
22
|
declare const AXPReportManagementFeatureKeys: {
|
|
18
23
|
readonly ReportBuilder: "ReportManagement:Feature:ReportBuilder";
|
|
@@ -118,12 +123,26 @@ interface AXPReportEntityBinding {
|
|
|
118
123
|
parameters?: Record<string, AXPReportEntityParameterValue>;
|
|
119
124
|
order?: number;
|
|
120
125
|
}
|
|
126
|
+
/** Query-builder value stored on a report definition. The where tree is the filter. */
|
|
127
|
+
interface ReportFilterQuery {
|
|
128
|
+
dataSource?: string;
|
|
129
|
+
columns: string[];
|
|
130
|
+
where: AXPFilterDefinition;
|
|
131
|
+
sort: Array<{
|
|
132
|
+
field: string;
|
|
133
|
+
dir: 'asc' | 'desc';
|
|
134
|
+
}>;
|
|
135
|
+
groupBy: string[];
|
|
136
|
+
aggregates: unknown[];
|
|
137
|
+
}
|
|
121
138
|
interface AXPReportDefinition {
|
|
122
139
|
id: string;
|
|
123
140
|
title: AXPMultiLanguageString;
|
|
124
141
|
description?: AXPMultiLanguageString;
|
|
125
142
|
categoryIds: string[];
|
|
126
143
|
parameterGroups: AXPReportParameterGroup[];
|
|
144
|
+
/** Query-builder where-clause authored on the report definition filter page. */
|
|
145
|
+
filterQuery?: ReportFilterQuery;
|
|
127
146
|
permissions?: string[];
|
|
128
147
|
layouts: AXPReportLayoutDefinition[];
|
|
129
148
|
defaultLayoutId: string;
|
|
@@ -309,6 +328,13 @@ interface AXPReportTableLayout {
|
|
|
309
328
|
header?: AXPReportHeaderFooter;
|
|
310
329
|
footer?: AXPReportHeaderFooter;
|
|
311
330
|
}
|
|
331
|
+
/** Result-grid hierarchy. Omitted reports stay a flat table. */
|
|
332
|
+
interface AXPReportTableHierarchy {
|
|
333
|
+
/** Row field that points at the parent row, for example `parentId`. */
|
|
334
|
+
parentField: string;
|
|
335
|
+
/** Row field used as the node id. Defaults to `id`. */
|
|
336
|
+
keyField?: string;
|
|
337
|
+
}
|
|
312
338
|
interface AXPTableOptions {
|
|
313
339
|
pagination?: boolean;
|
|
314
340
|
stickyHeader?: boolean;
|
|
@@ -317,6 +343,11 @@ interface AXPTableOptions {
|
|
|
317
343
|
selectable?: {
|
|
318
344
|
mode: 'single' | 'multiple' | 'none';
|
|
319
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
* When set, the result grid expands rows whose `parentField` links them.
|
|
348
|
+
* Rows with an empty parent are the roots. Other reports leave this unset.
|
|
349
|
+
*/
|
|
350
|
+
hierarchy?: AXPReportTableHierarchy;
|
|
320
351
|
}
|
|
321
352
|
/**
|
|
322
353
|
* Chart Layout - Displays data in various chart formats
|
|
@@ -441,6 +472,10 @@ interface AXPReportPdfLayout {
|
|
|
441
472
|
options?: AXPReportPdfOptions;
|
|
442
473
|
header?: AXPReportHeaderFooter;
|
|
443
474
|
footer?: AXPReportHeaderFooter;
|
|
475
|
+
/** DocumentOutput.StimulsoftTemplate row designed for this layout. */
|
|
476
|
+
stimulsoftTemplateId?: string;
|
|
477
|
+
/** Dictionary data source the designer bound, filled with this layout's query rows at view time. */
|
|
478
|
+
stimulsoftDataSourceName?: string;
|
|
444
479
|
}
|
|
445
480
|
/**
|
|
446
481
|
* PDF Layout Options
|
|
@@ -538,68 +573,31 @@ declare const AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS: {
|
|
|
538
573
|
readonly "ReportManagement:Setting:Generation.MaxConcurrentPerUser": 3;
|
|
539
574
|
};
|
|
540
575
|
|
|
541
|
-
declare const RootConfig: {
|
|
542
|
-
readonly config: {
|
|
543
|
-
i18n: string;
|
|
544
|
-
module: string;
|
|
545
|
-
};
|
|
546
|
-
readonly module: {
|
|
547
|
-
readonly route: "report-management";
|
|
548
|
-
readonly name: string;
|
|
549
|
-
readonly title: `@${string}:module.title`;
|
|
550
|
-
readonly icon: "fa-light fa-chart-bar";
|
|
551
|
-
};
|
|
552
|
-
readonly entities: {
|
|
553
|
-
readonly dataSet: {
|
|
554
|
-
readonly name: "DataSet";
|
|
555
|
-
readonly title: `t("dataSet", { scope: "${string}" })`;
|
|
556
|
-
readonly titlePlural: `t("dataSetPlural", { scope: "${string}" })`;
|
|
557
|
-
readonly icon: "fa-light fa-default";
|
|
558
|
-
};
|
|
559
|
-
readonly category: {
|
|
560
|
-
readonly name: "ReportCategory";
|
|
561
|
-
readonly fullName: `${string}.ReportCategory`;
|
|
562
|
-
readonly title: `@${string}:reports.entities.category.title`;
|
|
563
|
-
readonly titlePlural: `@${string}:reports.entities.category.plural`;
|
|
564
|
-
readonly icon: "fa-light fa-folder";
|
|
565
|
-
};
|
|
566
|
-
readonly report: {
|
|
567
|
-
readonly name: "Report";
|
|
568
|
-
readonly fullName: `${string}.Report`;
|
|
569
|
-
readonly title: `@${string}:reports.entities.report.title`;
|
|
570
|
-
readonly titlePlural: `@${string}:reports.entities.report.plural`;
|
|
571
|
-
readonly icon: "fa-light fa-file-chart-pie";
|
|
572
|
-
};
|
|
573
|
-
readonly querySnapshotPolicy: {
|
|
574
|
-
readonly name: "QuerySnapshotPolicy";
|
|
575
|
-
readonly fullName: `${string}.QuerySnapshotPolicy`;
|
|
576
|
-
readonly title: `@${string}:query-snapshots.entities.policy.title`;
|
|
577
|
-
readonly titlePlural: `@${string}:query-snapshots.entities.policy.plural`;
|
|
578
|
-
readonly icon: "fa-light fa-sliders";
|
|
579
|
-
};
|
|
580
|
-
readonly querySnapshot: {
|
|
581
|
-
readonly name: "QuerySnapshot";
|
|
582
|
-
readonly fullName: `${string}.QuerySnapshot`;
|
|
583
|
-
readonly title: `@${string}:query-snapshots.entities.snapshot.title`;
|
|
584
|
-
readonly titlePlural: `@${string}:query-snapshots.entities.snapshot.plural`;
|
|
585
|
-
readonly icon: "fa-light fa-camera";
|
|
586
|
-
};
|
|
587
|
-
readonly reportGenerationRequest: {
|
|
588
|
-
readonly name: "ReportGenerationRequest";
|
|
589
|
-
readonly fullName: `${string}.ReportGenerationRequest`;
|
|
590
|
-
readonly title: `@${string}:report-generation.entities.request.title`;
|
|
591
|
-
readonly titlePlural: `@${string}:report-generation.entities.request.plural`;
|
|
592
|
-
readonly icon: "fa-light fa-file-export";
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
};
|
|
596
|
-
|
|
597
576
|
/**
|
|
598
577
|
* Report Management Module Manifest.
|
|
599
578
|
* Defines module metadata, features, and provider references.
|
|
600
579
|
*/
|
|
601
580
|
declare const ReportManagementManifest: AXPModuleManifest;
|
|
602
581
|
|
|
582
|
+
/**
|
|
583
|
+
* What the filter tab edits: the report filters as metadata sections and fields.
|
|
584
|
+
* It is a view of `parameterGroups`, so nothing else is stored.
|
|
585
|
+
*/
|
|
586
|
+
interface ReportFilterFormModel {
|
|
587
|
+
metaDataList: AXMMetaDataBuilderValue;
|
|
588
|
+
}
|
|
589
|
+
/** Every parameter group becomes a metadata section and every parameter a field, in stored order. */
|
|
590
|
+
declare function readReportFilterForm(report: {
|
|
591
|
+
parameterGroups?: AXPReportParameterGroup[];
|
|
592
|
+
} | null | undefined): ReportFilterFormModel;
|
|
593
|
+
/** Writes the metadata sections back as `parameterGroups`, the only filter structure the report uses. */
|
|
594
|
+
declare function applyReportFilterForm(form: ReportFilterFormModel | null | undefined): {
|
|
595
|
+
parameterGroups: AXPReportParameterGroup[];
|
|
596
|
+
};
|
|
597
|
+
/** Two forms are the same when they store the same filters. Field ids and order numbers do not count. */
|
|
598
|
+
declare function sameReportFilterForm(left: ReportFilterFormModel, right: ReportFilterFormModel): boolean;
|
|
599
|
+
declare function pickReportFilterForm(value: Record<string, unknown>, fallback: ReportFilterFormModel): ReportFilterFormModel;
|
|
600
|
+
|
|
603
601
|
type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
604
602
|
type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';
|
|
605
603
|
interface AXPReportGenerationArtifact {
|
|
@@ -695,6 +693,335 @@ interface AXPReportGenerationListMineInput {
|
|
|
695
693
|
take?: number;
|
|
696
694
|
}
|
|
697
695
|
|
|
696
|
+
declare function virtualReportExportKey(reportId: string): string;
|
|
697
|
+
/**
|
|
698
|
+
* Binding stored on the interchange request. Rows are not included:
|
|
699
|
+
* the export job reads the report query itself.
|
|
700
|
+
*/
|
|
701
|
+
declare function reportExportSourceBinding(input: {
|
|
702
|
+
reportId: string;
|
|
703
|
+
layoutId?: string;
|
|
704
|
+
parameters?: Record<string, unknown>;
|
|
705
|
+
}): Record<string, unknown>;
|
|
706
|
+
declare function resolveReportExportTableLayout(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>, layoutId?: string): AXPReportLayoutDefinition | undefined;
|
|
707
|
+
declare function findDefaultReportTableLayout(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>): AXPReportLayoutDefinition | undefined;
|
|
708
|
+
declare function visibleDefaultTableColumns(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>): AXPReportColumn[];
|
|
709
|
+
declare function projectReportDefaultTableExportDefinition(report: AXPReportDefinition, format?: InterchangeFormat): InterchangeExportDefinition;
|
|
710
|
+
/**
|
|
711
|
+
* Interchange export actions for a table layout.
|
|
712
|
+
* PDF is queued like Excel and CSV; the selected document-output provider renders the file.
|
|
713
|
+
*/
|
|
714
|
+
declare function reportTableInterchangeExportActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
715
|
+
declare function overlayReportExportTemplates(virtual: InterchangeExportDefinition, stored: InterchangeExportDefinition[], scope: InterchangeCloneContext): InterchangeExportDefinition[];
|
|
716
|
+
|
|
717
|
+
interface ReportExportSnapshot {
|
|
718
|
+
items: Record<string, unknown>[];
|
|
719
|
+
parameters: Record<string, unknown>;
|
|
720
|
+
frozen: boolean;
|
|
721
|
+
}
|
|
722
|
+
declare function resolveCurrentReportExportSnapshot(input: {
|
|
723
|
+
snapshot: ReportExportSnapshot | null;
|
|
724
|
+
frozen: boolean;
|
|
725
|
+
freezeItems?: Record<string, unknown>[];
|
|
726
|
+
freezeParameters?: Record<string, unknown>;
|
|
727
|
+
liveParameters?: Record<string, unknown>;
|
|
728
|
+
}): ReportExportSnapshot | null;
|
|
729
|
+
|
|
730
|
+
interface AXPReportInterchangeExportInput {
|
|
731
|
+
reportId: string;
|
|
732
|
+
format?: InterchangeFormat;
|
|
733
|
+
templateId?: string;
|
|
734
|
+
/** Table layout whose query the background job reads. */
|
|
735
|
+
layoutId?: string;
|
|
736
|
+
/** Report filter context. The job converts this; the client does not send rows. */
|
|
737
|
+
parameters?: Record<string, unknown>;
|
|
738
|
+
locale?: string;
|
|
739
|
+
}
|
|
740
|
+
interface AXPReportInterchangeExportResult {
|
|
741
|
+
id: string;
|
|
742
|
+
jobId: string;
|
|
743
|
+
status: 'queued';
|
|
744
|
+
templateId: string;
|
|
745
|
+
virtual: boolean;
|
|
746
|
+
}
|
|
747
|
+
interface AXPReportInterchangeListTemplatesInput {
|
|
748
|
+
reportId: string;
|
|
749
|
+
}
|
|
750
|
+
interface AXPReportInterchangeListTemplatesResult {
|
|
751
|
+
items: InterchangeExportDefinition[];
|
|
752
|
+
}
|
|
753
|
+
interface AXPReportInterchangeCloneTemplateInput {
|
|
754
|
+
reportId: string;
|
|
755
|
+
templateId?: string;
|
|
756
|
+
format?: InterchangeFormat;
|
|
757
|
+
title?: string;
|
|
758
|
+
}
|
|
759
|
+
interface AXPReportInterchangeSaveTemplateInput {
|
|
760
|
+
reportId: string;
|
|
761
|
+
definition: InterchangeExportDefinition;
|
|
762
|
+
}
|
|
763
|
+
interface AXPReportInterchangeTemplateMutationResult {
|
|
764
|
+
definition: InterchangeExportDefinition;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Editor the layout page uses for one stored JSON property.
|
|
769
|
+
* The kind comes from the property name and the value that is stored, never from a fixed form.
|
|
770
|
+
*/
|
|
771
|
+
type ReportLayoutFieldKind = 'toggle' | 'number' | 'text' | 'multiline' | 'locale-text' | 'color' | 'icon' | 'select' | 'tags'
|
|
772
|
+
/** Name of a registered query (`PlatformManagement.QueryDefinition`). */
|
|
773
|
+
| 'query'
|
|
774
|
+
/** One field of the rows the view's query returns. */
|
|
775
|
+
| 'column'
|
|
776
|
+
/** Several fields of the rows the view's query returns. */
|
|
777
|
+
| 'column-list'
|
|
778
|
+
/** One filter of the report (a `parameterGroups` path). */
|
|
779
|
+
| 'parameter'
|
|
780
|
+
/** Another report definition. */
|
|
781
|
+
| 'report'
|
|
782
|
+
/** A Stimulsoft template. */
|
|
783
|
+
| 'template'
|
|
784
|
+
/** Name of a registered command. */
|
|
785
|
+
| 'command' | 'group' | 'list' | 'json';
|
|
786
|
+
/** One editable property found in a stored layout section. */
|
|
787
|
+
interface ReportLayoutFieldSchema {
|
|
788
|
+
/** Property name as stored. */
|
|
789
|
+
key: string;
|
|
790
|
+
/**
|
|
791
|
+
* Context path from the section container (`layout.options.chartType`).
|
|
792
|
+
* Inside the rows of a `list` the path starts again at the row.
|
|
793
|
+
*/
|
|
794
|
+
path: string;
|
|
795
|
+
/** Property names from the section root, without row indexes. Used for enum lookup and locks. */
|
|
796
|
+
trail: string;
|
|
797
|
+
kind: ReportLayoutFieldKind;
|
|
798
|
+
/** Allowed values when `kind` is `select`. */
|
|
799
|
+
options?: readonly string[];
|
|
800
|
+
/** Shown but not editable. Changing it would move the view to another tab or break its shape. */
|
|
801
|
+
locked?: boolean;
|
|
802
|
+
/** Children of a `group`, or the merged row template of a `list`. */
|
|
803
|
+
fields?: ReportLayoutFieldSchema[];
|
|
804
|
+
}
|
|
805
|
+
/** Kinds that name a field of the query rows. The page offers the columns of the chosen query. */
|
|
806
|
+
declare function isReportLayoutColumnKind(kind: ReportLayoutFieldKind): boolean;
|
|
807
|
+
/** Property names that have a translation under `layout-editor.fields`. Others fall back to their own name. */
|
|
808
|
+
declare const REPORT_LAYOUT_FIELD_LABEL_KEYS: ReadonlySet<string>;
|
|
809
|
+
/** `defaultZoom` → `default-zoom`, the segment used in translation keys. */
|
|
810
|
+
declare function reportLayoutFieldKebabKey(key: string): string;
|
|
811
|
+
/** `defaultZoom` → `Default Zoom`, shown when no translation exists for the property. */
|
|
812
|
+
declare function reportLayoutFieldFallbackLabel(key: string): string;
|
|
813
|
+
/**
|
|
814
|
+
* Reads every non-empty property of the stored sections and chooses an editor for it.
|
|
815
|
+
* Null, empty strings that carry no type hint and empty containers are skipped:
|
|
816
|
+
* nothing can be inferred from them, and the stored data keeps them untouched.
|
|
817
|
+
*/
|
|
818
|
+
declare function inferReportLayoutFields(sections: Record<string, unknown> | null | undefined): ReportLayoutFieldSchema[];
|
|
819
|
+
/** Query the view reads its rows from, or an empty string while none is chosen. */
|
|
820
|
+
declare function reportLayoutQueryName(sections: Record<string, unknown> | null | undefined): string;
|
|
821
|
+
/**
|
|
822
|
+
* Field names already stored on column properties.
|
|
823
|
+
* A picker must keep offering them even when the query catalog does not list them.
|
|
824
|
+
*/
|
|
825
|
+
declare function reportLayoutStoredColumns(sections: Record<string, unknown> | null | undefined, fields: readonly ReportLayoutFieldSchema[]): string[];
|
|
826
|
+
/**
|
|
827
|
+
* Filter names already stored on the filter mapping.
|
|
828
|
+
* A picker must keep offering them even after the filter was removed from the report.
|
|
829
|
+
*/
|
|
830
|
+
declare function reportLayoutStoredParameters(sections: Record<string, unknown> | null | undefined, fields: readonly ReportLayoutFieldSchema[]): string[];
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* One viewer layout the definition page can turn on.
|
|
834
|
+
* Chart slots stay separate because the viewer tells them apart by chart type and icon.
|
|
835
|
+
*/
|
|
836
|
+
interface AXPReportLayoutPreset {
|
|
837
|
+
key: 'table' | 'bar' | 'line' | 'doughnut' | 'pie' | 'pdf';
|
|
838
|
+
componentKey: string;
|
|
839
|
+
title: string;
|
|
840
|
+
description: string;
|
|
841
|
+
icon: string;
|
|
842
|
+
order: number;
|
|
843
|
+
layoutType: 'table' | 'chart' | 'pdf';
|
|
844
|
+
chartType?: AXPReportChartOptions['chartType'];
|
|
845
|
+
}
|
|
846
|
+
declare const AXP_REPORT_LAYOUT_PRESETS: readonly AXPReportLayoutPreset[];
|
|
847
|
+
declare function reportLayoutPresetByKey(key: string | undefined): AXPReportLayoutPreset | undefined;
|
|
848
|
+
|
|
849
|
+
interface ReportLayoutColumnForm {
|
|
850
|
+
field: string;
|
|
851
|
+
title: string;
|
|
852
|
+
visible?: boolean;
|
|
853
|
+
sortable?: boolean;
|
|
854
|
+
align?: string;
|
|
855
|
+
width?: string;
|
|
856
|
+
widgetType?: string;
|
|
857
|
+
widgetFormat?: string;
|
|
858
|
+
decimals?: string;
|
|
859
|
+
}
|
|
860
|
+
interface ReportLayoutSummaryForm {
|
|
861
|
+
field: string;
|
|
862
|
+
operation: string;
|
|
863
|
+
displayIn: string;
|
|
864
|
+
}
|
|
865
|
+
/** Maps one report filter onto an input of this view's data source. */
|
|
866
|
+
interface ReportLayoutInputForm {
|
|
867
|
+
parameterKey: string;
|
|
868
|
+
bindTo: string;
|
|
869
|
+
}
|
|
870
|
+
/** Values edited on one static layout tab. */
|
|
871
|
+
interface ReportLayoutFormModel {
|
|
872
|
+
enabled: boolean;
|
|
873
|
+
title: AXPMultiLanguageString;
|
|
874
|
+
description: AXPMultiLanguageString;
|
|
875
|
+
isDefault: boolean;
|
|
876
|
+
queryName: string;
|
|
877
|
+
showQuery: boolean;
|
|
878
|
+
dataSourceType: string;
|
|
879
|
+
dataSourceDescription: string;
|
|
880
|
+
queryInputs: ReportLayoutInputForm[];
|
|
881
|
+
pagination: boolean;
|
|
882
|
+
stickyHeader: boolean;
|
|
883
|
+
stripedRows: boolean;
|
|
884
|
+
columns: ReportLayoutColumnForm[];
|
|
885
|
+
summaries: ReportLayoutSummaryForm[];
|
|
886
|
+
xField: string;
|
|
887
|
+
yFields: string;
|
|
888
|
+
groupBy: string;
|
|
889
|
+
showDownloadButton: boolean;
|
|
890
|
+
showPrintButton: boolean;
|
|
891
|
+
showZoomControls: boolean;
|
|
892
|
+
showFullscreenButton: boolean;
|
|
893
|
+
defaultZoom: number;
|
|
894
|
+
headerTitle: string;
|
|
895
|
+
headerShowDate: boolean;
|
|
896
|
+
footerShowDate: boolean;
|
|
897
|
+
fileNameTemplate: string;
|
|
898
|
+
pdfExportEnabled: boolean;
|
|
899
|
+
excelExportEnabled: boolean;
|
|
900
|
+
excelSheetName: string;
|
|
901
|
+
csvExportEnabled: boolean;
|
|
902
|
+
}
|
|
903
|
+
interface ApplyReportLayoutFormResult {
|
|
904
|
+
layouts: AXPReportLayoutDefinition[];
|
|
905
|
+
defaultLayoutId: string;
|
|
906
|
+
}
|
|
907
|
+
declare function readReportLayoutForm(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'> | null | undefined, preset: AXPReportLayoutPreset): ReportLayoutFormModel;
|
|
908
|
+
declare function applyReportLayoutForm(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>, preset: AXPReportLayoutPreset, form: ReportLayoutFormModel, createId?: () => string): ApplyReportLayoutFormResult;
|
|
909
|
+
declare function sameReportLayoutForm(left: ReportLayoutFormModel, right: ReportLayoutFormModel): boolean;
|
|
910
|
+
/** Keeps the known form fields when a widget container echoes a wider context object. */
|
|
911
|
+
declare function pickReportLayoutForm(value: Record<string, unknown>, fallback: ReportLayoutFormModel): ReportLayoutFormModel;
|
|
912
|
+
declare function layoutMatchesPreset(layout: AXPReportLayoutDefinition, preset: AXPReportLayoutPreset): boolean;
|
|
913
|
+
|
|
914
|
+
/** One stored JSON object on a report layout, shown as its own field. */
|
|
915
|
+
interface ReportLayoutJsonSection {
|
|
916
|
+
name: 'layout' | 'dataSource' | 'actions' | 'export';
|
|
917
|
+
labelKey: 'layout' | 'data-source' | 'actions' | 'export';
|
|
918
|
+
value: unknown;
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* The definition stores each view as JSON objects, not as the few switches on the page.
|
|
922
|
+
* Returns only the objects that are actually present on the matching layout.
|
|
923
|
+
*/
|
|
924
|
+
declare function reportLayoutJsonSections(report: {
|
|
925
|
+
layouts?: AXPReportLayoutDefinition[];
|
|
926
|
+
} | null | undefined, preset: AXPReportLayoutPreset): ReportLayoutJsonSection[];
|
|
927
|
+
|
|
928
|
+
/** The stored objects of one view, keyed by section name. This is what the page edits. */
|
|
929
|
+
type ReportLayoutSectionsModel = Record<string, unknown>;
|
|
930
|
+
/**
|
|
931
|
+
* Copies the stored objects of one view for the editing page.
|
|
932
|
+
* The widgets write into this copy, so the loaded report definition is never touched.
|
|
933
|
+
* A view that is not stored yet starts from the keys it needs, so it can be defined from scratch.
|
|
934
|
+
*/
|
|
935
|
+
declare function readReportLayoutSections(report: Parameters<typeof reportLayoutJsonSections>[0], preset: AXPReportLayoutPreset): ReportLayoutSectionsModel;
|
|
936
|
+
/**
|
|
937
|
+
* Maps every report filter to the field of the view's query that has the same name.
|
|
938
|
+
* Filters the view already maps are left as they are, so a choice made on the page always wins.
|
|
939
|
+
* Returns the given sections untouched when the view has no query or nothing needs mapping.
|
|
940
|
+
*/
|
|
941
|
+
declare function autoMapReportLayoutInputs(sections: ReportLayoutSectionsModel, parameterKeys: readonly string[], columns: readonly string[]): ReportLayoutSectionsModel;
|
|
942
|
+
/**
|
|
943
|
+
* Editors for one view: every stored property, plus the keys the view needs that are not stored yet.
|
|
944
|
+
* The page and the cleaning below must use the same schema.
|
|
945
|
+
*/
|
|
946
|
+
declare function reportLayoutFieldSchema(baseline: ReportLayoutSectionsModel, preset?: AXPReportLayoutPreset): ReportLayoutFieldSchema[];
|
|
947
|
+
/**
|
|
948
|
+
* Turns edited section values back into the shape the server stores.
|
|
949
|
+
* Only the properties the page can edit are normalised; every other stored key travels through as it was.
|
|
950
|
+
* `baseline` is the section copy the page started from. It decides which properties are editable.
|
|
951
|
+
*/
|
|
952
|
+
declare function cleanReportLayoutSections(baseline: ReportLayoutSectionsModel, edited: ReportLayoutSectionsModel | null | undefined, preset?: AXPReportLayoutPreset): ReportLayoutSectionsModel;
|
|
953
|
+
/** True when the edited sections differ from the baseline once both are normalised. */
|
|
954
|
+
declare function reportLayoutSectionsChanged(baseline: ReportLayoutSectionsModel, edited: ReportLayoutSectionsModel | null | undefined, preset?: AXPReportLayoutPreset): boolean;
|
|
955
|
+
/**
|
|
956
|
+
* Writes the edited sections onto the layout of this preset.
|
|
957
|
+
* A section is written when the view already stored it or the user entered something in it.
|
|
958
|
+
* The layout `type` and chart type stay the ones the tab stands for.
|
|
959
|
+
*/
|
|
960
|
+
declare function applyReportLayoutSections(layouts: AXPReportLayoutDefinition[], preset: AXPReportLayoutPreset, baseline: ReportLayoutSectionsModel, edited: ReportLayoutSectionsModel | null | undefined): AXPReportLayoutDefinition[];
|
|
961
|
+
|
|
962
|
+
/** Stored objects of one view, keyed by section name. Same shape the layout page edits. */
|
|
963
|
+
type StarterSections = Record<string, unknown>;
|
|
964
|
+
/**
|
|
965
|
+
* The keys a view needs, with one sample value per key so the page can choose an editor for it.
|
|
966
|
+
* A list holds one sample row. The sample only gives the row its fields; it is never stored.
|
|
967
|
+
*/
|
|
968
|
+
declare function reportLayoutStarterShape(preset: AXPReportLayoutPreset): StarterSections;
|
|
969
|
+
/**
|
|
970
|
+
* Values a view that is not stored yet starts with.
|
|
971
|
+
* Fixed keys (`type`, `chartType`) and switches that default to on are filled. Everything else is blank,
|
|
972
|
+
* lists are empty and `false` switches stay unset, so nothing is stored until the user enters it.
|
|
973
|
+
*/
|
|
974
|
+
declare function reportLayoutStarterValues(preset: AXPReportLayoutPreset): StarterSections;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Applies the filter mapping of a view's data source to the conditions built from the report filters.
|
|
978
|
+
* A condition on a filter that the view maps to a query field runs on that field instead.
|
|
979
|
+
* Filters without a mapping keep their own name, which is the field of the query rows with the same name.
|
|
980
|
+
*/
|
|
981
|
+
declare function applyReportParameterBindings(clause: AXPFilterClause, inputs: readonly AXPReportParameterBinding[] | null | undefined): AXPFilterClause;
|
|
982
|
+
|
|
983
|
+
declare const RootConfig: {
|
|
984
|
+
readonly config: {
|
|
985
|
+
i18n: string;
|
|
986
|
+
module: string;
|
|
987
|
+
};
|
|
988
|
+
readonly module: {
|
|
989
|
+
readonly route: "report-management";
|
|
990
|
+
readonly name: string;
|
|
991
|
+
readonly title: `@${string}:module.title`;
|
|
992
|
+
readonly icon: "fa-light fa-chart-bar";
|
|
993
|
+
};
|
|
994
|
+
readonly entities: {
|
|
995
|
+
readonly dataSet: {
|
|
996
|
+
readonly name: "DataSet";
|
|
997
|
+
readonly title: `t("dataSet", { scope: "${string}" })`;
|
|
998
|
+
readonly titlePlural: `t("dataSetPlural", { scope: "${string}" })`;
|
|
999
|
+
readonly icon: "fa-light fa-default";
|
|
1000
|
+
};
|
|
1001
|
+
readonly category: {
|
|
1002
|
+
readonly name: "ReportCategory";
|
|
1003
|
+
readonly fullName: `${string}.ReportCategory`;
|
|
1004
|
+
readonly title: `@${string}:reports.entities.category.title`;
|
|
1005
|
+
readonly titlePlural: `@${string}:reports.entities.category.plural`;
|
|
1006
|
+
readonly icon: "fa-light fa-folder";
|
|
1007
|
+
};
|
|
1008
|
+
readonly report: {
|
|
1009
|
+
readonly name: "Report";
|
|
1010
|
+
readonly fullName: `${string}.Report`;
|
|
1011
|
+
readonly title: `@${string}:reports.entities.report.title`;
|
|
1012
|
+
readonly titlePlural: `@${string}:reports.entities.report.plural`;
|
|
1013
|
+
readonly icon: "fa-light fa-file-chart-pie";
|
|
1014
|
+
};
|
|
1015
|
+
readonly reportGenerationRequest: {
|
|
1016
|
+
readonly name: "ReportGenerationRequest";
|
|
1017
|
+
readonly fullName: `${string}.ReportGenerationRequest`;
|
|
1018
|
+
readonly title: `@${string}:report-generation.entities.request.title`;
|
|
1019
|
+
readonly titlePlural: `@${string}:report-generation.entities.request.plural`;
|
|
1020
|
+
readonly icon: "fa-light fa-file-export";
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
|
|
698
1025
|
declare const AXMReportManagementQueryKeys: {
|
|
699
1026
|
readonly Category: {
|
|
700
1027
|
readonly ListRoot: "ReportManagement:Category:ListRoot";
|
|
@@ -710,52 +1037,11 @@ declare const AXMReportManagementQueryKeys: {
|
|
|
710
1037
|
};
|
|
711
1038
|
};
|
|
712
1039
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
interface AXMQuerySnapshotPolicyEntityModel extends AXPEntityModel<string> {
|
|
720
|
-
queryName: string;
|
|
721
|
-
enabled: boolean;
|
|
722
|
-
schedule: string;
|
|
723
|
-
staleAfterMs: number;
|
|
724
|
-
triggers: AXMQuerySnapshotPolicyTriggers;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
type AXMQuerySnapshotStatus = 'ready' | 'stale' | 'failed';
|
|
728
|
-
type AXMQuerySnapshotPayload = {
|
|
729
|
-
success: true;
|
|
730
|
-
kind: 'value';
|
|
731
|
-
data: unknown;
|
|
732
|
-
} | {
|
|
733
|
-
success: true;
|
|
734
|
-
kind: 'object';
|
|
735
|
-
data: unknown;
|
|
736
|
-
} | {
|
|
737
|
-
success: true;
|
|
738
|
-
kind: 'collection';
|
|
739
|
-
data: AXPRuntimeCollectionData;
|
|
740
|
-
};
|
|
741
|
-
interface AXMQuerySnapshotEntityModel extends AXPEntityModel<string> {
|
|
742
|
-
key: string;
|
|
743
|
-
status: AXMQuerySnapshotStatus;
|
|
744
|
-
calculatedAt: string;
|
|
745
|
-
durationMs: number;
|
|
746
|
-
lastError?: string;
|
|
747
|
-
payload: AXMQuerySnapshotPayload;
|
|
748
|
-
}
|
|
749
|
-
interface AXMRecalculateQuerySnapshotsInput {
|
|
750
|
-
tenantId?: string;
|
|
751
|
-
applicationId?: string;
|
|
752
|
-
queryKeys?: string[];
|
|
753
|
-
/** When true, a full run ignores catch-up skips (manual refresh all). */
|
|
754
|
-
force?: boolean;
|
|
755
|
-
}
|
|
756
|
-
interface AXMRefreshQuerySnapshotsInput {
|
|
757
|
-
queryKeys?: string[];
|
|
758
|
-
}
|
|
1040
|
+
/** Trusted dependencies for coded reports, not administrator execution policies. */
|
|
1041
|
+
declare const AXP_REPORT_QUERY_TARGETS: readonly [readonly ["HumanCapitalManagement:Reports:GetHeadcountByDepartment", "HumanCapitalManagement.Employee", false], readonly ["HumanCapitalManagement:Reports:GetLeaveUsageByType", "HumanCapitalManagement.LeaveRequest", false], readonly ["ProjectManagement:Reports:GetProjectsByStatus", "ProjectManagement.Project", false], readonly ["TenantManagement:Dashboard:ActiveUsersKpi", "TenantManagement.TenantUser", false], readonly ["HumanCapitalManagement:Dashboard:EmployeesKpi", "HumanCapitalManagement.Employee", false], readonly ["TaskManagement:Dashboard:OpenTasksKpi", "TaskManagement.Task", false], readonly ["ProjectManagement:Dashboard:ActiveProjectsKpi", "ProjectManagement.Project", false], readonly ["WorkplaceSafetyManagement:Dashboard:OpenHazardsKpi", "WorkplaceSafetyManagement.Hazard", false], readonly ["DocumentManagement:Dashboard:DocumentsKpi", "DocumentManagement.Document", false], readonly ["WorkflowManagement:Dashboard:WorkflowDefinitionsKpi", "WorkflowManagement.WorkflowDefinition", false], readonly ["SubscriptionManagement:Dashboard:SubscriptionKpi", "SubscriptionManagement.Subscription", false], readonly ["WorkplaceSafetyManagement:Dashboard:HighRisksKpi", "WorkplaceSafetyManagement.HazardRisk", false], readonly ["WorkplaceSafetyManagement:Dashboard:ActiveSafetyPlansKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["WorkplaceSafetyManagement:Dashboard:Take5ChecklistsKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["WorkplaceSafetyManagement:Dashboard:Take5CompletedKpi", "WorkplaceSafetyManagement.SafetyPlan", false], readonly ["AssessmentManagement:Dashboard:OverdueAssessmentsKpi", "AssessmentManagement.AssessmentCase", true], readonly ["AssessmentManagement:Dashboard:PendingAssessmentsKpi", "AssessmentManagement.AssessmentCase", false], readonly ["AssessmentManagement:Dashboard:MyAssessmentsKpi", "AssessmentManagement.AssessmentCase", false], readonly ["TaskManagement:Dashboard:OverdueTasksKpi", "TaskManagement.Task", true], readonly ["TaskManagement:Dashboard:MyOpenTasksKpi", "TaskManagement.Task", false], readonly ["LearningManagement:Dashboard:TrainingDueKpi", "LearningManagement.Enrollment", true], readonly ["PlatformManagement:Dashboard:OnlineUsersKpi", "PlatformManagement.UserPresenceSegment", false], readonly ["PlatformManagement:Dashboard:TodayLoggedInUsersKpi", "SecurityManagement.DeviceSessions", true], readonly ["WorkflowManagement:Dashboard:RunningInstancesKpi", "WorkflowManagement.WorkflowInstance", false], readonly ["WorkflowManagement:Dashboard:FaultedInstancesKpi", "WorkflowManagement.WorkflowInstance", false], readonly ["WorkflowManagement:Dashboard:AwaitingActionInstancesKpi", "WorkflowManagement.WorkflowInstance", false]];
|
|
1042
|
+
declare const AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS: readonly [readonly ["TenantManagement:Dashboard:TmApplicationUsersKpi", readonly ["TenantManagement.TenantUserAppAccess"]], readonly ["WorkflowManagement:Dashboard:StartedTodayInstancesKpi", readonly ["WorkflowManagement.WorkflowInstance"]], readonly ["WorkflowManagement:Dashboard:CompletedTodayInstancesKpi", readonly ["WorkflowManagement.WorkflowInstance"]], readonly ["WorkflowManagement:Dashboard:AvgRunningAgeHoursKpi", readonly ["WorkflowManagement.WorkflowInstance"]]];
|
|
1043
|
+
/** Public chart result contracts, including every entity consulted by the handler. */
|
|
1044
|
+
declare const AXP_DASHBOARD_CHART_TARGETS: readonly [readonly ["AssessmentManagement:Dashboard:AssessmentsWeekLine", readonly ["AssessmentManagement.AssessmentSession"], "series"], readonly ["BackgroundJobManagement:Dashboard:JobsByStatusBar", readonly ["BackgroundJobManagement.BackgroundJob"], "items"], readonly ["BackgroundJobManagement:Dashboard:JobSchedulesByStatusBar", readonly ["BackgroundJobManagement.BackgroundJobSchedule"], "items"], readonly ["CommunicationManagement:Dashboard:DeliveryStatusDonut", readonly ["CommunicationManagement.CommunicationDeliveries"], "items"], readonly ["HealthCore:Dashboard:HealthEventsTrendLine", readonly ["HealthCore.HealthEvent"], "series"], readonly ["IntegrationManagement:Dashboard:IntegrationsDonut", readonly ["IntegrationManagement.IntegrationConnection"], "items"], readonly ["LearningManagement:Dashboard:TrainingComplianceGauge", readonly ["LearningManagement.Enrollment"], "value"], readonly ["LearningManagement:Dashboard:TrainingStatusDonut", readonly ["LearningManagement.Enrollment"], "items"], readonly ["OrganizationManagement:Dashboard:TeamsBar", readonly ["OrganizationManagement.Team"], "items"], readonly ["PlatformManagement:Dashboard:TodayOnlineByHourLine", readonly ["PlatformManagement.UserPresenceSegment"], "series"], readonly ["ProjectManagement:Dashboard:ProjectsByStatusBar", readonly ["ProjectManagement.Project"], "items"], readonly ["ProjectManagement:Dashboard:ProjectsTasksCountBar", readonly ["ProjectManagement.Project", "TaskManagement.Task"], "items"], readonly ["ProjectManagement:Dashboard:CustomersProjectsCountBar", readonly ["ProjectManagement.Project", "CustomerManagement.Customer", "BusinessCore.Party"], "items"], readonly ["TaskManagement:Dashboard:TaskStatusDonut", readonly ["TaskManagement.Task"], "items"], readonly ["TenantManagement:Dashboard:UsersByRoleDonut", readonly ["TenantManagement.TenantUser", "SecurityManagement.Role"], "items"], readonly ["WorkflowManagement:Dashboard:WorkflowsByStatusBar", readonly ["WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesBySubStatusDonut", readonly ["WorkflowManagement.WorkflowInstance"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesByDefinitionBar", readonly ["WorkflowManagement.WorkflowInstance", "WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesThroughputLine", readonly ["WorkflowManagement.WorkflowInstance"], "series"], readonly ["WorkflowManagement:Dashboard:InstancesByCurrentActivityBar", readonly ["WorkflowManagement.WorkflowInstance", "WorkflowManagement.WorkflowDefinition"], "items"], readonly ["WorkflowManagement:Dashboard:InstancesFaultHeatmap", readonly ["WorkflowManagement.WorkflowInstance"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:HazardsByCategoryDonut", readonly ["WorkplaceSafetyManagement.Hazard"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:RisksByRatingBar", readonly ["WorkplaceSafetyManagement.HazardRisk"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:PlansByTypeBar", readonly ["WorkplaceSafetyManagement.SafetyPlan"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:HazardsByStatusBar", readonly ["WorkplaceSafetyManagement.Hazard"], "items"], readonly ["WorkplaceSafetyManagement:Dashboard:PpeCoverageDonut", readonly ["WorkplaceSafetyManagement.Hazard", "WorkplaceSafetyManagement.HazardPpeRule"], "items"]];
|
|
759
1045
|
|
|
760
|
-
export { AXMPermissionsKeys, AXMReportManagementCommandKeys, AXMReportManagementQueryKeys,
|
|
761
|
-
export type {
|
|
1046
|
+
export { AXMPermissionsKeys, AXMReportManagementCommandKeys, AXMReportManagementQueryKeys, AXPInsightsReportingPermissionKeys, AXPReportManagementFeatureKeys, AXPReportManagementMenuKeys, AXPReportManagementSettings, AXP_DASHBOARD_ADDITIONAL_KPI_TARGETS, AXP_DASHBOARD_CHART_TARGETS, AXP_REPORT_LAYOUT_PRESETS, AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS, AXP_REPORT_QUERY_TARGETS, REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY, REPORT_GENERATION_OPEN_FROZEN_COMMAND, REPORT_LAYOUT_FIELD_LABEL_KEYS, ReportManagementManifest, RootConfig, applyReportFilterForm, applyReportLayoutForm, applyReportLayoutSections, applyReportParameterBindings, autoMapReportLayoutInputs, buildReportGenerationNotificationCorrelationId, cleanReportLayoutSections, findDefaultReportTableLayout, inferReportLayoutFields, isReportLayoutColumnKind, layoutMatchesPreset, overlayReportExportTemplates, pickReportFilterForm, pickReportLayoutForm, projectReportDefaultTableExportDefinition, readReportFilterForm, readReportLayoutForm, readReportLayoutSections, reportExportSourceBinding, reportLayoutFieldFallbackLabel, reportLayoutFieldKebabKey, reportLayoutFieldSchema, reportLayoutJsonSections, reportLayoutPresetByKey, reportLayoutQueryName, reportLayoutSectionsChanged, reportLayoutStarterShape, reportLayoutStarterValues, reportLayoutStoredColumns, reportLayoutStoredParameters, reportTableInterchangeExportActions, resolveCurrentReportExportSnapshot, resolveReportExportTableLayout, sameReportFilterForm, sameReportLayoutForm, virtualReportExportKey, visibleDefaultTableColumns };
|
|
1047
|
+
export type { 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, AXPReportGenerationDedupeOptions, AXPReportGenerationDedupePolicy, AXPReportGenerationExecuteInput, AXPReportGenerationExecuteResult, AXPReportGenerationGetInput, AXPReportGenerationGetViewerFreezeInput, AXPReportGenerationListMineInput, AXPReportGenerationMode, AXPReportGenerationOptions, AXPReportGenerationReleaseInlineWatchInput, AXPReportGenerationStatus, AXPReportGenerationTrigger, AXPReportGroupByDefinition, AXPReportHeaderFooter, AXPReportInterchangeCloneTemplateInput, AXPReportInterchangeExportInput, AXPReportInterchangeExportResult, AXPReportInterchangeListTemplatesInput, AXPReportInterchangeListTemplatesResult, AXPReportInterchangeSaveTemplateInput, AXPReportInterchangeTemplateMutationResult, AXPReportLayout, AXPReportLayoutAction, AXPReportLayoutDefinition, AXPReportLayoutPreset, AXPReportLayoutState, AXPReportLayoutType, AXPReportParameter, AXPReportParameterBinding, AXPReportParameterGroup, AXPReportPdfLayout, AXPReportPdfOptions, AXPReportSummaryOptions, AXPReportTableHierarchy, AXPReportTableLayout, AXPReportTableLayoutRowAction, AXPReportTableSummaryResult, AXPReportViewerFreeze, AXPTableOptions, AXPTransformedDataSource, ApplyReportLayoutFormResult, ReportExportSnapshot, ReportFilterFormModel, ReportFilterQuery, ReportLayoutColumnForm, ReportLayoutFieldKind, ReportLayoutFieldSchema, ReportLayoutFormModel, ReportLayoutInputForm, ReportLayoutJsonSection, ReportLayoutSectionsModel, ReportLayoutSummaryForm };
|
|
@@ -83,11 +83,10 @@ interface AXPEntityBoundReport {
|
|
|
83
83
|
*/
|
|
84
84
|
declare class AXPReportViewerService {
|
|
85
85
|
private readonly entityService;
|
|
86
|
+
private readonly dataRefresh;
|
|
86
87
|
private readonly reportDefinitionService;
|
|
87
88
|
/** Cache for individual report definitions by id */
|
|
88
|
-
private definitionsById;
|
|
89
89
|
/** Pending API requests to prevent duplicate calls */
|
|
90
|
-
private pendingReportRequests;
|
|
91
90
|
/**
|
|
92
91
|
* Reports bound to a host entity type via `entities[].entity`.
|
|
93
92
|
* Falls back to an in-memory filter when the nested-array query returns nothing
|
|
@@ -95,7 +94,7 @@ declare class AXPReportViewerService {
|
|
|
95
94
|
*/
|
|
96
95
|
getReportsByEntityType(entityType: string): Promise<AXPEntityBoundReport[]>;
|
|
97
96
|
/**
|
|
98
|
-
* Get
|
|
97
|
+
* Get a report through the scoped entity read infrastructure
|
|
99
98
|
*/
|
|
100
99
|
getReportById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
101
100
|
/**
|
|
@@ -111,11 +110,12 @@ declare class AXPReportViewerService {
|
|
|
111
110
|
getPrimaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
112
111
|
getSecondaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
113
112
|
/**
|
|
114
|
-
* Load single report
|
|
113
|
+
* Load single report through the shared entity read policy.
|
|
115
114
|
* Can be overridden in extended services (e.g., API layer).
|
|
116
115
|
*/
|
|
117
116
|
protected loadReport(id: string): Promise<AXPReportDefinition | undefined>;
|
|
118
|
-
|
|
117
|
+
/** @deprecated Cache ownership belongs to shared entity reads. */
|
|
118
|
+
protected isReportCached(_reportId: string): boolean;
|
|
119
119
|
clearAllCache(): void;
|
|
120
120
|
clearReportsCache(): void;
|
|
121
121
|
executeAction(commandName: string, options?: Record<string, unknown>): Promise<void>;
|