@acorex/connectivity 20.6.0-next.2 → 20.6.0-next.20

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 (21) hide show
  1. package/api/index.d.ts +168 -2
  2. package/fesm2022/{acorex-connectivity-api-execute.command-BesxhDsD.mjs → acorex-connectivity-api-execute.command-CQt_HF1B.mjs} +16 -7
  3. package/fesm2022/acorex-connectivity-api-execute.command-CQt_HF1B.mjs.map +1 -0
  4. package/fesm2022/acorex-connectivity-api.mjs +224 -184
  5. package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
  6. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Cii5As1T.mjs → acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs} +5 -5
  7. package/fesm2022/acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map +1 -0
  8. package/fesm2022/{acorex-connectivity-mock-distribution-record.command-w3zoeELy.mjs → acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs} +15 -6
  9. package/fesm2022/acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map +1 -0
  10. package/fesm2022/{acorex-connectivity-mock-sample.command-C5jZuYcW.mjs → acorex-connectivity-mock-sample.command-CkH5bmEs.mjs} +7 -4
  11. package/fesm2022/acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map +1 -0
  12. package/fesm2022/acorex-connectivity-mock.mjs +15875 -9867
  13. package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
  14. package/fesm2022/acorex-connectivity-utils.mjs +7 -7
  15. package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
  16. package/mock/index.d.ts +1317 -95
  17. package/package.json +2 -2
  18. package/fesm2022/acorex-connectivity-api-execute.command-BesxhDsD.mjs.map +0 -1
  19. package/fesm2022/acorex-connectivity-mock-category-with-items.query-Cii5As1T.mjs.map +0 -1
  20. package/fesm2022/acorex-connectivity-mock-distribution-record.command-w3zoeELy.mjs.map +0 -1
  21. package/fesm2022/acorex-connectivity-mock-sample.command-C5jZuYcW.mjs.map +0 -1
package/api/index.d.ts CHANGED
@@ -9,6 +9,9 @@ import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXP
9
9
  import * as i3 from '@acorex/connectivity/utils';
10
10
  import * as i1 from '@acorex/platform/runtime';
11
11
  import { Observable } from 'rxjs';
12
+ import { AXPUserAvatarProvider, AXPUserAvatarData } from '@acorex/platform/layout/components';
13
+ import * as _acorex_modules_report_management from '@acorex/modules/report-management';
14
+ import { AXPReportCategoryProvider, AXPReportCategory, AXPReportDefinitionProvider, AXPReportDefinition } from '@acorex/modules/report-management';
12
15
 
13
16
  declare class AXCApiEntityStorageService implements AXPEntityStorageService<string, any> {
14
17
  private http;
@@ -207,6 +210,12 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
207
210
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcTenantLoader>;
208
211
  }
209
212
 
