@acorex-platform/module-report-management-client 2.0.0-next.6 → 2.0.0-next.61
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-52Wf7cP-.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs.map → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-52Wf7cP-.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-0yEUVJIX.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BChJnEUN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BChJnEUN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-B3ektBpW.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-B3ektBpW.mjs.map} +1 -1
- 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-DStpTR5r.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-DStpTR5r.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-KLZPfhy4.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-KLZPfhy4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-BXMKtReK.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-BXMKtReK.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +1 -1
- 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-BqcBs_uV.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-BqcBs_uV.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-lrautG1U.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-lrautG1U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs → acorex-platform-module-report-management-client-report-layout-switcher.util-3XnNdsdC.mjs} +98 -8
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-3XnNdsdC.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-B43C0g2N.mjs} +5 -5
- 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-B43C0g2N.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-hfazJgDZ.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs.map → acorex-platform-module-report-management-client-report-viewer-page.component-hfazJgDZ.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +13 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entity-catalog.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const reportManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.querySnapshot.name]: () =>\n import('./entities/query-snapshot/query-snapshot.entity.js').then((m) => m.querySnapshotEntityFactory()),\n [RootConfig.entities.querySnapshotPolicy.name]: () =>\n import('./entities/query-snapshot-policy/query-snapshot-policy.entity.js').then((m) => m.querySnapshotPolicyEntityFactory()),\n [RootConfig.entities.report.name]: () =>\n import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),\n [RootConfig.entities.category.name]: () =>\n import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),\n [RootConfig.entities.reportGenerationRequest.name]: () =>\n import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAA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AACnF,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,MACnC,OAAO,gHAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,CAAC;AAC7G,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,GAAG,MAClD,OAAO,0HAA0E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oCAAoC,EAAE,CAAC;AAC3I,KAAA;;AAGH;;AC/BA;;AAEG;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ---- Query snapshot policy entity factory ----
|
|
6
6
|
const I18N = '@report-management:query-snapshots.entities.policy';
|
|
@@ -94,4 +94,4 @@ async function querySnapshotPolicyEntityFactory() {
|
|
|
94
94
|
//#endregion
|
|
95
95
|
|
|
96
96
|
export { querySnapshotPolicyEntityFactory };
|
|
97
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-
|
|
97
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BChJnEUN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BChJnEUN.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Query snapshot policy entity factory ----\n\nconst I18N = '@report-management:query-snapshots.entities.policy';\n\nexport async function querySnapshotPolicyEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.querySnapshotPolicy.name,\n title: RootConfig.entities.querySnapshotPolicy.title,\n icon: RootConfig.entities.querySnapshotPolicy.icon,\n searchTags: [\n 'query-snapshot-policy',\n 'snapshot-policy',\n 'cache-policy',\n 'query-refresh-policy',\n 'snapshot-schedule',\n 'cache-ttl',\n 'refresh-interval',\n 'data-refresh',\n 'سیاست اسنپشات',\n 'سیاستهای اسنپشات کوئری',\n 'سیاست کش',\n 'نوسازی کوئری',\n ],\n formats: {\n individual: RootConfig.entities.querySnapshotPolicy.title,\n plural: RootConfig.entities.querySnapshotPolicy.titlePlural,\n searchResult: {\n title: '{{ queryName }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'queryName',\n title: `${I18N}.fields.query-name`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'enabled',\n title: `${I18N}.fields.enabled`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n defaultValue: true,\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'schedule',\n title: `${I18N}.fields.schedule`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'staleAfterMs',\n title: `${I18N}.fields.stale-after-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'triggers',\n title: `${I18N}.fields.triggers`,\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: 'json' } },\n },\n ],\n columns: [{ name: 'queryName' }, { name: 'enabled' }, { name: 'schedule' }, { name: 'staleAfterMs' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'queryName', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEA,MAAM,IAAI,GAAG,oDAAoD;AAE1D,eAAe,gCAAgC,GAAA;IACpD,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI;AAClD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK;AACpD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI;AAClD,QAAA,UAAU,EAAE;YACV,uBAAuB;YACvB,iBAAiB;YACjB,cAAc;YACd,sBAAsB;YACtB,mBAAmB;YACnB,WAAW;YACX,kBAAkB;YAClB,cAAc;YACd,gBAAgB;YAChB,0BAA0B;YAC1B,UAAU;YACV,cAAc;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,KAAK;AACzD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,WAAW;AAC3D,YAAA,YA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I,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ---- Report management command keys ----
|
|
6
6
|
const AXMReportManagementCommandKeys = {
|
|
@@ -134,4 +134,4 @@ async function querySnapshotEntityFactory() {
|
|
|
134
134
|
//#endregion
|
|
135
135
|
|
|
136
136
|
export { querySnapshotEntityFactory };
|
|
137
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-
|
|
137
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-B3ektBpW.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-B3ektBpW.mjs","sources":["../../../../libs/modules/report-management/contracts/src/commands.keys.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot/query-snapshot.entity.ts"],"sourcesContent":["//#region ---- Report management command keys ----\n\nexport const AXMReportManagementCommandKeys = {\n RecalculateQuerySnapshots: 'ReportManagement:RecalculateQuerySnapshots',\n RefreshQuerySnapshots: 'ReportManagement:RefreshQuerySnapshots',\n ReportGeneration: {\n Create: 'ReportManagement:ReportGeneration:Create',\n Execute: 'ReportManagement:ReportGeneration:Execute',\n ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',\n },\n} as const;\n\nexport const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RecalculateQuerySnapshots;\n\nexport const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RefreshQuerySnapshots;\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY } from '../../commands.keys';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Query snapshot entity factory ----\n\nconst I18N = '@report-management:query-snapshots.entities.snapshot';\n\nconst STATUS_ITEMS = [\n { name: 'ready', title: `${I18N}.statuses.ready` },\n { name: 'stale', title: `${I18N}.statuses.stale` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n];\n\nexport async function querySnapshotEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.querySnapshot.name,\n title: RootConfig.entities.querySnapshot.title,\n icon: RootConfig.entities.querySnapshot.icon,\n searchTags: [\n 'query-snapshot',\n 'cached-query',\n 'query-cache',\n 'snapshot-data',\n 'stale-snapshot',\n 'report-cache',\n 'data-snapshot',\n 'query-result-cache',\n 'اسنپشات کوئری',\n 'اسنپشاتهای کوئری',\n 'کش کوئری',\n 'ذخیره نتیجه',\n ],\n formats: {\n individual: RootConfig.entities.querySnapshot.title,\n plural: RootConfig.entities.querySnapshot.titlePlural,\n searchResult: {\n title: '{{ key }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'key',\n title: `${I18N}.fields.key`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'calculatedAt',\n title: `${I18N}.fields.calculated-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'payload',\n title: `${I18N}.fields.payload`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [{ name: 'key' }, { name: 'status' }, { name: 'calculatedAt' }, { name: 'durationMs' }],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:query-snapshots.actions.refresh-now',\n icon: 'fa-light fa-rotate',\n command: { name: AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY },\n priority: 'primary',\n type: 'action',\n scope: AXPEntityCommandScope.T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
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
2
2
|
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ---- Report category entity factory ----
|
|
6
6
|
async function reportCategoryEntityFactory() {
|
|
@@ -79,4 +79,4 @@ async function reportCategoryEntityFactory() {
|
|
|
79
79
|
//#endregion
|
|
80
80
|
|
|
81
81
|
export { reportCategoryEntityFactory };
|
|
82
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-
|
|
82
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-DStpTR5r.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-DStpTR5r.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts"],"sourcesContent":["import {AXPEntity, createAllQueryView, entityMasterCrudActions} from '@acorex-platform/framework-shared/entity';\nimport {AXPWidgetsCatalog} from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report category entity factory ----\n\nexport async function reportCategoryEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.category.name,\n parentKey: 'parentId',\n title: RootConfig.entities.category.title,\n icon: RootConfig.entities.category.icon,\n searchTags: [\n 'report-category',\n 'report-folder',\n 'report-group',\n 'category-tree',\n 'report-organization',\n 'report-hierarchy',\n 'report-classification',\n 'دسته گزارش',\n 'دستههای گزارش',\n 'دسته',\n 'گروه گزارش',\n ],\n formats: {\n individual: RootConfig.entities.category.title,\n plural: RootConfig.entities.category.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'childrenCount',\n title: '@general:terms.common.children-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'itemsCount',\n title: '@general:terms.common.items-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,2BAA2B,GAAA;IAC/C,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AACzC,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAA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YAAY;AACrB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,IAAI,EAAE,EAAE;AAC5E,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,KAAK,EAAE,sCAAsC;AAC7C,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,EAAE,EAAE;AAC9E,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,KAAK,EAAE,mCAAmC;AAC1C,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,EAAE,EAAE;AAC9E,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AACrD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ----- Imports -----
|
|
6
6
|
const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
|
|
@@ -211,4 +211,4 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
211
211
|
//#endregion
|
|
212
212
|
|
|
213
213
|
export { reportGenerationRequestEntityFactory };
|
|
214
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-
|
|
214
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-KLZPfhy4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs","sources":["../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n searchTags: [\n 'report-generation',\n 'background-report',\n 'report-export',\n 'report-job',\n 'async-report',\n 'scheduled-report',\n 'report-queue',\n 'generation-request',\n 'تولید گزارش',\n 'گزارش پسزمینه',\n 'اجرای تولید گزارش',\n 'خروجی گزارش',\n ],\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AA2BO,MAAM,6CAA6C,GAAG,mCAAmC;AAEzF,MAAM,qCAAqC,GAAG,oCAAoC;AAEzF;AACM,SAAU,8CAA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;AACP,gCAAA,IAAI,EAAE,qCAAqC;AAC3C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,gCAAgC;AAC1C,oCAAA,KAAK,EAAE,0BAA0B;AAClC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-KLZPfhy4.mjs","sources":["../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n searchTags: [\n 'report-generation',\n 'background-report',\n 'report-export',\n 'report-job',\n 'async-report',\n 'scheduled-report',\n 'report-queue',\n 'generation-request',\n 'تولید گزارش',\n 'گزارش پسزمینه',\n 'اجرای تولید گزارش',\n 'خروجی گزارش',\n ],\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AA2BO,MAAM,6CAA6C,GAAG,mCAAmC;AAEzF,MAAM,qCAAqC,GAAG,oCAAoC;AAEzF;AACM,SAAU,8CAA8C,CAAC,KAAa,EAAA;AAC1E,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,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,QAAQ,EAAE,gCAAgC;AAC1C,oCAAA,KAAK,EAAE,0BAA0B;AAClC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
2
2
|
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ---- Report definition entity factory ----
|
|
6
6
|
async function reportEntityFactory() {
|
|
@@ -121,4 +121,4 @@ async function reportEntityFactory() {
|
|
|
121
121
|
//#endregion
|
|
122
122
|
|
|
123
123
|
export { reportEntityFactory };
|
|
124
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-
|
|
124
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-BXMKtReK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-BXMKtReK.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts"],"sourcesContent":["import {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report definition entity factory ----\n\nexport async function reportEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.report.name,\n title: RootConfig.entities.report.title,\n icon: RootConfig.entities.report.icon,\n searchTags: [\n 'report',\n 'report-definition',\n 'business-report',\n 'report-template',\n 'analytics',\n 'dashboard-report',\n 'report-layout',\n 'data-report',\n 'گزارش',\n 'گزارشها',\n 'قالب گزارش',\n 'مدیریت گزارش',\n ],\n plugins: [{ name: 'category', options: { readonly: true } }],\n formats: {\n individual: RootConfig.entities.report.title,\n plural: RootConfig.entities.report.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parameterGroups',\n title: '@report-management:reports.entities.report.fields.parameter-groups',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'layouts',\n title: '@report-management:reports.entities.report.fields.layouts',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'defaultLayoutId',\n title: '@report-management:reports.entities.report.fields.default-layout-id',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'permissions',\n title: '@general:terms.security.permissions',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'entities',\n title: '@report-management:reports.entities.report.fields.entities',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'generation',\n title: '@report-management:reports.entities.report.fields.generation',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.open.title',\n icon: 'fa-light fa-play',\n command: {\n name: 'ReportManagement.Report:OpenViewer',\n options: {\n reportId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAQA;AAEO,eAAe,mBAAmB,GAAA;IACvC,OAAO;AACL,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI;AACrC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK;AACvC,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI;AACrC,QAAA,UAAU,EAAE;YACV,QAAQ;YACR,mBAAmB;YACnB,iBAAiB;YACjB,iBAAiB;YACjB,WAAW;YACX,kBAAkB;YAClB,eAAe;YACf,aAAa;YACb,OAAO;YACP,UAAU;YACV,YA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,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { r as reportManagementLocalEntityCatalog } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
1
|
+
export { r as reportManagementLocalEntityCatalog } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-0yEUVJIX.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts.mjs","sources":["../../../../libs/modules/report-management/contracts/src/commands.keys.ts","../../../../libs/modules/report-management/contracts/src/features.keys.ts","../../../../libs/modules/report-management/contracts/src/menu.keys.ts","../../../../libs/modules/report-management/contracts/src/permission.keys.ts","../../../../libs/modules/report-management/contracts/src/settings.keys.ts","../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/manifest.ts","../../../../libs/modules/report-management/contracts/src/report.types.ts","../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/runtime.keys.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot/query-snapshot.types.ts","../../../../libs/modules/report-management/contracts/src/index.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts.ts"],"sourcesContent":["//#region ---- Report management command keys ----\n\nexport const AXMReportManagementCommandKeys = {\n RecalculateQuerySnapshots: 'ReportManagement:RecalculateQuerySnapshots',\n RefreshQuerySnapshots: 'ReportManagement:RefreshQuerySnapshots',\n ReportGeneration: {\n Create: 'ReportManagement:ReportGeneration:Create',\n Execute: 'ReportManagement:ReportGeneration:Execute',\n ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',\n },\n} as const;\n\nexport const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RecalculateQuerySnapshots;\n\nexport const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RefreshQuerySnapshots;\n\n//#endregion\n","export const AXPReportManagementFeatureKeys = {\n ReportBuilder: 'ReportManagement:Feature:ReportBuilder',\n SavedReports: 'ReportManagement:Feature:SavedReports',\n ScheduledReports: 'ReportManagement:Feature:ScheduledReports',\n BackgroundReports: 'ReportManagement:Feature:BackgroundReports',\n} as const;\n\n","export const AXPReportManagementMenuKeys = {\n Root: 'report-management:menu',\n Reports: 'report-management:menu:reports',\n Categories: 'report-management:menu:categories',\n DataSets: 'report-management:menu:data-sets',\n} as const;\n\n","/**\n * Insights & Reporting capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPInsightsReportingPermissionKeys = {\n Access: 'InsightsReporting:Permission:Access',\n MaintainReports: 'InsightsReporting:Permission:MaintainReports',\n MaintainData: 'InsightsReporting:Permission:MaintainData',\n ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',\n ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',\n Setup: 'InsightsReporting:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n ReportManagement: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n Report: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n View: AXPInsightsReportingPermissionKeys.MaintainReports,\n Create: AXPInsightsReportingPermissionKeys.MaintainReports,\n Update: AXPInsightsReportingPermissionKeys.MaintainReports,\n Delete: AXPInsightsReportingPermissionKeys.MaintainReports,\n },\n Category: {\n Management: AXPInsightsReportingPermissionKeys.Setup,\n View: AXPInsightsReportingPermissionKeys.Setup,\n Create: AXPInsightsReportingPermissionKeys.Setup,\n Update: AXPInsightsReportingPermissionKeys.Setup,\n Delete: AXPInsightsReportingPermissionKeys.Setup,\n },\n },\n} as const;\n","//#region ----- Report management settings -----\n\nimport type { AXPReportGenerationDedupePolicy } from './report.types';\n\nexport enum AXPReportManagementSettings {\n GenerationDedupePolicy = 'ReportManagement:Setting:Generation.Dedupe.Policy',\n GenerationDedupeCooldownMinutes = 'ReportManagement:Setting:Generation.Dedupe.CooldownMinutes',\n GenerationMaxConcurrentPerUser = 'ReportManagement:Setting:Generation.MaxConcurrentPerUser',\n}\n\nexport const AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS = {\n [AXPReportManagementSettings.GenerationDedupePolicy]: 'in-flight' as AXPReportGenerationDedupePolicy,\n [AXPReportManagementSettings.GenerationDedupeCooldownMinutes]: 0,\n [AXPReportManagementSettings.GenerationMaxConcurrentPerUser]: 3,\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Report Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const ReportManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'data',\n required : true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXPWidgetColumnNode } from '@acorex-platform/framework-shared/widget-core';\nimport { AXPQuerySort } from '@acorex-platform/framework-shared/entity';\nimport { AXPActionMenuItem, AXPCategoryEntity, AXPExportOptions, AXPFilterClause, AXPSystemActionType, type AXPMultiLanguageString, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Core Report Types and Interfaces ----\n\nexport type AXPReportLayoutType = 'table' | 'chart' | 'cards' | 'custom' | 'pdf';\n\n/**\n * Report Category - Extends AXPCategoryEntity for consistency and performance\n *\n * Inherited properties from AXPCategoryEntity:\n * - id: string - Unique identifier\n * - title: string - Display name\n * - description?: string - Category description\n * - parentId?: string - Parent category ID\n * - childrenCount: number - Direct child categories count (enables lazy loading)\n * - itemsCount?: number - Direct reports count (replaces hasReport boolean)\n * - totalChildrenCount?: number - Total nested categories (optional, for analytics)\n * - totalItemsCount?: number - Total reports in tree (optional, for analytics)\n *\n * Performance benefits:\n * - Lazy loading support (childrenCount > 0 shows expand icon)\n * - Report count display (itemsCount shows \"5 reports\" badge)\n * - Efficient queries (no need to query to know if expandable)\n */\nexport interface AXPReportCategory extends AXPCategoryEntity {\n // No additional properties needed - all inherited from AXPCategoryEntity\n // Use: childrenCount instead of hasChild\n // Use: itemsCount instead of hasReport\n}\n\n/** How an entity-bound report is surfaced on the host entity UI. */\nexport type AXPReportEntityDisplay = 'action' | 'page' | 'popup';\n\n/**\n * Parameter value on an entity binding:\n * - field path / expression string (e.g. `id`)\n * - `'today'` → local calendar day `{ from, to }`\n * - explicit `{ from, to }` date range\n */\nexport type AXPReportEntityParameterValue = string | { from: string; to: string };\n\n/** Binds a report to a host entity type for Reports page discovery. */\nexport interface AXPReportEntityBinding {\n /** Fully qualified entity type, e.g. `SecurityManagement.User`. */\n entity: string;\n /** Optional list title (i18n key or plain text). Falls back to report title. */\n title?: string;\n /** Optional list description (i18n key or plain text). Falls back to report description. */\n description?: string;\n layoutId?: string;\n /**\n * Where to surface the report. Defaults to `['page']` (Reports side-menu page).\n * `action` / `popup` are retained for data compatibility but are not contributed as entity Actions.\n */\n display?: AXPReportEntityDisplay | AXPReportEntityDisplay[];\n /**\n * Map report parameter path → entity field / expression / date token.\n * Example: `{ userId: 'id', dateRange: 'today' }`\n */\n parameters?: Record<string, AXPReportEntityParameterValue>;\n order?: number;\n}\n\nexport interface AXPReportDefinition {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n categoryIds: string[];\n parameterGroups: AXPReportParameterGroup[];\n permissions?: string[];\n layouts: AXPReportLayoutDefinition[]; // Changed to support multiple layouts\n defaultLayoutId: string; // Which layout to show by default\n /** Optional host-entity bindings for the entity `reports` plugin. */\n entities?: AXPReportEntityBinding[];\n /** Background / choose / interactive generation options. Omitted = interactive. */\n generation?: AXPReportGenerationOptions;\n}\n\nexport type AXPReportGenerationMode = 'interactive' | 'background' | 'choose';\n\nexport type AXPReportArtifactKind = 'viewer' | 'pdf' | 'excel' | 'csv';\n\nexport type AXPReportFreezeLayouts = 'current' | 'all';\n\nexport type AXPReportGenerationDedupePolicy =\n | 'none'\n | 'in-flight'\n | 'in-flight-or-cooldown';\n\nexport interface AXPReportGenerationDedupeOptions {\n /** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.Policy`. */\n policy?: AXPReportGenerationDedupePolicy;\n /** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.CooldownMinutes`. */\n cooldownMs?: number;\n}\n\nexport interface AXPReportGenerationOptions {\n /** Omitted = interactive (today’s viewer). */\n mode?: AXPReportGenerationMode;\n /** Default `['viewer']` when mode is background or choose. */\n formats?: AXPReportArtifactKind[];\n executionTimeoutMs?: number;\n /** Default 30. Used to set `expiresAt` when the run finishes. */\n retentionDays?: number;\n /** Default `'all'` query layouts. `'current'` freezes only the layout the user ran. */\n freezeLayouts?: AXPReportFreezeLayouts;\n /** Default true. Store layout/title/parameter snapshot in the viewer freeze file. */\n pinDefinition?: boolean;\n /** Demo/local only. Worker waits this long after marking the run running. */\n simulateDelayMs?: number;\n /** Omitted → dedupe behavior comes from platform settings. */\n dedupe?: AXPReportGenerationDedupeOptions;\n /**\n * When true (default for background/choose), completed jobs stay in the footer tray until dismissed.\n * Set false to remove from tray as soon as the job completes.\n */\n keepInTray?: boolean;\n}\n\nexport type AXPReportLayoutAction = AXPActionMenuItem & {\n priority: 'primary' | 'secondary';\n};\n\n/**\n * Layout Definition - Associates a layout with metadata\n */\nexport interface AXPReportLayoutDefinition {\n id: string; // Unique identifier for this layout\n title: AXPMultiLanguageString; // Display name (e.g., \"Table View\", \"Chart View\")\n description?: AXPMultiLanguageString; // Optional description\n icon?: string; // Icon for layout switcher UI\n layout: AXPReportLayout; // The actual layout configuration\n dataSource?: AXPReportDataSource; // Optional layout-specific dataSource (overrides report-level)\n isDefault?: boolean; // Alternative to defaultLayoutId\n actions?: AXPReportLayoutAction[];\n export?: AXPExportOptions;\n}\n\nexport interface AXPReportParameterGroup {\n name: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n parameters: AXPReportParameter[];\n}\n\nexport interface AXPReportParameter {\n path: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n /**\n * Boolean or expression (e.g. `{{ permission.check(\"…\") }}` / `{{ feature.check(\"…\") }}`).\n * Omitted / `true` means visible. Evaluated by the Report Viewer layout renderer.\n */\n visible?: boolean | string;\n widget: AXPWidgetNode;\n}\n\n//#endregion\n\n//#region ---- Data Source Types ----\n\nexport type AXPReportDataSource =\n | AXPQueryDataSource\n | AXPCustomDataSource\n | AXPAggregatedDataSource\n | AXPTransformedDataSource;\n\n/**\n * Query Data Source - Used for executing predefined queries (AXPQuery)\n */\nexport interface AXPQueryDataSource {\n type: 'query';\n name: string; // The registered query name, e.g., 'getProductList'\n description?: string;\n\n inputs?: AXPReportParameterBinding[]; // Maps report parameters to query inputs\n sortFields?: AXPQuerySort[]; // Default sorting applied by the backend\n pagination?: boolean; // Enables paging in result set\n}\n\n/**\n * Custom Data Source - Used for fetching data from custom providers like REST APIs or external services\n */\nexport interface AXPCustomDataSource {\n type: 'custom';\n provider: string; // Example: 'http://api/report' or 'custom:MyHandler'\n description?: string;\n\n inputs?: AXPReportParameterBinding[]; // Maps report parameters to payload\n options?: { [key: string]: any }; // Additional options for the custom handler\n}\n\n/**\n * Parameter Binding - Maps report-level parameters to actual query/command input structure\n */\nexport interface AXPReportParameterBinding {\n parameterKey: string; // Report parameter key, e.g., 'startDate'\n bindTo: string; // Input key in the query/command payload, e.g., 'filters.from'\n}\n\n/**\n * Aggregated Data Source - Used for pre-aggregated data optimized for charts\n */\nexport interface AXPAggregatedDataSource {\n type: 'aggregated';\n baseQuery: string; // Base query to aggregate from\n description?: string;\n\n groupBy: string[]; // Fields to group by\n aggregations: AXPAggregation[]; // Aggregation operations\n inputs?: AXPReportParameterBinding[];\n}\n\n/**\n * Transformed Data Source - Applies transformations to existing data sources\n */\nexport interface AXPTransformedDataSource {\n type: 'transformed';\n baseDataSource: AXPReportDataSource; // Source to transform\n description?: string;\n\n transformations: AXPDataTransformation[]; // List of transformations\n inputs?: AXPReportParameterBinding[];\n}\n\n/**\n * Aggregation operation for aggregated data sources\n */\nexport interface AXPAggregation {\n field: string;\n operation: 'sum' | 'avg' | 'count' | 'min' | 'max' | 'distinct';\n alias?: string; // Output field name\n}\n\n/**\n * Data transformation operation\n */\nexport interface AXPDataTransformation {\n type: 'filter' | 'sort' | 'group' | 'pivot' | 'format';\n config: Record<string, any>; // Transformation-specific configuration\n}\n\n//#endregion\n\n//#region ---- Group By & Drill Down ----\n\n/**\n * Drill-down target for a grouped report row.\n * When reportId is omitted, the current report is used.\n */\nexport interface AXPReportDrillDownConfig {\n reportId?: string;\n layoutId?: string;\n title?: string;\n parameters?: Record<string, string>;\n}\n\n/**\n * Declares how a summary report is grouped and which detail view opens on drill-down.\n * Multiple definitions allow alternative drill paths (e.g. by brand vs by category).\n */\nexport interface AXPReportGroupByDefinition {\n fields: string[];\n displayField?: string;\n /** When true (default), `displayField` renders as a link instead of a row command column. */\n linkDisplay?: boolean;\n title?: string;\n default?: boolean;\n priority?: 'primary' | 'secondary';\n drillDown: AXPReportDrillDownConfig;\n}\n\n//#endregion\n\n//#region ---- Layout Types ----\n\nexport type AXPReportLayout = AXPReportTableLayout | AXPReportChartLayout | AXPReportPdfLayout;\n\n/**\n * Table Layout - Displays data in tabular format\n */\n\nexport interface AXPReportTableLayoutRowAction extends AXPActionMenuItem {\n priority: 'primary' | 'secondary';\n type: AXPSystemActionType | string;\n default?: boolean;\n}\n\nexport interface AXPReportTableLayout {\n type: 'table';\n columns: AXPReportColumn[];\n actions?: AXPReportTableLayoutRowAction[];\n options?: AXPTableOptions;\n groupBy?: AXPReportGroupByDefinition[];\n conditionalFormatting?: AXPConditionalFormatRule[];\n summary?: AXPReportSummaryOptions[];\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\nexport interface AXPTableOptions {\n pagination?: boolean;\n stickyHeader?: boolean;\n stripedRows?: boolean;\n sorting?: AXPQuerySort[];\n selectable?: {\n mode: 'single' | 'multiple' | 'none';\n };\n}\n\n/**\n * Chart Layout - Displays data in various chart formats\n */\nexport interface AXPReportChartLayout {\n type: 'chart';\n options: AXPReportChartOptions;\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\nexport interface AXPReportChartOptions {\n chartType: 'bar' | 'line' | 'pie' | 'doughnut' | 'area' | 'scatter' | 'radar' | 'mixed';\n dataMapping: AXPChartDataMapping;\n styling?: AXPChartStyling;\n interactivity?: AXPChartInteractivity;\n}\n\n/**\n * Chart Data Mapping Configuration\n */\nexport interface AXPChartDataMapping {\n // Core fields\n xField: string; // X-axis data field\n yFields: string | string[]; // Y-axis data field(s) for multiple series\n\n // Grouping and categorization\n groupBy?: string; // Group data by this field\n seriesField?: string; // Field to create multiple series\n\n // Special fields for specific chart types\n sizeField?: string; // For bubble charts\n colorField?: string; // For gradient/conditional coloring\n labelField?: string; // Custom label field\n\n // Data aggregation\n aggregation?: {\n method: 'sum' | 'avg' | 'count' | 'min' | 'max';\n field: string;\n };\n}\n\n/**\n * Chart Visual Styling Configuration\n */\nexport interface AXPChartStyling {\n // Theme and colors\n colorScheme?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'custom';\n /** Palette applied by series index when `seriesColors` is not set. */\n customColors?: string[];\n /**\n * Per-series fill colors keyed by chart category id/label\n * (e.g. Online → success, Away → warning, Busy → danger).\n */\n seriesColors?: Record<string, string>;\n\n // Chart appearance\n gridLines?: boolean;\n legend?: {\n show: boolean;\n position: 'top' | 'bottom' | 'left' | 'right';\n };\n\n // Axes configuration\n xAxis?: AXPChartAxisConfig;\n yAxis?: AXPChartAxisConfig;\n\n // Animation\n animation?: {\n enabled: boolean;\n duration?: number;\n };\n\n // Chart-specific styling\n chartSpecific?: {\n // Bar chart options\n bar?: {\n orientation: 'vertical' | 'horizontal';\n mode: 'grouped' | 'stacked';\n barWidth?: number;\n };\n\n // Line chart options\n line?: {\n style: 'straight' | 'curved' | 'stepped';\n showPoints?: boolean;\n tension?: number;\n };\n\n // Area chart options\n area?: {\n mode: 'normal' | 'stacked' | 'percentage';\n opacity?: number;\n };\n\n // Pie/Doughnut options\n pie?: {\n startAngle?: number;\n innerRadius?: number; // For doughnut charts\n showLabels?: boolean;\n };\n };\n}\n\n/**\n * Chart Axis Configuration\n */\nexport interface AXPChartAxisConfig {\n title?: string;\n show?: boolean;\n type?: 'linear' | 'logarithmic' | 'datetime' | 'category';\n min?: number | string;\n max?: number | string;\n format?: string;\n gridLines?: boolean;\n tickInterval?: number;\n}\n\n/**\n * Chart Interactivity Configuration\n */\nexport interface AXPChartInteractivity {\n // Zoom and pan\n zoom?: {\n enabled: boolean;\n mode?: 'x' | 'y' | 'xy';\n };\n\n // Tooltips\n tooltips?: {\n enabled: boolean;\n format?: string;\n showOnHover?: boolean;\n };\n\n // Click events\n onClick?: {\n enabled: boolean;\n action?: 'drill-down' | 'filter' | 'custom';\n };\n\n // Selection\n selection?: {\n enabled: boolean;\n mode?: 'single' | 'multiple';\n };\n\n // Export\n export?: {\n enabled: boolean;\n formats?: ('png' | 'jpg' | 'pdf' | 'svg')[];\n };\n}\n\n/**\n * PDF Layout - Displays PDF documents\n */\nexport interface AXPReportPdfLayout {\n type: 'pdf';\n options?: AXPReportPdfOptions;\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\n/**\n * PDF Layout Options\n */\nexport interface AXPReportPdfOptions {\n showDownloadButton?: boolean;\n showPrintButton?: boolean;\n showZoomControls?: boolean;\n showFullscreenButton?: boolean;\n defaultZoom?: number; // Percentage (e.g., 100, 150, 200)\n height?: string; // CSS height (e.g., '100%', '600px')\n}\n\n//#region ---- Shared Models ----\n\nexport interface AXPReportColumn {\n field: string;\n title?: string;\n /**\n * Boolean or expression (e.g. `{{ permission.check(\"…\") }}`).\n * Omitted / `true` means visible. Evaluated when building the table view.\n */\n visible?: boolean | string;\n width?: number | 'auto';\n align?: 'left' | 'center' | 'right';\n /** When true, column header supports interactive sort (opt-in). */\n sortable?: boolean;\n /** Pin column to the start or end of the table (definition-only). */\n pin?: 'start' | 'end';\n widget?: AXPWidgetColumnNode;\n /**\n * Optional cell interactivity. When omitted, group-by `displayField` columns\n * can still render as drill links automatically in report table view.\n */\n interactivity?: AXPReportColumnInteractivity;\n}\n\n/**\n * Column cell interaction — link triggers a command with the current row as context.\n * Platform widgets may mirror this via column `options.displayAs: 'link'` in the future.\n */\nexport interface AXPReportColumnInteractivity {\n type: 'link';\n command: {\n name: string;\n options?: Record<string, unknown>;\n };\n}\n\n/** Server-computed report footer totals keyed by column field. */\nexport type AXPReportTableSummaryResult = Record<string, number | null>;\n\nexport interface AXPReportSummaryOptions {\n field: string;\n operation: 'sum' | 'avg' | 'count' | 'min' | 'max';\n displayIn: 'groupFooter' | 'reportFooter';\n}\n\nexport interface AXPConditionalFormatRule {\n field: string;\n condition: '>' | '<' | '=' | '!=' | 'contains';\n value: any;\n style: {\n color?: string;\n backgroundColor?: string;\n fontWeight?: 'normal' | 'bold';\n };\n}\n\nexport interface AXPReportHeaderFooter {\n title?: string;\n logoUrl?: string;\n showDate?: boolean;\n showParameters?: boolean;\n customHtml?: string;\n}\n\n/**\n * Layout switcher options for UI components\n */\nexport interface AXPLayoutSwitcherOption {\n id: string;\n title: AXPMultiLanguageString;\n icon?: string;\n type: AXPReportLayoutType;\n}\n\n/**\n * Runtime layout selection state\n */\nexport interface AXPReportLayoutState {\n reportId: string;\n activeLayoutId: string;\n availableLayouts: AXPLayoutSwitcherOption[];\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","//#region ---- Report management runtime keys ----\n\nexport const AXMReportManagementQueryKeys = {\n Category: {\n ListRoot: 'ReportManagement:Category:ListRoot',\n GetById: 'ReportManagement:Category:GetById',\n },\n Report: {\n GetDefinition: 'ReportManagement:Report:GetDefinition',\n },\n ReportGeneration: {\n Get: 'ReportManagement:ReportGeneration:Get',\n ListMine: 'ReportManagement:ReportGeneration:ListMine',\n GetViewerFreeze: 'ReportManagement:ReportGeneration:GetViewerFreeze',\n },\n} as const;\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXMQuerySnapshotTriggerOperation = 'create' | 'update' | 'delete';\n\nexport interface AXMQuerySnapshotPolicyTriggers {\n entities: string[];\n operations: AXMQuerySnapshotTriggerOperation[];\n debounceMs: number;\n}\n\nexport interface AXMQuerySnapshotPolicyEntityModel extends AXPEntityModel<string> {\n queryName: string;\n enabled: boolean;\n schedule: string;\n staleAfterMs: number;\n triggers: AXMQuerySnapshotPolicyTriggers;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPRuntimeCollectionData } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXMQuerySnapshotStatus = 'ready' | 'stale' | 'failed';\n\nexport type AXMQuerySnapshotPayload =\n | { success: true; kind: 'value'; data: unknown }\n | { success: true; kind: 'object'; data: unknown }\n | { success: true; kind: 'collection'; data: AXPRuntimeCollectionData };\n\nexport interface AXMQuerySnapshotEntityModel extends AXPEntityModel<string> {\n key: string;\n status: AXMQuerySnapshotStatus;\n calculatedAt: string;\n durationMs: number;\n lastError?: string;\n payload: AXMQuerySnapshotPayload;\n}\n\nexport interface AXMRecalculateQuerySnapshotsInput {\n tenantId?: string;\n applicationId?: string;\n queryKeys?: string[];\n /** When true, a full run ignores catch-up skips (manual refresh all). */\n force?: boolean;\n}\n\nexport interface AXMRefreshQuerySnapshotsInput {\n queryKeys?: string[];\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './settings.keys';\n\nexport * from './root-config';\nexport * from './manifest';\nexport * from './report.types';\nexport * from './report-generation.types';\nexport * from './runtime.keys';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,8BAA8B,GAAG;AAC5C,IAAA,yBAAyB,EAAE,4CAA4C;AACvE,IAAA,qBAAqB,EAAE,wCAAwC;AAC/D,IAAA,gBAAgB,EAAE;AAChB,QAAA,MAAM,EAAE,0CAA0C;AAClD,QAAA,OAAO,EAAE,2CAA2C;AACpD,QAAA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MAAM,EAAE;AACN,QAAA,aAAa,EAAE,uCAAuC;AACvD,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,GAAG,EAAE,uCAAuC;AAC5C,QAAA,QAAQ,EAAE,4CAA4C;AACtD,QAAA,eAAe,EAAE,mDAAmD;AACrE,KAAA;;AAGH;;ACjBA;AAwBA;;ACxBA;AAqCA;;ACrCA;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts.mjs","sources":["../../../../libs/modules/report-management/contracts/src/commands.keys.ts","../../../../libs/modules/report-management/contracts/src/features.keys.ts","../../../../libs/modules/report-management/contracts/src/menu.keys.ts","../../../../libs/modules/report-management/contracts/src/permission.keys.ts","../../../../libs/modules/report-management/contracts/src/settings.keys.ts","../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/manifest.ts","../../../../libs/modules/report-management/contracts/src/report.types.ts","../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/runtime.keys.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot-policy/query-snapshot-policy.types.ts","../../../../libs/modules/report-management/contracts/src/entities/query-snapshot/query-snapshot.types.ts","../../../../libs/modules/report-management/contracts/src/index.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts.ts"],"sourcesContent":["//#region ---- Report management command keys ----\n\nexport const AXMReportManagementCommandKeys = {\n RecalculateQuerySnapshots: 'ReportManagement:RecalculateQuerySnapshots',\n RefreshQuerySnapshots: 'ReportManagement:RefreshQuerySnapshots',\n ReportGeneration: {\n Create: 'ReportManagement:ReportGeneration:Create',\n Execute: 'ReportManagement:ReportGeneration:Execute',\n ReleaseInlineWatch: 'ReportManagement:ReportGeneration:ReleaseInlineWatch',\n },\n} as const;\n\nexport const AXM_RECALCULATE_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RecalculateQuerySnapshots;\n\nexport const AXM_REFRESH_QUERY_SNAPSHOTS_COMMAND_KEY =\n AXMReportManagementCommandKeys.RefreshQuerySnapshots;\n\n//#endregion\n","export const AXPReportManagementFeatureKeys = {\n ReportBuilder: 'ReportManagement:Feature:ReportBuilder',\n SavedReports: 'ReportManagement:Feature:SavedReports',\n ScheduledReports: 'ReportManagement:Feature:ScheduledReports',\n BackgroundReports: 'ReportManagement:Feature:BackgroundReports',\n} as const;\n\n","export const AXPReportManagementMenuKeys = {\n Root: 'report-management:menu',\n Reports: 'report-management:menu:reports',\n Categories: 'report-management:menu:categories',\n DataSets: 'report-management:menu:data-sets',\n} as const;\n\n","/**\n * Insights & Reporting capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPInsightsReportingPermissionKeys = {\n Access: 'InsightsReporting:Permission:Access',\n MaintainReports: 'InsightsReporting:Permission:MaintainReports',\n MaintainData: 'InsightsReporting:Permission:MaintainData',\n ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',\n ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',\n Setup: 'InsightsReporting:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n ReportManagement: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n Report: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n View: AXPInsightsReportingPermissionKeys.MaintainReports,\n Create: AXPInsightsReportingPermissionKeys.MaintainReports,\n Update: AXPInsightsReportingPermissionKeys.MaintainReports,\n Delete: AXPInsightsReportingPermissionKeys.MaintainReports,\n },\n Category: {\n Management: AXPInsightsReportingPermissionKeys.Setup,\n View: AXPInsightsReportingPermissionKeys.Setup,\n Create: AXPInsightsReportingPermissionKeys.Setup,\n Update: AXPInsightsReportingPermissionKeys.Setup,\n Delete: AXPInsightsReportingPermissionKeys.Setup,\n },\n },\n} as const;\n","//#region ----- Report management settings -----\n\nimport type { AXPReportGenerationDedupePolicy } from './report.types';\n\nexport enum AXPReportManagementSettings {\n GenerationDedupePolicy = 'ReportManagement:Setting:Generation.Dedupe.Policy',\n GenerationDedupeCooldownMinutes = 'ReportManagement:Setting:Generation.Dedupe.CooldownMinutes',\n GenerationMaxConcurrentPerUser = 'ReportManagement:Setting:Generation.MaxConcurrentPerUser',\n}\n\nexport const AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS = {\n [AXPReportManagementSettings.GenerationDedupePolicy]: 'in-flight' as AXPReportGenerationDedupePolicy,\n [AXPReportManagementSettings.GenerationDedupeCooldownMinutes]: 0,\n [AXPReportManagementSettings.GenerationMaxConcurrentPerUser]: 3,\n} as const;\n\n//#endregion\n","const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Report Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const ReportManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'data',\n required : true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXPWidgetColumnNode } from '@acorex-platform/framework-shared/widget-core';\nimport { AXPQuerySort } from '@acorex-platform/framework-shared/entity';\nimport { AXPActionMenuItem, AXPCategoryEntity, AXPExportOptions, AXPFilterClause, AXPSystemActionType, type AXPMultiLanguageString, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Core Report Types and Interfaces ----\n\nexport type AXPReportLayoutType = 'table' | 'chart' | 'cards' | 'custom' | 'pdf';\n\n/**\n * Report Category - Extends AXPCategoryEntity for consistency and performance\n *\n * Inherited properties from AXPCategoryEntity:\n * - id: string - Unique identifier\n * - title: string - Display name\n * - description?: string - Category description\n * - parentId?: string - Parent category ID\n * - childrenCount: number - Direct child categories count (enables lazy loading)\n * - itemsCount?: number - Direct reports count (replaces hasReport boolean)\n * - totalChildrenCount?: number - Total nested categories (optional, for analytics)\n * - totalItemsCount?: number - Total reports in tree (optional, for analytics)\n *\n * Performance benefits:\n * - Lazy loading support (childrenCount > 0 shows expand icon)\n * - Report count display (itemsCount shows \"5 reports\" badge)\n * - Efficient queries (no need to query to know if expandable)\n */\nexport interface AXPReportCategory extends AXPCategoryEntity {\n // No additional properties needed - all inherited from AXPCategoryEntity\n // Use: childrenCount instead of hasChild\n // Use: itemsCount instead of hasReport\n}\n\n/** How an entity-bound report is surfaced on the host entity UI. */\nexport type AXPReportEntityDisplay = 'action' | 'page' | 'popup';\n\n/**\n * Parameter value on an entity binding:\n * - field path / expression string (e.g. `id`)\n * - `'today'` → local calendar day `{ from, to }`\n * - explicit `{ from, to }` date range\n */\nexport type AXPReportEntityParameterValue = string | { from: string; to: string };\n\n/** Binds a report to a host entity type for Reports page discovery. */\nexport interface AXPReportEntityBinding {\n /** Fully qualified entity type, e.g. `SecurityManagement.User`. */\n entity: string;\n /** Optional list title (i18n key or plain text). Falls back to report title. */\n title?: string;\n /** Optional list description (i18n key or plain text). Falls back to report description. */\n description?: string;\n layoutId?: string;\n /**\n * Where to surface the report. Defaults to `['page']` (Reports side-menu page).\n * `action` / `popup` are retained for data compatibility but are not contributed as entity Actions.\n */\n display?: AXPReportEntityDisplay | AXPReportEntityDisplay[];\n /**\n * Map report parameter path → entity field / expression / date token.\n * Example: `{ userId: 'id', dateRange: 'today' }`\n */\n parameters?: Record<string, AXPReportEntityParameterValue>;\n order?: number;\n}\n\nexport interface AXPReportDefinition {\n id: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n categoryIds: string[];\n parameterGroups: AXPReportParameterGroup[];\n permissions?: string[];\n layouts: AXPReportLayoutDefinition[]; // Changed to support multiple layouts\n defaultLayoutId: string; // Which layout to show by default\n /** Optional host-entity bindings for the entity `reports` plugin. */\n entities?: AXPReportEntityBinding[];\n /** Background / choose / interactive generation options. Omitted = interactive. */\n generation?: AXPReportGenerationOptions;\n}\n\nexport type AXPReportGenerationMode = 'interactive' | 'background' | 'choose';\n\nexport type AXPReportArtifactKind = 'viewer' | 'pdf' | 'excel' | 'csv';\n\nexport type AXPReportFreezeLayouts = 'current' | 'all';\n\nexport type AXPReportGenerationDedupePolicy =\n | 'none'\n | 'in-flight'\n | 'in-flight-or-cooldown';\n\nexport interface AXPReportGenerationDedupeOptions {\n /** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.Policy`. */\n policy?: AXPReportGenerationDedupePolicy;\n /** Omitted → inherit platform `ReportManagement:Setting:Generation.Dedupe.CooldownMinutes`. */\n cooldownMs?: number;\n}\n\nexport interface AXPReportGenerationOptions {\n /** Omitted = interactive (today’s viewer). */\n mode?: AXPReportGenerationMode;\n /** Default `['viewer']` when mode is background or choose. */\n formats?: AXPReportArtifactKind[];\n executionTimeoutMs?: number;\n /** Default 30. Used to set `expiresAt` when the run finishes. */\n retentionDays?: number;\n /** Default `'all'` query layouts. `'current'` freezes only the layout the user ran. */\n freezeLayouts?: AXPReportFreezeLayouts;\n /** Default true. Store layout/title/parameter snapshot in the viewer freeze file. */\n pinDefinition?: boolean;\n /** Demo/local only. Worker waits this long after marking the run running. */\n simulateDelayMs?: number;\n /** Omitted → dedupe behavior comes from platform settings. */\n dedupe?: AXPReportGenerationDedupeOptions;\n /**\n * When true (default for background/choose), completed jobs stay in the footer tray until dismissed.\n * Set false to remove from tray as soon as the job completes.\n */\n keepInTray?: boolean;\n}\n\nexport type AXPReportLayoutAction = AXPActionMenuItem & {\n priority: 'primary' | 'secondary';\n};\n\n/**\n * Layout Definition - Associates a layout with metadata\n */\nexport interface AXPReportLayoutDefinition {\n id: string; // Unique identifier for this layout\n title: AXPMultiLanguageString; // Display name (e.g., \"Table View\", \"Chart View\")\n description?: AXPMultiLanguageString; // Optional description\n icon?: string; // Icon for layout switcher UI\n layout: AXPReportLayout; // The actual layout configuration\n dataSource?: AXPReportDataSource; // Optional layout-specific dataSource (overrides report-level)\n isDefault?: boolean; // Alternative to defaultLayoutId\n actions?: AXPReportLayoutAction[];\n export?: AXPExportOptions;\n}\n\nexport interface AXPReportParameterGroup {\n name: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n parameters: AXPReportParameter[];\n}\n\nexport interface AXPReportParameter {\n path: string;\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n /**\n * Boolean or expression (e.g. `{{ permission.check(\"…\") }}` / `{{ feature.check(\"…\") }}`).\n * Omitted / `true` means visible. Evaluated by the Report Viewer layout renderer.\n */\n visible?: boolean | string;\n widget: AXPWidgetNode;\n}\n\n//#endregion\n\n//#region ---- Data Source Types ----\n\nexport type AXPReportDataSource =\n | AXPQueryDataSource\n | AXPCustomDataSource\n | AXPAggregatedDataSource\n | AXPTransformedDataSource;\n\n/**\n * Query Data Source - Used for executing predefined queries (AXPQuery)\n */\nexport interface AXPQueryDataSource {\n type: 'query';\n name: string; // The registered query name, e.g., 'getProductList'\n description?: string;\n\n inputs?: AXPReportParameterBinding[]; // Maps report parameters to query inputs\n sortFields?: AXPQuerySort[]; // Default sorting applied by the backend\n pagination?: boolean; // Enables paging in result set\n}\n\n/**\n * Custom Data Source - Used for fetching data from custom providers like REST APIs or external services\n */\nexport interface AXPCustomDataSource {\n type: 'custom';\n provider: string; // Example: 'http://api/report' or 'custom:MyHandler'\n description?: string;\n\n inputs?: AXPReportParameterBinding[]; // Maps report parameters to payload\n options?: { [key: string]: any }; // Additional options for the custom handler\n}\n\n/**\n * Parameter Binding - Maps report-level parameters to actual query/command input structure\n */\nexport interface AXPReportParameterBinding {\n parameterKey: string; // Report parameter key, e.g., 'startDate'\n bindTo: string; // Input key in the query/command payload, e.g., 'filters.from'\n}\n\n/**\n * Aggregated Data Source - Used for pre-aggregated data optimized for charts\n */\nexport interface AXPAggregatedDataSource {\n type: 'aggregated';\n baseQuery: string; // Base query to aggregate from\n description?: string;\n\n groupBy: string[]; // Fields to group by\n aggregations: AXPAggregation[]; // Aggregation operations\n inputs?: AXPReportParameterBinding[];\n}\n\n/**\n * Transformed Data Source - Applies transformations to existing data sources\n */\nexport interface AXPTransformedDataSource {\n type: 'transformed';\n baseDataSource: AXPReportDataSource; // Source to transform\n description?: string;\n\n transformations: AXPDataTransformation[]; // List of transformations\n inputs?: AXPReportParameterBinding[];\n}\n\n/**\n * Aggregation operation for aggregated data sources\n */\nexport interface AXPAggregation {\n field: string;\n operation: 'sum' | 'avg' | 'count' | 'min' | 'max' | 'distinct';\n alias?: string; // Output field name\n}\n\n/**\n * Data transformation operation\n */\nexport interface AXPDataTransformation {\n type: 'filter' | 'sort' | 'group' | 'pivot' | 'format';\n config: Record<string, any>; // Transformation-specific configuration\n}\n\n//#endregion\n\n//#region ---- Group By & Drill Down ----\n\n/**\n * Drill-down target for a grouped report row.\n * When reportId is omitted, the current report is used.\n */\nexport interface AXPReportDrillDownConfig {\n reportId?: string;\n layoutId?: string;\n title?: string;\n parameters?: Record<string, string>;\n}\n\n/**\n * Declares how a summary report is grouped and which detail view opens on drill-down.\n * Multiple definitions allow alternative drill paths (e.g. by brand vs by category).\n */\nexport interface AXPReportGroupByDefinition {\n fields: string[];\n displayField?: string;\n /** When true (default), `displayField` renders as a link instead of a row command column. */\n linkDisplay?: boolean;\n title?: string;\n default?: boolean;\n priority?: 'primary' | 'secondary';\n drillDown: AXPReportDrillDownConfig;\n}\n\n//#endregion\n\n//#region ---- Layout Types ----\n\nexport type AXPReportLayout = AXPReportTableLayout | AXPReportChartLayout | AXPReportPdfLayout;\n\n/**\n * Table Layout - Displays data in tabular format\n */\n\nexport interface AXPReportTableLayoutRowAction extends AXPActionMenuItem {\n priority: 'primary' | 'secondary';\n type: AXPSystemActionType | string;\n default?: boolean;\n}\n\nexport interface AXPReportTableLayout {\n type: 'table';\n columns: AXPReportColumn[];\n actions?: AXPReportTableLayoutRowAction[];\n options?: AXPTableOptions;\n groupBy?: AXPReportGroupByDefinition[];\n conditionalFormatting?: AXPConditionalFormatRule[];\n summary?: AXPReportSummaryOptions[];\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\n/** Result-grid hierarchy. Omitted reports stay a flat table. */\nexport interface AXPReportTableHierarchy {\n /** Row field that points at the parent row, for example `parentId`. */\n parentField: string;\n /** Row field used as the node id. Defaults to `id`. */\n keyField?: string;\n}\n\nexport interface AXPTableOptions {\n pagination?: boolean;\n stickyHeader?: boolean;\n stripedRows?: boolean;\n sorting?: AXPQuerySort[];\n selectable?: {\n mode: 'single' | 'multiple' | 'none';\n };\n /**\n * When set, the result grid expands rows whose `parentField` links them.\n * Rows with an empty parent are the roots. Other reports leave this unset.\n */\n hierarchy?: AXPReportTableHierarchy;\n}\n\n/**\n * Chart Layout - Displays data in various chart formats\n */\nexport interface AXPReportChartLayout {\n type: 'chart';\n options: AXPReportChartOptions;\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\nexport interface AXPReportChartOptions {\n chartType: 'bar' | 'line' | 'pie' | 'doughnut' | 'area' | 'scatter' | 'radar' | 'mixed';\n dataMapping: AXPChartDataMapping;\n styling?: AXPChartStyling;\n interactivity?: AXPChartInteractivity;\n}\n\n/**\n * Chart Data Mapping Configuration\n */\nexport interface AXPChartDataMapping {\n // Core fields\n xField: string; // X-axis data field\n yFields: string | string[]; // Y-axis data field(s) for multiple series\n\n // Grouping and categorization\n groupBy?: string; // Group data by this field\n seriesField?: string; // Field to create multiple series\n\n // Special fields for specific chart types\n sizeField?: string; // For bubble charts\n colorField?: string; // For gradient/conditional coloring\n labelField?: string; // Custom label field\n\n // Data aggregation\n aggregation?: {\n method: 'sum' | 'avg' | 'count' | 'min' | 'max';\n field: string;\n };\n}\n\n/**\n * Chart Visual Styling Configuration\n */\nexport interface AXPChartStyling {\n // Theme and colors\n colorScheme?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'custom';\n /** Palette applied by series index when `seriesColors` is not set. */\n customColors?: string[];\n /**\n * Per-series fill colors keyed by chart category id/label\n * (e.g. Online → success, Away → warning, Busy → danger).\n */\n seriesColors?: Record<string, string>;\n\n // Chart appearance\n gridLines?: boolean;\n legend?: {\n show: boolean;\n position: 'top' | 'bottom' | 'left' | 'right';\n };\n\n // Axes configuration\n xAxis?: AXPChartAxisConfig;\n yAxis?: AXPChartAxisConfig;\n\n // Animation\n animation?: {\n enabled: boolean;\n duration?: number;\n };\n\n // Chart-specific styling\n chartSpecific?: {\n // Bar chart options\n bar?: {\n orientation: 'vertical' | 'horizontal';\n mode: 'grouped' | 'stacked';\n barWidth?: number;\n };\n\n // Line chart options\n line?: {\n style: 'straight' | 'curved' | 'stepped';\n showPoints?: boolean;\n tension?: number;\n };\n\n // Area chart options\n area?: {\n mode: 'normal' | 'stacked' | 'percentage';\n opacity?: number;\n };\n\n // Pie/Doughnut options\n pie?: {\n startAngle?: number;\n innerRadius?: number; // For doughnut charts\n showLabels?: boolean;\n };\n };\n}\n\n/**\n * Chart Axis Configuration\n */\nexport interface AXPChartAxisConfig {\n title?: string;\n show?: boolean;\n type?: 'linear' | 'logarithmic' | 'datetime' | 'category';\n min?: number | string;\n max?: number | string;\n format?: string;\n gridLines?: boolean;\n tickInterval?: number;\n}\n\n/**\n * Chart Interactivity Configuration\n */\nexport interface AXPChartInteractivity {\n // Zoom and pan\n zoom?: {\n enabled: boolean;\n mode?: 'x' | 'y' | 'xy';\n };\n\n // Tooltips\n tooltips?: {\n enabled: boolean;\n format?: string;\n showOnHover?: boolean;\n };\n\n // Click events\n onClick?: {\n enabled: boolean;\n action?: 'drill-down' | 'filter' | 'custom';\n };\n\n // Selection\n selection?: {\n enabled: boolean;\n mode?: 'single' | 'multiple';\n };\n\n // Export\n export?: {\n enabled: boolean;\n formats?: ('png' | 'jpg' | 'pdf' | 'svg')[];\n };\n}\n\n/**\n * PDF Layout - Displays PDF documents\n */\nexport interface AXPReportPdfLayout {\n type: 'pdf';\n options?: AXPReportPdfOptions;\n header?: AXPReportHeaderFooter;\n footer?: AXPReportHeaderFooter;\n}\n\n/**\n * PDF Layout Options\n */\nexport interface AXPReportPdfOptions {\n showDownloadButton?: boolean;\n showPrintButton?: boolean;\n showZoomControls?: boolean;\n showFullscreenButton?: boolean;\n defaultZoom?: number; // Percentage (e.g., 100, 150, 200)\n height?: string; // CSS height (e.g., '100%', '600px')\n}\n\n//#region ---- Shared Models ----\n\nexport interface AXPReportColumn {\n field: string;\n title?: string;\n /**\n * Boolean or expression (e.g. `{{ permission.check(\"…\") }}`).\n * Omitted / `true` means visible. Evaluated when building the table view.\n */\n visible?: boolean | string;\n width?: number | 'auto';\n align?: 'left' | 'center' | 'right';\n /** When true, column header supports interactive sort (opt-in). */\n sortable?: boolean;\n /** Pin column to the start or end of the table (definition-only). */\n pin?: 'start' | 'end';\n widget?: AXPWidgetColumnNode;\n /**\n * Optional cell interactivity. When omitted, group-by `displayField` columns\n * can still render as drill links automatically in report table view.\n */\n interactivity?: AXPReportColumnInteractivity;\n}\n\n/**\n * Column cell interaction — link triggers a command with the current row as context.\n * Platform widgets may mirror this via column `options.displayAs: 'link'` in the future.\n */\nexport interface AXPReportColumnInteractivity {\n type: 'link';\n command: {\n name: string;\n options?: Record<string, unknown>;\n };\n}\n\n/** Server-computed report footer totals keyed by column field. */\nexport type AXPReportTableSummaryResult = Record<string, number | null>;\n\nexport interface AXPReportSummaryOptions {\n field: string;\n operation: 'sum' | 'avg' | 'count' | 'min' | 'max';\n displayIn: 'groupFooter' | 'reportFooter';\n}\n\nexport interface AXPConditionalFormatRule {\n field: string;\n condition: '>' | '<' | '=' | '!=' | 'contains';\n value: any;\n style: {\n color?: string;\n backgroundColor?: string;\n fontWeight?: 'normal' | 'bold';\n };\n}\n\nexport interface AXPReportHeaderFooter {\n title?: string;\n logoUrl?: string;\n showDate?: boolean;\n showParameters?: boolean;\n customHtml?: string;\n}\n\n/**\n * Layout switcher options for UI components\n */\nexport interface AXPLayoutSwitcherOption {\n id: string;\n title: AXPMultiLanguageString;\n icon?: string;\n type: AXPReportLayoutType;\n}\n\n/**\n * Runtime layout selection state\n */\nexport interface AXPReportLayoutState {\n reportId: string;\n activeLayoutId: string;\n availableLayouts: AXPLayoutSwitcherOption[];\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","//#region ---- Report management runtime keys ----\n\nexport const AXMReportManagementQueryKeys = {\n Category: {\n ListRoot: 'ReportManagement:Category:ListRoot',\n GetById: 'ReportManagement:Category:GetById',\n },\n Report: {\n GetDefinition: 'ReportManagement:Report:GetDefinition',\n },\n ReportGeneration: {\n Get: 'ReportManagement:ReportGeneration:Get',\n ListMine: 'ReportManagement:ReportGeneration:ListMine',\n GetViewerFreeze: 'ReportManagement:ReportGeneration:GetViewerFreeze',\n },\n} as const;\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXMQuerySnapshotTriggerOperation = 'create' | 'update' | 'delete';\n\nexport interface AXMQuerySnapshotPolicyTriggers {\n entities: string[];\n operations: AXMQuerySnapshotTriggerOperation[];\n debounceMs: number;\n}\n\nexport interface AXMQuerySnapshotPolicyEntityModel extends AXPEntityModel<string> {\n queryName: string;\n enabled: boolean;\n schedule: string;\n staleAfterMs: number;\n triggers: AXMQuerySnapshotPolicyTriggers;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { AXPRuntimeCollectionData } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXMQuerySnapshotStatus = 'ready' | 'stale' | 'failed';\n\nexport type AXMQuerySnapshotPayload =\n | { success: true; kind: 'value'; data: unknown }\n | { success: true; kind: 'object'; data: unknown }\n | { success: true; kind: 'collection'; data: AXPRuntimeCollectionData };\n\nexport interface AXMQuerySnapshotEntityModel extends AXPEntityModel<string> {\n key: string;\n status: AXMQuerySnapshotStatus;\n calculatedAt: string;\n durationMs: number;\n lastError?: string;\n payload: AXMQuerySnapshotPayload;\n}\n\nexport interface AXMRecalculateQuerySnapshotsInput {\n tenantId?: string;\n applicationId?: string;\n queryKeys?: string[];\n /** When true, a full run ignores catch-up skips (manual refresh all). */\n force?: boolean;\n}\n\nexport interface AXMRefreshQuerySnapshotsInput {\n queryKeys?: string[];\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './settings.keys';\n\nexport * from './root-config';\nexport * from './manifest';\nexport * from './report.types';\nexport * from './report-generation.types';\nexport * from './runtime.keys';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,8BAA8B,GAAG;AAC5C,IAAA,yBAAyB,EAAE,4CAA4C;AACvE,IAAA,qBAAqB,EAAE,wCAAwC;AAC/D,IAAA,gBAAgB,EAAE;AACh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