@acorex/connectivity 20.6.0-next.8 → 20.6.0
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/api/index.d.ts +35 -62
- package/fesm2022/{acorex-connectivity-api-execute.command-BwXw_Kn7.mjs → acorex-connectivity-api-execute.command-CQt_HF1B.mjs} +13 -4
- package/fesm2022/acorex-connectivity-api-execute.command-CQt_HF1B.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +184 -276
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs → acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs} +2 -2
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs → acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs} +12 -3
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-BkxMgq1C.mjs → acorex-connectivity-mock-sample.command-CkH5bmEs.mjs} +4 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +13390 -8665
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +1030 -43
- package/package.json +2 -2
- package/fesm2022/acorex-connectivity-api-execute.command-BwXw_Kn7.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-BkxMgq1C.mjs.map +0 -1
package/api/index.d.ts
CHANGED
|
@@ -144,6 +144,12 @@ declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
144
144
|
updateToken(params: {
|
|
145
145
|
[key: string]: any;
|
|
146
146
|
}): Promise<AXPSignInResult | void>;
|
|
147
|
+
/**
|
|
148
|
+
* Signs out the user according to OpenID Connect standards.
|
|
149
|
+
* Tries to call the standard OIDC end_session_endpoint if available, else falls back to configured logoutUrl.
|
|
150
|
+
* Falls back to root landing page on local logout if nothing is provided.
|
|
151
|
+
* This runs in the background (without redirecting user immediately to the endpoint).
|
|
152
|
+
*/
|
|
147
153
|
signout(): Promise<void>;
|
|
148
154
|
refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
|
|
149
155
|
private loadAuthData;
|
|
@@ -213,9 +219,6 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
|
|
|
213
219
|
declare class AXCApiUserAvatarProvider implements AXPUserAvatarProvider {
|
|
214
220
|
private userService;
|
|
215
221
|
private sessionService;
|
|
216
|
-
private http;
|
|
217
|
-
private readonly configs;
|
|
218
|
-
private readonly baseUrl;
|
|
219
222
|
provide(userId: string): Promise<AXPUserAvatarData>;
|
|
220
223
|
}
|
|
221
224
|
|
|
@@ -246,6 +249,31 @@ declare class APIGoogleStrategy extends AXPAuthStrategy {
|
|
|
246
249
|
static ɵprov: i0.ɵɵInjectableDeclaration<APIGoogleStrategy>;
|
|
247
250
|
}
|
|
248
251
|
|
|
252
|
+
declare class AXCSystemInsightReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
253
|
+
private http;
|
|
254
|
+
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
255
|
+
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportCategoryApiProvider, never>;
|
|
257
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportCategoryApiProvider>;
|
|
258
|
+
}
|
|
259
|
+
declare class AXCSystemInsightReportDefinitionApiProvider implements AXPReportDefinitionProvider {
|
|
260
|
+
private http;
|
|
261
|
+
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
262
|
+
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportDefinitionApiProvider, never>;
|
|
264
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportDefinitionApiProvider>;
|
|
265
|
+
}
|
|
266
|
+
declare const AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_API_PROVIDER: {
|
|
267
|
+
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
268
|
+
useClass: typeof AXCSystemInsightReportCategoryApiProvider;
|
|
269
|
+
multi: boolean;
|
|
270
|
+
};
|
|
271
|
+
declare const AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_API_PROVIDER: {
|
|
272
|
+
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
|
|
273
|
+
useClass: typeof AXCSystemInsightReportDefinitionApiProvider;
|
|
274
|
+
multi: boolean;
|
|
275
|
+
};
|
|
276
|
+
|
|
249
277
|
/**
|
|
250
278
|
* Execute Report DTO - Response from report execution API
|
|
251
279
|
*/
|
|
@@ -346,70 +374,20 @@ interface AXCReportLayoutDefinition {
|
|
|
346
374
|
};
|
|
347
375
|
isDefault?: boolean;
|
|
348
376
|
}
|
|
349
|
-
declare class
|
|
377
|
+
declare class AXCReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
350
378
|
private readonly http;
|
|
351
379
|
private readonly configs;
|
|
352
380
|
private readonly baseUrl;
|
|
353
|
-
private categoryDataCache;
|
|
354
|
-
private rootCategoriesCache;
|
|
355
|
-
private pendingRequests;
|
|
356
|
-
private pendingRootCategoriesRequest;
|
|
357
|
-
/**
|
|
358
|
-
* Fetch root categories (no parent). Only root categories without reports and children.
|
|
359
|
-
* Uses cache and pending requests to avoid duplicate API calls.
|
|
360
|
-
*/
|
|
361
|
-
getRootCategories(): Promise<AXCReportCategoryApiItem[]>;
|
|
362
|
-
/**
|
|
363
|
-
* Fetch category data for a given parentId.
|
|
364
|
-
* Returns the parent category with its FolderItems (children) and ReportDefinitionItems (reports).
|
|
365
|
-
* Uses cache to avoid duplicate API calls.
|
|
366
|
-
*/
|
|
367
|
-
getCategoryData(parentId: string): Promise<AXCReportCategoryApiItem | undefined>;
|
|
368
|
-
/**
|
|
369
|
-
* Fetch both child categories and reports for a given parentId.
|
|
370
|
-
* This method ensures only one API call is made and both results are returned.
|
|
371
|
-
*/
|
|
372
|
-
getCategoryChildrenAndReports(parentId: string): Promise<{
|
|
373
|
-
categories: AXCReportCategoryApiItem[];
|
|
374
|
-
reports: AXCReportDefinitionApiItem[];
|
|
375
|
-
}>;
|
|
376
|
-
/**
|
|
377
|
-
* Fetch child categories of a given parent.
|
|
378
|
-
* Uses getCategoryData to get FolderItems (children) from the parent category.
|
|
379
|
-
*/
|
|
380
|
-
getChildCategories(parentId: string): Promise<AXCReportCategoryApiItem[]>;
|
|
381
|
-
/**
|
|
382
|
-
* Fetch report definitions that belong to a specific category.
|
|
383
|
-
* Uses getCategoryData to get ReportDefinitionItems (reports) from the category.
|
|
384
|
-
*/
|
|
385
|
-
getCategoryReports(categoryId: string): Promise<AXCReportDefinitionApiItem[]>;
|
|
386
|
-
/**
|
|
387
|
-
* Fetch a single category by id.
|
|
388
|
-
* First checks cache, then uses getCategoryData if not found in cache.
|
|
389
|
-
*/
|
|
390
|
-
getCategoryById(id: string): Promise<AXCReportCategoryApiItem | undefined>;
|
|
391
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementDataService, never>;
|
|
392
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportManagementDataService>;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Category provider that uses the shared data service.
|
|
396
|
-
* Both providers use the same dataService instance which ensures proper caching.
|
|
397
|
-
*/
|
|
398
|
-
declare class AXCReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
399
|
-
private readonly dataService;
|
|
400
381
|
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
401
382
|
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
402
383
|
private mapApiCategoryToReportCategory;
|
|
403
384
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportCategoryApiProvider, never>;
|
|
404
385
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportCategoryApiProvider>;
|
|
405
386
|
}
|
|
406
|
-
/**
|
|
407
|
-
* Definition provider that uses the shared data service.
|
|
408
|
-
* Both providers use the same dataService instance which ensures proper caching.
|
|
409
|
-
*/
|
|
410
387
|
declare class AXCReportDefinitionApiProvider implements AXPReportDefinitionProvider {
|
|
411
|
-
private readonly dataService;
|
|
412
388
|
private readonly http;
|
|
389
|
+
private readonly configs;
|
|
390
|
+
private readonly baseUrl;
|
|
413
391
|
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
414
392
|
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
415
393
|
private mapApiReportDefinitionItemToReportDefinition;
|
|
@@ -417,11 +395,6 @@ declare class AXCReportDefinitionApiProvider implements AXPReportDefinitionProvi
|
|
|
417
395
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportDefinitionApiProvider, never>;
|
|
418
396
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportDefinitionApiProvider>;
|
|
419
397
|
}
|
|
420
|
-
/**
|
|
421
|
-
* Both providers use the same dataService instance (which is a singleton),
|
|
422
|
-
* ensuring they share the same cache and only one API call is made when both
|
|
423
|
-
* getCategories and getReportsByCategoryId are called for the same categoryId.
|
|
424
|
-
*/
|
|
425
398
|
declare const AXC_REPORT_CATEGORY_API_PROVIDER: {
|
|
426
399
|
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
427
400
|
useClass: typeof AXCReportCategoryApiProvider;
|
|
@@ -433,5 +406,5 @@ declare const AXC_REPORT_DEFINITION_API_PROVIDER: {
|
|
|
433
406
|
multi: boolean;
|
|
434
407
|
};
|
|
435
408
|
|
|
436
|
-
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCApiUserAvatarProvider, AXCReportCategoryApiProvider, AXCReportDefinitionApiProvider, AXCReportManagementApiModule,
|
|
409
|
+
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCApiUserAvatarProvider, AXCReportCategoryApiProvider, AXCReportDefinitionApiProvider, AXCReportManagementApiModule, AXCSystemInsightReportCategoryApiProvider, AXCSystemInsightReportDefinitionApiProvider, AXC_REPORT_CATEGORY_API_PROVIDER, AXC_REPORT_DEFINITION_API_PROVIDER, AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_API_PROVIDER, AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_API_PROVIDER, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
|
|
437
410
|
export type { AXCReportCategoryApiItem, AXCReportCategoryApiResponse, AXCReportDefinitionApiItem, AXCReportDefinitionApiResponse, AXCReportLayoutDefinition, AXCReportParameter, AXCReportParameterGroup, AXPExecuteReportDto, AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
|
|
@@ -62,14 +62,23 @@ class AXCReportExecuteCommand {
|
|
|
62
62
|
}
|
|
63
63
|
// Return the combined layout configuration and data
|
|
64
64
|
return {
|
|
65
|
-
|
|
66
|
-
data:
|
|
65
|
+
success: true,
|
|
66
|
+
data: {
|
|
67
|
+
...layoutDefinition.layout,
|
|
68
|
+
data: executionResult,
|
|
69
|
+
},
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
catch (error) {
|
|
70
73
|
console.error('Error executing report:', error);
|
|
71
74
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
72
|
-
|
|
75
|
+
return {
|
|
76
|
+
success: false,
|
|
77
|
+
message: {
|
|
78
|
+
type: 'error',
|
|
79
|
+
text: `Failed to execute report: ${errorMessage}`,
|
|
80
|
+
},
|
|
81
|
+
};
|
|
73
82
|
}
|
|
74
83
|
}
|
|
75
84
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -83,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
83
92
|
}] });
|
|
84
93
|
|
|
85
94
|
export { AXCReportExecuteCommand };
|
|
86
|
-
//# sourceMappingURL=acorex-connectivity-api-execute.command-
|
|
95
|
+
//# sourceMappingURL=acorex-connectivity-api-execute.command-CQt_HF1B.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-api-execute.command-CQt_HF1B.mjs","sources":["../tmp-esm2022/api/lib/report-management/execute.command.js"],"sourcesContent":["import { AXPReportDefinitionService, } 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 * as i0 from \"@angular/core\";\nexport class AXCReportExecuteCommand {\n constructor() {\n this.http = inject(HttpClient);\n this.reportDefinitionService = inject(AXPReportDefinitionService);\n this.configs = inject(AXP_ROOT_CONFIG_TOKEN);\n this.baseUrl = this.configs.baseUrl;\n }\n //#region ---- Command Implementation ----\n async execute(context) {\n try {\n const { reportId, layoutId, parameters } = context;\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 // Find the specific layout\n const layoutDefinition = reportDefinition.layouts.find((l) => l.id === layoutId);\n if (!layoutDefinition) {\n throw new Error(`Layout with ID ${layoutId} not found in report ${reportId}`);\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 const executeResult = await firstValueFrom(this.http.post(url, body));\n // Convert ExecuteReportDto to AXPExecutionReportResult format\n let executionResult;\n if (executeResult.type === 'table') {\n executionResult = {\n type: 'table',\n items: executeResult.items,\n total: executeResult.totalCount,\n };\n }\n else if (executeResult.type === 'chart') {\n executionResult = {\n type: 'chart',\n data: executeResult.items[0] || {},\n };\n }\n else if (executeResult.type === 'cards') {\n executionResult = {\n type: 'cards',\n items: executeResult.items,\n };\n }\n else {\n executionResult = {\n type: 'custom',\n data: executeResult.items,\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 }\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',\n text: `Failed to execute report: ${errorMessage}`,\n },\n };\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: AXCReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: AXCReportExecuteCommand, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: AXCReportExecuteCommand, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0ZS5jb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZ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