@acorex/connectivity 19.3.0-next.1 → 19.3.0-next.2

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.
@@ -1,29 +1,28 @@
1
1
  import { APPLICATION_SOURCE_NAME, MODULE_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME, AXPModuleDesignerService } from '@acorex/modules/application-management';
2
2
  import { RootConfig as RootConfig$1, AXMFolderServiceImpl, AXMDocumentServiceImpl, AXMFolderService, AXMDocumentService } from '@acorex/modules/document-management';
3
- import { RootConfig as RootConfig$4, AXMNotificationEntityService } from '@acorex/modules/notification-management';
3
+ import { RootConfig as RootConfig$5, AXMNotificationEntityService } from '@acorex/modules/notification-management';
4
+ import { RootConfig as RootConfig$4, AXMDeviceSessionsServiceImpl, AXMSessionStatusTypes, AXMDeviceSessionsService } from '@acorex/modules/security-management';
4
5
  import * as i1$1 from '@acorex/platform/auth';
5
- import { AXPSessionService, AXPPermissionProviderService, AXPAuthModule } from '@acorex/platform/auth';
6
+ import { AXPSessionService, AXPAuthModule } from '@acorex/platform/auth';
6
7
  import { AXPDataGenerator, AXPRegionalService, AXPFileStorageStatus, AXPFileStorageService, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
7
- import { AXPEntityDefinitionRegistryService, AXPEntityStorageService, AXP_DATA_SEEDER_TOKEN } from '@acorex/platform/layout/entity';
8
+ import { AXPEntityDefinitionRegistryService, AXP_DATA_SEEDER_TOKEN, AXPEntityStorageService } from '@acorex/platform/layout/entity';
8
9
  import * as i0 from '@angular/core';
9
10
  import { inject, Injectable, NgModule } from '@angular/core';
10
11
  import { applySortArray, applyFilterArray, AXPDataGenerator as AXPDataGenerator$1 } from '@acorex/platform/core';
11
12
  import Dexie from 'dexie';
12
- import { AXMDashboardServiceImpl, RootConfig } from '@acorex/modules/common';
13
- import { AXPWeatherWidget } from '@acorex/platform/widgets';
14
- import { from, firstValueFrom } from 'rxjs';
13
+ import { AXPBarChartWidget, AXPClockCalendarWidget, AXPWeatherWidget, AXPStickyNoteWidget, AXPDonutChartWidget, AXPGaugeChartWidget } from '@acorex/platform/widgets';
14
+ import { RootConfig } from '@acorex/modules/common';
15
15
  import * as i1 from '@acorex/modules/conversation';
16
16
  import { AXMConverstionModuleConst, AXMChatServiceImpl, AXMCommentServiceImpl, AXMChatModule, AXMChatService } from '@acorex/modules/conversation';
17
17
  import { AXMFormTemplateTypes, RootConfig as RootConfig$2 } from '@acorex/modules/form-template-management';
18
- import { RootConfig as RootConfig$3 } from '@acorex/modules/security-management';
19
- import { AXMOrganizationNodeType, RootConfig as RootConfig$5 } from '@acorex/modules/organization-management';
20
- import { RootConfig as RootConfig$6 } from '@acorex/modules/platform-management';
18
+ import { RootConfig as RootConfig$3 } from '@acorex/modules/log-management';
19
+ import { AXMOrganizationNodeType, RootConfig as RootConfig$6 } from '@acorex/modules/organization-management';
20
+ import { RootConfig as RootConfig$7 } from '@acorex/modules/platform-management';
21
21
  import { AXTranslationService } from '@acorex/core/translation';
22
+ import { firstValueFrom } from 'rxjs';
22
23
  import { AXFileService } from '@acorex/core/file';
23
- import { RootConfig as RootConfig$7 } from '@acorex/modules/scheduler-job-management';
24
- import { AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
25
- import { convertArrayToDataSource } from '@acorex/components/common';
26
- import { RootConfig as RootConfig$8 } from '@acorex/modules/text-template-management';
24
+ import { RootConfig as RootConfig$8 } from '@acorex/modules/scheduler-job-management';
25
+ import { RootConfig as RootConfig$9 } from '@acorex/modules/text-template-management';
27
26
 
28
27
  const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
29
28
  const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
@@ -382,8 +381,7 @@ function generateBarChartWidget() {
382
381
  return {
383
382
  config: {
384
383
  id: AXPDataGenerator$1.uuid(),
385
- height: 5,
386
- width: 6,
384
+ ...AXPBarChartWidget?.meta?.['dimensions'],
387
385
  },
388
386
  node: {
389
387
  name: `bar-chart-${uniqueId}`,
@@ -411,8 +409,7 @@ function generateClockCalendarWidget() {
411
409
  return {
412
410
  config: {
413
411
  id: AXPDataGenerator$1.uuid(),
414
- height: 5,
415
- width: 3,
412
+ ...AXPClockCalendarWidget?.meta?.['dimensions'],
416
413
  },
417
414
  node: {
418
415
  name: `clock-calendar-${uniqueId}`,
@@ -440,8 +437,7 @@ function generateWeatherWidget() {
440
437
  return {
441
438
  config: {
442
439
  id: AXPDataGenerator$1.uuid(),
443
- height: 7,
444
- width: 3,
440
+ ...AXPWeatherWidget?.meta?.['dimensions'],
445
441
  },
446
442
  node: {
447
443
  name: `weather-${uniqueId}`,
@@ -463,8 +459,7 @@ function generateStickyNoteWidget() {
463
459
  return {
464
460
  config: {
465
461
  id: AXPDataGenerator$1.uuid(),
466
- height: 3,
467
- width: 3,
462
+ ...AXPStickyNoteWidget?.meta?.['dimensions'],
468
463
  },
469
464
  node: {
470
465
  name: `sticky-note-${uniqueId}`,
@@ -484,8 +479,7 @@ function generateDonutChartWidget() {
484
479
  return {
485
480
  config: {
486
481
  id: AXPDataGenerator$1.uuid(),
487
- height: 4,
488
- width: 4,
482
+ ...AXPDonutChartWidget?.meta?.['dimensions'],
489
483
  },
490
484
  node: {
491
485
  name: `donut-chart-${uniqueId}`,
@@ -498,8 +492,8 @@ function generateDonutChartWidget() {
498
492
  { id: 'd', name: 'Dates', value: AXPDataGenerator$1.number(5, 20), color: '#9575CD' },
499
493
  ],
500
494
  options: {
501
- width: 250,
502
- height: 250,
495
+ width: 500,
496
+ height: 500,
503
497
  showLegend: true,
504
498
  showTooltip: true,
505
499
  showPercentage: true,
@@ -515,28 +509,20 @@ function generateGaugeChartWidget() {
515
509
  return {
516
510
  config: {
517
511
  id: AXPDataGenerator$1.uuid(),
518
- height: 4,
519
- width: 3,
512
+ ...AXPGaugeChartWidget?.meta?.['dimensions'],
520
513
  },
521
514
  node: {
522
515
  name: `gauge-chart-${uniqueId}`,
523
516
  path: 'gauge-chart',
524
517
  type: 'gauge-chart',
525
- defaultValue: {
526
- data: {
527
- id: 'gauge1',
528
- name: 'System Load',
529
- value: AXPDataGenerator$1.number(30, 90),
530
- color: '#2196F3',
531
- },
532
- options: {
533
- width: 250,
534
- height: 250,
535
- minValue: 0,
536
- maxValue: 100,
537
- label: 'CPU Usage',
538
- animationDuration: 3000,
539
- },
518
+ defaultValue: AXPDataGenerator$1.number(30, 90),
519
+ options: {
520
+ width: 250,
521
+ height: 250,
522
+ minValue: 0,
523
+ maxValue: 100,
524
+ label: 'CPU Usage',
525
+ animationDuration: 3000,
540
526
  },
541
527
  },
542
528
  };
@@ -568,7 +554,7 @@ function generateRandomDashboard() {
568
554
  name: `Dashboard ${AXPDataGenerator$1.firstName()}`,
569
555
  title: `${AXPDataGenerator$1.firstName()} Dashboard`,
570
556
  description: `This is a sample dashboard for ${AXPDataGenerator$1.firstName()} ${AXPDataGenerator$1.lastName()}`,
571
- widget: widgets,
557
+ widgets: widgets,
572
558
  createdAt: AXPDataGenerator$1.date(new Date(2023, 0, 1), new Date()),
573
559
  createdBy: `${AXPDataGenerator$1.firstName()} ${AXPDataGenerator$1.lastName()}`,
574
560
  };
@@ -580,137 +566,6 @@ function generateExtraRandomDashboards(count) {
580
566
  // Create dashboards: predefined + some random ones
581
567
  const DASHBOARDS = [...generateExtraRandomDashboards(AXPDataGenerator$1.number(2, 5))];
582
568
 
583
- class AXMDashboardMockService extends AXMDashboardServiceImpl {
584
- constructor() {
585
- // Call the parent constructor with the entity name
586
- super();
587
- // Use a different property name to avoid conflict with the private entityName in base class
588
- this.dashboardCollection = 'common_dashboards';
589
- // Use protected instead of private to match the visibility in the parent class
590
- this.mockStorage = inject(AXPEntityStorageService);
591
- // Initialize the storage with mock data
592
- this.mockStorage.initial(this.dashboardCollection, DASHBOARDS);
593
- }
594
- // Override getter for storageService from parent class
595
- get storageService() {
596
- return this.mockStorage;
597
- }
598
- // Override methods from AXMEntityCrudServiceImpl
599
- async insertOne(request) {
600
- const id = await this.mockStorage.insertOne(this.dashboardCollection, request);
601
- return id;
602
- }
603
- async getOne(id) {
604
- return this.mockStorage.getOne(this.dashboardCollection, id);
605
- }
606
- async deleteOne(id) {
607
- await this.mockStorage.deleteOne(this.dashboardCollection, id);
608
- }
609
- async updateOne(id, values) {
610
- await this.mockStorage.updateOne(this.dashboardCollection, id, values);
611
- return this.getOne(id);
612
- }
613
- async query(request = { skip: 0, take: 100 }) {
614
- const allItems = (await this.mockStorage.getAll(this.dashboardCollection));
615
- // Basic filtering if filter is provided in request
616
- let filteredItems = allItems;
617
- if (request.filter) {
618
- // Implement basic filtering if needed
619
- }
620
- // Pagination
621
- const skip = request.skip || 0;
622
- const take = request.take || 100;
623
- const items = filteredItems.slice(skip, skip + take);
624
- return {
625
- items,
626
- total: filteredItems.length,
627
- };
628
- }
629
- // Helper method to get all dashboards
630
- async getAll() {
631
- return this.mockStorage.getAll(this.dashboardCollection);
632
- }
633
- // Additional convenience methods specific to the mock service
634
- /**
635
- * Generate a random dashboard and add it to the store
636
- */
637
- async createRandomDashboard() {
638
- const dashboard = generateRandomDashboard();
639
- return this.insertOne(dashboard);
640
- }
641
- /**
642
- * Update widget configuration within a dashboard
643
- */
644
- async updateWidgetConfig(dashboardId, widgetId, config) {
645
- const dashboard = await this.getOne(dashboardId);
646
- if (!dashboard)
647
- return;
648
- const updatedWidgets = dashboard.widget.map((widget) => {
649
- if (widget.config.id === widgetId) {
650
- return {
651
- ...widget,
652
- config: {
653
- ...widget.config,
654
- ...config,
655
- },
656
- };
657
- }
658
- return widget;
659
- });
660
- await this.updateOne(dashboardId, {
661
- ...dashboard,
662
- widget: updatedWidgets,
663
- });
664
- }
665
- /**
666
- * Update widget node within a dashboard
667
- */
668
- async updateWidgetNode(dashboardId, widgetId, node) {
669
- const dashboard = await this.getOne(dashboardId);
670
- if (!dashboard)
671
- return;
672
- const updatedWidgets = dashboard.widget.map((widget) => {
673
- if (widget.config.id === widgetId) {
674
- return {
675
- ...widget,
676
- node: {
677
- ...widget.node,
678
- ...node,
679
- },
680
- };
681
- }
682
- return widget;
683
- });
684
- await this.updateOne(dashboardId, {
685
- ...dashboard,
686
- widget: updatedWidgets,
687
- });
688
- }
689
- /**
690
- * Get dashboards as Observable for the store
691
- */
692
- getDashboards() {
693
- return from(this.getAll());
694
- }
695
- /**
696
- * Save a dashboard (create or update)
697
- */
698
- async saveDashboard(dashboard) {
699
- if (dashboard.id) {
700
- await this.updateOne(dashboard.id, dashboard);
701
- return dashboard.id;
702
- }
703
- else {
704
- return this.insertOne(dashboard);
705
- }
706
- }
707
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDashboardMockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
708
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDashboardMockService }); }
709
- }
710
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDashboardMockService, decorators: [{
711
- type: Injectable
712
- }], ctorParameters: () => [] });
713
-
714
569
  class AXPDashboardDataSeeder {
715
570
  constructor() {
716
571
  this.storageService = inject(AXPDexieEntityStorageService);
@@ -725,41 +580,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
725
580
  type: Injectable
726
581
  }] });
727
582
 
728
- class AXCCommonMockModule {
729
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCCommonMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
730
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCCommonMockModule }); }
731
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCCommonMockModule, providers: [
732
- {
733
- provide: AXMDashboardServiceImpl,
734
- useClass: AXMDashboardMockService,
735
- },
736
- {
737
- provide: AXP_DATA_SEEDER_TOKEN,
738
- useClass: AXPDashboardDataSeeder,
739
- multi: true,
740
- },
741
- ] }); }
742
- }
743
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCCommonMockModule, decorators: [{
744
- type: NgModule,
745
- args: [{
746
- imports: [],
747
- exports: [],
748
- declarations: [],
749
- providers: [
750
- {
751
- provide: AXMDashboardServiceImpl,
752
- useClass: AXMDashboardMockService,
753
- },
754
- {
755
- provide: AXP_DATA_SEEDER_TOKEN,
756
- useClass: AXPDashboardDataSeeder,
757
- multi: true,
758
- },
759
- ],
760
- }]
761
- }] });
762
-
763
583
  const generateChatUser = () => ({
764
584
  id: AXPDataGenerator.uuid(),
765
585
  userName: AXPDataGenerator.firstName().toLowerCase(),
@@ -2202,12 +2022,12 @@ function generateCategories() {
2202
2022
  { parent: 'Chemical Safety', children: ['Chemical Labeling', 'Exposure Limits', 'Emergency Showers'] },
2203
2023
  ];
2204
2024
  childCategories.forEach(({ parent, children }) => {
2205
- const parentCategory = categories.find((c) => c.title === parent);
2206
- if (parentCategory) {
2025
+ const parentCat = categories.find((c) => c.title === parent);
2026
+ if (parentCat) {
2207
2027
  children.forEach((title) => {
2208
- categories.push({ id: AXPDataGenerator$1.uuid(), title, parentId: parentCategory.id, childCount: 0 });
2028
+ categories.push({ id: AXPDataGenerator$1.uuid(), title, parentId: parentCat.id, childCount: 0 });
2209
2029
  });
2210
- parentCategory.childCount = children.length;
2030
+ parentCat.childCount = children.length;
2211
2031
  }
2212
2032
  });
2213
2033
  return categories;
@@ -2291,6 +2111,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2291
2111
  }]
2292
2112
  }] });
2293
2113
 
2114
+ const projectMock = [
2115
+ {
2116
+ id: AXPDataGenerator.uuid(),
2117
+ level: 'Error',
2118
+ message: 'Cannot access a disposed object.',
2119
+ actionName: 'ACoreX.OIDC.AuthorizeController.GetToken (ACoreX.OIDC.HttpApi)',
2120
+ operation: 'CheckPassword',
2121
+ category: 'Authentication',
2122
+ tenantId: 'b1e7040f-f219-2f64-2893-3a0e9c2315de',
2123
+ tenantName: 'ark',
2124
+ userId: 'fb0c9a89-f57f-43dd-82c2-b50992bdde8c',
2125
+ utcTimestamp: '2025-04-15 11:53:46Z',
2126
+ type: 'auth',
2127
+ properties: {
2128
+ actionId: '50b5c660-bcc8-45bc-a111-42eab92c3adb',
2129
+ correlationId: 'de5ccac8485c4c7f9afaf15603c36227',
2130
+ requestId: '0HNBS2G24BO4E:00000002',
2131
+ requestPath: '/Token/GetToken',
2132
+ sourceContext: 'Microsoft.AspNetCore.Identity.UserManager',
2133
+ },
2134
+ },
2135
+ {
2136
+ id: AXPDataGenerator.uuid(),
2137
+ level: '2Error',
2138
+ message: '2Cannot access a disposed object.',
2139
+ actionName: '2ACoreX.OIDC.AuthorizeController.GetToken (ACoreX.OIDC.HttpApi)',
2140
+ operation: '2CheckPassword',
2141
+ category: '2Authentication',
2142
+ tenantId: '2b1e7040f-f219-2f64-2893-3a0e9c2315de',
2143
+ tenantName: '2ark',
2144
+ userId: '2fb0c9a89-f57f-43dd-82c2-b50992bdde8c',
2145
+ utcTimestamp: '2025-04-15 11:53:46Z',
2146
+ properties: {
2147
+ actionId: '50b5c660-bcc8-45bc-a111-42eab92c3adb',
2148
+ correlationId: 'de5ccac8485c4c7f9afaf15603c36227',
2149
+ requestId: '0HNBS2G24BO4E:00000002',
2150
+ requestPath: '2/Token/GetToken',
2151
+ sourceContext: '2Microsoft.AspNetCore.Identity.UserManager',
2152
+ },
2153
+ },
2154
+ {
2155
+ id: AXPDataGenerator.uuid(),
2156
+ level: '3Error',
2157
+ message: '3Cannot access a disposed object.',
2158
+ actionName: '3ACoreX.OIDC.AuthorizeController.GetToken (ACoreX.OIDC.HttpApi)',
2159
+ operation: '3CheckPassword',
2160
+ category: '3Authentication',
2161
+ tenantId: '3b1e7040f-f219-2f64-2893-3a0e9c2315de',
2162
+ tenantName: '3ark',
2163
+ userId: '3fb0c9a89-f57f-43dd-82c2-b50992bdde8c',
2164
+ utcTimestamp: '2025-04-15 11:53:46Z',
2165
+ properties: {
2166
+ actionId: '50b5c660-bcc8-45bc-a111-42eab92c3adb',
2167
+ correlationId: 'de5ccac8485c4c7f9afaf15603c36227',
2168
+ requestId: '0HNBS2G24BO4E:00000002',
2169
+ requestPath: '3/Token/GetToken',
2170
+ sourceContext: '3Microsoft.AspNetCore.Identity.UserManager',
2171
+ },
2172
+ },
2173
+ ];
2174
+
2175
+ // import { AXMLogManagementAxpLogEntityModel } from 'libs/modules/log-management/src/lib/entities/axp-log';
2176
+ class AXMLogDataSeeder {
2177
+ constructor() {
2178
+ this.storageService = inject(AXPDexieEntityStorageService);
2179
+ }
2180
+ async seed() {
2181
+ await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.axpLog.name}`, projectMock);
2182
+ }
2183
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLogDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2184
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLogDataSeeder }); }
2185
+ }
2186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLogDataSeeder, decorators: [{
2187
+ type: Injectable
2188
+ }] });
2189
+
2294
2190
  class MOCKStrategy {
2295
2191
  constructor() {
2296
2192
  this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
@@ -2299,7 +2195,7 @@ class MOCKStrategy {
2299
2195
  return 'user-pass';
2300
2196
  }
2301
2197
  async signin(credentials) {
2302
- const entityRef = await this.entityRegistery.resolve(RootConfig$3.module.name, RootConfig$3.entities.users.name);
2198
+ const entityRef = await this.entityRegistery.resolve(RootConfig$4.module.name, RootConfig$4.entities.users.name);
2303
2199
  const accessToken = 'access_token';
2304
2200
  const refreshToken = 'refresh_token';
2305
2201
  try {
@@ -2478,7 +2374,7 @@ class AXCNotificationTemplateDataSeeder {
2478
2374
  this.storageService = inject(AXPDexieEntityStorageService);
2479
2375
  }
2480
2376
  async seed() {
2481
- await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.template.name}`, NOTIFICATION_TEMPLATES);
2377
+ await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.template.name}`, NOTIFICATION_TEMPLATES);
2482
2378
  }
2483
2379
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2484
2380
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder }); }
@@ -3033,61 +2929,159 @@ class AXCOrganizationManagementDataSeeder {
3033
2929
  async seed() {
3034
2930
  const uuid = AXPDataGenerator.uuid;
3035
2931
  // Departments
3036
- await this.storageService.initial(RootConfig$5.entities.department.source, [
2932
+ await this.storageService.initial(RootConfig$6.entities.department.source, [
3037
2933
  {
3038
2934
  id: uuid(),
3039
- title: 'Engineering Division',
3040
- description: 'A department focused on engineering projects and development.',
2935
+ title: 'Software Development',
2936
+ description: 'Responsible for designing, developing, and maintaining software applications.',
2937
+ manager: {
2938
+ id: uuid(),
2939
+ firstname: 'Michael',
2940
+ lastname: 'Johnson',
2941
+ employeeCode: 'EMP003',
2942
+ },
2943
+ country: 'USA',
2944
+ province: 'New York',
2945
+ city: 'New York City',
2946
+ },
2947
+ {
2948
+ id: uuid(),
2949
+ title: 'Human Resources',
2950
+ description: 'Manages employee relations, hiring processes, and company policies.',
2951
+ manager: {
2952
+ id: uuid(),
2953
+ firstname: 'Lisa',
2954
+ lastname: 'Brown',
2955
+ employeeCode: 'EMP010',
2956
+ },
2957
+ country: 'USA',
2958
+ province: 'California',
2959
+ city: 'Los Angeles',
3041
2960
  },
3042
2961
  {
3043
2962
  id: uuid(),
3044
- title: 'Sales Division',
3045
- description: 'A department dedicated to driving sales and customer engagement.',
2963
+ title: 'IT & Infrastructure',
2964
+ description: 'Handles IT systems, security, and infrastructure management.',
2965
+ manager: {
2966
+ id: uuid(),
2967
+ firstname: 'Robert',
2968
+ lastname: 'Wilson',
2969
+ employeeCode: 'EMP009',
2970
+ },
2971
+ country: 'Germany',
2972
+ province: 'Berlin',
2973
+ city: 'Berlin',
3046
2974
  },
3047
2975
  {
3048
2976
  id: uuid(),
3049
- title: 'Customer Support Division',
3050
- description: 'A department committed to delivering excellent customer service.',
2977
+ title: 'Project Management',
2978
+ description: 'Oversees project execution and ensures successful delivery.',
2979
+ manager: {
2980
+ id: uuid(),
2981
+ firstname: 'Jane',
2982
+ lastname: 'Smith',
2983
+ employeeCode: 'EMP002',
2984
+ },
2985
+ country: 'Japan',
2986
+ province: 'Tokyo',
2987
+ city: 'Tokyo',
3051
2988
  },
3052
2989
  ]);
3053
2990
  // Divisions
3054
- await this.storageService.initial(RootConfig$5.entities.division.source, [
2991
+ await this.storageService.initial(RootConfig$6.entities.division.source, [
3055
2992
  {
3056
2993
  id: uuid(),
3057
- title: 'Software Development',
3058
- description: 'A division within the Engineering Department responsible for developing software solutions.',
2994
+ title: 'Technology Division',
2995
+ description: 'Responsible for all technology-related projects and innovations.',
2996
+ manager: {
2997
+ id: uuid(),
2998
+ firstname: 'Michael',
2999
+ lastname: 'Johnson',
3000
+ employeeCode: 'EMP003',
3001
+ },
3002
+ country: 'USA',
3003
+ province: 'New York',
3004
+ city: 'New York City',
3059
3005
  },
3060
3006
  {
3061
3007
  id: uuid(),
3062
- title: 'Business Development',
3063
- description: 'A division within the Sales Department focused on expanding business opportunities.',
3008
+ title: 'Operations Division',
3009
+ description: 'Handles operational processes, logistics, and resource management.',
3010
+ manager: {
3011
+ id: uuid(),
3012
+ firstname: 'Robert',
3013
+ lastname: 'Wilson',
3014
+ employeeCode: 'EMP009',
3015
+ },
3016
+ country: 'Germany',
3017
+ province: 'Berlin',
3018
+ city: 'Berlin',
3064
3019
  },
3065
3020
  {
3066
3021
  id: uuid(),
3067
- title: 'Technical Support',
3068
- description: 'A division within the Customer Support Department that handles technical assistance.',
3022
+ title: 'Human Capital Division',
3023
+ description: 'Manages HR policies, recruitment, and employee relations.',
3024
+ manager: {
3025
+ id: uuid(),
3026
+ firstname: 'Lisa',
3027
+ lastname: 'Brown',
3028
+ employeeCode: 'EMP010',
3029
+ },
3030
+ country: 'Japan',
3031
+ province: 'Tokyo',
3032
+ city: 'Tokyo',
3069
3033
  },
3070
3034
  ]);
3071
3035
  // Branches
3072
- await this.storageService.initial(RootConfig$5.entities.branch.source, [
3036
+ await this.storageService.initial(RootConfig$6.entities.branch.source, [
3073
3037
  {
3074
3038
  id: uuid(),
3075
- title: 'San Francisco Office',
3076
- description: 'A branch office located in San Francisco, serving as a hub for West Coast operations.',
3039
+ title: 'Headquarters',
3040
+ code: 'BR_HQ',
3041
+ manager: {
3042
+ id: uuid(),
3043
+ firstname: 'Michael',
3044
+ lastname: 'Johnson',
3045
+ employeeCode: 'EMP003',
3046
+ },
3047
+ country: 'USA',
3048
+ province: 'New York',
3049
+ city: 'New York City',
3050
+ description: 'The main headquarters located in New York City, overseeing all global operations.',
3077
3051
  },
3078
3052
  {
3079
3053
  id: uuid(),
3080
- title: 'New York Office',
3081
- description: 'A branch office located in New York, catering to our East Coast clients.',
3054
+ title: 'European Branch',
3055
+ code: 'BR_EU',
3056
+ manager: {
3057
+ id: uuid(),
3058
+ firstname: 'Robert',
3059
+ lastname: 'Wilson',
3060
+ employeeCode: 'EMP009',
3061
+ },
3062
+ country: 'Germany',
3063
+ province: 'Berlin',
3064
+ city: 'Berlin',
3065
+ description: 'The European branch located in Berlin, responsible for all business in Europe.',
3082
3066
  },
3083
3067
  {
3084
3068
  id: uuid(),
3085
- title: 'Bangalore Office',
3086
- description: 'A branch office in Bangalore supporting our international operations.',
3069
+ title: 'Asia-Pacific Branch',
3070
+ code: 'BR_APAC',
3071
+ manager: {
3072
+ id: uuid(),
3073
+ firstname: 'Lisa',
3074
+ lastname: 'Brown',
3075
+ employeeCode: 'EMP010',
3076
+ },
3077
+ country: 'Japan',
3078
+ province: 'Tokyo',
3079
+ city: 'Tokyo',
3080
+ description: 'The Asia-Pacific branch located in Tokyo, managing operations in the APAC region.',
3087
3081
  },
3088
3082
  ]);
3089
3083
  // Positions
3090
- await this.storageService.initial(RootConfig$5.entities.position.source, [
3084
+ await this.storageService.initial(RootConfig$6.entities.position.source, [
3091
3085
  {
3092
3086
  id: uuid(),
3093
3087
  title: 'Backend Developer',
@@ -3119,8 +3113,31 @@ class AXCOrganizationManagementDataSeeder {
3119
3113
  description: 'A role providing specialized technical assistance and problem resolution.',
3120
3114
  },
3121
3115
  ]);
3116
+ // Roles
3117
+ await this.storageService.initial(RootConfig$6.entities.role.source, [
3118
+ {
3119
+ id: uuid(),
3120
+ title: 'Software Engineer',
3121
+ description: 'Responsible for developing and maintaining software applications.',
3122
+ },
3123
+ {
3124
+ id: uuid(),
3125
+ title: 'Project Manager',
3126
+ description: 'Oversees project execution, ensures timely delivery, and manages team coordination.',
3127
+ },
3128
+ {
3129
+ id: uuid(),
3130
+ title: 'HR Manager',
3131
+ description: 'Handles recruitment, employee relations, and organizational policies.',
3132
+ },
3133
+ {
3134
+ id: uuid(),
3135
+ title: 'System Administrator',
3136
+ description: 'Manages IT infrastructure, ensures security, and maintains system performance.',
3137
+ },
3138
+ ]);
3122
3139
  // Employment Types
3123
- await this.storageService.initial(RootConfig$5.entities.employmentType.source, [
3140
+ await this.storageService.initial(RootConfig$6.entities.employmentType.source, [
3124
3141
  {
3125
3142
  id: uuid(),
3126
3143
  title: 'Full-Time',
@@ -3147,32 +3164,178 @@ class AXCOrganizationManagementDataSeeder {
3147
3164
  description: 'An employment type for freelance and project-based work.',
3148
3165
  },
3149
3166
  ]);
3167
+ // Teams
3168
+ await this.storageService.initial(RootConfig$6.entities.team.source, [
3169
+ {
3170
+ id: uuid(),
3171
+ title: 'Backend Development Team',
3172
+ leader: {
3173
+ id: uuid(),
3174
+ firstname: 'Jane',
3175
+ lastname: 'Smith',
3176
+ employeeCode: 'EMP002',
3177
+ },
3178
+ member: [
3179
+ {
3180
+ id: uuid(),
3181
+ firstname: 'Michael',
3182
+ lastname: 'Johnson',
3183
+ employeeCode: 'EMP003',
3184
+ },
3185
+ {
3186
+ id: uuid(),
3187
+ firstname: 'Emma',
3188
+ lastname: 'Davis',
3189
+ employeeCode: 'EMP004',
3190
+ },
3191
+ ],
3192
+ description: 'This team focuses on backend development, server-side logic, and database integration.',
3193
+ },
3194
+ {
3195
+ id: uuid(),
3196
+ title: 'Sales and HR Team',
3197
+ leader: {
3198
+ id: uuid(),
3199
+ firstname: 'Robert',
3200
+ lastname: 'Wilson',
3201
+ employeeCode: 'EMP009',
3202
+ },
3203
+ member: [
3204
+ {
3205
+ id: uuid(),
3206
+ firstname: 'Lisa',
3207
+ lastname: 'Brown',
3208
+ employeeCode: 'EMP010',
3209
+ },
3210
+ ],
3211
+ description: 'This team focuses on sales and HR operations, including recruitment and client relations.',
3212
+ },
3213
+ ]);
3150
3214
  // Employees
3151
- await this.storageService.initial(RootConfig$5.entities.employee.source, [
3152
- { id: uuid(), firstname: 'Jane', lastname: 'Smith', birthDate: new Date('1985-02-15'), employeeID: 'EMP002' },
3215
+ await this.storageService.initial(RootConfig$6.entities.employee.source, [
3216
+ {
3217
+ id: uuid(),
3218
+ firstname: 'Jane',
3219
+ lastname: 'Smith',
3220
+ birthDate: new Date('1985-02-15'),
3221
+ employeeCode: 'EMP002',
3222
+ email: 'jane.smith@example.com',
3223
+ role: {
3224
+ id: uuid(),
3225
+ title: 'Software Engineer',
3226
+ description: 'Responsible for developing and maintaining software applications.',
3227
+ },
3228
+ position: {
3229
+ id: uuid(),
3230
+ title: 'Backend Developer',
3231
+ description: 'A role responsible for server-side logic and integration with databases.',
3232
+ },
3233
+ employmentType: {
3234
+ id: uuid(),
3235
+ title: 'Full-Time',
3236
+ description: 'An employment category for full-time engagements.',
3237
+ },
3238
+ hireDate: new Date('2010-06-01'),
3239
+ },
3153
3240
  {
3154
3241
  id: uuid(),
3155
3242
  firstname: 'Michael',
3156
3243
  lastname: 'Johnson',
3157
3244
  birthDate: new Date('1978-03-22'),
3158
- employeeID: 'EMP003',
3245
+ employeeCode: 'EMP003',
3246
+ email: 'michael.johnson@example.com',
3247
+ role: {
3248
+ id: uuid(),
3249
+ title: 'Project Manager',
3250
+ description: 'Oversees project execution, ensures timely delivery, and manages team coordination.',
3251
+ },
3252
+ position: {
3253
+ id: uuid(),
3254
+ title: 'Sales Manager',
3255
+ description: 'A leadership position overseeing sales strategies and team performance.',
3256
+ },
3257
+ employmentType: {
3258
+ id: uuid(),
3259
+ title: 'Full-Time',
3260
+ description: 'An employment category for full-time engagements.',
3261
+ },
3262
+ hireDate: new Date('2005-09-12'),
3263
+ },
3264
+ {
3265
+ id: uuid(),
3266
+ firstname: 'Emma',
3267
+ lastname: 'Davis',
3268
+ birthDate: new Date('1992-04-10'),
3269
+ employeeCode: 'EMP004',
3270
+ email: 'emma.davis@example.com',
3271
+ role: {
3272
+ id: uuid(),
3273
+ title: 'HR Manager',
3274
+ description: 'Handles recruitment, employee relations, and organizational policies.',
3275
+ },
3276
+ position: {
3277
+ id: uuid(),
3278
+ title: 'Call Center Representative',
3279
+ description: 'A position dedicated to managing inbound and outbound customer calls.',
3280
+ },
3281
+ employmentType: {
3282
+ id: uuid(),
3283
+ title: 'Part-Time',
3284
+ description: 'An employment category for part-time work schedules.',
3285
+ },
3286
+ hireDate: new Date('2018-01-15'),
3159
3287
  },
3160
- { id: uuid(), firstname: 'Emma', lastname: 'Davis', birthDate: new Date('1992-04-10'), employeeID: 'EMP004' },
3161
3288
  {
3162
3289
  id: uuid(),
3163
3290
  firstname: 'Robert',
3164
3291
  lastname: 'Wilson',
3165
3292
  birthDate: new Date('1980-09-18'),
3166
- employeeID: 'EMP009',
3293
+ employeeCode: 'EMP009',
3294
+ email: 'robert.wilson@example.com',
3295
+ role: {
3296
+ id: uuid(),
3297
+ title: 'System Administrator',
3298
+ description: 'Manages IT infrastructure, ensures security, and maintains system performance.',
3299
+ },
3300
+ position: {
3301
+ id: uuid(),
3302
+ title: 'Technical Support Specialist',
3303
+ description: 'A role providing specialized technical assistance and problem resolution.',
3304
+ },
3305
+ employmentType: {
3306
+ id: uuid(),
3307
+ title: 'Contract',
3308
+ description: 'An employment type based on fixed-term contractual agreements.',
3309
+ },
3310
+ hireDate: new Date('2012-03-05'),
3311
+ },
3312
+ {
3313
+ id: uuid(),
3314
+ firstname: 'Lisa',
3315
+ lastname: 'Brown',
3316
+ birthDate: new Date('1987-10-29'),
3317
+ employeeCode: 'EMP010',
3318
+ email: 'lisa.brown@example.com',
3319
+ role: {
3320
+ id: uuid(),
3321
+ title: 'HR Manager',
3322
+ description: 'Handles recruitment, employee relations, and organizational policies.',
3323
+ },
3324
+ position: {
3325
+ id: uuid(),
3326
+ title: 'Sales Representative',
3327
+ description: 'A role tasked with building client relationships and closing sales deals.',
3328
+ },
3329
+ employmentType: {
3330
+ id: uuid(),
3331
+ title: 'Internship',
3332
+ description: 'An employment type designed for internship programs.',
3333
+ },
3334
+ hireDate: new Date('2014-07-11'),
3167
3335
  },
3168
- { id: uuid(), firstname: 'Lisa', lastname: 'Brown', birthDate: new Date('1987-10-29'), employeeID: 'EMP010' },
3169
- { id: uuid(), firstname: 'Rahul', lastname: 'Sharma', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
3170
- { id: uuid(), firstname: 'Priya', lastname: 'Kapoor', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
3171
- { id: uuid(), firstname: 'Amit', lastname: 'Verma', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
3172
- { id: uuid(), firstname: 'Vikram', lastname: 'Singh', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
3173
3336
  ]);
3174
3337
  // Store Chart Data
3175
- await this.storageService.initial(RootConfig$5.entities.chart.source, [
3338
+ await this.storageService.initial(RootConfig$6.entities.chart.source, [
3176
3339
  {
3177
3340
  id: uuid(),
3178
3341
  version: '1.0',
@@ -3298,7 +3461,7 @@ class AXCAppTermDataSeeder {
3298
3461
  this.storageService = inject(AXPDexieEntityStorageService);
3299
3462
  }
3300
3463
  async seed() {
3301
- await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.appTerm.name}`, APP_TERMS);
3464
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appTerm.name}`, APP_TERMS);
3302
3465
  }
3303
3466
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3304
3467
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder }); }
@@ -3333,7 +3496,7 @@ class AXCAppVersionDataSeeder {
3333
3496
  this.storageService = inject(AXPDexieEntityStorageService);
3334
3497
  }
3335
3498
  async seed() {
3336
- await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.appVersion.name}`, APP_VERSIONS);
3499
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appVersion.name}`, APP_VERSIONS);
3337
3500
  }
3338
3501
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3339
3502
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder }); }
@@ -3364,7 +3527,7 @@ class AXCGlobalVariablesDataSeeder {
3364
3527
  this.storageService = inject(AXPDexieEntityStorageService);
3365
3528
  }
3366
3529
  async seed() {
3367
- await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.globalVariable.name}`, GLOBAL_VARIABLES);
3530
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.globalVariable.name}`, GLOBAL_VARIABLES);
3368
3531
  }
3369
3532
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3370
3533
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder }); }
@@ -3593,26 +3756,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
3593
3756
  type: Injectable
3594
3757
  }], ctorParameters: () => [] });
3595
3758
 
3759
+ function generateIssueTypes() {
3760
+ const issueTypes = [
3761
+ {
3762
+ id: AXPDataGenerator$1.uuid(),
3763
+ name: 'system-error',
3764
+ title: 'System Error',
3765
+ description: 'Technical issues related to system functionality, crashes, or unexpected errors',
3766
+ },
3767
+ {
3768
+ id: AXPDataGenerator$1.uuid(),
3769
+ name: 'performance',
3770
+ title: 'Performance Issue',
3771
+ description: 'Problems with system speed, response time, or resource usage',
3772
+ },
3773
+ {
3774
+ id: AXPDataGenerator$1.uuid(),
3775
+ name: 'security',
3776
+ title: 'Security Concern',
3777
+ description: 'Security-related issues, access problems, or potential vulnerabilities',
3778
+ },
3779
+ {
3780
+ id: AXPDataGenerator$1.uuid(),
3781
+ name: 'data',
3782
+ title: 'Data Issue',
3783
+ description: 'Problems with data integrity, synchronization, or corruption',
3784
+ },
3785
+ {
3786
+ id: AXPDataGenerator$1.uuid(),
3787
+ name: 'ui-ux',
3788
+ title: 'UI/UX Problem',
3789
+ description: 'Issues with user interface, layout, or user experience',
3790
+ },
3791
+ {
3792
+ id: AXPDataGenerator$1.uuid(),
3793
+ name: 'configuration',
3794
+ title: 'Configuration Error',
3795
+ description: 'Problems with system settings, environment configuration, or setup',
3796
+ },
3797
+ {
3798
+ id: AXPDataGenerator$1.uuid(),
3799
+ name: 'integration',
3800
+ title: 'Integration Issue',
3801
+ },
3802
+ {
3803
+ id: AXPDataGenerator$1.uuid(),
3804
+ name: 'network',
3805
+ title: 'Network Problem',
3806
+ description: 'Connectivity issues, network timeouts, or communication errors',
3807
+ },
3808
+ {
3809
+ id: AXPDataGenerator$1.uuid(),
3810
+ name: 'feature-request',
3811
+ title: 'Feature Request',
3812
+ description: 'Requests for new features, enhancements, or functionality improvements',
3813
+ },
3814
+ {
3815
+ id: AXPDataGenerator$1.uuid(),
3816
+ name: 'documentation',
3817
+ title: 'Documentation Issue',
3818
+ description: 'Problems with system documentation, help guides, or instructions',
3819
+ },
3820
+ ];
3821
+ return issueTypes;
3822
+ }
3823
+ const ISSUE_TYPES = generateIssueTypes();
3824
+
3825
+ class AXPIssueTypeDataSeeder {
3826
+ constructor() {
3827
+ this.storageService = inject(AXPDexieEntityStorageService);
3828
+ }
3829
+ async seed() {
3830
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.issueType.name}`, ISSUE_TYPES);
3831
+ }
3832
+ }
3833
+
3596
3834
  const OHS_ID = AXPDataGenerator$1.uuid();