213
+ declare class AXCApiUserAvatarProvider implements AXPUserAvatarProvider {
214
+ private userService;
215
+ private sessionService;
216
+ provide(userId: string): Promise<AXPUserAvatarData>;
217
+ }
218
+
210
219
  declare class APIGoogleStrategy extends AXPAuthStrategy {
211
220
  private aXMAuthConfigs;
212
221
  private oauthService;
@@ -234,5 +243,162 @@ declare class APIGoogleStrategy extends AXPAuthStrategy {
234
243
  static ɵprov: i0.ɵɵInjectableDeclaration<APIGoogleStrategy>;
235
244
  }
236
245
 
237
- export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCReportManagementApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
238
- export type { AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
246
+ declare class AXCSystemInsightReportCategoryApiProvider implements AXPReportCategoryProvider {
247
+ private http;
248
+ getList(parentId?: string): Promise<AXPReportCategory[]>;
249
+ getById(id: string): Promise<AXPReportCategory | undefined>;
250
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportCategoryApiProvider, never>;
251
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportCategoryApiProvider>;
252
+ }
253
+ declare class AXCSystemInsightReportDefinitionApiProvider implements AXPReportDefinitionProvider {
254
+ private http;
255
+ getList(categoryId: string): Promise<AXPReportDefinition[]>;
256
+ getById(id: string): Promise<AXPReportDefinition | undefined>;
257
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportDefinitionApiProvider, never>;
258
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportDefinitionApiProvider>;
259
+ }
260
+ declare const AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_API_PROVIDER: {
261
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
262
+ useClass: typeof AXCSystemInsightReportCategoryApiProvider;
263
+ multi: boolean;
264
+ };
265
+ declare const AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_API_PROVIDER: {
266
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
267
+ useClass: typeof AXCSystemInsightReportDefinitionApiProvider;
268
+ multi: boolean;
269
+ };
270
+
271
+ /**
272
+ * Execute Report DTO - Response from report execution API
273
+ */
274
+ interface AXPExecuteReportDto {
275
+ type: string;
276
+ items: Record<string, unknown>[];
277
+ totalCount: number;
278
+ }
279
+ /**
280
+ * API Response for Category endpoint
281
+ * Used by: GET /api/v1/global/report-management/category
282
+ * GET /api/v1/global/report-management/category/{parentId}
283
+ */
284
+ interface AXCReportCategoryApiResponse {
285
+ totalCount: number;
286
+ items: AXCReportCategoryApiItem[];
287
+ }
288
+ /**
289
+ * Category Item with recursive structure
290
+ * Each category can contain child categories (folderItems) and reports (reportDefinitionItems)
291
+ */
292
+ interface AXCReportCategoryApiItem {
293
+ reportCategoryParentId: string | null;
294
+ name: string;
295
+ title: string;
296
+ description: string | null;
297
+ folderCount: number;
298
+ itemCount: number;
299
+ isArchived: boolean;
300
+ reportDefinitionItems: AXCReportDefinitionApiItem[];
301
+ folderItems: AXCReportCategoryApiItem[];
302
+ id: string;
303
+ }
304
+ /**
305
+ * Report Definition Item (in category list, without full layout)
306
+ */
307
+ interface AXCReportDefinitionApiItem {
308
+ categoryIds: string[];
309
+ name: string;
310
+ title: string;
311
+ description: string | null;
312
+ isArchived: boolean;
313
+ id: string;
314
+ }
315
+ /**
316
+ * Full Report Definition with complete details including layouts
317
+ * Used by: GET /api/v1/global/report-management/report/{reportId}
318
+ */
319
+ interface AXCReportDefinitionApiResponse {
320
+ id: string;
321
+ name: string;
322
+ title: string;
323
+ description: string | null;
324
+ categoryIds: string[];
325
+ parameterGroups: AXCReportParameterGroup[];
326
+ layouts: AXCReportLayoutDefinition[];
327
+ defaultLayoutId: string;
328
+ }
329
+ /**
330
+ * Parameter Group for report parameters
331
+ */
332
+ interface AXCReportParameterGroup {
333
+ name: string;
334
+ title: string;
335
+ parameters: AXCReportParameter[];
336
+ }
337
+ /**
338
+ * Report Parameter definition
339
+ */
340
+ interface AXCReportParameter {
341
+ path: string;
342
+ title: string;
343
+ description?: string;
344
+ widget: {
345
+ type: string;
346
+ path?: string | null;
347
+ options?: any;
348
+ valueTransforms?: any;
349
+ };
350
+ }
351
+ /**
352
+ * Layout Definition for report display
353
+ */
354
+ interface AXCReportLayoutDefinition {
355
+ id: string;
356
+ title: string;
357
+ layout: any;
358
+ dataSource?: {
359
+ type: string;
360
+ name?: string;
361
+ provider?: string;
362
+ };
363
+ export?: {
364
+ fileNameTemplate: string;
365
+ pdf?: any;
366
+ excel?: any;
367
+ csv?: any;
368
+ };
369
+ isDefault?: boolean;
370
+ }
371
+ declare class AXCReportCategoryApiProvider implements AXPReportCategoryProvider {
372
+ private readonly http;
373
+ private readonly configs;
374
+ private readonly baseUrl;
375
+ getList(parentId?: string): Promise<AXPReportCategory[]>;
376
+ getById(id: string): Promise<AXPReportCategory | undefined>;
377
+ private mapApiCategoryToReportCategory;
378
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportCategoryApiProvider, never>;
379
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportCategoryApiProvider>;
380
+ }
381
+ declare class AXCReportDefinitionApiProvider implements AXPReportDefinitionProvider {
382
+ private readonly http;
383
+ private readonly configs;
384
+ private readonly baseUrl;
385
+ getList(categoryId: string): Promise<AXPReportDefinition[]>;
386
+ getById(id: string): Promise<AXPReportDefinition | undefined>;
387
+ private mapApiReportDefinitionItemToReportDefinition;
388
+ private mapApiReportDefinitionToReportDefinition;
389
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportDefinitionApiProvider, never>;
390
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportDefinitionApiProvider>;
391
+ }
392
+ declare const AXC_REPORT_CATEGORY_API_PROVIDER: {
393
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
394
+ useClass: typeof AXCReportCategoryApiProvider;
395
+ multi: boolean;
396
+ };
397
+ declare const AXC_REPORT_DEFINITION_API_PROVIDER: {
398
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
399
+ useClass: typeof AXCReportDefinitionApiProvider;
400
+ multi: boolean;
401
+ };
402
+
403
+ 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 };
404
+ export type { AXCReportCategoryApiItem, AXCReportCategoryApiResponse, AXCReportDefinitionApiItem, AXCReportDefinitionApiResponse, AXCReportLayoutDefinition, AXCReportParameter, AXCReportParameterGroup, AXPExecuteReportDto, AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
@@ -62,20 +62,29 @@ class AXCReportExecuteCommand {
62
62
  }
63
63
  // Return the combined layout configuration and data
64
64
  return {
65
- ...layoutDefinition.layout,
66
- data: executionResult,
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
- throw new Error(`Failed to execute report: ${errorMessage}`);
75
+ return {
76
+ success: false,
77
+ message: {
78
+ type: 'error',
79
+ text: `Failed to execute report: ${errorMessage}`,
80
+ },
81
+ };
73
82
  }
74
83
  }
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: AXCReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
76
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: AXCReportExecuteCommand, providedIn: 'root' }); }
84
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
85
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportExecuteCommand, providedIn: 'root' }); }
77
86
  }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: AXCReportExecuteCommand, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXCReportExecuteCommand, decorators: [{
79
88
  type: Injectable,
80
89
  args: [{
81
90
  providedIn: 'root',
@@ -83,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
83
92
  }] });
