@acorex/connectivity 20.0.23 → 20.1.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 +62 -27
- package/fesm2022/acorex-connectivity-api.mjs +862 -152
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1124 -748
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +49 -26
- package/package.json +1 -1
package/mock/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import Dexie from 'dexie';
|
2
|
+
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
3
|
+
import { AXPSessionService, AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPRefreshTokenResult } from '@acorex/platform/auth';
|
4
|
+
import { AXPLockService, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPReportCategory, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/platform/common';
|
2
5
|
import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
3
6
|
import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
|
4
|
-
import * as i1$1 from '@acorex/platform/auth';
|
5
|
-
import { AXPSessionService, AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPRefreshTokenResult } from '@acorex/platform/auth';
|
6
|
-
import { AXPLockService, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPReportCategory, AXPReportDefinition } from '@acorex/platform/common';
|
7
7
|
import * as i0 from '@angular/core';
|
8
8
|
import { Injector } from '@angular/core';
|
9
9
|
import * as i1 from '@acorex/platform/runtime';
|
10
|
+
import { Router } from '@angular/router';
|
10
11
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
11
12
|
import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
|
12
|
-
import { AXPWidgetDataSourceProvider, AXPWidgetDataSource } from '@acorex/platform/layout/builder';
|
13
13
|
|
14
14
|
declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
|
15
15
|
protected sessionService: AXPSessionService;
|
@@ -174,7 +174,7 @@ declare class AXCDataManagementMockModule {
|
|
174
174
|
declare class AXCMockModule {
|
175
175
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
176
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
177
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof
|
177
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCFOrganizationManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTextTemplateManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCSchedulerJobManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCIssueManagementMockModule, typeof AXCLogManagementMockModule, typeof AXMCalendarManagementMockModule, typeof AXCDataManagementMockModule], never>;
|
178
178
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
179
179
|
}
|
180
180
|
|
@@ -182,13 +182,14 @@ interface MockUserPassCredentials extends AXPBaseCredentials {
|
|
182
182
|
username: string;
|
183
183
|
password: string;
|
184
184
|
}
|
185
|
-
declare class MOCKStrategy
|
185
|
+
declare class MOCKStrategy extends AXPAuthStrategy {
|
186
186
|
constructor();
|
187
187
|
private entityRegistery;
|
188
188
|
get name(): string;
|
189
189
|
signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
|
190
190
|
signout(): Promise<void>;
|
191
191
|
refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
|
192
|
+
startAuthorizationFlow(tenantId: string, applicationId: string): Promise<void>;
|
192
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<MOCKStrategy, never>;
|
193
194
|
static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
|
194
195
|
}
|
@@ -246,6 +247,28 @@ declare class AXCFileStorageService implements AXPFileStorageService {
|
|
246
247
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
|
247
248
|
}
|
248
249
|
|
250
|
+
declare class AXCMockOidcStrategy extends AXPAuthStrategy {
|
251
|
+
sessionService: AXPSessionService;
|
252
|
+
storageService: AXPEntityStorageService<any, any, any, any, any>;
|
253
|
+
router: Router;
|
254
|
+
applicationLoader: _acorex_platform_auth.AXPApplicationLoader;
|
255
|
+
tenantLoader: _acorex_platform_auth.AXPTenantLoader;
|
256
|
+
mockIdTokenValue: any;
|
257
|
+
get name(): string;
|
258
|
+
signin(credentials: AXPBaseCredentials): Promise<AXPSignInResult>;
|
259
|
+
signout(): Promise<void>;
|
260
|
+
refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
|
261
|
+
startAuthorizationFlow(tenantId: string, applicationId: string): Promise<void>;
|
262
|
+
completeAuthorizationCodeFlow(options: {
|
263
|
+
code: string;
|
264
|
+
redirectUri: string;
|
265
|
+
clientId?: string;
|
266
|
+
tokenEndpoint?: string;
|
267
|
+
}): Promise<void>;
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockOidcStrategy, never>;
|
269
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCMockOidcStrategy>;
|
270
|
+
}
|
271
|
+
|
249
272
|
declare const APPLICATIONS: {
|
250
273
|
id: string;
|
251
274
|
name: string;
|
@@ -408,21 +431,25 @@ declare class AXPReportManagementDataSeeder implements AXPDataSeeder {
|
|
408
431
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPReportManagementDataSeeder>;
|
409
432
|
}
|
410
433
|
|
411
|
-
|
412
|
-
reportId: string;
|
413
|
-
parameters: Record<string, any>;
|
414
|
-
page?: number;
|
415
|
-
pageSize?: number;
|
416
|
-
}
|
417
|
-
interface AXMReportExecuteCommandOutput {
|
418
|
-
data: any[];
|
419
|
-
total: number;
|
420
|
-
page: number;
|
421
|
-
pageSize: number;
|
422
|
-
}
|
423
|
-
declare class AXMReportExecuteCommand {
|
434
|
+
declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
|
424
435
|
private readonly queryService;
|
425
|
-
|
436
|
+
private readonly reportDataCache;
|
437
|
+
private readonly CACHE_TTL_MS;
|
438
|
+
private readonly DEFAULT_TOTAL_ITEMS;
|
439
|
+
constructor();
|
440
|
+
execute(context: AXPLayoutExecutionContext): Promise<AXPExecutionReportCommandResult>;
|
441
|
+
private generateLayoutData;
|
442
|
+
private generateTableData;
|
443
|
+
private generateChartData;
|
444
|
+
private getCachedOrGenerateReportData;
|
445
|
+
private generateCacheKey;
|
446
|
+
private generateReportVersion;
|
447
|
+
private isCacheValid;
|
448
|
+
private clearExpiredCache;
|
449
|
+
/**
|
450
|
+
* Manually clear all cached report data (useful for debugging or forcing refresh)
|
451
|
+
*/
|
452
|
+
clearCache(): void;
|
426
453
|
private generateMockDataForReport;
|
427
454
|
private generateFinancialData;
|
428
455
|
private generateIncomeData;
|
@@ -463,10 +490,6 @@ declare const TEXT_TEMPLATE_CATEGORY: {
|
|
463
490
|
}[];
|
464
491
|
declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
|
465
492
|
|
466
|
-
declare class AXPSecurityManagementMockWidgetDataSourceProvider implements AXPWidgetDataSourceProvider {
|
467
|
-
items(): Promise<AXPWidgetDataSource[]>;
|
468
|
-
}
|
469
|
-
|
470
493
|
declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
|
471
494
|
private storageService;
|
472
495
|
seed(): Promise<void>;
|
@@ -482,5 +505,5 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
|
|
482
505
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
|
483
506
|
}
|
484
507
|
|
485
|
-
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder,
|
486
|
-
export type {
|
508
|
+
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCMockOidcStrategy, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, CATEGORY_REPORT_MAPPING, DASHBOARDS, EDITIONS, ENTITIES, FEATURES, GLOBAL_VARIABLES, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, generateRandomDashboard };
|
509
|
+
export type { MockUserPassCredentials };
|