3835
+ const child1 = {
3836
+ id: AXPDataGenerator$1.uuid(),
3837
+ title: 'General',
3838
+ parentId: OHS_ID,
3839
+ childCount: 0,
3840
+ };
3841
+ const child2 = {
3842
+ id: AXPDataGenerator$1.uuid(),
3843
+ title: 'License',
3844
+ parentId: OHS_ID,
3845
+ childCount: 0,
3846
+ };
3597
3847
  const METADATA_CATEGORY_MOCK = [
3598
3848
  {
3599
3849
  id: AXPDataGenerator$1.uuid(),
3600
3850
  title: 'General',
3851
+ childCount: 0,
3601
3852
  },
3602
3853
  {
3603
3854
  id: OHS_ID,
3604
3855
  title: 'OHS',
3856
+ childCount: 2,
3857
+ children: [child1, child2],
3605
3858
  },
3606
- {
3607
- id: AXPDataGenerator$1.uuid(),
3608
- title: 'General',
3609
- parentId: OHS_ID,
3610
- },
3611
- {
3612
- id: AXPDataGenerator$1.uuid(),
3613
- title: 'License',
3614
- parentId: OHS_ID,
3615
- },
3859
+ child1,
3860
+ child2,
3616
3861
  ];
3617
3862
  const checkbox = '{"type":"document-layout","children":[{"type":"page-layout","children":[{"type":"checkbox-editor","name":"checkbox-editor1","options":{"label":"i accept","readonly":false,"disabled":false},"defaultValue":false,"path":"accept-check-box"}],"name":"page-layout1"}],"name":"document"}';
