@acorex/connectivity 21.0.0-next.72 → 21.0.0-next.73

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.
Files changed (60) hide show
  1. package/fesm2022/{acorex-connectivity-api-execute.command-CiBl7z_H.mjs → acorex-connectivity-api-execute.command-CjCFEav4.mjs} +13 -3
  2. package/fesm2022/acorex-connectivity-api-execute.command-CjCFEav4.mjs.map +1 -0
  3. package/fesm2022/acorex-connectivity-api.mjs +7 -6
  4. package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
  5. package/fesm2022/{acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs → acorex-connectivity-mock-acorex-connectivity-mock-uNCIA7zG.mjs} +2238 -1029
  6. package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-uNCIA7zG.mjs.map +1 -0
  7. package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-7uIojNj1.mjs → acorex-connectivity-mock-assign-to-manager.activity-Cv-qHyrL.mjs} +2 -2
  8. package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-7uIojNj1.mjs.map → acorex-connectivity-mock-assign-to-manager.activity-Cv-qHyrL.mjs.map} +1 -1
  9. package/fesm2022/{acorex-connectivity-mock-category-metadata-inheritance.query-CWRL1dTa.mjs → acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs} +10 -8
  10. package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs.map +1 -0
  11. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Cj6FWu7S.mjs → acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs} +15 -14
  12. package/fesm2022/acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs.map +1 -0
  13. package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-B5cbkpr0.mjs → acorex-connectivity-mock-chat-generate-image.command-D_9xGJJM.mjs} +2 -2
  14. package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-B5cbkpr0.mjs.map → acorex-connectivity-mock-chat-generate-image.command-D_9xGJJM.mjs.map} +1 -1
  15. package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-rqgbcQxF.mjs → acorex-connectivity-mock-chat-synthesize-speech.command-B_JHheAI.mjs} +2 -2
  16. package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-rqgbcQxF.mjs.map → acorex-connectivity-mock-chat-synthesize-speech.command-B_JHheAI.mjs.map} +1 -1
  17. package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-DMKreUYD.mjs → acorex-connectivity-mock-chat-transcribe-speech.command-B9LSB17Y.mjs} +2 -2
  18. package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-DMKreUYD.mjs.map → acorex-connectivity-mock-chat-transcribe-speech.command-B9LSB17Y.mjs.map} +1 -1
  19. package/fesm2022/{acorex-connectivity-mock-distribution-record.activity-DuNluOzA.mjs → acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs} +12 -9
  20. package/fesm2022/acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs.map +1 -0
  21. package/fesm2022/{acorex-connectivity-mock-get-employee-list.query-DifHwuqH.mjs → acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs} +5 -4
  22. package/fesm2022/acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs.map +1 -0
  23. package/fesm2022/{acorex-connectivity-mock-get-location-list.query-bMjkZnzq.mjs → acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs} +2 -2
  24. package/fesm2022/acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs.map +1 -0
  25. package/fesm2022/{acorex-connectivity-mock-get-product-list.query-f-mTj4ah.mjs → acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs} +5 -4
  26. package/fesm2022/acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs.map +1 -0
  27. package/fesm2022/{acorex-connectivity-mock-get-product-pdf-data.query-Co1V52c4.mjs → acorex-connectivity-mock-get-product-pdf-data.query-Cp65_mpB.mjs} +2 -2
  28. package/fesm2022/{acorex-connectivity-mock-get-product-pdf-data.query-Co1V52c4.mjs.map → acorex-connectivity-mock-get-product-pdf-data.query-Cp65_mpB.mjs.map} +1 -1
  29. package/fesm2022/{acorex-connectivity-mock-get-subscriptions-chart-data.query-BQT5a_hn.mjs → acorex-connectivity-mock-get-subscriptions-chart-data.query-CkQnH-F_.mjs} +2 -2
  30. package/fesm2022/{acorex-connectivity-mock-get-subscriptions-chart-data.query-BQT5a_hn.mjs.map → acorex-connectivity-mock-get-subscriptions-chart-data.query-CkQnH-F_.mjs.map} +1 -1
  31. package/fesm2022/{acorex-connectivity-mock-get-subscriptions-timeline.query-D4qfDfeV.mjs → acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs} +2 -2
  32. package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs.map +1 -0
  33. package/fesm2022/{acorex-connectivity-mock-get-tenant-application-access.query-n1_Azada.mjs → acorex-connectivity-mock-get-tenant-application-access.query-t4BHU8qk.mjs} +2 -2
  34. package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-t4BHU8qk.mjs.map +1 -0
  35. package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-chart-data.query-Cg4ykZU2.mjs → acorex-connectivity-mock-get-tenant-registration-chart-data.query-CgMZxfzh.mjs} +2 -2
  36. package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-chart-data.query-Cg4ykZU2.mjs.map → acorex-connectivity-mock-get-tenant-registration-chart-data.query-CgMZxfzh.mjs.map} +1 -1
  37. package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-timeline.query-0sCBtdbp.mjs → acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs} +2 -2
  38. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs.map +1 -0
  39. package/fesm2022/{acorex-connectivity-mock-get-tenant-user-distribution.query-rD811gtM.mjs → acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs} +2 -2
  40. package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs.map +1 -0
  41. package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs +56 -0
  42. package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs.map +1 -0
  43. package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs → acorex-connectivity-mock-user-roles-for-list-column.query-B-R4X8Ft.mjs} +2 -2
  44. package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs.map → acorex-connectivity-mock-user-roles-for-list-column.query-B-R4X8Ft.mjs.map} +1 -1
  45. package/fesm2022/acorex-connectivity-mock.mjs +1 -1
  46. package/package.json +2 -2
  47. package/types/acorex-connectivity-api.d.ts +1 -0
  48. package/types/acorex-connectivity-mock.d.ts +11 -3
  49. package/fesm2022/acorex-connectivity-api-execute.command-CiBl7z_H.mjs.map +0 -1
  50. package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs.map +0 -1
  51. package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CWRL1dTa.mjs.map +0 -1
  52. package/fesm2022/acorex-connectivity-mock-category-with-items.query-Cj6FWu7S.mjs.map +0 -1
  53. package/fesm2022/acorex-connectivity-mock-distribution-record.activity-DuNluOzA.mjs.map +0 -1
  54. package/fesm2022/acorex-connectivity-mock-get-employee-list.query-DifHwuqH.mjs.map +0 -1
  55. package/fesm2022/acorex-connectivity-mock-get-location-list.query-bMjkZnzq.mjs.map +0 -1
  56. package/fesm2022/acorex-connectivity-mock-get-product-list.query-f-mTj4ah.mjs.map +0 -1
  57. package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-D4qfDfeV.mjs.map +0 -1
  58. package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-n1_Azada.mjs.map +0 -1
  59. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-0sCBtdbp.mjs.map +0 -1
  60. package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-rD811gtM.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs","sources":["../../../../libs/connectivity/mock/src/lib/tenant-management/reports/get-tenant-user-distribution.query.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { AXPQuery } from '@acorex/platform/runtime';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXMTenantManagementTenantEntityModel } from '@acorex/modules/tenant-management';\nimport { AXMTenantManagementTenantUserEntityModel } from '@acorex/modules/tenant-management';\nimport { AXPSystemStatusType } from '@acorex/platform/common';\nimport { RootConfig as TenantRootConfig } from '@acorex/modules/tenant-management';\n\n//#region ---- Query Input/Output Types ----\n\nexport interface GetTenantUserDistributionQueryInput {\n skip?: number;\n take?: number;\n sort?: import('@acorex/platform/common').AXPQuerySort[];\n filters?: Array<{\n field: string;\n operator: { type: string };\n value: any;\n }>;\n logic?: 'and' | 'or';\n}\n\nexport interface TenantUserDistributionResult {\n tenantId: string;\n tenantName: string;\n tenantStatus: string;\n totalUsersCount: number;\n activeUsersCount: number;\n inactiveUsersCount: number;\n maxUsers?: number;\n utilizationPercent: number;\n registrationDate?: Date;\n registrationDateStr?: string;\n}\n\nexport interface GetTenantUserDistributionQueryResult {\n items: TenantUserDistributionResult[];\n total: number;\n}\n\n//#endregion\n\n@Injectable({\n providedIn: 'root',\n})\nexport class GetTenantUserDistributionQuery\n implements AXPQuery<GetTenantUserDistributionQueryInput, GetTenantUserDistributionQueryResult>\n{\n private readonly entityService = inject(AXPEntityService);\n private tenantService = this.entityService\n .withEntity(`${TenantRootConfig.module.name}.${TenantRootConfig.entities.tenant.name}`)\n .data<string, AXMTenantManagementTenantEntityModel>();\n private tenantUserService = this.entityService\n .withEntity(`${TenantRootConfig.module.name}.${TenantRootConfig.entities.tenantUser.name}`)\n .data<string, AXMTenantManagementTenantUserEntityModel>();\n\n async fetch(input: GetTenantUserDistributionQueryInput | any): Promise<GetTenantUserDistributionQueryResult> {\n // Extract filters from AXPFilterClause format\n const extractedFilters = this.extractTenantFilters(input.filters);\n const filterLogic = (input.filters as any)?.logic || input.logic || 'and';\n\n // Separate custom filters from entity filters\n const entityFilters: GetTenantUserDistributionQueryInput['filters'] = [];\n let dateRangeFilter: any;\n\n if (extractedFilters && extractedFilters.length > 0) {\n for (const filter of extractedFilters) {\n if (filter.field === 'dateRange') {\n dateRangeFilter = filter.value;\n } else {\n entityFilters.push(filter);\n }\n }\n }\n\n // Get all tenants\n const tenantsResult = await this.tenantService.query({\n skip: 0,\n take: 10000,\n filter:\n entityFilters.length > 0\n ? ({\n logic: filterLogic,\n filters: entityFilters,\n } as any)\n : undefined,\n });\n\n let tenants = tenantsResult.items;\n\n // Apply date range filter if provided\n if (dateRangeFilter) {\n tenants = this.applyDateRangeFilter(tenants, dateRangeFilter);\n }\n\n // Get all tenant users\n const tenantUsersResult = await this.tenantUserService.query({\n skip: 0,\n take: 10000,\n });\n const tenantUsers = tenantUsersResult.items;\n\n // Build results for each tenant\n const results: TenantUserDistributionResult[] = [];\n\n for (const tenant of tenants) {\n // Get tenant's users\n const tenantUsersList = tenantUsers.filter((tu) => tu.tenantId === tenant.id);\n\n // Count active and inactive users\n const activeUsers = tenantUsersList.filter(\n (tu) => tu.statusId === AXPSystemStatusType.Active\n );\n const inactiveUsers = tenantUsersList.filter(\n (tu) => tu.statusId !== AXPSystemStatusType.Active\n );\n\n // Calculate utilization percentage\n const maxUsers = tenant.maxUsers;\n const utilizationPercent =\n maxUsers && maxUsers > 0 ? Math.round((tenantUsersList.length / maxUsers) * 100) : 0;\n\n results.push({\n tenantId: tenant.id,\n tenantName: tenant.title,\n tenantStatus: tenant.statusId || 'Unknown',\n totalUsersCount: tenantUsersList.length,\n activeUsersCount: activeUsers.length,\n inactiveUsersCount: inactiveUsers.length,\n maxUsers: maxUsers,\n utilizationPercent: utilizationPercent,\n registrationDate: tenant.registrationDate,\n registrationDateStr: tenant.registrationDate?.toISOString(),\n });\n }\n\n // Apply sorting if provided\n if (input.sort && input.sort.length > 0) {\n results.sort((a, b) => {\n for (const sortField of input.sort!) {\n const field = sortField.name as keyof TenantUserDistributionResult;\n const aValue = a[field];\n const bValue = b[field];\n const dir = sortField.dir === 'asc' ? 1 : -1;\n\n if (aValue === undefined && bValue === undefined) continue;\n if (aValue === undefined) return 1 * dir;\n if (bValue === undefined) return -1 * dir;\n\n if (aValue < bValue) return -1 * dir;\n if (aValue > bValue) return 1 * dir;\n }\n return 0;\n });\n } else {\n // Default sort by tenant name\n results.sort((a, b) => a.tenantName.localeCompare(b.tenantName));\n }\n\n // Apply pagination\n const skip = input.skip || 0;\n const take = input.take || 10;\n const total = results.length;\n const items = results.slice(skip, skip + take);\n\n return {\n items,\n total,\n };\n }\n\n //#region ---- Filter Extraction ----\n\n /**\n * Extract tenant-specific filters from AXPFilterClause format\n * Maps report parameter paths to tenant entity field names\n */\n private extractTenantFilters(parameters: any): GetTenantUserDistributionQueryInput['filters'] {\n const filters: GetTenantUserDistributionQueryInput['filters'] = [];\n const paramsAny = parameters as any;\n\n if (!paramsAny?.filters || !Array.isArray(paramsAny.filters)) {\n return filters;\n }\n\n for (const filter of paramsAny.filters) {\n if (!filter?.field || filter?.value === undefined || filter?.value === null) {\n continue;\n }\n\n const field = filter.field;\n const value = filter.value;\n const operator = filter.operator || { type: 'equal' };\n\n // Handle tenant-specific field mappings\n if (field === 'tenantId') {\n // Tenant ID filter - can be array of IDs or single ID\n if (Array.isArray(value) && value.length > 0) {\n filters.push({\n field: 'id',\n operator: { type: 'in' },\n value: value,\n });\n } else if (value) {\n filters.push({\n field: 'id',\n operator: { type: 'equal' },\n value: value,\n });\n }\n } else if (field === 'statusId') {\n // Status filter - skip 'all' value\n if (value && value !== 'all') {\n filters.push({\n field: 'statusId',\n operator: { type: 'equal' },\n value: value,\n });\n }\n } else if (field === 'dateRange') {\n // Date range filter - custom logic handled in query\n filters.push({\n field: 'dateRange',\n operator: { type: 'equal' },\n value: value,\n });\n } else {\n // Direct field mapping\n filters.push({\n field: field,\n operator: operator,\n value: value,\n });\n }\n }\n\n return filters;\n }\n\n //#endregion\n\n //#region ---- Custom Filter Handlers ----\n\n /**\n * Apply date range filter to tenants\n */\n private applyDateRangeFilter(\n tenants: AXMTenantManagementTenantEntityModel[],\n dateRange: any\n ): AXMTenantManagementTenantEntityModel[] {\n if (!dateRange || !dateRange.start || !dateRange.end) {\n return tenants;\n }\n\n const startDate = new Date(dateRange.start);\n const endDate = new Date(dateRange.end);\n endDate.setHours(23, 59, 59, 999);\n\n return tenants.filter((tenant) => {\n if (!tenant.registrationDate) return false;\n const regDate = new Date(tenant.registrationDate);\n return regDate >= startDate && regDate <= endDate;\n });\n }\n\n //#endregion\n}\n\n"],"names":["TenantRootConfig"],"mappings":";;;;;;AAwCA;MAKa,8BAA8B,CAAA;AAH3C,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACjD,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC;AAC1B,aAAA,UAAU,CAAC,CAAA,EAAGA,UAAgB,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAIA,UAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE;AACrF,aAAA,IAAI,EAAgD;QAC/C,IAAA,CAAA,iBAAiB,GAAG,IAAI,CAAC;AAC9B,aAAA,UAAU,CAAC,CAAA,EAAGA,UAAgB,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAIA,UAAgB,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE;AACzF,aAAA,IAAI,EAAoD;AAoN5D,IAAA;IAlNC,MAAM,KAAK,CA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AAO;AACnD,QAAA,CAAC,CAAC;IACJ;8GA1NW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cAF7B,MAAM,EAAA,CAAA,CAAA;;2FAEP,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAH1C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;;;"}