84
93
 
85
94
  export { AXCReportExecuteCommand };
86
- //# sourceMappingURL=acorex-connectivity-api-execute.command-BesxhDsD.mjs.map
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0ZS5jb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvYXBpL3NyYy9saWIvcmVwb3J0LW1hbmFnZW1lbnQvZXhlY3V0ZS5jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFLTCwwQkFBM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VjdXRpb25SZXN1bHQgPSB7XG4gICAgICAgICAgdHlwZTogJ2NhcmRzJyxcbiAgICAgICAgICBpdGVtczogZXhlY3V0ZVJlc3VsdC5pdGVtcyxcbiAgICAgICAgfTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGV4ZWN1dGlvblJlc3VsdCA9IHtcbiAgICAgICAgICB0eXBlOiAnY3VzdG9tJyxcbiAgICAgICAgICBkYXRhOiBleGVjdXRlUmVzdWx0Lml0ZW1zLFxuICAgICAgICB9O1xuICAgICAgfVxuXG4gICAgICAvLyBSZXR1cm4gdGhlIGNvbWJpbmVkIGxheW91dCBjb25maWd1cmF0aW9uIGFuZCBkYXRhXG4gICAgICByZXR1cm4ge1xuICAgICAgICBzdWNjZXNzOiB0cnVlLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgLi4ubGF5b3V0RGVmaW5pdGlvbi5sYXlvdXQsXG4gICAgICAgICAgZGF0YTogZXhlY3V0aW9uUmVzdWx0LFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgY29uc29sZS5lcnJvcignRXJyb3IgZXhlY3V0aW5nIHJlcG9ydDonLCBlcnJvcik7XG4gICAgICBjb25zdCBlcnJvck1lc3NhZ2UgPSBlcnJvciBpbnN0YW5jZW9mIEVycm9yID8gZXJyb3IubWVzc2FnZSA6ICdVbmtub3duIGVycm9yJztcbiAgICAgIHJldHVybiB7XG4gICAgICAgIHN1Y2Nlc3M6IGZhbHNlLFxuICAgICAgICBtZXNzYWdlOiB7XG4gICAgICAgICAgdHlwZTogJ2Vycm9yJyBhcyBjb25zdCxcbiAgICAgICAgICB0ZXh0OiBgRmFpbGVkIHRvIGV4ZWN1dGUgcmVwb3J0OiAke2Vycm9yTWVzc2FnZX1gLFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICB9XG4gIH1cblxuICAvLyNlbmRyZWdpb25cbn1cbiJdfQ=="],"names":[],"mappings":";;;;;;;AA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