@acorex/connectivity 20.0.20 → 20.0.21

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
@@ -3,7 +3,7 @@ import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acor
3
3
  import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
4
4
  import * as i1 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
9
  import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
@@ -307,6 +307,43 @@ declare class AXCApplicationTemplateDataSeeder implements AXPDataSeeder {
307
307
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationTemplateDataSeeder>;
308
308
  }
309
309
 
310
+ declare class AXCLockService implements AXPLockService {
311
+ private className;
312
+ private db;
313
+ constructor();
314
+ private get lockTable();
315
+ protected entityName: string;
316
+ /**
317
+ * Cache Time-To-Live in milliseconds. Default is 5 seconds but can be overridden
318
+ * at runtime using {@link setCacheDuration}.
319
+ */
320
+ private cacheTTL;
321
+ /** In-memory cache for lock information. */
322
+ private readonly cacheMap;
323
+ /** Reference to the recurring cache-flush timer. */
324
+ private cacheTimer;
325
+ /**
326
+ * Generates a unique cache key based on the lock request parameters.
327
+ */
328
+ private getCacheKey;
329
+ /**
330
+ * Starts or restarts the interval that clears the cache.
331
+ */
332
+ private startCacheTimer;
333
+ /**
334
+ * Allows consumers to change the cache duration (in milliseconds) at runtime.
335
+ * The new duration is applied immediately.
336
+ */
337
+ setCacheDuration(ms: number): void;
338
+ lock(request: AXPLockRequest): Promise<AXPLockInfo>;
339
+ unlock(request: AXPUnLockRequest): Promise<void>;
340
+ check(request: AXPLockGetInfoRequest): Promise<boolean>;
341
+ getInfo(request: AXPLockGetInfoRequest): Promise<AXPLockInfo>;
342
+ getItems(request: AXPLockGetInfoRequest): Promise<AXPLockInfo[]>;
343
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCLockService, never>;
344
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
345
+ }
346
+
310
347
  declare class AXMAiResponderService {
311
348
  private readonly geminiApiKey;
312
349
  getAIResponse(prompt: string): Promise<string>;
@@ -404,5 +441,5 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
404
441
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
405
442
  }
406
443
 
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 };
444
+ 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, 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
445
  export type { MockUserPassCredentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.0.20",
3
+ "version": "20.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"