@@ -0,0 +1,56 @@
1
+ //#region ---- Summary Computation ----
2
+ /**
3
+ * Computes server-side report footer totals over the full filtered dataset (before pagination).
4
+ */
5
+ function computeReportFooterSummary(rows, summaryConfig) {
6
+ const specs = summaryConfig?.filter((s) => s.displayIn === 'reportFooter') ?? [];
7
+ if (specs.length === 0) {
8
+ return undefined;
9
+ }
10
+ const result = {};
11
+ for (const spec of specs) {
12
+ result[spec.field] = computeSummaryOperation(rows, spec.field, spec.operation);
13
+ }
14
+ return result;
15
+ }
16
+ function computeSummaryOperation(rows, field, operation) {
17
+ if (operation === 'count') {
18
+ const count = rows.filter((row) => row[field] != null && row[field] !== '').length;
19
+ return count;
20
+ }
21
+ const numbers = rows
22
+ .map((row) => toNumber(row[field]))
23
+ .filter((n) => n !== null);
24
+ if (numbers.length === 0) {
25
+ return null;
26
+ }
27
+ switch (operation) {
28
+ case 'sum':
29
+ return roundDecimal(numbers.reduce((acc, n) => acc + n, 0));
30
+ case 'avg':
31
+ return roundDecimal(numbers.reduce((acc, n) => acc + n, 0) / numbers.length);
32
+ case 'min':
33
+ return roundDecimal(Math.min(...numbers));
34
+ case 'max':
35
+ return roundDecimal(Math.max(...numbers));
36
+ default:
37
+ return null;
38
+ }
39
+ }
40
+ function roundDecimal(value, decimals = 2) {
41
+ return Number(value.toFixed(decimals));
42
+ }
43
+ function toNumber(value) {
44
+ if (typeof value === 'number' && Number.isFinite(value)) {
45
+ return value;
46
+ }
47
+ if (typeof value === 'string' && value.trim().length > 0) {
48
+ const parsed = Number(value);
49
+ return Number.isFinite(parsed) ? parsed : null;
50
+ }
51
+ return null;
52
+ }
53
+ //#endregion
54
+
55
+ export { computeReportFooterSummary as c };
56
+ //# sourceMappingURL=acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs","sources":["../../../../libs/connectivity/mock/src/lib/report-management/report-summary.util.ts"],"sourcesContent":["import { AXPReportSummaryOptions } from '@acorex/modules/report-management';\n\n//#region ---- Summary Computation ----\n\n/**\n * Computes server-side report footer totals over the full filtered dataset (before pagination).\n */\nexport function computeReportFooterSummary(\n rows: Record<string, unknown>[],\n summaryConfig: AXPReportSummaryOptions[] | undefined,\n): Record<string, number | null> | undefined {\n const specs = summaryConfig?.filter((s) => s.displayIn === 'reportFooter') ?? [];\n if (specs.length === 0) {\n return undefined;\n }\n\n const result: Record<string, number | null> = {};\n\n for (const spec of specs) {\n result[spec.field] = computeSummaryOperation(rows, spec.field, spec.operation);\n }\n\n return result;\n}\n\nfunction computeSummaryOperation(\n rows: Record<string, unknown>[],\n field: string,\n operation: AXPReportSummaryOptions['operation'],\n): number | null {\n if (operation === 'count') {\n const count = rows.filter((row) => row[field] != null && row[field] !== '').length;\n return count;\n }\n\n const numbers = rows\n .map((row) => toNumber(row[field]))\n .filter((n): n is number => n !== null);\n\n if (numbers.length === 0) {\n return null;\n }\n\n switch (operation) {\n case 'sum':\n return roundDecimal(numbers.reduce((acc, n) => acc + n, 0));\n case 'avg':\n return roundDecimal(numbers.reduce((acc, n) => acc + n, 0) / numbers.length);\n case 'min':\n return roundDecimal(Math.min(...numbers));\n case 'max':\n return roundDecimal(Math.max(...numbers));\n default:\n return null;\n }\n}\n\nfunction roundDecimal(value: number, decimals = 2): number {\n return Number(value.toFixed(decimals));\n}\n\nfunction toNumber(value: unknown): number | null {\n if (typeof value === 'number' && Number.isFinite(value)) {\n return value;\n }\n if (typeof value === 'string' && value.trim().length > 0) {\n const parsed = Number(value);\n return Number.isFinite(parsed) ? parsed : null;\n }\n return null;\n}\n\n//#endregion\n"],"names":[],"mappings":"AAEA;AAEA;;AAEG;AACG,SAAU,0BAA0B,CACxC,IAA+B,EAC/B,aAAoD,EAAA;AAEpD,IAAA,MAAM,KAAK,GAAG,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,KAAK,cAAc,CAAC,IAAI,EAAE;AAChF,IAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,OAAO,SAAS;IAClB;IAEA,MAAM,MAAM,GAAkC,EAAE;AAEhD,IAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AACxB,QAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;IAChF;AAEA,IAAA,OAAO,MAAM;AACf;AAEA,SAAS,uBAAuB,CAC9B,IAA+B,EAC/B,KAAa,EACb,SAA+C,EAAA;AAE/C,IAAA,IAAI,SAAS,KAAK,OAAO,EAAE;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM;AAClF,QAAA,OAAO,KAAK;IACd;IAEA,MAAM,OAAO,GAAG;AACb,SAAA,GAAG,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjC,MAAM,CAAC,CAA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A,IAAA,OAAO,IAAI;AACb;AAEA;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable } from '@angular/core';
3
- import { m as mockUsers } from './acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs';
3
+ import { m as mockUsers } from './acorex-connectivity-mock-acorex-connectivity-mock-uNCIA7zG.mjs';
4
4
 
