@acorex/connectivity 20.2.3 → 20.2.4-next.1

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,20 +1,19 @@
1
- import { AXPDataSeeder, AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPEntityStorageWithMiddlewareService } from '@acorex/platform/layout/entity';
1
+ import { AXPDataSeeder, AXPEntityStorageService, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
2
2
  import * as i0 from '@angular/core';
3
3
  import { Injector } from '@angular/core';
4
- import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest } from '@acorex/platform/common';
4
+ import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo } from '@acorex/platform/common';
5
5
  import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
6
- import { AXMMetaDataDefinitionCategoryServiceImpl, AXMMetaDataDefinitionService, AXMMetaDataDefinitionCategoryWithItemsEntityModel, AXMMetaDataDefinitionCategoryEntityModel } from '@acorex/modules/data-management';
7
- import { AXPEntityEventDispatcherService, AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
8
- import * as dexie from 'dexie';
9
- import dexie__default, { Table } from 'dexie';
6
+ import Dexie, { Table } from 'dexie';
7
+ import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
10
8
  import * as _acorex_platform_auth from '@acorex/platform/auth';
11
- import { AXPSessionService, AXPAuthStrategy, AXPBaseCredentials, AXPSessionContext, AXPSignInResult } from '@acorex/platform/auth';
9
+ import { AXPAuthStrategy, AXPBaseCredentials, AXPSessionContext, AXPSignInResult, AXPTenant, AXPApplication } from '@acorex/platform/auth';
12
10
  import { AXMAuthConfigs } from '@acorex/modules/auth';
13
11
  import { Router } from '@angular/router';
14
12
  import * as i1 from '@acorex/platform/runtime';
15
- import { AXPReportCategory, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
13
+ import * as _acorex_modules_organization_management from '@acorex/modules/organization-management';
14
+ import { AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
16
15
  import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
17
- import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult } from '@acorex/modules/identifier-management';
16
+ import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
18
17
 
19
18
  declare const APPLICATIONS: {
20
19
  id: string;
@@ -159,10 +158,13 @@ declare class AXCFileStorageService implements AXPFileStorageService {
159
158
  private cleanupTemporaryFiles;
160
159
  private cleanupMarkedFiles;
161
160
  constructor();
161
+ findMany(ids: string[]): Promise<AXPFileManyStorageInfo[]>;
162
162
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
163
163
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
164
164
  }
165
165
 
166
+ declare function findContactMethod(referenceId: string, type: string): string | undefined;
167
+
166
168
  declare class AXCContactManagementMockModule {
167
169
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
168
170
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
@@ -235,22 +237,10 @@ declare class AXCMetaDataDefinitionDataSeeder implements AXPDataSeeder {
235
237
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetaDataDefinitionDataSeeder>;
236
238
  }
237
239
 
238
- declare class AXCMetaDataDefinitionCategoryMockService extends AXMMetaDataDefinitionCategoryServiceImpl {
239
- protected metaDataService: AXMMetaDataDefinitionService<any>;
240
- getAllWithItems(): Promise<AXMMetaDataDefinitionCategoryWithItemsEntityModel<string>[]>;
241
- private buildCategoryTree;
242
- insertOne(request: Omit<AXMMetaDataDefinitionCategoryEntityModel<string>, 'id'>): Promise<string>;
243
- }
244
-
245
- declare class AXPDexieEntityStorageService extends dexie__default implements AXPEntityStorageService<string, any> {
246
- protected sessionService: AXPSessionService;
247
- protected entityRegistryService: AXPEntityDefinitionRegistryService;
248
- protected lockService: AXPLockService;
249
- protected entityEventDispatcher: AXPEntityEventDispatcherService;
240
+ declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
241
+ private sessionService;
250
242
  constructor();
251
243
  get dbName(): string;
252
- private detectChanges;
253
- private addToHistory;
254
244
  /**
255
245
  * Seed the storage with the provided collection only if it has not been
256
246
  * inserted before.
@@ -421,10 +411,22 @@ declare class AXCIdentifierManagementMockModule {
421
411
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCIdentifierManagementMockModule>;
422
412
  }
423
413
 
414
+ declare class AXCMeetingManagementMockModule {
415
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMeetingManagementMockModule, never>;
416
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMeetingManagementMockModule, never, never, never>;
417
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCMeetingManagementMockModule>;
418
+ }
419
+
420
+ declare class AXCMiddlewaresModule {
421
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMiddlewaresModule, never>;
422
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMiddlewaresModule, never, never, never>;
423
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCMiddlewaresModule>;
424
+ }
425
+
424
426
  declare class AXCMockModule {
425
427
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
426
428
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
427
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCFOrganizationManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTextTemplateManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCSchedulerJobManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXMCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXMPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCIdentifierManagementMockModule], never>;
429
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCFOrganizationManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTextTemplateManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCSchedulerJobManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXMCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXMPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCMiddlewaresModule], never>;
428
430
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
429
431
  }
430
432
 
@@ -438,8 +440,13 @@ declare class MOCKStrategy extends AXPAuthStrategy {
438
440
  router: Router;
439
441
  constructor();
440
442
  private entityRegistery;
443
+ private deviceSessionsService;
441
444
  get name(): string;
442
445
  signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
446
+ private createDeviceSession;
447
+ private getDeviceName;
448
+ private getOperatingSystem;
449
+ private getBrowser;
443
450
  signout(): Promise<void>;
444
451
  refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
445
452
  updateToken(params: {
@@ -449,6 +456,375 @@ declare class MOCKStrategy extends AXPAuthStrategy {
449
456
  static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
450
457
  }
451
458
 
459
+ interface ResponsibilityMock {
460
+ id: string;
461
+ title: string;
462
+ description: string;
463
+ categoryIds: string[];
464
+ }
465
+
466
+ interface SkillMock {
467
+ id: string;
468
+ title: string;
469
+ description: string;
470
+ categoryIds: string[];
471
+ categories: {
472
+ id: string;
473
+ title: string;
474
+ }[];
475
+ }
476
+
477
+ interface PositionMock {
478
+ id: string;
479
+ title: string;
480
+ description: string;
481
+ categoryIds: string[];
482
+ skillsId: string[];
483
+ skills: SkillMock[];
484
+ responsibilitiesId: string[];
485
+ responsibilities: ResponsibilityMock[];
486
+ }
487
+
488
+ interface RoleMock {
489
+ id: string;
490
+ title: string;
491
+ description: string;
492
+ categoryIds: string[];
493
+ skillsId: string[];
494
+ }
495
+
496
+ declare const BRANCHES_MOCK: {
497
+ id: string;
498
+ title: string;
499
+ code: string;
500
+ managerId: string;
501
+ manager: {
502
+ id: string;
503
+ contactId: string;
504
+ contact: {
505
+ id: string;
506
+ firstName: string | undefined;
507
+ lastName: string | undefined;
508
+ email: string | undefined;
509
+ mobile: string | undefined;
510
+ } | null;
511
+ birthDate: Date;
512
+ employeeCode: string;
513
+ rolesId: string[];
514
+ roles: RoleMock[];
515
+ positionsId: string[];
516
+ positions: PositionMock[];
517
+ employmentTypesId: string[];
518
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
519
+ hireDate: Date;
520
+ managerId: null;
521
+ manager: null;
522
+ } | {
523
+ id: string;
524
+ contactId: string;
525
+ contact: {
526
+ id: string;
527
+ firstName: string | undefined;
528
+ lastName: string | undefined;
529
+ email: string | undefined;
530
+ mobile: string | undefined;
531
+ } | null;
532
+ birthDate: Date;
533
+ employeeCode: string;
534
+ rolesId: string[];
535
+ roles: RoleMock[];
536
+ positionsId: string[];
537
+ positions: PositionMock[];
538
+ employmentTypesId: string[];
539
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
540
+ hireDate: Date;
541
+ managerId: string;
542
+ manager: null;
543
+ };
544
+ country: string;
545
+ province: string;
546
+ city: string;
547
+ description: string;
548
+ }[];
549
+
550
+ declare class AXMBranchDataSeeder implements AXPDataSeeder {
551
+ private storageService;
552
+ seed(): Promise<void>;
553
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMBranchDataSeeder, never>;
554
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMBranchDataSeeder>;
555
+ }
556
+
557
+ declare const DIVISIONS_MOCK: {
558
+ id: string;
559
+ title: string;
560
+ description: string;
561
+ managerId: string;
562
+ manager: {
563
+ id: string;
564
+ contactId: string;
565
+ contact: {
566
+ id: string;
567
+ firstName: string | undefined;
568
+ lastName: string | undefined;
569
+ email: string | undefined;
570
+ mobile: string | undefined;
571
+ } | null;
572
+ birthDate: Date;
573
+ employeeCode: string;
574
+ rolesId: string[];
575
+ roles: RoleMock[];
576
+ positionsId: string[];
577
+ positions: PositionMock[];
578
+ employmentTypesId: string[];
579
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
580
+ hireDate: Date;
581
+ managerId: null;
582
+ manager: null;
583
+ } | {
584
+ id: string;
585
+ contactId: string;
586
+ contact: {
587
+ id: string;
588
+ firstName: string | undefined;
589
+ lastName: string | undefined;
590
+ email: string | undefined;
591
+ mobile: string | undefined;
592
+ } | null;
593
+ birthDate: Date;
594
+ employeeCode: string;
595
+ rolesId: string[];
596
+ roles: RoleMock[];
597
+ positionsId: string[];
598
+ positions: PositionMock[];
599
+ employmentTypesId: string[];
600
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
601
+ hireDate: Date;
602
+ managerId: string;
603
+ manager: null;
604
+ };
605
+ country: string;
606
+ province: string;
607
+ city: string;
608
+ }[];
609
+
610
+ declare class AXMDivisionDataSeeder implements AXPDataSeeder {
611
+ private storageService;
612
+ seed(): Promise<void>;
613
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMDivisionDataSeeder, never>;
614
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMDivisionDataSeeder>;
615
+ }
616
+
617
+ declare const DEPARTMENTS_MOCK: {
618
+ id: string;
619
+ title: string;
620
+ description: string;
621
+ managerId: string;
622
+ manager: {
623
+ id: string;
624
+ contactId: string;
625
+ contact: {
626
+ id: string;
627
+ firstName: string | undefined;
628
+ lastName: string | undefined;
629
+ email: string | undefined;
630
+ mobile: string | undefined;
631
+ } | null;
632
+ birthDate: Date;
633
+ employeeCode: string;
634
+ rolesId: string[];
635
+ roles: RoleMock[];
636
+ positionsId: string[];
637
+ positions: PositionMock[];
638
+ employmentTypesId: string[];
639
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
640
+ hireDate: Date;
641
+ managerId: null;
642
+ manager: null;
643
+ } | {
644
+ id: string;
645
+ contactId: string;
646
+ contact: {
647
+ id: string;
648
+ firstName: string | undefined;
649
+ lastName: string | undefined;
650
+ email: string | undefined;
651
+ mobile: string | undefined;
652
+ } | null;
653
+ birthDate: Date;
654
+ employeeCode: string;
655
+ rolesId: string[];
656
+ roles: RoleMock[];
657
+ positionsId: string[];
658
+ positions: PositionMock[];
659
+ employmentTypesId: string[];
660
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
661
+ hireDate: Date;
662
+ managerId: string;
663
+ manager: null;
664
+ };
665
+ country: string;
666
+ province: string;
667
+ city: string;
668
+ }[];
669
+
670
+ declare class AXMDepartmentDataSeeder implements AXPDataSeeder {
671
+ private storageService;
672
+ seed(): Promise<void>;
673
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMDepartmentDataSeeder, never>;
674
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMDepartmentDataSeeder>;
675
+ }
676
+
677
+ declare const TEAMS_MOCK: {
678
+ id: string;
679
+ title: string;
680
+ leaderId: string;
681
+ leader: {
682
+ id: string;
683
+ contactId: string;
684
+ contact: {
685
+ id: string;
686
+ firstName: string | undefined;
687
+ lastName: string | undefined;
688
+ email: string | undefined;
689
+ mobile: string | undefined;
690
+ } | null;
691
+ birthDate: Date;
692
+ employeeCode: string;
693
+ rolesId: string[];
694
+ roles: RoleMock[];
695
+ positionsId: string[];
696
+ positions: PositionMock[];
697
+ employmentTypesId: string[];
698
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
699
+ hireDate: Date;
700
+ managerId: null;
701
+ manager: null;
702
+ } | {
703
+ id: string;
704
+ contactId: string;
705
+ contact: {
706
+ id: string;
707
+ firstName: string | undefined;
708
+ lastName: string | undefined;
709
+ email: string | undefined;
710
+ mobile: string | undefined;
711
+ } | null;
712
+ birthDate: Date;
713
+ employeeCode: string;
714
+ rolesId: string[];
715
+ roles: RoleMock[];
716
+ positionsId: string[];
717
+ positions: PositionMock[];
718
+ employmentTypesId: string[];
719
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
720
+ hireDate: Date;
721
+ managerId: string;
722
+ manager: null;
723
+ };
724
+ member: ({
725
+ id: string;
726
+ contactId: string;
727
+ contact: {
728
+ id: string;
729
+ firstName: string | undefined;
730
+ lastName: string | undefined;
731
+ email: string | undefined;
732
+ mobile: string | undefined;
733
+ } | null;
734
+ birthDate: Date;
735
+ employeeCode: string;
736
+ rolesId: string[];
737
+ roles: RoleMock[];
738
+ positionsId: string[];
739
+ positions: PositionMock[];
740
+ employmentTypesId: string[];
741
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
742
+ hireDate: Date;
743
+ managerId: null;
744
+ manager: null;
745
+ } | {
746
+ id: string;
747
+ contactId: string;
748
+ contact: {
749
+ id: string;
750
+ firstName: string | undefined;
751
+ lastName: string | undefined;
752
+ email: string | undefined;
753
+ mobile: string | undefined;
754
+ } | null;
755
+ birthDate: Date;
756
+ employeeCode: string;
757
+ rolesId: string[];
758
+ roles: RoleMock[];
759
+ positionsId: string[];
760
+ positions: PositionMock[];
761
+ employmentTypesId: string[];
762
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
763
+ hireDate: Date;
764
+ managerId: string;
765
+ manager: null;
766
+ })[];
767
+ description: string;
768
+ }[];
769
+
770
+ declare class AXMTeamDataSeeder implements AXPDataSeeder {
771
+ private storageService;
772
+ seed(): Promise<void>;
773
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamDataSeeder, never>;
774
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamDataSeeder>;
775
+ }
776
+
777
+ declare const EMPLOYEES_MOCK: ({
778
+ id: string;
779
+ contactId: string;
780
+ contact: {
781
+ id: string;
782
+ firstName: string | undefined;
783
+ lastName: string | undefined;
784
+ email: string | undefined;
785
+ mobile: string | undefined;
786
+ } | null;
787
+ birthDate: Date;
788
+ employeeCode: string;
789
+ rolesId: string[];
790
+ roles: RoleMock[];
791
+ positionsId: string[];
792
+ positions: PositionMock[];
793
+ employmentTypesId: string[];
794
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
795
+ hireDate: Date;
796
+ managerId: null;
797
+ manager: null;
798
+ } | {
799
+ id: string;
800
+ contactId: string;
801
+ contact: {
802
+ id: string;
803
+ firstName: string | undefined;
804
+ lastName: string | undefined;
805
+ email: string | undefined;
806
+ mobile: string | undefined;
807
+ } | null;
808
+ birthDate: Date;
809
+ employeeCode: string;
810
+ rolesId: string[];
811
+ roles: RoleMock[];
812
+ positionsId: string[];
813
+ positions: PositionMock[];
814
+ employmentTypesId: string[];
815
+ employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
816
+ hireDate: Date;
817
+ managerId: string;
818
+ manager: null;
819
+ })[];
820
+
821
+ declare class AXMEmployeeDataSeeder implements AXPDataSeeder {
822
+ private storageService;
823
+ seed(): Promise<void>;
824
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeDataSeeder, never>;
825
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeDataSeeder>;
826
+ }
827
+
452
828
  declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
453
829
  private storageService;
454
830
  private appVersionService;
@@ -472,15 +848,18 @@ declare const GLOBAL_VARIABLES: {
472
848
  value: string;
473
849
  }[];
474
850
 
475
- declare const REPORT_CATEGORIES: AXPReportCategory[];
476
- declare const REPORT_DEFINITIONS: AXPReportDefinition[];
477
- declare const CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
851
+ declare class AXMReportCategoryDataSeeder implements AXPDataSeeder {
852
+ private storageService;
853
+ seed(): Promise<void>;
854
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportCategoryDataSeeder, never>;
855
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportCategoryDataSeeder>;
856
+ }
478
857
 
479
- declare class AXPReportManagementDataSeeder implements AXPDataSeeder {
858
+ declare class AXMReportDefinitionDataSeeder implements AXPDataSeeder {
480
859
  private storageService;
481
860
  seed(): Promise<void>;
482
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPReportManagementDataSeeder, never>;
483
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPReportManagementDataSeeder>;
861
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportDefinitionDataSeeder, never>;
862
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportDefinitionDataSeeder>;
484
863
  }
485
864
 
486
865
  declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
@@ -537,6 +916,32 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
537
916
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
538
917
  }
539
918
 
919
+ declare const tenantsMock: AXPTenant[];
920
+
921
+ declare const applications: AXPApplication[];
922
+
923
+ declare const mockRoleDefinitions: {
924
+ id: string;
925
+ name: string;
926
+ title: string;
927
+ description: string;
928
+ permissions: never[];
929
+ }[];
930
+
931
+ interface MockUser {
932
+ id: string;
933
+ username: string;
934
+ firstName: string;
935
+ lastName: string;
936
+ nationalCode: string;
937
+ mobile: string;
938
+ roleIds: {
939
+ id: string;
940
+ title: string;
941
+ }[];
942
+ }
943
+ declare const mockUsers: MockUser[];
944
+
540
945
  interface TaskType {
541
946
  id: string;
542
947
  name: string;
@@ -631,91 +1036,6 @@ declare const TEXT_TEMPLATE_CATEGORY: {
631
1036
  }[];
632
1037
  declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
633
1038
 
634
- /**
635
- * Simplified Dexie Storage Service without built-in middleware logic
636
- * This extends the original service but removes the middleware-related code
637
- */
638
- declare class AXPSimplifiedDexieStorageService extends AXPDexieEntityStorageService {
639
- updateOne<T = any>(entityName: string, id: string, keyValue: {
640
- [key: string]: any;
641
- }): Promise<T>;
642
- deleteOne(entityName: string, id: string): Promise<void>;
643
- insertOne<T = any>(entityName: string, entity: T): Promise<string>;
644
- private generateUuid;
645
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSimplifiedDexieStorageService, never>;
646
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSimplifiedDexieStorageService>;
647
- }
648
- /**
649
- * Dexie Entity Storage Service with Middleware Support
650
- *
651
- * This service combines the simplified Dexie storage with a comprehensive middleware pipeline
652
- * that handles locking, history logging, activity tracking, validation, and performance monitoring.
653
- */
654
- declare class AXPDexieWithMiddlewareService extends AXPEntityStorageWithMiddlewareService<string, any> {
655
- private sessionService;
656
- private lockService;
657
- private entityRegistryService;
658
- private eventService;
659
- constructor();
660
- private setupMiddlewares;
661
- /**
662
- * Get the underlying Dexie instance for direct access if needed
663
- */
664
- get dexieInstance(): AXPSimplifiedDexieStorageService;
665
- /**
666
- * Access to the Dexie table for advanced operations
667
- */
668
- table(name: string): dexie.Table<any, dexie.IndexableType>;
669
- /**
670
- * Get database information
671
- */
672
- getDatabaseInfo(): {
673
- name: string;
674
- isOpen: boolean;
675
- version: number;
676
- };
677
- /**
678
- * Clear all data for a specific entity (useful for testing)
679
- */
680
- clearEntity(entityName: string): Promise<void>;
681
- /**
682
- * Get entity count
683
- */
684
- getEntityCount(entityName: string): Promise<number>;
685
- /**
686
- * Bulk operations (bypassing some middleware for performance)
687
- */
688
- bulkInsert<T = any>(entityName: string, entities: T[]): Promise<string[]>;
689
- /**
690
- * Export entity data (useful for backup/migration)
691
- */
692
- exportEntity(entityName: string): Promise<any[]>;
693
- /**
694
- * Import entity data (useful for restore/migration)
695
- */
696
- importEntity(entityName: string, data: any[], options?: {
697
- clearFirst?: boolean;
698
- }): Promise<void>;
699
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPDexieWithMiddlewareService, never>;
700
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPDexieWithMiddlewareService>;
701
- }
702
- /**
703
- * Factory function to create a configured Dexie service with standard middleware
704
- */
705
- declare function createDexieWithStandardMiddleware(): AXPDexieWithMiddlewareService;
706
- /**
707
- * Factory function to create a configured Dexie service with custom middleware
708
- */
709
- declare function createDexieWithCustomMiddleware(customMiddlewares?: {
710
- global?: any[];
711
- operations?: {
712
- [operation: string]: any[];
713
- };
714
- entities?: {
715
- [entityName: string]: any[];
716
- };
717
- }): AXPDexieWithMiddlewareService;
718
-
719
1039
  interface AXPRuleRow extends AXPIdentifierRule {
720
1040
  }
721
1041
  interface AXPSeqRow {
@@ -734,7 +1054,7 @@ interface AXPLogRow {
734
1054
  code: string;
735
1055
  createdAt: string;
736
1056
  }
737
- declare class AXPIdentifierDB extends dexie__default {
1057
+ declare class AXPIdentifierDB extends Dexie {
738
1058
  rules: Table<AXPRuleRow, string>;
739
1059
  sequences: Table<AXPSeqRow, string>;
740
1060
  logs: Table<AXPLogRow, string>;
@@ -781,15 +1101,44 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
781
1101
  private readonly clock;
782
1102
  private readonly rules;
783
1103
  generate(req: AXPIdentifierRequest): Promise<AXPIdentifierResult>;
784
- peek(req: AXPIdentifierRequest): Promise<AXPIdentifierResult>;
1104
+ peek(req: AXPIdentifierRequest): Promise<AXPIdentifierPeekResult>;
785
1105
  validate(_code: string, _entity: string, _tenantId?: string): Promise<boolean>;
786
1106
  private pickRule;
787
1107
  private createContext;
788
1108
  private createScopeHash;
1109
+ private validateRequestAgainstRule;
789
1110
  private evaluateInternal;
1111
+ commitWithToken(token: string): Promise<AXPIdentifierResult>;
1112
+ commitByCode(req: AXPIdentifierRequest, code: string): Promise<AXPIdentifierResult>;
790
1113
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPMockIdentifierService, never>;
791
1114
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPMockIdentifierService>;
792
1115
  }
793
1116
 
794
- export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCHelpDeskMockModule, AXCIdentifierManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionCategoryMockService, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPDexieWithMiddlewareService, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPSimplifiedDexieStorageService, CATEGORY_REPORT_MAPPING, DASHBOARDS, EDITIONS, ENTITIES, FEATURES, GLOBAL_VARIABLES, MOCKGoogleStrategy, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, createDexieWithCustomMiddleware, createDexieWithStandardMiddleware, generateRandomDashboard };
1117
+ declare const identifierCommitMiddleware: AXPEntityStorageMiddleware;
1118
+
1119
+ declare const auditLoggerMiddleware: AXPEntityStorageMiddleware;
1120
+
1121
+ /**
1122
+ * File Cast Middleware - Handles file operations in entity storage
1123
+ *
1124
+ * This middleware processes files during entity operations:
1125
+ *
1126
+ * CREATE/UPDATE Operations:
1127
+ * - New files: Uploads to file storage and replaces with file IDs
1128
+ * - Existing files: Keeps existing file IDs
1129
+ * - Deleted files: Removes from file storage and excludes from entity data
1130
+ *
1131
+ * QUERY/GET_ONE Operations:
1132
+ * - Converts file IDs back to AXPFileListItem objects for UI display
1133
+ *
1134
+ * File Status Handling:
1135
+ * - 'uploaded'/'remote': Keep existing file ID
1136
+ * - 'deleted': Remove from storage, exclude from entity
1137
+ * - 'attached'/'uploading': Upload new file
1138
+ */
1139
+ declare const createFileCastMiddleware: AXPEntityStorageMiddleware;
1140
+
1141
+ declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
1142
+
1143
+ export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCHelpDeskMockModule, AXCIdentifierManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMBranchDataSeeder, AXMDepartmentDataSeeder, AXMDivisionDataSeeder, AXMEmployeeDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMTeamDataSeeder, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, BRANCHES_MOCK, DASHBOARDS, DEPARTMENTS_MOCK, DIVISIONS_MOCK, EDITIONS, EMPLOYEES_MOCK, ENTITIES, FEATURES, GLOBAL_VARIABLES, MOCKGoogleStrategy, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, applications, auditLoggerMiddleware, createFileCastMiddleware, findContactMethod, generateRandomDashboard, identifierCommitMiddleware, mockRoleDefinitions, mockUsers, tenantsMock };
795
1144
  export type { AXPLogRow, AXPRuleRow, AXPSeqRow, MockUserPassCredentials, Task, TaskStatus, TaskTemplate, TaskType };