3618
3863
  const colorboxInterface = '{"type":"document-layout","children":[{"type":"page-layout","children":[{"type":"block-layout","name":"block-layout1","options":{"flexDirection":{"id":"ax-flex-row"},"flexJustifyContent":{"id":"ax-justify-normal"},"flexAlignItems":{"id":"ax-items-start"},"gap":2,"flexWrap":{"id":"ax-flex-nowrap"},"spacing":{"margin":"0px 0px 0px 0px","padding":"0px 0px 0px 0px"},"border":{"width":"0px","radius":"0px","color":"#000000","style":"none"},"flexOptions":{"gap":"0px","flexDirection":"row","flexWrap":"nowrap","justifyContent":"flex-start","alignItems":"flex-start"}}},"children":[{"type":"color-editor","name":"color-editor1","options":{"readonly":false,"disabled":false,"validations":{"required":{"rule":"required","message":"This field is required."}},"placeholder":"pick color"},"path":"color-box"}]}],"name":"page-layout1"}],"name":"document"}';
@@ -3627,7 +3872,8 @@ const METADATA_MOCK = [
3627
3872
  title: 'Title',
3628
3873
  defaultValue: '',
3629
3874
  interface: titleInterface,
3630
- categoryId: METADATA_CATEGORY_MOCK[0].id,
3875
+ categoryIds: [METADATA_CATEGORY_MOCK[0].id],
3876
+ categories: [METADATA_CATEGORY_MOCK[0]],
3631
3877
  },