5
5
  //#endregion
6
6
  /**
@@ -27,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
27
27
  }] });
28
28
 
29
29
  export { UserRolesForListColumnQuery };
30
- //# sourceMappingURL=acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs.map
30
+ //# sourceMappingURL=acorex-connectivity-mock-user-roles-for-list-column.query-B-R4X8Ft.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs","sources":["../../../../libs/connectivity/mock/src/lib/security-management/user/user-roles-for-list-column.query.ts"],"sourcesContent":["import { AXPQuery } from '@acorex/platform/runtime';\nimport { Injectable } from '@angular/core';\nimport { mockUsers } from './user.mock';\n\n//#region ---- Types ----\n\nexport interface UserRolesForListColumnQueryInput {\n userId?: string;\n}\n\nexport interface UserRolesForListColumnQueryResult {\n items: { id: string; title: unknown }[];\n}\n\n//#endregion\n\n/**\n * Resolves role rows for the user list lookup column when using {@link countOnly} column resolve.\n */\n@Injectable({ providedIn: 'root' })\nexport class UserRolesForListColumnQuery implements AXPQuery<UserRolesForListColumnQueryInput, UserRolesForListColumnQueryResult> {\n async fetch(input: UserRolesForListColumnQueryInput): Promise<UserRolesForListColumnQueryResult> {\n const userId = input?.userId?.trim();\n if (!userId) {\n return { items: [] };\n }\n const user = mockUsers.find((u) => u.id === userId);\n if (!user?.roles?.length) {\n return { items: [] };\n }\n return { items: user.roles };\n }\n}\n"],"names":[],"mappings":";;;;AAcA;AAEA;;AAEG;MAEU,2BAA2B,CAAA;IACtC,MAAM,KAAK,CAAC,KAAuC,EAAA;QACjD,MAAM,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;QACpC,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB;AACA,QAAA,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC;AACnD,QAAA,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;AACxB,YAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB;AACA,QAAA,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;IAC9B;8GAXW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-connectivity-mock-user-roles-for-list-column.query-B-R4X8Ft.mjs","sources":["../../../../libs/connectivity/mock/src/lib/security-management/user/user-roles-for-list-column.query.ts"],"sourcesContent":["import { AXPQuery } from '@acorex/platform/runtime';\nimport { Injectable } from '@angular/core';\nimport { mockUsers } from './user.mock';\n\n//#region ---- Types ----\n\nexport interface UserRolesForListColumnQueryInput {\n userId?: string;\n}\n\nexport interface UserRolesForListColumnQueryResult {\n items: { id: string; title: unknown }[];\n}\n\n//#endregion\n\n/**\n * Resolves role rows for the user list lookup column when using {@link countOnly} column resolve.\n */\n@Injectable({ providedIn: 'root' })\nexport class UserRolesForListColumnQuery implements AXPQuery<UserRolesForListColumnQueryInput, UserRolesForListColumnQueryResult> {\n async fetch(input: UserRolesForListColumnQueryInput): Promise<UserRolesForListColumnQueryResult> {\n const userId = input?.userId?.trim();\n if (!userId) {\n return { items: [] };\n }\n const user = mockUsers.find((u) => u.id === userId);\n if (!user?.roles?.length) {\n return { items: [] };\n }\n return { items: user.roles };\n }\n}\n"],"names":[],"mappings":";;;;AAcA;AAEA;;AAEG;MAEU,2BAA2B,CAAA;IACtC,MAAM,KAAK,CAAC,KAAuC,EAAA;QACjD,MAAM,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;QACpC,IAAI,CAAC,MAAM,EAAE;AACX,YAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB;AACA,QAAA,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC;AACnD,QAAA,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;AACxB,YAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB;AACA,QAAA,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;IAC9B;8GAXW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cADd,MAAM,EAAA,CAAA,CAAA;;2FACnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBADvC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
@@ -1,3 +1,3 @@
1
- export { f as ACTIVITY_CATEGORIES, g as ACTIVITY_CATEGORY_ID_BY_KEY, h as ACTIVITY_DEFINITIONS, i as AI_ASSIST_MOCK, j as AI_MODEL_MOCK, k as APPLICATIONS, l as APPLICATION_CATEGORY_IDS, n as APPLICATION_CATEGORY_MOCKS, o as AXCActivityCategorySeeder, p as AXCActivityDefinitionSeeder, q as AXCAiAssistSeeder, s as AXCAiManagementMockModule, t as AXCAiModelSeeder, u as AXCAppTermDataSeeder, v as AXCAppVersionDataSeeder, w as AXCApplicationCategoryDataSeeder, x as AXCApplicationDataSeeder, y as AXCApplicationManagementMockModule, z as AXCAssessmentManagementMockModule, B as AXCAssetManagementMockModule, C as AXCAuthMockModule, D as AXCCalendarDataSeeder, E as AXCCalendarManagementMockModule, F as AXCCalendarOccasionDataSeeder, G as AXCCommandRegistryDataSeeder, H as AXCCommonMockModule, I as AXCContactCoreMockModule, J as AXCContentManagementMockModule, K as AXCConversationDataSeeder, L as AXCConversationMockConversationApi, M as AXCConversationMockMessageApi, N as AXCConversationMockModule, P as AXCConversationMockRealtimeApi, Q as AXCConversationMockUploaderService, R as AXCConversationMockUserApi, S as AXCCustomerManagementMockModule, T as AXCDashboardManagementMockModule, U as AXCDataManagementMockModule, V as AXCDexieEntityStorageService, W as AXCDocumentManagementMockModule, X as AXCEditionDataSeeder, Y as AXCEntityDefinitionSeederService, Z as AXCEntityDefinitionsModule, _ as AXCEntityStorageInsertCommand, $ as AXCEntityStorageModule, a0 as AXCEntityStorageQueryQuery, a1 as AXCFileStorageServiceDexie, a2 as AXCFileStorageServiceFirestore, a3 as AXCFinancialCoreMockModule, a4 as AXCFirestoreEntityStorageService, a5 as AXCFormTemplateManagementMockModule, a6 as AXCGoogleStrategyMock, a7 as AXCHealthCoreMockModule, a8 as AXCHelpDeskMockModule, a9 as AXCHumanCapitalManagementMockModule, aa as AXCIdentifierManagementMockModule, ab as AXCImageCaptchaChallengeProviderMock, ac as AXCLearningManagementMockModule, ad as AXCLocaleManagementMockModule, ae as AXCLocationManagementMockModule, af as AXCLockService, ag as AXCMeasurementCoreMockModule, ah as AXCMeetingManagementMockModule, ai as AXCMetaDataDefinitionDataSeeder, aj as AXCMetadataCategorySeeder, ak as AXCMiddlewaresModule, al as AXCMockCaptchaChallengeComponent, am as AXCMockEntityLogListener, an as AXCMockModule, ao as AXCMockShowMetaDataFormPopupCommand, ap as AXCNotificationManagementMockModule, aq as AXCOrderManagementMockModule, ar as AXCOrganizationManagementMockModule, as as AXCPersonCoreMockModule, at as AXCPlatformManagementMockModule, au as AXCProcurementManagementMockModule, av as AXCProductCatalogMockModule, aw as AXCProjectManagementMockModule, ax as AXCQueryRegistryDataSeeder, ay as AXCReportManagementMockModule, az as AXCSecurityManagementMockModule, aA as AXCStoredEntityDefinitionLoader, aB as AXCSubscriptionManagementMockModule, aC as AXCSupplierManagementMockModule, aD as AXCTaskManagementMockModule, aE as AXCTenantManagementMockModule, aF as AXCTenantSeeder, aG as AXCTextTemplateRenderBackend, aH as AXCTokensDataSeeder, aI as AXCUserPassStrategyMock, aJ as AXCVersionDB, aK as AXCVersioningService, aL as AXCWidgetCatalogDataSeeder, aM as AXCWorkflowCategorySeeder, aN as AXCWorkflowDefinitionDataSeeder, aO as AXCWorkflowEngine, aP as AXCWorkflowExecutionDB, aQ as AXCWorkflowExecutionStoreDexie, aR as AXCWorkflowExecutionStoreFirestore, aS as AXCWorkflowInstanceCartableDemoSeeder, aT as AXCWorkflowManagementMockModule, aU as AXC_ENTITY_STORAGE_BACKEND_TYPE, aV as AXC_FIRESTORE_CONFIG, aW as AXC_FIRESTORE_DB, aX as AXC_WORKFLOW_EXECUTION_STORE, aY as AXMAiDemisAssistAgentUuid, aZ as AXMAiDemisAssistId, a_ as AXMAiDemisGeneralAssistId, a as AXMAiModelStableIds, a$ as AXMAiPlatformAssistantAssistId, b0 as AXMAutomationDataSeeder, b1 as AXMBusinessUnitDataSeeder, b2 as AXMCalendarOccasionTypeSeeder, b3 as AXMDashboardChartDataSourceDefinition, b4 as AXMEmployeeDataSeeder, b5 as AXMEmploymentTypeDataSeeder, b6 as AXMFormDataSourcesProvider, b7 as AXMJobDefinitionDataSeeder, b8 as AXMJobLevelDataSeeder, b9 as AXMLeaveRequestDataSeeder, ba as AXMMeetingDataSeeder, bb as AXMMeetingFilesDataSeeder, bc as AXMMeetingParticipantDataSeeder, bd as AXMMeetingRoleTypeDataSeeder, be as AXMMeetingSessionDataSeeder, bf as AXMMeetingTypeDataSeeder, bg as AXMMeetingTypeFileTemplateDataSeeder, bh as AXMPositionAssignmentDataSeeder, bi as AXMPositionDataSeeder, bj as AXMQuestionBankItemCategoryDataSeeder, bk as AXMQuestionBankItemDataSeeder, bl as AXMQuestionnaireCategoryDataSeeder, bm as AXMQuestionnaireDataSeeder, bn as AXMResponsibilityDataSeeder, bo as AXMTagDataSeeder, bp as AXMTeamBusinessUnitDataSeeder, bq as AXMTeamDataSeeder, br as AXMTeamMemberDataSeeder, bs as AXMTeamMemberRoleDataSeeder, bt as AXMWorkflowDashboardChartDataSourceDefinition, bu as AXM_AI_REGISTRY_COMMAND_NAME, bv as AXM_AI_REGISTRY_QUERY_NAME, bw as AXM_CORPORATE_BUSINESS_UNIT_ID, bx as AXPDashboardDataSeeder, by as AXPIdentifierDB, bz as AXPMessageDataSeeder, bA as AXPMockChecksumProvider, bB as AXPMockClockProvider, bC as AXPMockIdentifierService, bD as AXPMockLookupProvider, bE as AXPMockPolicyProvider, bF as AXPMockSequenceProvider, bG as AXPRoomDataSeeder, bH as AXPSecurityManagementRoleDataSeeder, bI as AXPSecurityManagementUserDataSeeder, bJ as AXPTaskBoardPlatformManagementTaskProvider, bK as AXPTaskBoardProjectManagementTaskProvider, bL as AXVChangeType, bM as BCC, bN as BOC, bO as BUSINESS_UNITS_MOCK, bP as CHAT_LAST_MESSAGE_IDS, bQ as COLLABORATION_STANDARD, bR as COSTMANAGER_ENTERPRISE, bS as COSTMANAGER_PROFESSIONAL, bT as COSTMANAGER_STANDARD, bU as CP, bV as CRM_ENTERPRISE, bW as DASHBOARDS, bX as EDITIONS, bY as EMPLOYEES_MOCK, bZ as EMPLOYMENT_TYPES_MOCK, b_ as ENTITY_DEFINITION_MAP, b$ as ENTITY_REGISTRY, c0 as FINANCE_BASIC, c1 as FINANCE_ENTERPRISE, c2 as FINANCE_PRO, c3 as G, c4 as HR_ENTERPRISE, c5 as HW, c6 as JOB_DEFINITIONS_CATEGORY_MOCK, c7 as JOB_DEFINITIONS_MOCK, c8 as JOB_DEFINITION_CATEGORY_KEY_TO_ID, c9 as JOB_LEVELS_MOCK, ca as LASER_PLUMBING_TENANT_ID, cb as LEAVE_REQUESTS_MOCK, cc as MAGFA_COMMERCE_STANDARD, cd as MAGFA_CONVERSATION_DASHBOARD, ce as MAGFA_TENANT_ID, cf as METADATA_CATEGORY_IDS, cg as METADATA_GENERAL_CATEGORY_REFS, ch as METADATA_SYSTEM_CATEGORY_REFS, ci as MLC, cj as MOCK_CALENDAR_AUSTRALIA_ID, ck as MOCK_CALENDAR_INTERNATIONAL_GREGORIAN_ID, cl as MOCK_CALENDAR_IRAN_PERSIAN_ID, cm as MOCK_CALENDAR_NEW_ZEALAND_ID, cn as OHR, co as ORDERING_BASIC, cp as ORDERING_ENTERPRISE, cq as ORDERING_STANDARD, cr as OWNERSHIP_FILTER_BYPASS, cs as PLATFORM_CONSOLE, ct as PLATFORM_TENANT_ID, cu as PM, cv as POSITIONS_CATEGORY_MOCK, cw as POSITIONS_MOCK, cx as POSITION_ASSIGNMENTS_MOCK, cy as QCP, cz as QGEN, cA as QHW, cB as QOHR, cC as QPM, cD as QTLE, cE as QUESTIONNAIRE_CATEGORY_MOCK, cF as QUESTION_BANK_ITEM_CATEGORY_MOCK, cG as QWS, cH as RESPONSIBILITIES_CATEGORY_MOCK, cI as RESPONSIBILITIES_MOCK, cJ as RESPONSIBILITY_CATEGORY_KEY_TO_ID, cK as SAFETYMINDER_BASIC, cL as SAFETYMINDER_ENTERPRISE, cM as SAFETYMINDER_PROFESSIONAL, cN as SHOP_BASIC, cO as SHOP_ENTERPRISE, cP as SHOP_PRO, cQ as TAGS_MOCK, cR as TASKS, cS as TASK_STATUSES, cT as TASK_TEMPLATES, cU as TASK_TYPES, cV as TEAMS_CATEGORY_MOCK, cW as TEAMS_MOCK, cX as TEAM_BUSINESS_UNITS_MOCK, cY as TEAM_CATEGORY_KEY_TO_ID, cZ as TEAM_MEMBERS_MOCK, c_ as TEAM_MEMBER_ROLES_MOCK, c$ as TIMEPLICITY_TENANT_ID, d0 as TLA, d1 as TOKENS, d2 as TPC, d3 as VISIBILITY_FILTER_BYPASS, d4 as WORKFLOW_CATEGORIES, d5 as WS, d6 as activityCategoryMocks, d7 as activityDefinitionEntityMock, d8 as applyEntityDefinitionFirestoreSnapshot, d9 as attachmentsInterface, da as automationCommandMiddleware, db as automationMock, dc as avatarInterface, dd as awaitConversationMockSharedStorage, de as axVersionDB, df as axWorkflowExecutionDB, dg as axcPatchEmployeeActivePrimaryBusinessUnitRefsFromRows, dh as axcPatchEmployeeActivePrimaryPositionRefsFromRows, di as axcPatchEmployeeManagerRefsFromRows, dj as axcResolveCommandRegistrySeedId, dk as axcResolveQueryRegistrySeedId, dl as axcResolveWidgetCatalogSeedId, dm as bankCategory, dn as buildEntityStorageQuickSearchFilter, dp as buildWorkflowInstanceCartableDemoRows, dq as bypassAllFilters, dr as bypassOwnershipFilter, ds as bypassVisibilityFilter, dt as calendarMock, du as calendarOccasionMock, dv as calendarOccasionSeedData, dw as calendarOccasionTypeMockData, dx as chatMessageMock, dy as chatMock, dz as checkboxInterface, dA as childCountMiddleware, dB as clearEntityDefinitionFirestoreCollections, dC as colorInterface, dD as computeDiff, dE as contactInterface, dF as conversationDemoSeedUserIds, dG as createFileCastMiddleware, dH as createWidgetLayoutConfig, dI as createWorkflowDefinitionEntityMock, dJ as dateInterface, dK as dateTimeInterface, dL as descriptionInterface, dM as documentFolderSyncMiddleware, dN as emailInterface, dO as enrichCalendarOccasionForStorage, dP as enrichWorkflowGraph, dQ as entityDefDb, dR as entityValidationMiddleware, dS as finalizeActivityCategoryItemCounts, dT as findEmployeeById, dU as folderStorageMiddleware, dV as groupOrderItemCalculatorMiddleware, dW as historyMiddleware, dX as identifierCommitMiddleware, dY as imageInterface, dZ as inspectionOkXNaInterface, d_ as loadMockPropertyDefinitions, d$ as lockGuardMiddleware, e0 as longTextAnswerInterface, e1 as lookupInterface, e2 as lookupResolverMiddleware, e3 as mapInterface, e4 as meetingFilesMock, e5 as meetingIds, e6 as meetingMock, e7 as meetingParticipantMock, e8 as meetingRoleTypeMock, e9 as meetingSessionMock, ea as meetingTimeSlotMock, eb as meetingTypeFileTemplateMock, ec as meetingTypeMock, ed as mergeDetailRelationMiddleware, ee as mergeQuickSearchIntoRequest, ef as metadataCategoryMocks, eg as mockParticipantIndexForSecurityUserId, eh as mockQuestionBankItemByName, ei as mockRoleDefinitions, m as mockUsers, ej as multipleChoiceInterface, ek as multipleSelectInterface, el as normalizeAnyFileArrayForView, em as normalizeSnapshotFileFieldsForView, en as numberInterface, eo as parseEntityStorageInsertData, ep as parseEntityStorageQueryRequest, eq as participantIds, er as participantMock, es as passwordInterface, et as personIdentifierTypeMock, eu as personIds, ev as personLegalIds, ew as personMock, ex as personNaturalIds, ey as phoneInterface, ez as primaryMiddleware, eA as provideMockPropertySetups, eB as qrcodeInterface, eC as questionBankItemMock, eD as questionnaireMock, eE as ratingInterface, eF as registerConversationMockAfterHydration, eG as richTextInterface, eH as scaleInterface, eI as selectInterface, eJ as selectionListInterface, eK as sexAtBirthInterface, eL as signatureInterface, eM as statusDefaultMiddleware, eN as tagInterface, eO as tenantMocks, eP as textAreaInterface, eQ as textInterface, eR as timeDurationInterface, eS as titleInterface, eT as toUiRows, eU as toggleInterface, eV as tokenCategoryIds, eW as tokenCategoryMocks, eX as urlInterface, eY as versionInterface, eZ as visibilityFilterMiddleware, e_ as workflowDefinitionEntityMock, e$ as workflowDefinitionIds, f0 as workflowDefinitionMock, f1 as yesNoInterface } from './acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs';
1
+ export { f as ACTIVITY_CATEGORIES, g as ACTIVITY_CATEGORY_ID_BY_KEY, h as ACTIVITY_DEFINITIONS, i as AI_ASSIST_MOCK, j as AI_MODEL_MOCK, k as APPLICATIONS, l as APPLICATION_CATEGORY_IDS, n as APPLICATION_CATEGORY_MOCKS, o as AXCActivityCategorySeeder, p as AXCActivityDefinitionSeeder, q as AXCAiAssistSeeder, s as AXCAiManagementMockModule, t as AXCAiModelSeeder, u as AXCAppTermDataSeeder, v as AXCAppVersionDataSeeder, w as AXCApplicationCategoryDataSeeder, x as AXCApplicationDataSeeder, y as AXCApplicationManagementMockModule, z as AXCAssessmentManagementMockModule, B as AXCAssetManagementMockModule, C as AXCAuthMockModule, D as AXCCalendarDataSeeder, E as AXCCalendarManagementMockModule, F as AXCCalendarOccasionDataSeeder, G as AXCCommandRegistryDataSeeder, H as AXCCommonMockModule, I as AXCContactCoreMockModule, J as AXCContentManagementMockModule, K as AXCConversationDataSeeder, L as AXCConversationMockConversationApi, M as AXCConversationMockMessageApi, N as AXCConversationMockModule, P as AXCConversationMockRealtimeApi, Q as AXCConversationMockUploaderService, R as AXCConversationMockUserApi, S as AXCCustomerManagementMockModule, T as AXCDashboardManagementMockModule, U as AXCDataManagementMockModule, V as AXCDexieEntityStorageService, W as AXCDocumentManagementMockModule, X as AXCEditionDataSeeder, Y as AXCEntityDefinitionSeederService, Z as AXCEntityDefinitionsModule, _ as AXCEntityStorageInsertCommand, $ as AXCEntityStorageModule, a0 as AXCEntityStorageQueryQuery, a1 as AXCFileStorageServiceDexie, a2 as AXCFileStorageServiceFirestore, a3 as AXCFinancialCoreMockModule, a4 as AXCFirestoreEntityStorageService, a5 as AXCFormTemplateManagementMockModule, a6 as AXCGoogleStrategyMock, a7 as AXCHealthCoreMockModule, a8 as AXCHelpDeskMockModule, a9 as AXCHumanCapitalManagementMockModule, aa as AXCIdentifierManagementMockModule, ab as AXCImageCaptchaChallengeProviderMock, ac as AXCLearningManagementMockModule, ad as AXCLocaleManagementMockModule, ae as AXCLocationManagementMockModule, af as AXCLockService, ag as AXCMeasurementCoreMockModule, ah as AXCMeetingManagementMockModule, ai as AXCMetaDataDefinitionDataSeeder, aj as AXCMetadataCategorySeeder, ak as AXCMiddlewaresModule, al as AXCMockCaptchaChallengeComponent, am as AXCMockEntityLogListener, an as AXCMockModule, ao as AXCMockShowMetaDataFormPopupCommand, ap as AXCNotificationManagementMockModule, aq as AXCOrderManagementMockModule, ar as AXCOrganizationManagementMockModule, as as AXCPersonCoreMockModule, at as AXCPlatformManagementMockModule, au as AXCProcurementManagementMockModule, av as AXCProductCatalogMockModule, aw as AXCProjectManagementMockModule, ax as AXCQueryRegistryDataSeeder, ay as AXCReportManagementMockModule, az as AXCSecurityManagementMockModule, aA as AXCStoredEntityDefinitionLoader, aB as AXCSubscriptionManagementMockModule, aC as AXCSupplierManagementMockModule, aD as AXCTaskManagementMockModule, aE as AXCTenantManagementMockModule, aF as AXCTenantSeeder, aG as AXCTextTemplateRenderBackend, aH as AXCTokensDataSeeder, aI as AXCUserPassStrategyMock, aJ as AXCVersionDB, aK as AXCVersioningService, aL as AXCWidgetCatalogDataSeeder, aM as AXCWorkflowCategorySeeder, aN as AXCWorkflowDefinitionDataSeeder, aO as AXCWorkflowEngine, aP as AXCWorkflowExecutionDB, aQ as AXCWorkflowExecutionStoreDexie, aR as AXCWorkflowExecutionStoreFirestore, aS as AXCWorkflowInstanceCartableDemoSeeder, aT as AXCWorkflowManagementMockModule, aU as AXC_ENTITY_STORAGE_BACKEND_TYPE, aV as AXC_FIRESTORE_CONFIG, aW as AXC_FIRESTORE_DB, aX as AXC_WORKFLOW_EXECUTION_STORE, aY as AXMAiDemisAssistAgentUuid, aZ as AXMAiDemisAssistId, a_ as AXMAiDemisGeneralAssistId, a as AXMAiModelStableIds, a$ as AXMAiPlatformAssistantAssistId, b0 as AXMAutomationDataSeeder, b1 as AXMBusinessUnitDataSeeder, b2 as AXMCalendarOccasionTypeSeeder, b3 as AXMDashboardChartDataSourceDefinition, b4 as AXMEmployeeDataSeeder, b5 as AXMEmploymentTypeDataSeeder, b6 as AXMFormDataSourcesProvider, b7 as AXMJobDefinitionDataSeeder, b8 as AXMJobLevelDataSeeder, b9 as AXMLeaveRequestDataSeeder, ba as AXMMeetingDataSeeder, bb as AXMMeetingFilesDataSeeder, bc as AXMMeetingParticipantDataSeeder, bd as AXMMeetingRoleTypeDataSeeder, be as AXMMeetingSessionDataSeeder, bf as AXMMeetingTypeDataSeeder, bg as AXMMeetingTypeFileTemplateDataSeeder, bh as AXMPositionAssignmentDataSeeder, bi as AXMPositionDataSeeder, bj as AXMQuestionBankItemCategoryDataSeeder, bk as AXMQuestionBankItemDataSeeder, bl as AXMQuestionnaireCategoryDataSeeder, bm as AXMQuestionnaireDataSeeder, bn as AXMResponsibilityDataSeeder, bo as AXMTagDataSeeder, bp as AXMTeamBusinessUnitDataSeeder, bq as AXMTeamDataSeeder, br as AXMTeamMemberDataSeeder, bs as AXMTeamMemberRoleDataSeeder, bt as AXMWorkflowDashboardChartDataSourceDefinition, bu as AXM_AI_REGISTRY_COMMAND_NAME, bv as AXM_AI_REGISTRY_QUERY_NAME, bw as AXM_CORPORATE_BUSINESS_UNIT_ID, bx as AXPDashboardDataSeeder, by as AXPIdentifierDB, bz as AXPMessageDataSeeder, bA as AXPMockChecksumProvider, bB as AXPMockClockProvider, bC as AXPMockIdentifierService, bD as AXPMockLookupProvider, bE as AXPMockPolicyProvider, bF as AXPMockSequenceProvider, bG as AXPRoomDataSeeder, bH as AXPSecurityManagementRoleDataSeeder, bI as AXPSecurityManagementUserDataSeeder, bJ as AXPTaskBoardPlatformManagementTaskProvider, bK as AXPTaskBoardProjectManagementTaskProvider, bL as AXVChangeType, bM as BCC, bN as BOC, bO as BUSINESS_UNITS_MOCK, bP as CHAT_LAST_MESSAGE_IDS, bQ as COLLABORATION_STANDARD, bR as COSTMANAGER_ENTERPRISE, bS as COSTMANAGER_PROFESSIONAL, bT as COSTMANAGER_STANDARD, bU as CP, bV as CRM_ENTERPRISE, bW as DASHBOARDS, bX as EDITIONS, bY as EMPLOYEES_MOCK, bZ as EMPLOYMENT_TYPES_MOCK, b_ as ENTITY_DEFINITION_MAP, b$ as ENTITY_REGISTRY, c0 as FINANCE_BASIC, c1 as FINANCE_ENTERPRISE, c2 as FINANCE_PRO, c3 as G, c4 as HR_ENTERPRISE, c5 as HW, c6 as JOB_DEFINITIONS_CATEGORY_MOCK, c7 as JOB_DEFINITIONS_MOCK, c8 as JOB_DEFINITION_CATEGORY_KEY_TO_ID, c9 as JOB_LEVELS_MOCK, ca as LASER_PLUMBING_TENANT_ID, cb as LEAVE_REQUESTS_MOCK, cc as MAGFA_COMMERCE_STANDARD, cd as MAGFA_CONVERSATION_DASHBOARD, ce as MAGFA_TENANT_ID, cf as METADATA_CATEGORY_IDS, cg as METADATA_GENERAL_CATEGORY_REFS, ch as METADATA_SYSTEM_CATEGORY_REFS, ci as MLC, cj as MOCK_CALENDAR_AUSTRALIA_ID, ck as MOCK_CALENDAR_INTERNATIONAL_GREGORIAN_ID, cl as MOCK_CALENDAR_IRAN_PERSIAN_ID, cm as MOCK_CALENDAR_NEW_ZEALAND_ID, cn as OHR, co as ORDERING_BASIC, cp as ORDERING_ENTERPRISE, cq as ORDERING_STANDARD, cr as OWNERSHIP_FILTER_BYPASS, cs as PLATFORM_CONSOLE, ct as PLATFORM_TENANT_ID, cu as PM, cv as POSITIONS_CATEGORY_MOCK, cw as POSITIONS_MOCK, cx as POSITION_ASSIGNMENTS_MOCK, cy as QCP, cz as QGEN, cA as QHW, cB as QOHR, cC as QPM, cD as QTLE, cE as QUESTIONNAIRE_CATEGORY_MOCK, cF as QUESTION_BANK_ITEM_CATEGORY_MOCK, cG as QWS, cH as RESPONSIBILITIES_CATEGORY_MOCK, cI as RESPONSIBILITIES_MOCK, cJ as RESPONSIBILITY_CATEGORY_KEY_TO_ID, cK as SAFETYMINDER_BASIC, cL as SAFETYMINDER_ENTERPRISE, cM as SAFETYMINDER_PROFESSIONAL, cN as SHOP_BASIC, cO as SHOP_ENTERPRISE, cP as SHOP_PRO, cQ as TAGS_MOCK, cR as TASKS, cS as TASK_STATUSES, cT as TASK_TEMPLATES, cU as TASK_TYPES, cV as TEAMS_CATEGORY_MOCK, cW as TEAMS_MOCK, cX as TEAM_BUSINESS_UNITS_MOCK, cY as TEAM_CATEGORY_KEY_TO_ID, cZ as TEAM_MEMBERS_MOCK, c_ as TEAM_MEMBER_ROLES_MOCK, c$ as TIMEPLICITY_TENANT_ID, d0 as TLA, d1 as TOKENS, d2 as TPC, d3 as VISIBILITY_FILTER_BYPASS, d4 as WORKFLOW_CATEGORIES, d5 as WS, d6 as activityCategoryMocks, d7 as activityDefinitionEntityMock, d8 as applyEntityDefinitionFirestoreSnapshot, d9 as attachmentsInterface, da as automationCommandMiddleware, db as automationMock, dc as avatarInterface, dd as awaitConversationMockSharedStorage, de as axVersionDB, df as axWorkflowExecutionDB, dg as axcPatchEmployeeActivePrimaryBusinessUnitRefsFromRows, dh as axcPatchEmployeeActivePrimaryPositionRefsFromRows, di as axcPatchEmployeeManagerRefsFromRows, dj as axcResolveCommandRegistrySeedId, dk as axcResolveQueryRegistrySeedId, dl as axcResolveWidgetCatalogSeedId, dm as bankCategory, dn as buildEntityStorageQuickSearchFilter, dp as buildWorkflowInstanceCartableDemoRows, dq as bypassAllFilters, dr as bypassOwnershipFilter, ds as bypassVisibilityFilter, dt as calendarMock, du as calendarOccasionMock, dv as calendarOccasionSeedData, dw as calendarOccasionTypeMockData, dx as chatMessageMock, dy as chatMock, dz as checkboxInterface, dA as childCountMiddleware, dB as clearEntityDefinitionFirestoreCollections, dC as colorInterface, dD as computeDiff, dE as contactInterface, dF as conversationDemoSeedUserIds, dG as createFileCastMiddleware, dH as createWidgetLayoutConfig, dI as createWorkflowDefinitionEntityMock, dJ as dateInterface, dK as dateTimeInterface, dL as descriptionInterface, dM as documentFolderSyncMiddleware, dN as emailInterface, dO as enrichCalendarOccasionForStorage, dP as enrichWorkflowGraph, dQ as entityDefDb, dR as entityValidationMiddleware, dS as finalizeActivityCategoryItemCounts, dT as findEmployeeById, dU as folderStorageMiddleware, dV as groupOrderItemCalculatorMiddleware, dW as historyMiddleware, dX as identifierCommitMiddleware, dY as imageInterface, dZ as inspectionOkXNaInterface, d_ as loadMockPropertyDefinitions, d$ as lockGuardMiddleware, e0 as longTextAnswerInterface, e1 as lookupInterface, e2 as lookupResolverMiddleware, e3 as mapInterface, e4 as meetingFilesMock, e5 as meetingIds, e6 as meetingMock, e7 as meetingParticipantMock, e8 as meetingRoleTypeMock, e9 as meetingSessionMock, ea as meetingTimeSlotMock, eb as meetingTypeFileTemplateMock, ec as meetingTypeMock, ed as mergeDetailRelationMiddleware, ee as mergeQuickSearchIntoRequest, ef as metadataCategoryMocks, eg as mockParticipantIndexForSecurityUserId, eh as mockQuestionBankItemByName, ei as mockRoleDefinitions, m as mockUsers, ej as multipleChoiceInterface, ek as multipleSelectInterface, el as normalizeAnyFileArrayForView, em as normalizeSnapshotFileFieldsForView, en as numberInterface, eo as parseEntityStorageInsertData, ep as parseEntityStorageQueryRequest, eq as participantIds, er as participantMock, es as passwordInterface, et as personIdentifierTypeMock, eu as personIds, ev as personLegalIds, ew as personMock, ex as personNaturalIds, ey as phoneInterface, ez as primaryMiddleware, eA as provideMockPropertySetups, eB as qrcodeInterface, eC as questionBankItemMock, eD as questionnaireMock, eE as ratingInterface, eF as registerConversationMockAfterHydration, eG as richTextInterface, eH as scaleInterface, eI as selectInterface, eJ as selectionListInterface, eK as sexAtBirthInterface, eL as signatureInterface, eM as statusDefaultMiddleware, eN as tagInterface, eO as tenantMocks, eP as textAreaInterface, eQ as textInterface, eR as timeDurationInterface, eS as titleInterface, eT as toUiRows, eU as toggleInterface, eV as tokenCategoryIds, eW as tokenCategoryMocks, eX as urlInterface, eY as versionInterface, eZ as visibilityFilterMiddleware, e_ as workflowDefinitionEntityMock, e$ as workflowDefinitionIds, f0 as workflowDefinitionMock, f1 as yesNoInterface } from './acorex-connectivity-mock-acorex-connectivity-mock-uNCIA7zG.mjs';
2
2
  export { AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY } from '@acorex/modules/content-management';
