@acorex/connectivity 21.0.0-next.72 → 21.0.0-next.74
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-connectivity-api-execute.command-CiBl7z_H.mjs → acorex-connectivity-api-execute.command-CjCFEav4.mjs} +13 -3
- package/fesm2022/acorex-connectivity-api-execute.command-CjCFEav4.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +9 -7
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs → acorex-connectivity-mock-acorex-connectivity-mock-Btm13GJK.mjs} +2301 -1052
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-Btm13GJK.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-7uIojNj1.mjs → acorex-connectivity-mock-assign-to-manager.activity-CY_5d0KF.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-assign-to-manager.activity-7uIojNj1.mjs.map → acorex-connectivity-mock-assign-to-manager.activity-CY_5d0KF.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-metadata-inheritance.query-CWRL1dTa.mjs → acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs} +10 -8
- package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CIof4zTg.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Cj6FWu7S.mjs → acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs} +15 -14
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-DAKUJIIt.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-B5cbkpr0.mjs → acorex-connectivity-mock-chat-generate-image.command-Hj-2bHyJ.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-generate-image.command-B5cbkpr0.mjs.map → acorex-connectivity-mock-chat-generate-image.command-Hj-2bHyJ.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-rqgbcQxF.mjs → acorex-connectivity-mock-chat-synthesize-speech.command-0ZnevjmT.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-synthesize-speech.command-rqgbcQxF.mjs.map → acorex-connectivity-mock-chat-synthesize-speech.command-0ZnevjmT.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-DMKreUYD.mjs → acorex-connectivity-mock-chat-transcribe-speech.command-D8sCgp69.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-chat-transcribe-speech.command-DMKreUYD.mjs.map → acorex-connectivity-mock-chat-transcribe-speech.command-D8sCgp69.mjs.map} +1 -1
- package/fesm2022/{acorex-connectivity-mock-distribution-record.activity-DuNluOzA.mjs → acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs} +12 -9
- package/fesm2022/acorex-connectivity-mock-distribution-record.activity-a1_k9Czb.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-employee-list.query-DifHwuqH.mjs → acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs} +5 -4
- package/fesm2022/acorex-connectivity-mock-get-employee-list.query-BWbZj3tp.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-location-list.query-bMjkZnzq.mjs → acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs} +2 -2
- package/fesm2022/acorex-connectivity-mock-get-location-list.query-CQ2rFDUM.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-get-product-list.query-f-mTj4ah.mjs → acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs} +5 -4
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-Bv1im5yj.mjs.map +1 -0
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-connectivity-mock-get-subscriptions-timeline.query-D4qfDfeV.mjs → acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs} +2 -2
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-C_ecGCyk.mjs.map +1 -0
- 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
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-t4BHU8qk.mjs.map +1 -0
- 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
- 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
- package/fesm2022/{acorex-connectivity-mock-get-tenant-registration-timeline.query-0sCBtdbp.mjs → acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs} +2 -2
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-COmTsDCV.mjs.map +1 -0
- 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
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-jQAsUf_h.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs +56 -0
- package/fesm2022/acorex-connectivity-mock-report-summary.util-CGOhHIZr.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs → acorex-connectivity-mock-user-roles-for-list-column.query-D2QjJXu4.mjs} +2 -2
- package/fesm2022/{acorex-connectivity-mock-user-roles-for-list-column.query-CoH1CYkf.mjs.map → acorex-connectivity-mock-user-roles-for-list-column.query-D2QjJXu4.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-connectivity-api.d.ts +1 -0
- package/types/acorex-connectivity-mock.d.ts +18 -9
- package/fesm2022/acorex-connectivity-api-execute.command-CiBl7z_H.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-acorex-connectivity-mock-ChTgoKCp.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-metadata-inheritance.query-CWRL1dTa.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-Cj6FWu7S.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.activity-DuNluOzA.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-employee-list.query-DifHwuqH.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-location-list.query-bMjkZnzq.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-f-mTj4ah.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-D4qfDfeV.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-n1_Azada.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-0sCBtdbp.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-rD811gtM.mjs.map +0 -1
|
@@ -15,7 +15,7 @@ class AXCReportExecuteCommand {
|
|
|
15
15
|
//#region ---- Command Implementation ----
|
|
16
16
|
async execute(context) {
|
|
17
17
|
try {
|
|
18
|
-
const { reportId, layoutId, filters: parameters } = context;
|
|
18
|
+
const { reportId, layoutId, filters: parameters, skip, take, sort } = context;
|
|
19
19
|
// Get the report definition to find the layout
|
|
20
20
|
const reportDefinition = await this.reportDefinitionService.getReportById(reportId);
|
|
21
21
|
if (!reportDefinition) {
|
|
@@ -30,7 +30,16 @@ class AXCReportExecuteCommand {
|
|
|
30
30
|
const url = `${this.baseUrl}/v1/global/Report-Management/report/Execute`;
|
|
31
31
|
const body = {
|
|
32
32
|
reportId,
|
|
33
|
-
parameters
|
|
33
|
+
parameters: {
|
|
34
|
+
...parameters,
|
|
35
|
+
...(skip !== undefined ? { skip } : {}),
|
|
36
|
+
...(take !== undefined ? { take } : {}),
|
|
37
|
+
...(sort?.length
|
|
38
|
+
? {
|
|
39
|
+
sort: sort.map((s) => ({ name: s.name, dir: s.dir })),
|
|
40
|
+
}
|
|
41
|
+
: {}),
|
|
42
|
+
},
|
|
34
43
|
};
|
|
35
44
|
const executeResult = await firstValueFrom(this.http.post(url, body));
|
|
36
45
|
// Convert ExecuteReportDto to AXPExecutionReportResult format
|
|
@@ -40,6 +49,7 @@ class AXCReportExecuteCommand {
|
|
|
40
49
|
type: 'table',
|
|
41
50
|
items: executeResult.items,
|
|
42
51
|
total: executeResult.totalCount,
|
|
52
|
+
summary: executeResult.summary,
|
|
43
53
|
};
|
|
44
54
|
}
|
|
45
55
|
else if (executeResult.type === 'chart') {
|
|
@@ -92,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
92
102
|
}] });
|
|
93
103
|
|
|
94
104
|
export { AXCReportExecuteCommand };
|
|
95
|
-
//# sourceMappingURL=acorex-connectivity-api-execute.command-
|
|
105
|
+
//# sourceMappingURL=acorex-connectivity-api-execute.command-CjCFEav4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-api-execute.command-CjCFEav4.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, skip, take, sort } = 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 ...parameters,\n ...(skip !== undefined ? { skip } : {}),\n ...(take !== undefined ? { take } : {}),\n ...(sort?.length\n ? {\n sort: sort.map((s) => ({ name: s.name, dir: s.dir })),\n }\n : {}),\n },\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 summary: (executeResult as { summary?: Record<string, number | null> }).summary,\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,CAAA,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO;AAuFhD,IAAA;;IAnFC,MAAM,OAAO,CAAC,OAAkC,EAAA;AAC9C,QAAA,IAAI;AACF,YAAA,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;;YAG7E,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,QAAQ,CAAC;YACnF,IAAI,CAAC,gBA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,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AXP_ROOT_CONFIG_TOKEN, AXPFilterOperatorMiddlewareService, AXPFileStorageService
|
|
2
|
-
import { computeEntityAggregates, AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
|
1
|
+
import { AXP_ROOT_CONFIG_TOKEN, AXPFilterOperatorMiddlewareService, AXPFileStorageService } from '@acorex/platform/common';
|
|
2
|
+
import { computeEntityAggregates, AXPEntityService, AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpParams, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
@@ -12,9 +12,10 @@ import { AXP_USER_AVATAR_PROVIDER } from '@acorex/platform/layout/components';
|
|
|
12
12
|
import { STRATEGY_CONFIG_TOKEN } from '@acorex/platform/layout/widgets';
|
|
13
13
|
import * as i1$1 from 'angular-oauth2-oidc';
|
|
14
14
|
import { OAuthService, OAuthModule } from 'angular-oauth2-oidc';
|
|
15
|
+
import { AXPFileStorageStatus } from '@acorex/platform/contracts';
|
|
15
16
|
import { AXM_AUTH_CONFIG_TOKEN } from '@acorex/modules/auth';
|
|
16
17
|
import { Router } from '@angular/router';
|
|
17
|
-
import {
|
|
18
|
+
import { RootConfig } from '@acorex/modules/security-management';
|
|
18
19
|
import { AXPDataGenerator } from '@acorex/platform/core';
|
|
19
20
|
import { AXCUtilsModule, AXCExternalAuthorizationService } from '@acorex/connectivity/utils';
|
|
20
21
|
import { AXPRuntimeModule, provideCommandSetups } from '@acorex/platform/runtime';
|
|
@@ -916,7 +917,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
916
917
|
|
|
917
918
|
class AXCApiUserAvatarProvider {
|
|
918
919
|
constructor() {
|
|
919
|
-
this.
|
|
920
|
+
this.entityService = inject(AXPEntityService);
|
|
921
|
+
this.userService = this.entityService.withEntity(RootConfig.module.name, RootConfig.entities.users.name).data();
|
|
920
922
|
this.sessionService = inject(AXPSessionService);
|
|
921
923
|
}
|
|
922
924
|
async provide(userId) {
|
|
@@ -936,7 +938,7 @@ class AXCApiUserAvatarProvider {
|
|
|
936
938
|
};
|
|
937
939
|
}
|
|
938
940
|
// Use entity service for other users
|
|
939
|
-
const user = await this.userService.
|
|
941
|
+
const user = await this.userService.byKey(userId);
|
|
940
942
|
if (!user) {
|
|
941
943
|
throw new Error(`User not found for ${userId}`);
|
|
942
944
|
}
|
|
@@ -1127,7 +1129,7 @@ class AXCReportManagementApiModule {
|
|
|
1127
1129
|
provideCommandSetups([
|
|
1128
1130
|
{
|
|
1129
1131
|
key: 'ReportManagement.Report:Execute',
|
|
1130
|
-
command: () => import('./acorex-connectivity-api-execute.command-
|
|
1132
|
+
command: () => import('./acorex-connectivity-api-execute.command-CjCFEav4.mjs').then((c) => c.AXCReportExecuteCommand),
|
|
1131
1133
|
}
|
|
1132
1134
|
]),
|
|
1133
1135
|
], imports: [AXPRuntimeModule] }); }
|
|
@@ -1146,7 +1148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1146
1148
|
provideCommandSetups([
|
|
1147
1149
|
{
|
|
1148
1150
|
key: 'ReportManagement.Report:Execute',
|
|
1149
|
-
command: () => import('./acorex-connectivity-api-execute.command-
|
|
1151
|
+
command: () => import('./acorex-connectivity-api-execute.command-CjCFEav4.mjs').then((c) => c.AXCReportExecuteCommand),
|
|
1150
1152
|
}
|
|
1151
1153
|
]),
|
|
1152
1154
|
],
|