3632
3878
  {
3633
3879
  id: AXPDataGenerator$1.uuid(),
@@ -3635,7 +3881,8 @@ const METADATA_MOCK = [
3635
3881
  title: 'Description',
3636
3882
  defaultValue: '',
3637
3883
  interface: descriptionInterface,
3638
- categoryId: METADATA_CATEGORY_MOCK[0].id,
3884
+ categoryIds: [METADATA_CATEGORY_MOCK[0].id],
3885
+ categories: [METADATA_CATEGORY_MOCK[0]],
3639
3886
  },
3640
3887
  {
3641
3888
  id: AXPDataGenerator$1.uuid(),
@@ -3643,7 +3890,8 @@ const METADATA_MOCK = [
3643
3890
  title: 'Agreement Box',
3644
3891
  defaultValue: false,
3645
3892
  interface: checkbox,
3646
- categoryId: METADATA_CATEGORY_MOCK[2].id,
3893
+ categoryIds: [METADATA_CATEGORY_MOCK[2].id],
3894
+ categories: [METADATA_CATEGORY_MOCK[2]],
3647
3895
  },
3648
3896
  {
3649
3897
  id: AXPDataGenerator$1.uuid(),
@@ -3651,7 +3899,8 @@ const METADATA_MOCK = [
3651
3899
  title: 'Contract Number',
3652
3900
  defaultValue: '',
3653
3901
  interface: contractNumberInterface,
3654
- categoryId: METADATA_CATEGORY_MOCK[2].id,
3902
+ categoryIds: [METADATA_CATEGORY_MOCK[2].id],
3903
+ categories: [METADATA_CATEGORY_MOCK[2]],
3655
3904
  },
3656
3905
  {
3657
3906
  id: AXPDataGenerator$1.uuid(),
@@ -3659,7 +3908,8 @@ const METADATA_MOCK = [
3659
3908
  title: 'Evaluator',
3660
3909
  defaultValue: '',
3661
3910
  interface: evaluatorInterface,
3662
- categoryId: METADATA_CATEGORY_MOCK[3].id,
3911
+ categoryIds: [METADATA_CATEGORY_MOCK[3].id],
3912
+ categories: [METADATA_CATEGORY_MOCK[3]],
3663
3913
  },
3664
3914
  ];
3665
3915
 
@@ -3668,8 +3918,8 @@ class AXCMetaDataDefinitionDataSeeder {
3668
3918
  this.storageService = inject(AXPDexieEntityStorageService);
3669
3919
  }
3670
3920
  async seed() {
3671
- await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.metaDataDefinitionCategory.name}`, METADATA_CATEGORY_MOCK);
3672
- await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.metaDataDefinition.name}`, METADATA_MOCK);
3921
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinitionCategory.name}`, METADATA_CATEGORY_MOCK);
3922
+ await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinition.name}`, METADATA_MOCK);
3673
3923
  }
