@acorex/connectivity 20.6.0-next.9 → 21.0.0-next.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 +40 -65
- package/fesm2022/{acorex-connectivity-api-execute.command-BwXw_Kn7.mjs → acorex-connectivity-api-execute.command-SGNBLcOi.mjs} +14 -5
- package/fesm2022/acorex-connectivity-api-execute.command-SGNBLcOi.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +199 -266
- 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 +22194 -14850
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +660 -636
- package/package.json +6 -6
- 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
|
@@ -5,7 +5,7 @@ import * as i0 from '@angular/core';
|
|
|
5
5
|
import * as i1$1 from 'angular-oauth2-oidc';
|
|
6
6
|
import { AuthConfig } from 'angular-oauth2-oidc';
|
|
7
7
|
import * as i2 from '@acorex/platform/auth';
|
|
8
|
-
import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult,
|
|
8
|
+
import { AXPApplicationLoader, AXPSessionContext, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPPermissionLoader, AXPPermission, AXPTenantLoader, AXPTenant } from '@acorex/platform/auth';
|
|
9
9
|
import * as i3 from '@acorex/connectivity/utils';
|
|
10
10
|
import * as i1 from '@acorex/platform/runtime';
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
@@ -17,7 +17,6 @@ declare class AXCApiEntityStorageService implements AXPEntityStorageService<stri
|
|
|
17
17
|
private http;
|
|
18
18
|
private configs;
|
|
19
19
|
private filterService;
|
|
20
|
-
private entityResolver;
|
|
21
20
|
private mainUrl;
|
|
22
21
|
private readonly API_VERSION;
|
|
23
22
|
private readonly DEFAULT_AREA;
|
|
@@ -60,7 +59,7 @@ declare class AXMOidcApplicationLoader implements AXPApplicationLoader {
|
|
|
60
59
|
private apiGetApps;
|
|
61
60
|
private apiSetApp;
|
|
62
61
|
constructor(http: HttpClient);
|
|
63
|
-
getList():
|
|
62
|
+
getList(context: AXPSessionContext): Promise<AXPApplication[]>;
|
|
64
63
|
set(application: AXPApplication): Promise<void>;
|
|
65
64
|
private mapToAXPApplication;
|
|
66
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcApplicationLoader, never>;
|
|
@@ -127,7 +126,7 @@ declare class AXMConfigurationService {
|
|
|
127
126
|
|
|
128
127
|
declare class AXMOidcFeatureLoader implements AXPFeatureLoader {
|
|
129
128
|
private list;
|
|
130
|
-
getList():
|
|
129
|
+
getList(context: AXPSessionContext): Promise<AXPFeature[]>;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
@@ -144,6 +143,12 @@ declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
|
144
143
|
updateToken(params: {
|
|
145
144
|
[key: string]: any;
|
|
146
145
|
}): Promise<AXPSignInResult | void>;
|
|
146
|
+
/**
|
|
147
|
+
* Signs out the user according to OpenID Connect standards.
|
|
148
|
+
* Tries to call the standard OIDC end_session_endpoint if available, else falls back to configured logoutUrl.
|
|
149
|
+
* Falls back to root landing page on local logout if nothing is provided.
|
|
150
|
+
* This runs in the background (without redirecting user immediately to the endpoint).
|
|
151
|
+
*/
|
|
147
152
|
signout(): Promise<void>;
|
|
148
153
|
refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
|
|
149
154
|
private loadAuthData;
|
|
@@ -192,7 +197,7 @@ declare class AXMOidcPermissionLoader implements AXPPermissionLoader {
|
|
|
192
197
|
private configs;
|
|
193
198
|
private apiGetConfig;
|
|
194
199
|
constructor(http: HttpClient);
|
|
195
|
-
getList(context: AXPSessionContext):
|
|
200
|
+
getList(context: AXPSessionContext): Promise<AXPPermission[]>;
|
|
196
201
|
mapTo(jsonObj: any): string[];
|
|
197
202
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcPermissionLoader, never>;
|
|
198
203
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcPermissionLoader>;
|
|
@@ -203,7 +208,7 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
|
|
|
203
208
|
private configs;
|
|
204
209
|
private apiGetTenants;
|
|
205
210
|
constructor(http: HttpClient);
|
|
206
|
-
getList():
|
|
211
|
+
getList(context: AXPSessionContext): Promise<AXPTenant[]>;
|
|
207
212
|
set(tenant: AXPTenant): Promise<void>;
|
|
208
213
|
private mapToAXPTenant;
|
|
209
214
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMOidcTenantLoader, never>;
|
|
@@ -243,6 +248,31 @@ declare class APIGoogleStrategy extends AXPAuthStrategy {
|
|
|
243
248
|
static ɵprov: i0.ɵɵInjectableDeclaration<APIGoogleStrategy>;
|
|
244
249
|
}
|
|
245
250
|
|
|
251
|
+
declare class AXCSystemInsightReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
252
|
+
private http;
|
|
253
|
+
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
254
|
+
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportCategoryApiProvider, never>;
|
|
256
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportCategoryApiProvider>;
|
|
257
|
+
}
|
|
258
|
+
declare class AXCSystemInsightReportDefinitionApiProvider implements AXPReportDefinitionProvider {
|
|
259
|
+
private http;
|
|
260
|
+
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
261
|
+
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
262
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportDefinitionApiProvider, never>;
|
|
263
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportDefinitionApiProvider>;
|
|
264
|
+
}
|
|
265
|
+
declare const AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_API_PROVIDER: {
|
|
266
|
+
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
267
|
+
useClass: typeof AXCSystemInsightReportCategoryApiProvider;
|
|
268
|
+
multi: boolean;
|
|
269
|
+
};
|
|
270
|
+
declare const AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_API_PROVIDER: {
|
|
271
|
+
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
|
|
272
|
+
useClass: typeof AXCSystemInsightReportDefinitionApiProvider;
|
|
273
|
+
multi: boolean;
|
|
274
|
+
};
|
|
275
|
+
|
|
246
276
|
/**
|
|
247
277
|
* Execute Report DTO - Response from report execution API
|
|
248
278
|
*/
|
|
@@ -343,70 +373,20 @@ interface AXCReportLayoutDefinition {
|
|
|
343
373
|
};
|
|
344
374
|
isDefault?: boolean;
|
|
345
375
|
}
|
|
346
|
-
declare class
|
|
376
|
+
declare class AXCReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
347
377
|
private readonly http;
|
|
348
378
|
private readonly configs;
|
|
349
379
|
private readonly baseUrl;
|
|
350
|
-
private categoryDataCache;
|
|
351
|
-
private rootCategoriesCache;
|
|
352
|
-
private pendingRequests;
|
|
353
|
-
private pendingRootCategoriesRequest;
|
|
354
|
-
/**
|
|
355
|
-
* Fetch root categories (no parent). Only root categories without reports and children.
|
|
356
|
-
* Uses cache and pending requests to avoid duplicate API calls.
|
|
357
|
-
*/
|
|
358
|
-
getRootCategories(): Promise<AXCReportCategoryApiItem[]>;
|
|
359
|
-
/**
|
|
360
|
-
* Fetch category data for a given parentId.
|
|
361
|
-
* Returns the parent category with its FolderItems (children) and ReportDefinitionItems (reports).
|
|
362
|
-
* Uses cache to avoid duplicate API calls.
|
|
363
|
-
*/
|
|
364
|
-
getCategoryData(parentId: string): Promise<AXCReportCategoryApiItem | undefined>;
|
|
365
|
-
/**
|
|
366
|
-
* Fetch both child categories and reports for a given parentId.
|
|
367
|
-
* This method ensures only one API call is made and both results are returned.
|
|
368
|
-
*/
|
|
369
|
-
getCategoryChildrenAndReports(parentId: string): Promise<{
|
|
370
|
-
categories: AXCReportCategoryApiItem[];
|
|
371
|
-
reports: AXCReportDefinitionApiItem[];
|
|
372
|
-
}>;
|
|
373
|
-
/**
|
|
374
|
-
* Fetch child categories of a given parent.
|
|
375
|
-
* Uses getCategoryData to get FolderItems (children) from the parent category.
|
|
376
|
-
*/
|
|
377
|
-
getChildCategories(parentId: string): Promise<AXCReportCategoryApiItem[]>;
|
|
378
|
-
/**
|
|
379
|
-
* Fetch report definitions that belong to a specific category.
|
|
380
|
-
* Uses getCategoryData to get ReportDefinitionItems (reports) from the category.
|
|
381
|
-
*/
|
|
382
|
-
getCategoryReports(categoryId: string): Promise<AXCReportDefinitionApiItem[]>;
|
|
383
|
-
/**
|
|
384
|
-
* Fetch a single category by id.
|
|
385
|
-
* First checks cache, then uses getCategoryData if not found in cache.
|
|
386
|
-
*/
|
|
387
|
-
getCategoryById(id: string): Promise<AXCReportCategoryApiItem | undefined>;
|
|
388
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementDataService, never>;
|
|
389
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportManagementDataService>;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Category provider that uses the shared data service.
|
|
393
|
-
* Both providers use the same dataService instance which ensures proper caching.
|
|
394
|
-
*/
|
|
395
|
-
declare class AXCReportCategoryApiProvider implements AXPReportCategoryProvider {
|
|
396
|
-
private readonly dataService;
|
|
397
380
|
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
398
381
|
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
399
382
|
private mapApiCategoryToReportCategory;
|
|
400
383
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportCategoryApiProvider, never>;
|
|
401
384
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportCategoryApiProvider>;
|
|
402
385
|
}
|
|
403
|
-
/**
|
|
404
|
-
* Definition provider that uses the shared data service.
|
|
405
|
-
* Both providers use the same dataService instance which ensures proper caching.
|
|
406
|
-
*/
|
|
407
386
|
declare class AXCReportDefinitionApiProvider implements AXPReportDefinitionProvider {
|
|
408
|
-
private readonly dataService;
|
|
409
387
|
private readonly http;
|
|
388
|
+
private readonly configs;
|
|
389
|
+
private readonly baseUrl;
|
|
410
390
|
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
411
391
|
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
412
392
|
private mapApiReportDefinitionItemToReportDefinition;
|
|
@@ -414,11 +394,6 @@ declare class AXCReportDefinitionApiProvider implements AXPReportDefinitionProvi
|
|
|
414
394
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportDefinitionApiProvider, never>;
|
|
415
395
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCReportDefinitionApiProvider>;
|
|
416
396
|
}
|
|
417
|
-
/**
|
|
418
|
-
* Both providers use the same dataService instance (which is a singleton),
|
|
419
|
-
* ensuring they share the same cache and only one API call is made when both
|
|
420
|
-
* getCategories and getReportsByCategoryId are called for the same categoryId.
|
|
421
|
-
*/
|
|
422
397
|
declare const AXC_REPORT_CATEGORY_API_PROVIDER: {
|
|
423
398
|
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
424
399
|
useClass: typeof AXCReportCategoryApiProvider;
|
|
@@ -430,5 +405,5 @@ declare const AXC_REPORT_DEFINITION_API_PROVIDER: {
|
|
|
430
405
|
multi: boolean;
|
|
431
406
|
};
|
|
432
407
|
|
|
433
|
-
export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXCApiUserAvatarProvider, AXCReportCategoryApiProvider, AXCReportDefinitionApiProvider, AXCReportManagementApiModule,
|
|
408
|
+
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 };
|
|
434
409
|
export type { AXCReportCategoryApiItem, AXCReportCategoryApiResponse, AXCReportDefinitionApiItem, AXCReportDefinitionApiResponse, AXCReportLayoutDefinition, AXCReportParameter, AXCReportParameterGroup, AXPExecuteReportDto, AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
|
|
@@ -15,7 +15,7 @@ class AXCReportExecuteCommand {
|
|
|
15
15
|
//#region ---- Command Implementation ----
|
|
16
16
|
async execute(context) {
|
|
17
17
|
try {
|
|
18
|
-
const { reportId, layoutId, parameters } = context;
|
|
18
|
+
const { reportId, layoutId, filters: parameters } = context;
|
|
19
19
|
// Get the report definition to find the layout
|
|
20
20
|
const reportDefinition = await this.reportDefinitionService.getReportById(reportId);
|
|
21
21
|
if (!reportDefinition) {
|
|
@@ -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-SGNBLcOi.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-connectivity-api-execute.command-SGNBLcOi.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, filters: 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0ZS5jb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb25uZWN0aXZpdHkvYXBpL3NyYy9saWIvcmVwb3J0LW1hbmFnZW1lbnQvZXhlY3V0ZS5jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFLTCwwQkFBMEIsR0FFM0IsTUFBTSxtQ0FBbUMsQ0FBQztBQUMzQyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbEQsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQs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