@acorex/connectivity 20.0.21 → 20.0.23

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
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';
@@ -18,7 +19,20 @@ declare class AXPDexieEntityStorageService extends Dexie implements AXPEntitySto
18
19
  get dbName(): string;
19
20
  private detectChanges;
20
21
  private addToHistory;
21
- initial<T = any>(entityName: string, collection: T[]): Promise<T[]>;
22
+ /**
23
+ * Seed the storage with the provided collection only if it has not been
24
+ * inserted before.
25
+ *
26
+ * Rather than relying on the total record count, we inspect whether the first
27
+ * item of the incoming collection (identified by its `id`) already exists in
28
+ * the table for the given `entityName`. If it exists, the data has already
29
+ * been seeded and no action is taken; otherwise, the entire collection is
30
+ * bulk-inserted.
31
+ */
32
+ initial<T = any>(entityName: string, collection: T[], options?: {
33
+ mergeType: 'merge' | 'replace';
34
+ uniqueKeys: string[];
35
+ }): Promise<T[]>;
22
36
  getOne<T = any>(entityName: string, id: string): Promise<T>;
23
37
  updateOne<T = any>(entityName: string, id: string, keyValue: {
24
38
  [key: string]: any;
@@ -51,7 +65,7 @@ declare class AXCFOrganizationManagementMockModule {
51
65
 
52
66
  declare class AXCReportManagementMockModule {
53
67
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementMockModule, never>;
54
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, never, never>;
68
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, [typeof i1.AXPRuntimeModule], never>;
55
69
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCReportManagementMockModule>;
56
70
  }
57
71
 
@@ -160,7 +174,7 @@ declare class AXCDataManagementMockModule {
160
174
  declare class AXCMockModule {
161
175
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
162
176
  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>;
177
+ 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
178
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
165
179
  }
166
180
 
@@ -394,6 +408,33 @@ declare class AXPReportManagementDataSeeder implements AXPDataSeeder {
394
408
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPReportManagementDataSeeder>;
395
409
  }
396
410
 
411
+ interface AXMReportExecuteCommandInput {
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 {
424
+ private readonly queryService;
425
+ execute(input: AXMReportExecuteCommandInput): Promise<AXMReportExecuteCommandOutput>;
426
+ private generateMockDataForReport;
427
+ private generateFinancialData;
428
+ private generateIncomeData;
429
+ private generateEmployeeData;
430
+ private generateSalesData;
431
+ private generateSafetyData;
432
+ private generateGenericData;
433
+ private getRandomPastDate;
434
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportExecuteCommand, never>;
435
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportExecuteCommand>;
436
+ }
437
+
397
438
  declare class AXCSchedulerJobDataSeeder implements AXPDataSeeder {
398
439
  private storageService;
399
440
  seed(): Promise<void>;
@@ -441,5 +482,5 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
441
482
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
442
483
  }
443
484
 
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 };
445
- export type { MockUserPassCredentials };
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, 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 };
486
+ export type { AXMReportExecuteCommandInput, AXMReportExecuteCommandOutput, MockUserPassCredentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.0.21",
3
+ "version": "20.0.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"