3674
3924
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3675
3925
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder }); }
@@ -3700,7 +3950,7 @@ class AXCSchedulerJobDataSeeder {
3700
3950
  this.storageService = inject(AXPDexieEntityStorageService);
3701
3951
  }
3702
3952
  async seed() {
3703
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.schedulerJob.name}`, SCHEDULER_JOB);
3953
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.schedulerJob.name}`, SCHEDULER_JOB);
3704
3954
  }
3705
3955
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3706
3956
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder }); }
@@ -3709,202 +3959,133 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
3709
3959
  type: Injectable
3710
3960
  }] });
3711
3961
 
3712
- class AXPSecurityManagementMockWidgetDataSourceProvider {
3713
- async items() {
3714
- return [
3715
- {
3716
- name: 'mock.securityUsers',
3717
- title: 'Security Users',
3718
- valueField: 'id',
3719
- textField: 'displayName',
3720
- columns: [
3721
- {
3722
- name: 'id',
3723
- title: 'Id',
3724
- },
3725
- {
3726
- name: 'username',
3727
- title: 'Username',
3728
- },
3729
- {
3730
- name: 'displayName',
3731
- title: 'Display Name',
3732
- },
3733
- ],
3734
- samples: [
3735
- {
3736
- id: '1',
3737
- username: 'johndoe',
3738
- displayName: 'John Doe',
3739
- },
3740
- {
3741
- id: '2',
3742
- username: 'janesmith',
3743
- displayName: 'Jane Smith',
3744
- },
3745
- ],
3746
- source: () => convertArrayToDataSource([
3747
- {
3748
- id: '1',
3749
- username: 'johndoe',
3750
- displayName: 'John Doe',
3751
- },
3752
- {
3753
- id: '2',
3754
- username: 'janesmith',
3755
- displayName: 'Jane Smith',
3756
- },
3757
- {
3758
- id: '3',
3759
- username: 'mikeross',
3760
- displayName: 'Mike Ross',
3761
- },
3762
- ]),
3763
- },
3764
- {
3765
- name: 'mock.securityRoles',
3766
- title: 'Security Roles',
3767
- valueField: 'id',
3768
- textField: 'title',
3769
- columns: [
3770
- {
3771
- name: 'id',
3772
- title: 'Id',
3773
- },
3774
- {
3775
- name: 'title',
3776
- title: 'Title',
3777
- },
3778
- ],
3779
- samples: [
3780
- {
3781
- id: 'admin',
3782
- title: 'Administrator',
3783
- },
3784
- {
3785
- id: 'user',
3786
- title: 'Regular User',
3787
- },
3788
- ],
3789
- source: () => convertArrayToDataSource([
3790
- {
3791
- id: 'admin',
3792
- title: 'Administrator',
3793
- },
3794
- {
3795
- id: 'manager',
3796
- title: 'Manager',
3797
- },
3798
- {
3799
- id: 'user',
3800
- title: 'Regular User',
3801
- },
3802
- ]),
3803
- },
3804
- ];
3805
- }
3806
- }
3807
-
3808
- class AXPSecurityManagementRoleDataSeeder {
3809
- constructor() {
3810
- this.storageService = inject(AXPDexieEntityStorageService);
3811
- this.permissionService = inject(AXPPermissionProviderService);
3812
- }
3813
- async seed() {
3814
- const permissions = await this.permissionService.permissions();
3815
- const permissionKeys = permissions.map((p) => p.name);
3816
- // Generate roles with random permissions from the actual permission list
3817
- const roles = mockRoleDefinitions.map((role) => ({
3818
- ...role,
3819
- permissions: this.getRandomPermissions(permissionKeys, 2, 5), // Get 2-5 random permissions
3820
- }));
3821
- await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.roles.name}`, roles);
3962
+ class AXCDeviceSessionService extends AXMDeviceSessionsServiceImpl {
3963
+ async terminate(id) {
3964
+ const item = await this.updateOne(id, {
3965
+ status: AXMSessionStatusTypes.revoked,
3966
+ });
3967
+ if (item.status != AXMSessionStatusTypes.revoked) {
3968
+ return false;
3969
+ }
3970
+ return true;
3822
3971
  }
3823
- getRandomPermissions(permissions, min, max) {
3824
- const count = Math.floor(Math.random() * (max - min + 1)) + min;
3825
- const shuffled = [...permissions].sort(() => 0.5 - Math.random());
3826
- return shuffled.slice(0, count);
3972
+ async query(request) {
3973
+ let filterByStatus = {
3974
+ field: 'status',
3975
+ value: AXMSessionStatusTypes.active,
3976
+ operator: { type: 'equal' },
3977
+ };
3978
+ request?.filter?.filters?.push(filterByStatus);
3979
+ let res = await super.query(request);
3980
+ return res;
3827
3981
  }
3828
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3829
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder }); }
3830
3982
  }
3831
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder, decorators: [{
3832
- type: Injectable
3833
- }] });
3834
3983
 
3835
- class AXPSecurityManagementUserDataSeeder {
3984
+ class AXPSecurityManagementDeviceSessionDataSeeder {
3836
3985
  constructor() {
3837
3986
  this.storageService = inject(AXPDexieEntityStorageService);
3987
+ this.sessionService = inject(AXPSessionService);
3838
3988
  }
3839
3989
  async seed() {
3840
- await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.users.name}`, this.generateUsers());
3841
- }
3842
- generateUsers() {
3843
- return mockUsers.map((user) => ({
3844
- id: user.id,
3845
- username: user.username,
3846
- firstname: user.firstname,
3847
- lastname: user.lastname,
3848
- nationalCode: user.nationalCode,
3849
- mobile: user.mobile,
3850
- password: '123',
3851
- roles: user.roleIds,
3852
- }));
3990
+ await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.deviceSessions.name}`, this.generateDeviceSessions());
3991
+ }
3992
+ generateDeviceSessions() {
3993
+ const deviceSessions = [];
3994
+ const clientNames = ['Client A', 'Client B', 'Client C', 'Client D', 'Client E'];
3995
+ const userAgents = [
3996
+ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120.0.0.0 Safari/537.36',
3997
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_7) AppleWebKit/537.36 Chrome/120.0.0.0 Safari/537.36',
3998
+ 'Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 Chrome/120.0.0.0 Mobile Safari/537.36',
3999
+ 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/537.36 Version/16.1 Mobile/15E148 Safari/537.36',
4000
+ 'PostmanRuntime/7.43.0',
4001
+ ];
4002
+ const ipAddresses = ['192.168.1.101', '10.0.0.42', '172.16.254.23', '203.0.113.99', '8.8.4.4'];
4003
+ const locations = [
4004
+ 'New York, USA',
4005
+ 'Toronto, Canada',
4006
+ 'Berlin, Germany',
4007
+ 'Paris, France',
4008
+ 'Amsterdam, Netherlands',
4009
+ ];
4010
+ const browsers = ['Google Chrome', 'Mozilla Firefox', 'Microsoft Edge', 'Safari', 'Opera'];
4011
+ const devices = ['MacBook Pro', 'Windows Laptop', 'Android Phone', 'iPhone 13', 'iPad Pro'];
4012
+ const operatingSystems = ['macOS', 'Windows 11', 'Android 12', 'iOS 16', 'Linux Ubuntu 22.04'];
4013
+ for (let i = 0; i < 20; i++) {
4014
+ const userId = AXPDataGenerator.uuid();
4015
+ const applicationId = AXPDataGenerator.uuid();
4016
+ const tenantId = AXPDataGenerator.uuid();
4017
+ const lastModifierId = AXPDataGenerator.uuid();
4018
+ const authorizationId = AXPDataGenerator.uuid();
4019
+ const creationTime = new Date();
4020
+ creationTime.setMinutes(creationTime.getMinutes() - Math.floor(Math.random() * 1440)); // Past 24 hours
4021
+ const lastModificationTime = new Date(creationTime);
4022
+ lastModificationTime.setMinutes(creationTime.getMinutes() + Math.floor(Math.random() * 60)); // Random modification time
4023
+ const lastLoginDate = new Date();
4024
+ lastLoginDate.setDate(lastLoginDate.getDate() - Math.floor(Math.random() * 30)); // Past 30 days
4025
+ deviceSessions.push({
4026
+ id: AXPDataGenerator.uuid(),
4027
+ userId: userId,
4028
+ user: { id: userId, name: `User ${i + 1}` },
4029
+ application: { id: applicationId, name: 'ACoreX' },
4030
+ tenant: { id: tenantId, name: 'ACoreX Tenant' },
4031
+ applicationId: applicationId,
4032
+ tenantId: tenantId,
4033
+ clientName: clientNames[Math.floor(Math.random() * clientNames.length)],
4034
+ ipAddress: ipAddresses[Math.floor(Math.random() * ipAddresses.length)],
4035
+ userAgent: userAgents[Math.floor(Math.random() * userAgents.length)],
4036
+ authorizationId: authorizationId,
4037
+ status: AXMSessionStatusTypes.active,
4038
+ isActiveSession: Math.random() < 0.5, // Random true/false
4039
+ browser: browsers[Math.floor(Math.random() * browsers.length)],
4040
+ location: locations[Math.floor(Math.random() * locations.length)],
4041
+ deviceName: devices[Math.floor(Math.random() * devices.length)],
4042
+ operatingSystem: operatingSystems[Math.floor(Math.random() * operatingSystems.length)],
4043
+ lastLoginDate: lastLoginDate,
4044
+ });
4045
+ }
4046
+ if (this.sessionService.user?.id) {
4047
+ for (let i = 0; i < 5; i++) {
4048
+ const userId = this.sessionService.user.id;
4049
+ const applicationId = AXPDataGenerator.uuid();
4050
+ const tenantId = AXPDataGenerator.uuid();
4051
+ const authorizationId = AXPDataGenerator.uuid();
4052
+ const creationTime = new Date();
4053
+ creationTime.setMinutes(creationTime.getMinutes() - Math.floor(Math.random() * 1440)); // Past 24 hours
4054
+ const lastModificationTime = new Date(creationTime);
4055
+ lastModificationTime.setMinutes(creationTime.getMinutes() + Math.floor(Math.random() * 60)); // Random modification time
4056
+ const lastLoginDate = new Date();
4057
+ lastLoginDate.setDate(lastLoginDate.getDate() - Math.floor(Math.random() * 30)); // Past 30 days
4058
+ deviceSessions.push({
4059
+ id: AXPDataGenerator.uuid(),
4060
+ userId: userId,
4061
+ user: { id: userId, name: this.sessionService.user.name },
4062
+ application: { id: applicationId, name: 'ACoreX' },
4063
+ tenant: { id: tenantId, name: 'ACoreX Tenant' },
4064
+ applicationId: applicationId,
4065
+ tenantId: tenantId,
4066
+ clientName: clientNames[Math.floor(Math.random() * clientNames.length)],
4067
+ ipAddress: ipAddresses[Math.floor(Math.random() * ipAddresses.length)],
4068
+ userAgent: userAgents[Math.floor(Math.random() * userAgents.length)],
4069
+ authorizationId: authorizationId,
4070
+ status: AXMSessionStatusTypes.active,
4071
+ isActiveSession: i == 0 ? true : false,
4072
+ browser: browsers[Math.floor(Math.random() * browsers.length)],
4073
+ location: locations[Math.floor(Math.random() * locations.length)],
4074
+ deviceName: devices[Math.floor(Math.random() * devices.length)],
4075
+ operatingSystem: operatingSystems[Math.floor(Math.random() * operatingSystems.length)],
4076
+ lastLoginDate: lastLoginDate,
4077
+ });
4078
+ }
4079
+ }
4080
+ return deviceSessions;
3853
4081
  }
3854
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3855
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder }); }
4082
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4083
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder }); }
3856
4084
  }
3857
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder, decorators: [{
4085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder, decorators: [{
3858
4086
  type: Injectable
3859
4087
  }] });
3860
4088
 
3861
- class AXCSecurityManagementMockModule {
3862
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSecurityManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3863
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCSecurityManagementMockModule }); }
3864
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSecurityManagementMockModule, providers: [
3865
- {
3866
- provide: AXP_WIDGET_DATASOURCE_PROVIDER,
3867
- useClass: AXPSecurityManagementMockWidgetDataSourceProvider,
3868
- multi: true,
3869
- },
3870
- {
3871
- provide: AXP_DATA_SEEDER_TOKEN,
3872
- useClass: AXPSecurityManagementUserDataSeeder,
3873
- multi: true,
3874
- },
3875
- {
3876
- provide: AXP_DATA_SEEDER_TOKEN,
3877
- useClass: AXPSecurityManagementRoleDataSeeder,
3878
- multi: true,
3879
- },
3880
- ] }); }
3881
- }
3882
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSecurityManagementMockModule, decorators: [{
3883
- type: NgModule,
3884
- args: [{
3885
- imports: [],
3886
- exports: [],
3887
- declarations: [],
3888
- providers: [
3889
- {
3890
- provide: AXP_WIDGET_DATASOURCE_PROVIDER,
3891
- useClass: AXPSecurityManagementMockWidgetDataSourceProvider,
3892
- multi: true,
3893
- },
3894
- {
3895
- provide: AXP_DATA_SEEDER_TOKEN,
3896
- useClass: AXPSecurityManagementUserDataSeeder,
3897
- multi: true,
3898
- },
3899
- {
3900
- provide: AXP_DATA_SEEDER_TOKEN,
3901
- useClass: AXPSecurityManagementRoleDataSeeder,
3902
- multi: true,
3903
- },
3904
- ],
3905
- }]
3906
- }] });
3907
-
3908
4089
  const TEXT_TEMPLATE_CATEGORY = [
3909
4090
  {
3910
4091
  id: AXPDataGenerator.uuid(),
@@ -4027,7 +4208,7 @@ class AXCTextTemplateCategoryDataSeeder {
4027
4208
  this.storageService = inject(AXPDexieEntityStorageService);
4028
4209
  }
4029
4210
  async seed() {
4030
- await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
4211
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
4031
4212
  }
4032
4213
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4033
4214
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder }); }
@@ -4041,7 +4222,7 @@ class AXCTextTemplateDataSeeder {
4041
4222
  this.storageService = inject(AXPDexieEntityStorageService);
4042
4223
  }
4043
4224
  async seed() {
4044
- await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.template.name}`, TEXT_TEMPLATES);
4225
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.template.name}`, TEXT_TEMPLATES);
4045
4226
  }
4046
4227
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4047
4228
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder }); }
@@ -4054,9 +4235,7 @@ class AXCMockModule {
4054
4235
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4055
4236
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, imports: [i1$1.AXPAuthModule, AXCFormTemplateManagementMockModule,
4056
4237
  AXCFOrganizationManagementMockModule,
4057
- AXCConversationMockModule,
4058
- AXCSecurityManagementMockModule,
4059
- AXCCommonMockModule] }); }
4238
+ AXCConversationMockModule] }); }
4060
4239
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, providers: [
4061
4240
  AXPDexieEntityStorageService,
4062
4241
  {
@@ -4067,6 +4246,10 @@ class AXCMockModule {
4067
4246
  provide: AXPEntityStorageService,
4068
4247
  useClass: AXPDexieEntityStorageService,
4069
4248
  },
4249
+ {
4250
+ provide: AXMDeviceSessionsService,
4251
+ useClass: AXCDeviceSessionService,
4252
+ },
4070
4253
  {
4071
4254
  provide: AXP_DATA_SEEDER_TOKEN,
4072
4255
  useClass: AXCGlobalVariablesDataSeeder,
@@ -4087,6 +4270,11 @@ class AXCMockModule {
4087
4270
  useClass: AXCApplicationTemplateDataSeeder,
4088
4271
  multi: true,
4089
4272
  },
4273
+ {
4274
+ provide: AXP_DATA_SEEDER_TOKEN,
4275
+ useClass: AXPIssueTypeDataSeeder,
4276
+ multi: true,
4277
+ },
4090
4278
  {
4091
4279
  provide: AXP_DATA_SEEDER_TOKEN,
4092
4280
  useClass: AXCSchedulerJobDataSeeder,
@@ -4122,6 +4310,16 @@ class AXCMockModule {
4122
4310
  useClass: AXCDocumentTypeDataSeeder,
4123
4311
  multi: true,
4124
4312
  },
4313
+ {
4314
+ provide: AXP_DATA_SEEDER_TOKEN,
4315
+ useClass: AXPSecurityManagementDeviceSessionDataSeeder,
4316
+ multi: true,
4317
+ },
4318
+ {
4319
+ provide: AXP_DATA_SEEDER_TOKEN,
4320
+ useClass: AXPDashboardDataSeeder,
4321
+ multi: true,
4322
+ },
4125
4323
  {
4126
4324
  provide: AXPModuleDesignerService,
4127
4325
  useClass: AXCModuleDesignerService,
@@ -4147,14 +4345,17 @@ class AXCMockModule {
4147
4345
  useClass: EntitySearchProvider,
4148
4346
  multi: true,
4149
4347
  },
4348
+ {
4349
+ provide: AXP_DATA_SEEDER_TOKEN,
4350
+ useClass: AXMLogDataSeeder,
4351
+ multi: true,
4352
+ },
4150
4353
  ], imports: [AXPAuthModule.forRoot({
4151
4354
  strategies: [MOCKStrategy],
4152
4355
  }),
4153
4356
  AXCFormTemplateManagementMockModule,
4154
4357
  AXCFOrganizationManagementMockModule,
4155
- AXCConversationMockModule,
4156
- AXCSecurityManagementMockModule,
4157
- AXCCommonMockModule] }); }
4358
+ AXCConversationMockModule] }); }
4158
4359
  }
4159
4360
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, decorators: [{
4160
4361
  type: NgModule,
@@ -4166,8 +4367,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4166
4367
  AXCFormTemplateManagementMockModule,
4167
4368
  AXCFOrganizationManagementMockModule,
4168
4369
  AXCConversationMockModule,
4169
- AXCSecurityManagementMockModule,
4170
- AXCCommonMockModule,
4171
4370
  ],
4172
4371
  exports: [],
4173
4372
  declarations: [],
@@ -4181,6 +4380,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4181
4380
  provide: AXPEntityStorageService,
4182
4381
  useClass: AXPDexieEntityStorageService,
4183
4382
  },
4383
+ {
4384
+ provide: AXMDeviceSessionsService,
4385
+ useClass: AXCDeviceSessionService,
4386
+ },
4184
4387
  {
4185
4388
  provide: AXP_DATA_SEEDER_TOKEN,
4186
4389
  useClass: AXCGlobalVariablesDataSeeder,
@@ -4201,6 +4404,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4201
4404
  useClass: AXCApplicationTemplateDataSeeder,
4202
4405
  multi: true,
4203
4406
  },
4407
+ {
4408
+ provide: AXP_DATA_SEEDER_TOKEN,
4409
+ useClass: AXPIssueTypeDataSeeder,
4410
+ multi: true,
4411
+ },
4204
4412
  {
4205
4413
  provide: AXP_DATA_SEEDER_TOKEN,
4206
4414
  useClass: AXCSchedulerJobDataSeeder,
@@ -4236,6 +4444,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4236
4444
  useClass: AXCDocumentTypeDataSeeder,
4237
4445
  multi: true,
4238
4446
  },
4447
+ {
4448
+ provide: AXP_DATA_SEEDER_TOKEN,
4449
+ useClass: AXPSecurityManagementDeviceSessionDataSeeder,
4450
+ multi: true,
4451
+ },
4452
+ {
4453
+ provide: AXP_DATA_SEEDER_TOKEN,
4454
+ useClass: AXPDashboardDataSeeder,
4455
+ multi: true,
4456
+ },
4239
4457
  {
4240
4458
  provide: AXPModuleDesignerService,
4241
4459
  useClass: AXCModuleDesignerService,
@@ -4261,6 +4479,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4261
4479
  useClass: EntitySearchProvider,
4262
4480
  multi: true,
4263
4481
  },
4482
+ {
4483
+ provide: AXP_DATA_SEEDER_TOKEN,
4484
+ useClass: AXMLogDataSeeder,
4485
+ multi: true,
4486
+ },
4264
4487
  ],
4265
4488
  }]
4266
4489
  }] });