@acorex/connectivity 20.2.2 → 20.2.4-next.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/fesm2022/acorex-connectivity-mock.mjs +6949 -7497
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +201 -110
- package/package.json +5 -5
package/mock/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AXPDataSeeder, AXPEntityStorageService
|
|
1
|
+
import { AXPDataSeeder, AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injector } from '@angular/core';
|
|
4
4
|
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest } from '@acorex/platform/common';
|
|
5
5
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
|
6
6
|
import { AXMMetaDataDefinitionCategoryServiceImpl, AXMMetaDataDefinitionService, AXMMetaDataDefinitionCategoryWithItemsEntityModel, AXMMetaDataDefinitionCategoryEntityModel } from '@acorex/modules/data-management';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import dexie__default, { Table } from 'dexie';
|
|
7
|
+
import Dexie, { Table } from 'dexie';
|
|
8
|
+
import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
|
10
9
|
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
|
11
|
-
import {
|
|
10
|
+
import { AXPAuthStrategy, AXPBaseCredentials, AXPSessionContext, AXPSignInResult, AXPTenant, AXPApplication } from '@acorex/platform/auth';
|
|
12
11
|
import { AXMAuthConfigs } from '@acorex/modules/auth';
|
|
13
12
|
import { Router } from '@angular/router';
|
|
14
13
|
import * as i1 from '@acorex/platform/runtime';
|
|
14
|
+
import * as _acorex_modules_organization_management from '@acorex/modules/organization-management';
|
|
15
15
|
import { AXPReportCategory, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
|
|
16
16
|
import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
|
|
17
|
-
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult } from '@acorex/modules/identifier-management';
|
|
17
|
+
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
|
|
18
18
|
|
|
19
19
|
declare const APPLICATIONS: {
|
|
20
20
|
id: string;
|
|
@@ -163,6 +163,8 @@ declare class AXCFileStorageService implements AXPFileStorageService {
|
|
|
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>;
|
|
@@ -242,15 +244,10 @@ declare class AXCMetaDataDefinitionCategoryMockService extends AXMMetaDataDefini
|
|
|
242
244
|
insertOne(request: Omit<AXMMetaDataDefinitionCategoryEntityModel<string>, 'id'>): Promise<string>;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
|
-
declare class AXPDexieEntityStorageService extends
|
|
246
|
-
|
|
247
|
-
protected entityRegistryService: AXPEntityDefinitionRegistryService;
|
|
248
|
-
protected lockService: AXPLockService;
|
|
249
|
-
protected entityEventDispatcher: AXPEntityEventDispatcherService;
|
|
247
|
+
declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
|
|
248
|
+
private sessionService;
|
|
250
249
|
constructor();
|
|
251
250
|
get dbName(): string;
|
|
252
|
-
private detectChanges;
|
|
253
|
-
private addToHistory;
|
|
254
251
|
/**
|
|
255
252
|
* Seed the storage with the provided collection only if it has not been
|
|
256
253
|
* inserted before.
|
|
@@ -289,10 +286,10 @@ declare class AXCFormTemplateManagementMockModule {
|
|
|
289
286
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCFormTemplateManagementMockModule>;
|
|
290
287
|
}
|
|
291
288
|
|
|
292
|
-
declare class
|
|
293
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
294
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
295
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
289
|
+
declare class AXCHelpDeskMockModule {
|
|
290
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCHelpDeskMockModule, never>;
|
|
291
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCHelpDeskMockModule, never, never, never>;
|
|
292
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCHelpDeskMockModule>;
|
|
296
293
|
}
|
|
297
294
|
|
|
298
295
|
declare class AXCLogManagementMockModule {
|
|
@@ -421,10 +418,22 @@ declare class AXCIdentifierManagementMockModule {
|
|
|
421
418
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCIdentifierManagementMockModule>;
|
|
422
419
|
}
|
|
423
420
|
|
|
421
|
+
declare class AXCMeetingManagementMockModule {
|
|
422
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMeetingManagementMockModule, never>;
|
|
423
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMeetingManagementMockModule, never, never, never>;
|
|
424
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMeetingManagementMockModule>;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
declare class AXCMiddlewaresModule {
|
|
428
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMiddlewaresModule, never>;
|
|
429
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMiddlewaresModule, never, never, never>;
|
|
430
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMiddlewaresModule>;
|
|
431
|
+
}
|
|
432
|
+
|
|
424
433
|
declare class AXCMockModule {
|
|
425
434
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
426
435
|
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
|
|
436
|
+
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
437
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
|
429
438
|
}
|
|
430
439
|
|
|
@@ -449,6 +458,137 @@ declare class MOCKStrategy extends AXPAuthStrategy {
|
|
|
449
458
|
static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
|
|
450
459
|
}
|
|
451
460
|
|
|
461
|
+
declare const BRANCHES_MOCK: {
|
|
462
|
+
id: string;
|
|
463
|
+
title: string;
|
|
464
|
+
code: string;
|
|
465
|
+
manager: {
|
|
466
|
+
id: string;
|
|
467
|
+
displayName: string;
|
|
468
|
+
employeeCode: string;
|
|
469
|
+
};
|
|
470
|
+
country: string;
|
|
471
|
+
province: string;
|
|
472
|
+
city: string;
|
|
473
|
+
description: string;
|
|
474
|
+
}[];
|
|
475
|
+
|
|
476
|
+
declare class AXMBranchDataSeeder implements AXPDataSeeder {
|
|
477
|
+
private storageService;
|
|
478
|
+
seed(): Promise<void>;
|
|
479
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMBranchDataSeeder, never>;
|
|
480
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMBranchDataSeeder>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare const DIVISIONS_MOCK: {
|
|
484
|
+
id: string;
|
|
485
|
+
title: string;
|
|
486
|
+
description: string;
|
|
487
|
+
manager: {
|
|
488
|
+
id: string;
|
|
489
|
+
displayName: string;
|
|
490
|
+
employeeCode: string;
|
|
491
|
+
};
|
|
492
|
+
country: string;
|
|
493
|
+
province: string;
|
|
494
|
+
city: string;
|
|
495
|
+
}[];
|
|
496
|
+
|
|
497
|
+
declare class AXMDivisionDataSeeder implements AXPDataSeeder {
|
|
498
|
+
private storageService;
|
|
499
|
+
seed(): Promise<void>;
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMDivisionDataSeeder, never>;
|
|
501
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMDivisionDataSeeder>;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare const DEPARTMENTS_MOCK: {
|
|
505
|
+
id: string;
|
|
506
|
+
title: string;
|
|
507
|
+
description: string;
|
|
508
|
+
manager: {
|
|
509
|
+
id: string;
|
|
510
|
+
displayName: string;
|
|
511
|
+
employeeCode: string;
|
|
512
|
+
};
|
|
513
|
+
country: string;
|
|
514
|
+
province: string;
|
|
515
|
+
city: string;
|
|
516
|
+
}[];
|
|
517
|
+
|
|
518
|
+
declare class AXMDepartmentDataSeeder implements AXPDataSeeder {
|
|
519
|
+
private storageService;
|
|
520
|
+
seed(): Promise<void>;
|
|
521
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMDepartmentDataSeeder, never>;
|
|
522
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMDepartmentDataSeeder>;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare const TEAMS_MOCK: {
|
|
526
|
+
id: string;
|
|
527
|
+
title: string;
|
|
528
|
+
leader: {
|
|
529
|
+
id: string;
|
|
530
|
+
displayName: string;
|
|
531
|
+
employeeCode: string;
|
|
532
|
+
};
|
|
533
|
+
member: {
|
|
534
|
+
id: string;
|
|
535
|
+
displayName: string;
|
|
536
|
+
employeeCode: string;
|
|
537
|
+
}[];
|
|
538
|
+
description: string;
|
|
539
|
+
}[];
|
|
540
|
+
|
|
541
|
+
declare class AXMTeamDataSeeder implements AXPDataSeeder {
|
|
542
|
+
private storageService;
|
|
543
|
+
seed(): Promise<void>;
|
|
544
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamDataSeeder, never>;
|
|
545
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamDataSeeder>;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
interface PositionMock {
|
|
549
|
+
id: string;
|
|
550
|
+
title: string;
|
|
551
|
+
description: string;
|
|
552
|
+
categoriesId: string[];
|
|
553
|
+
skillsId: string[];
|
|
554
|
+
responsibilitiesId: string[];
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
interface RoleMock {
|
|
558
|
+
id: string;
|
|
559
|
+
title: string;
|
|
560
|
+
description: string;
|
|
561
|
+
categoriesId: string[];
|
|
562
|
+
skillsId: string[];
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare const EMPLOYEES_MOCK: {
|
|
566
|
+
id: string;
|
|
567
|
+
contactId: string;
|
|
568
|
+
contact: {
|
|
569
|
+
firstName: string | undefined;
|
|
570
|
+
lastName: string | undefined;
|
|
571
|
+
email: string | undefined;
|
|
572
|
+
mobile: string | undefined;
|
|
573
|
+
} | null;
|
|
574
|
+
birthDate: Date;
|
|
575
|
+
employeeCode: string;
|
|
576
|
+
rolesId: string[];
|
|
577
|
+
roles: RoleMock[];
|
|
578
|
+
positionsId: string[];
|
|
579
|
+
positions: PositionMock[];
|
|
580
|
+
employmentTypesId: string[];
|
|
581
|
+
employmentTypes: _acorex_modules_organization_management.AXMOrganizationManagementEmploymentTypeEntityModel[];
|
|
582
|
+
hireDate: Date;
|
|
583
|
+
}[];
|
|
584
|
+
|
|
585
|
+
declare class AXMEmployeeDataSeeder implements AXPDataSeeder {
|
|
586
|
+
private storageService;
|
|
587
|
+
seed(): Promise<void>;
|
|
588
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeDataSeeder, never>;
|
|
589
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeDataSeeder>;
|
|
590
|
+
}
|
|
591
|
+
|
|
452
592
|
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
453
593
|
private storageService;
|
|
454
594
|
private appVersionService;
|
|
@@ -473,14 +613,21 @@ declare const GLOBAL_VARIABLES: {
|
|
|
473
613
|
}[];
|
|
474
614
|
|
|
475
615
|
declare const REPORT_CATEGORIES: AXPReportCategory[];
|
|
616
|
+
|
|
617
|
+
declare class AXMReportCategoryDataSeeder implements AXPDataSeeder {
|
|
618
|
+
private storageService;
|
|
619
|
+
seed(): Promise<void>;
|
|
620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportCategoryDataSeeder, never>;
|
|
621
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportCategoryDataSeeder>;
|
|
622
|
+
}
|
|
623
|
+
|
|
476
624
|
declare const REPORT_DEFINITIONS: AXPReportDefinition[];
|
|
477
|
-
declare const CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
|
|
478
625
|
|
|
479
|
-
declare class
|
|
626
|
+
declare class AXMReportDefinitionDataSeeder implements AXPDataSeeder {
|
|
480
627
|
private storageService;
|
|
481
628
|
seed(): Promise<void>;
|
|
482
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
483
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
629
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportDefinitionDataSeeder, never>;
|
|
630
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportDefinitionDataSeeder>;
|
|
484
631
|
}
|
|
485
632
|
|
|
486
633
|
declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
|
|
@@ -537,6 +684,32 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
|
|
|
537
684
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
|
|
538
685
|
}
|
|
539
686
|
|
|
687
|
+
declare const tenantsMock: AXPTenant[];
|
|
688
|
+
|
|
689
|
+
declare const applications: AXPApplication[];
|
|
690
|
+
|
|
691
|
+
declare const mockRoleDefinitions: {
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
title: string;
|
|
695
|
+
description: string;
|
|
696
|
+
permissions: never[];
|
|
697
|
+
}[];
|
|
698
|
+
|
|
699
|
+
interface MockUser {
|
|
700
|
+
id: string;
|
|
701
|
+
username: string;
|
|
702
|
+
firstName: string;
|
|
703
|
+
lastName: string;
|
|
704
|
+
nationalCode: string;
|
|
705
|
+
mobile: string;
|
|
706
|
+
roleIds: {
|
|
707
|
+
id: string;
|
|
708
|
+
title: string;
|
|
709
|
+
}[];
|
|
710
|
+
}
|
|
711
|
+
declare const mockUsers: MockUser[];
|
|
712
|
+
|
|
540
713
|
interface TaskType {
|
|
541
714
|
id: string;
|
|
542
715
|
name: string;
|
|
@@ -631,91 +804,6 @@ declare const TEXT_TEMPLATE_CATEGORY: {
|
|
|
631
804
|
}[];
|
|
632
805
|
declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
|
|
633
806
|
|
|
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
807
|
interface AXPRuleRow extends AXPIdentifierRule {
|
|
720
808
|
}
|
|
721
809
|
interface AXPSeqRow {
|
|
@@ -734,7 +822,7 @@ interface AXPLogRow {
|
|
|
734
822
|
code: string;
|
|
735
823
|
createdAt: string;
|
|
736
824
|
}
|
|
737
|
-
declare class AXPIdentifierDB extends
|
|
825
|
+
declare class AXPIdentifierDB extends Dexie {
|
|
738
826
|
rules: Table<AXPRuleRow, string>;
|
|
739
827
|
sequences: Table<AXPSeqRow, string>;
|
|
740
828
|
logs: Table<AXPLogRow, string>;
|
|
@@ -781,15 +869,18 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
|
|
|
781
869
|
private readonly clock;
|
|
782
870
|
private readonly rules;
|
|
783
871
|
generate(req: AXPIdentifierRequest): Promise<AXPIdentifierResult>;
|
|
784
|
-
peek(req: AXPIdentifierRequest): Promise<
|
|
872
|
+
peek(req: AXPIdentifierRequest): Promise<AXPIdentifierPeekResult>;
|
|
785
873
|
validate(_code: string, _entity: string, _tenantId?: string): Promise<boolean>;
|
|
786
874
|
private pickRule;
|
|
787
875
|
private createContext;
|
|
788
876
|
private createScopeHash;
|
|
877
|
+
private validateRequestAgainstRule;
|
|
789
878
|
private evaluateInternal;
|
|
879
|
+
commitWithToken(token: string): Promise<AXPIdentifierResult>;
|
|
880
|
+
commitByCode(req: AXPIdentifierRequest, code: string): Promise<AXPIdentifierResult>;
|
|
790
881
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMockIdentifierService, never>;
|
|
791
882
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMockIdentifierService>;
|
|
792
883
|
}
|
|
793
884
|
|
|
794
|
-
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder,
|
|
885
|
+
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, 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, REPORT_CATEGORIES, REPORT_DEFINITIONS, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, applications, findContactMethod, generateRandomDashboard, mockRoleDefinitions, mockUsers, tenantsMock };
|
|
795
886
|
export type { AXPLogRow, AXPRuleRow, AXPSeqRow, MockUserPassCredentials, Task, TaskStatus, TaskTemplate, TaskType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/connectivity",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.4-next.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.0.0",
|
|
6
6
|
"@angular/core": "^19.0.0"
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
17
|
"default": "./fesm2022/acorex-connectivity.mjs"
|
|
18
18
|
},
|
|
19
|
+
"./api": {
|
|
20
|
+
"types": "./api/index.d.ts",
|
|
21
|
+
"default": "./fesm2022/acorex-connectivity-api.mjs"
|
|
22
|
+
},
|
|
19
23
|
"./mock": {
|
|
20
24
|
"types": "./mock/index.d.ts",
|
|
21
25
|
"default": "./fesm2022/acorex-connectivity-mock.mjs"
|
|
@@ -23,10 +27,6 @@
|
|
|
23
27
|
"./utils": {
|
|
24
28
|
"types": "./utils/index.d.ts",
|
|
25
29
|
"default": "./fesm2022/acorex-connectivity-utils.mjs"
|
|
26
|
-
},
|
|
27
|
-
"./api": {
|
|
28
|
-
"types": "./api/index.d.ts",
|
|
29
|
-
"default": "./fesm2022/acorex-connectivity-api.mjs"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|