3
3
  //# sourceMappingURL=acorex-connectivity-mock.mjs.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "21.0.0-next.72",
3
+ "version": "21.0.0-next.73",
4
4
  "peerDependencies": {
5
- "@acorex/modules": "21.0.0-next.72"
5
+ "@acorex/modules": "21.0.0-next.73"
6
6
  },
7
7
  "sideEffects": false,
8
8
  "module": "fesm2022/acorex-connectivity.mjs",
@@ -225,6 +225,7 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
225
225
  }
226
226
 
227
227
  declare class AXCApiUserAvatarProvider implements AXPUserAvatarProvider {
228
+ private readonly entityService;
228
229
  private userService;
229
230
  private sessionService;
230
231
  provide(userId: string): Promise<AXPUserAvatarData>;
@@ -318,6 +318,12 @@ declare class AXCMaintenanceManagementMockModule {
318
318
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMaintenanceManagementMockModule>;
319
319
  }
320
320
 
321
+ declare class AXCRiskManagementMockModule {
322
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCRiskManagementMockModule, never>;
323
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCRiskManagementMockModule, never, never, never>;
324
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCRiskManagementMockModule>;
325
+ }
326
+
321
327
  declare class AXCWorkplaceSafetyManagementMockModule {
322
328
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkplaceSafetyManagementMockModule, never>;
323
329
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCWorkplaceSafetyManagementMockModule, never, never, never>;
@@ -344,7 +350,7 @@ declare class AXCMiddlewaresModule {
344
350
  declare class AXCMockModule {
345
351
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
346
352
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
347
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCBusinessCoreMockModule, typeof AXCCustomerManagementMockModule, typeof AXCSupplierManagementMockModule, typeof AXCProcurementManagementMockModule, typeof AXCOrderManagementMockModule, typeof AXCTenantManagementMockModule, typeof AXCSubscriptionManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCContactCoreMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCAiManagementMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCLearningManagementMockModule, typeof AXCAssetManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPersonCoreMockModule, typeof AXCHealthCoreMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCReservationManagementMockModule, typeof AXCMaintenanceManagementMockModule, typeof AXCWorkplaceSafetyManagementMockModule, typeof AXCMiddlewaresModule], never>;
353
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCBusinessCoreMockModule, typeof AXCCustomerManagementMockModule, typeof AXCSupplierManagementMockModule, typeof AXCProcurementManagementMockModule, typeof AXCOrderManagementMockModule, typeof AXCTenantManagementMockModule, typeof AXCSubscriptionManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCContactCoreMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCAiManagementMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCLearningManagementMockModule, typeof AXCAssetManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPersonCoreMockModule, typeof AXCHealthCoreMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCReservationManagementMockModule, typeof AXCMaintenanceManagementMockModule, typeof AXCRiskManagementMockModule, typeof AXCWorkplaceSafetyManagementMockModule, typeof AXCMiddlewaresModule], never>;
348
354
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
349
355
  }
350
356
 
@@ -358,7 +364,8 @@ declare class AXCUserPassStrategyMock extends AXPAuthStrategy {
358
364
  router: Router;
359
365
  constructor();
360
366
  private entityRegistery;
361
- private deviceSessionsService;
367
+ private entityService;
368
+ private deviceSessionsData;
362
369
  get name(): string;
363
370
  signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
364
371
  private createDeviceSession;
@@ -1512,6 +1519,7 @@ interface AXCMockUserMockDto extends AXMSecurityManagementUsersEntityModel {
1512
1519
  title: string;
1513
1520
  }[];
1514
1521
  password: string;
1522
+ pinCode?: string;
1515
1523
  accountState: string;
1516
1524
  accessState: AXMUserAccessState;
1517
1525
  effectiveState: string;
@@ -2842,7 +2850,6 @@ declare class AXCConversationMockMessageApi extends AXMChatMessageApi {
2842
2850
  */
2843
2851
  private createNotificationForAssistResponseComplete;
2844
2852
  private persistChatNotification;
2845
- private markNotificationsAsReadForMessages;
2846
2853
  private toUserReference;
2847
2854
  /**
2848
2855
  * Generates an automatic reply from a random participant for regular
@@ -3181,6 +3188,7 @@ declare class AXMFormDataSourcesProvider implements AXPDataSourceDefinitionProvi
3181
3188
  private priorityLevels;
3182
3189
  private incidentTypes;
3183
3190
  private severityLevels;
3191
+ private questionDifficultyOptions;
3184
3192
  items(): Promise<AXPDataSourceDefinition[]>;
3185
3193
  }
3186
3194
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-connectivity-api-execute.command-CiBl7z_H.mjs","sources":["../../../../libs/connectivity/api/src/lib/report-management/execute.command.ts"],"sourcesContent":["import {\n AXPExecutionReportCommand,\n AXPExecutionReportCommandResult,\n AXPExecutionReportResult,\n AXPLayoutExecutionContext,\n AXPReportViewerService,\n AXPReportLayoutDefinition,\n} from '@acorex/modules/report-management';\nimport { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/common';\nimport { HttpClient } from '@angular/common/http';\nimport { inject, Injectable } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport { AXPExecuteReportDto } from './report-management-api.providers';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXCReportExecuteCommand implements AXPExecutionReportCommand {\n private readonly http = inject(HttpClient);\n private readonly reportDefinitionService = inject(AXPReportViewerService);\n private readonly configs = inject(AXP_ROOT_CONFIG_TOKEN);\n private readonly baseUrl = this.configs.baseUrl;\n\n //#region ---- Command Implementation ----\n\n async execute(context: AXPLayoutExecutionContext) {\n try {\n const { reportId, layoutId, filters: parameters } = context;\n\n // Get the report definition to find the layout\n const reportDefinition = await this.reportDefinitionService.getReportById(reportId);\n if (!reportDefinition) {\n throw new Error(`Report with ID ${reportId} not found`);\n }\n\n // Find the specific layout\n const layoutDefinition = reportDefinition.layouts.find((l: AXPReportLayoutDefinition) => l.id === layoutId);\n if (!layoutDefinition) {\n throw new Error(`Layout with ID ${layoutId} not found in report ${reportId}`);\n }\n\n // Call the Execute API endpoint\n const url = `${this.baseUrl}/v1/global/Report-Management/report/Execute`;\n const body = {\n reportId,\n parameters,\n };\n\n const executeResult: AXPExecuteReportDto = await firstValueFrom(this.http.post<AXPExecuteReportDto>(url, body));\n\n // Convert ExecuteReportDto to AXPExecutionReportResult format\n let executionResult: AXPExecutionReportResult;\n\n if (executeResult.type === 'table') {\n executionResult = {\n type: 'table',\n items: executeResult.items,\n total: executeResult.totalCount,\n };\n } else if (executeResult.type === 'chart') {\n executionResult = {\n type: 'chart',\n data: executeResult.items[0] || {},\n };\n } else if (executeResult.type === 'cards') {\n executionResult = {\n type: 'cards',\n items: executeResult.items,\n };\n } else {\n executionResult = {\n type: 'custom',\n data: executeResult.items,\n };\n }\n\n // Return the combined layout configuration and data\n return {\n success: true,\n data: {\n ...layoutDefinition.layout,\n data: executionResult,\n },\n };\n } catch (error) {\n console.error('Error executing report:', error);\n const errorMessage = error instanceof Error ? error.message : 'Unknown error';\n return {\n success: false,\n message: {\n type: 'error' as const,\n text: `Failed to execute report: ${errorMessage}`,\n },\n };\n }\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;;MAiBa,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AACzB,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxD,QAAA,IAAA,C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