@acorex/connectivity 20.0.20 → 20.0.22
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/mock/index.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import Dexie from 'dexie';
|
2
2
|
import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
3
3
|
import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
|
4
|
-
import * as i1 from '@acorex/platform/auth';
|
4
|
+
import * as i1$1 from '@acorex/platform/auth';
|
5
5
|
import { AXPSessionService, AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPRefreshTokenResult } from '@acorex/platform/auth';
|
6
|
-
import { AXPLockService, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPReportCategory, AXPReportDefinition } from '@acorex/platform/common';
|
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
|
+
import * as i1 from '@acorex/platform/runtime';
|
9
10
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
10
11
|
import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
|
11
12
|
import { AXPWidgetDataSourceProvider, AXPWidgetDataSource } from '@acorex/platform/layout/builder';
|
@@ -51,7 +52,7 @@ declare class AXCFOrganizationManagementMockModule {
|
|
51
52
|
|
52
53
|
declare class AXCReportManagementMockModule {
|
53
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementMockModule, never>;
|
54
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never,
|
55
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, [typeof i1.AXPRuntimeModule], never>;
|
55
56
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCReportManagementMockModule>;
|
56
57
|
}
|
57
58
|
|
@@ -160,7 +161,7 @@ declare class AXCDataManagementMockModule {
|
|
160
161
|
declare class AXCMockModule {
|
161
162
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
162
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
163
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1.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>;
|
164
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1$1.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>;
|
164
165
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
165
166
|
}
|
166
167
|
|
@@ -307,6 +308,43 @@ declare class AXCApplicationTemplateDataSeeder implements AXPDataSeeder {
|
|
307
308
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationTemplateDataSeeder>;
|
308
309
|
}
|
309
310
|
|
311
|
+
declare class AXCLockService implements AXPLockService {
|
312
|
+
private className;
|
313
|
+
private db;
|
314
|
+
constructor();
|
315
|
+
private get lockTable();
|
316
|
+
protected entityName: string;
|
317
|
+
/**
|
318
|
+
* Cache Time-To-Live in milliseconds. Default is 5 seconds but can be overridden
|
319
|
+
* at runtime using {@link setCacheDuration}.
|
320
|
+
*/
|
321
|
+
private cacheTTL;
|
322
|
+
/** In-memory cache for lock information. */
|
323
|
+
private readonly cacheMap;
|
324
|
+
/** Reference to the recurring cache-flush timer. */
|
325
|
+
private cacheTimer;
|
326
|
+
/**
|
327
|
+
* Generates a unique cache key based on the lock request parameters.
|
328
|
+
*/
|
329
|
+
private getCacheKey;
|
330
|
+
/**
|
331
|
+
* Starts or restarts the interval that clears the cache.
|
332
|
+
*/
|
333
|
+
private startCacheTimer;
|
334
|
+
/**
|
335
|
+
* Allows consumers to change the cache duration (in milliseconds) at runtime.
|
336
|
+
* The new duration is applied immediately.
|
337
|
+
*/
|
338
|
+
setCacheDuration(ms: number): void;
|
339
|
+
lock(request: AXPLockRequest): Promise<AXPLockInfo>;
|
340
|
+
unlock(request: AXPUnLockRequest): Promise<void>;
|
341
|
+
check(request: AXPLockGetInfoRequest): Promise<boolean>;
|
342
|
+
getInfo(request: AXPLockGetInfoRequest): Promise<AXPLockInfo>;
|
343
|
+
getItems(request: AXPLockGetInfoRequest): Promise<AXPLockInfo[]>;
|
344
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLockService, never>;
|
345
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
|
346
|
+
}
|
347
|
+
|
310
348
|
declare class AXMAiResponderService {
|
311
349
|
private readonly geminiApiKey;
|
312
350
|
getAIResponse(prompt: string): Promise<string>;
|
@@ -357,6 +395,33 @@ declare class AXPReportManagementDataSeeder implements AXPDataSeeder {
|
|
357
395
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPReportManagementDataSeeder>;
|
358
396
|
}
|
359
397
|
|
398
|
+
interface AXMReportExecuteCommandInput {
|
399
|
+
reportId: string;
|
400
|
+
parameters: Record<string, any>;
|
401
|
+
page?: number;
|
402
|
+
pageSize?: number;
|
403
|
+
}
|
404
|
+
interface AXMReportExecuteCommandOutput {
|
405
|
+
data: any[];
|
406
|
+
total: number;
|
407
|
+
page: number;
|
408
|
+
pageSize: number;
|
409
|
+
}
|
410
|
+
declare class AXMReportExecuteCommand {
|
411
|
+
private readonly queryService;
|
412
|
+
execute(input: AXMReportExecuteCommandInput): Promise<AXMReportExecuteCommandOutput>;
|
413
|
+
private generateMockDataForReport;
|
414
|
+
private generateFinancialData;
|
415
|
+
private generateIncomeData;
|
416
|
+
private generateEmployeeData;
|
417
|
+
private generateSalesData;
|
418
|
+
private generateSafetyData;
|
419
|
+
private generateGenericData;
|
420
|
+
private getRandomPastDate;
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportExecuteCommand, never>;
|
422
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportExecuteCommand>;
|
423
|
+
}
|
424
|
+
|
360
425
|
declare class AXCSchedulerJobDataSeeder implements AXPDataSeeder {
|
361
426
|
private storageService;
|
362
427
|
seed(): Promise<void>;
|
@@ -404,5 +469,5 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
|
|
404
469
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
|
405
470
|
}
|
406
471
|
|
407
|
-
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementMockWidgetDataSourceProvider, 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 };
|
408
|
-
export type { MockUserPassCredentials };
|
472
|
+
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, AXPSecurityManagementMockWidgetDataSourceProvider, 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 };
|
473
|
+
export type { AXMReportExecuteCommandInput, AXMReportExecuteCommandOutput, MockUserPassCredentials };
|