@acorex/connectivity 19.2.6 → 19.2.8
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 +395 -148
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/lib/mock.module.d.ts +1 -1
- package/mock/lib/organization-management/org-chart.mock.d.ts +2 -0
- package/package.json +1 -1
- /package/mock/lib/{organization-managment → organization-management}/organization-management-mock.module.d.ts +0 -0
- /package/mock/lib/{organization-managment → organization-management}/organization-management.seeder.d.ts +0 -0
@@ -12,11 +12,11 @@ import Dexie from 'dexie';
|
|
12
12
|
import { AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
|
13
13
|
import { convertArrayToDataSource } from '@acorex/components/common';
|
14
14
|
import { RootConfig } from '@acorex/modules/form-template-management';
|
15
|
-
import { RootConfig as RootConfig$2 } from '@acorex/modules/
|
16
|
-
import { RootConfig as RootConfig$3 } from '@acorex/modules/platform-management';
|
15
|
+
import { RootConfig as RootConfig$2 } from '@acorex/modules/platform-management';
|
17
16
|
import { AXFileService } from '@acorex/core/file';
|
18
|
-
import { RootConfig as RootConfig$
|
19
|
-
import { RootConfig as RootConfig$
|
17
|
+
import { RootConfig as RootConfig$3 } from '@acorex/modules/scheduler-job-management';
|
18
|
+
import { RootConfig as RootConfig$4 } from '@acorex/modules/text-template-management';
|
19
|
+
import { AXMOrganizationNodeType, RootConfig as RootConfig$5 } from '@acorex/modules/organization-management';
|
20
20
|
|
21
21
|
const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
22
22
|
const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
|
@@ -592,7 +592,16 @@ class AXPMockWidgetDataSourceProvider {
|
|
592
592
|
{
|
593
593
|
name: 'mock.users',
|
594
594
|
title: 'Users',
|
595
|
-
columns: [
|
595
|
+
columns: [
|
596
|
+
{
|
597
|
+
name: 'id',
|
598
|
+
title: "Id",
|
599
|
+
},
|
600
|
+
{
|
601
|
+
name: 'title',
|
602
|
+
title: "Title"
|
603
|
+
}
|
604
|
+
],
|
596
605
|
samples: [
|
597
606
|
{
|
598
607
|
id: '2',
|
@@ -862,143 +871,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
862
871
|
type: Injectable
|
863
872
|
}] });
|
864
873
|
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
const departments = await this.storageService.initial(RootConfig$2.entities.department.source, [
|
873
|
-
{ id: uuid(), title: 'Human Resources' },
|
874
|
-
{ id: uuid(), title: 'Financial Services' },
|
875
|
-
{ id: uuid(), title: 'Information Technology' },
|
876
|
-
{ id: uuid(), title: 'Marketing and Communications' },
|
877
|
-
{ id: uuid(), title: 'Sales and Customer Relations' },
|
878
|
-
]);
|
879
|
-
// Divisions
|
880
|
-
const divisions = await this.storageService.initial(RootConfig$2.entities.division.source, [
|
881
|
-
{ id: uuid(), title: 'Northern Division' },
|
882
|
-
{ id: uuid(), title: 'Southern Division' },
|
883
|
-
{ id: uuid(), title: 'Eastern Division' },
|
884
|
-
{ id: uuid(), title: 'Western Division' },
|
885
|
-
{ id: uuid(), title: 'Central Division' },
|
886
|
-
]);
|
887
|
-
// Branches
|
888
|
-
const branches = await this.storageService.initial(RootConfig$2.entities.branch.source, [
|
889
|
-
{ id: uuid(), title: 'Headquarters' },
|
890
|
-
{ id: uuid(), title: 'Regional Office A' },
|
891
|
-
{ id: uuid(), title: 'Regional Office B' },
|
892
|
-
{ id: uuid(), title: 'Regional Office C' },
|
893
|
-
{ id: uuid(), title: 'Regional Office D' },
|
894
|
-
]);
|
895
|
-
// Positions
|
896
|
-
const positions = await this.storageService.initial(RootConfig$2.entities.position.source, [
|
897
|
-
{ id: uuid(), title: 'General Manager' },
|
898
|
-
{ id: uuid(), title: 'Assistant General Manager' },
|
899
|
-
{ id: uuid(), title: 'Senior Software Developer' },
|
900
|
-
{ id: uuid(), title: 'Junior Software Developer' },
|
901
|
-
{ id: uuid(), title: 'Software Development Intern' },
|
902
|
-
]);
|
903
|
-
// Employment Types
|
904
|
-
await this.storageService.initial(RootConfig$2.entities.employmentType.source, [
|
905
|
-
{ id: uuid(), title: 'Full-Time' },
|
906
|
-
{ id: uuid(), title: 'Part-Time' },
|
907
|
-
{ id: uuid(), title: 'Contract' },
|
908
|
-
{ id: uuid(), title: 'Internship' },
|
909
|
-
{ id: uuid(), title: 'Freelance' },
|
910
|
-
]);
|
911
|
-
// Employees
|
912
|
-
const employees = await this.storageService.initial(RootConfig$2.entities.employee.source, [
|
913
|
-
{ id: uuid(), firstname: 'John', lastname: 'Doe', birthDate: new Date('1990-01-01'), employeeID: 'EMP001' },
|
914
|
-
{ id: uuid(), firstname: 'Jane', lastname: 'Smith', birthDate: new Date('1985-02-15'), employeeID: 'EMP002' },
|
915
|
-
{ id: uuid(), firstname: 'Michael', lastname: 'Johnson', birthDate: new Date('1978-03-22'), employeeID: 'EMP003' },
|
916
|
-
{ id: uuid(), firstname: 'Emily', lastname: 'Davis', birthDate: new Date('1992-04-10'), employeeID: 'EMP004' },
|
917
|
-
{ id: uuid(), firstname: 'Daniel', lastname: 'Brown', birthDate: new Date('1988-05-30'), employeeID: 'EMP005' },
|
918
|
-
{ id: uuid(), firstname: 'Jessica', lastname: 'Wilson', birthDate: new Date('1995-06-25'), employeeID: 'EMP006' },
|
919
|
-
{ id: uuid(), firstname: 'David', lastname: 'Martinez', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
|
920
|
-
{ id: uuid(), firstname: 'Sarah', lastname: 'Anderson', birthDate: new Date('1993-08-05'), employeeID: 'EMP008' },
|
921
|
-
{ id: uuid(), firstname: 'James', lastname: 'Taylor', birthDate: new Date('1980-09-18'), employeeID: 'EMP009' },
|
922
|
-
{ id: uuid(), firstname: 'Laura', lastname: 'Thomas', birthDate: new Date('1987-10-29'), employeeID: 'EMP010' },
|
923
|
-
]);
|
924
|
-
// Chart Nodes
|
925
|
-
const chartNodes = [
|
926
|
-
{
|
927
|
-
id: uuid(),
|
928
|
-
entity: { id: divisions[0].id, source: RootConfig$2.entities.division.source },
|
929
|
-
title: divisions[0].title,
|
930
|
-
parentId: null, // Root node
|
931
|
-
},
|
932
|
-
{
|
933
|
-
id: uuid(),
|
934
|
-
entity: { id: branches[0].id, source: RootConfig$2.entities.branch.source },
|
935
|
-
title: branches[0].title,
|
936
|
-
parentId: divisions[0].id,
|
937
|
-
},
|
938
|
-
{
|
939
|
-
id: uuid(),
|
940
|
-
entity: { id: departments[0].id, source: RootConfig$2.entities.department.source },
|
941
|
-
title: departments[0].title,
|
942
|
-
parentId: branches[0].id,
|
943
|
-
},
|
944
|
-
{
|
945
|
-
id: uuid(),
|
946
|
-
entity: { id: positions[0].id, source: RootConfig$2.entities.position.source },
|
947
|
-
title: positions[0].title,
|
948
|
-
parentId: departments[0].id,
|
949
|
-
},
|
950
|
-
{
|
951
|
-
id: uuid(),
|
952
|
-
entity: { id: employees[0].id, source: RootConfig$2.entities.employee.source },
|
953
|
-
title: `${employees[0].firstname} ${employees[0].lastname}`,
|
954
|
-
parentId: positions[0].id,
|
955
|
-
},
|
956
|
-
];
|
957
|
-
// Store Chart Data
|
958
|
-
await this.storageService.initial(RootConfig$2.entities.chart.source, [
|
959
|
-
{
|
960
|
-
id: uuid(),
|
961
|
-
version: '1.0',
|
962
|
-
nodes: chartNodes,
|
963
|
-
},
|
964
|
-
]);
|
965
|
-
}
|
966
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
967
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder }); }
|
968
|
-
}
|
969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, decorators: [{
|
970
|
-
type: Injectable
|
971
|
-
}] });
|
972
|
-
|
973
|
-
class AXCFOrganizationManagementMockModule {
|
974
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
975
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule }); }
|
976
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, providers: [
|
977
|
-
{
|
978
|
-
provide: AXP_DATA_SEEDER_TOKEN,
|
979
|
-
useClass: AXCOrganizationManagementDataSeeder,
|
980
|
-
multi: true,
|
981
|
-
},
|
982
|
-
] }); }
|
983
|
-
}
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, decorators: [{
|
985
|
-
type: NgModule,
|
986
|
-
args: [{
|
987
|
-
imports: [],
|
988
|
-
exports: [],
|
989
|
-
declarations: [],
|
990
|
-
providers: [
|
991
|
-
{
|
992
|
-
provide: AXP_DATA_SEEDER_TOKEN,
|
993
|
-
useClass: AXCOrganizationManagementDataSeeder,
|
994
|
-
multi: true,
|
995
|
-
},
|
996
|
-
],
|
997
|
-
}]
|
998
|
-
}] });
|
999
|
-
|
1000
|
-
const titles = ['Term and Condition Bank App', 'Term and Condition Social App'];
|
1001
|
-
const APP_TERMS = Array.from({ length: 10 }).map((element, i) => {
|
874
|
+
const titles = [
|
875
|
+
'Term and Condition Bank App',
|
876
|
+
'Term and Condition Social App',
|
877
|
+
'Term Test',
|
878
|
+
'Condition Test',
|
879
|
+
];
|
880
|
+
const APP_TERMS = Array.from({ length: 4 }).map((element, i) => {
|
1002
881
|
const publishDate = new Date();
|
1003
882
|
publishDate.setDate(publishDate.getDate() - i * 7); // Subtract i weeks from the current date
|
1004
883
|
return {
|
@@ -1076,7 +955,7 @@ class AXCAppTermDataSeeder {
|
|
1076
955
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1077
956
|
}
|
1078
957
|
async seed() {
|
1079
|
-
await this.storageService.initial(`${RootConfig$
|
958
|
+
await this.storageService.initial(`${RootConfig$2.module.name}.${RootConfig$2.entities.appTerm.name}`, APP_TERMS);
|
1080
959
|
}
|
1081
960
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1082
961
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder }); }
|
@@ -1111,7 +990,7 @@ class AXCAppVersionDataSeeder {
|
|
1111
990
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1112
991
|
}
|
1113
992
|
async seed() {
|
1114
|
-
await this.storageService.initial(`${RootConfig$
|
993
|
+
await this.storageService.initial(`${RootConfig$2.module.name}.${RootConfig$2.entities.appVersion.name}`, APP_VERSIONS);
|
1115
994
|
}
|
1116
995
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1117
996
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder }); }
|
@@ -1142,7 +1021,7 @@ class AXCGlobalVariablesDataSeeder {
|
|
1142
1021
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1143
1022
|
}
|
1144
1023
|
async seed() {
|
1145
|
-
await this.storageService.initial(`${RootConfig$
|
1024
|
+
await this.storageService.initial(`${RootConfig$2.module.name}.${RootConfig$2.entities.globalVariable.name}`, GLOBAL_VARIABLES);
|
1146
1025
|
}
|
1147
1026
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1148
1027
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder }); }
|
@@ -1299,7 +1178,7 @@ class AXCSchedulerJobDataSeeder {
|
|
1299
1178
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1300
1179
|
}
|
1301
1180
|
async seed() {
|
1302
|
-
await this.storageService.initial(`${RootConfig$
|
1181
|
+
await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.schedulerJob.name}`, SCHEDULER_JOB);
|
1303
1182
|
}
|
1304
1183
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1305
1184
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder }); }
|
@@ -1430,7 +1309,7 @@ class AXCTextTemplateCategoryDataSeeder {
|
|
1430
1309
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1431
1310
|
}
|
1432
1311
|
async seed() {
|
1433
|
-
await this.storageService.initial(`${RootConfig$
|
1312
|
+
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
|
1434
1313
|
}
|
1435
1314
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1436
1315
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder }); }
|
@@ -1444,7 +1323,7 @@ class AXCTextTemplateDataSeeder {
|
|
1444
1323
|
this.storageService = inject(AXPDexieEntityStorageService);
|
1445
1324
|
}
|
1446
1325
|
async seed() {
|
1447
|
-
await this.storageService.initial(`${RootConfig$
|
1326
|
+
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.template.name}`, TEXT_TEMPLATES);
|
1448
1327
|
}
|
1449
1328
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1450
1329
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder }); }
|
@@ -1453,6 +1332,364 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1453
1332
|
type: Injectable
|
1454
1333
|
}] });
|
1455
1334
|
|
1335
|
+
const SOFTWARE_COMPANY_ORGANIZATION = {
|
1336
|
+
id: '1',
|
1337
|
+
title: 'Tech Innovators Inc.',
|
1338
|
+
subtitle: 'Software Development Company',
|
1339
|
+
description: 'A leading software company specializing in SaaS solutions.',
|
1340
|
+
icon: 'fa-building',
|
1341
|
+
type: AXMOrganizationNodeType.Company, // Updated type here
|
1342
|
+
isExpanded: true,
|
1343
|
+
children: [
|
1344
|
+
{
|
1345
|
+
id: '2',
|
1346
|
+
title: 'United States',
|
1347
|
+
subtitle: 'Country Headquarters',
|
1348
|
+
description: 'Main operations in the US.',
|
1349
|
+
icon: 'fa-flag-usa',
|
1350
|
+
type: AXMOrganizationNodeType.Country, // Updated type here
|
1351
|
+
parentId: '1',
|
1352
|
+
isExpanded: true,
|
1353
|
+
children: [
|
1354
|
+
{
|
1355
|
+
id: '3',
|
1356
|
+
title: 'San Francisco Office',
|
1357
|
+
subtitle: 'Head Office & Development Hub',
|
1358
|
+
description: 'Main engineering and corporate hub.',
|
1359
|
+
icon: 'fa-city',
|
1360
|
+
type: AXMOrganizationNodeType.City, // Updated type here
|
1361
|
+
parentId: '2',
|
1362
|
+
isExpanded: true,
|
1363
|
+
children: [
|
1364
|
+
{
|
1365
|
+
id: '4',
|
1366
|
+
title: 'Engineering Division',
|
1367
|
+
subtitle: 'Software Development',
|
1368
|
+
description: 'Responsible for product development.',
|
1369
|
+
icon: 'fa-code',
|
1370
|
+
type: AXMOrganizationNodeType.Division, // Updated type here
|
1371
|
+
parentId: '3',
|
1372
|
+
isExpanded: true,
|
1373
|
+
children: [
|
1374
|
+
{
|
1375
|
+
id: '5',
|
1376
|
+
title: 'Backend Team',
|
1377
|
+
subtitle: 'Handles backend systems',
|
1378
|
+
description: 'Develops APIs and database architecture.',
|
1379
|
+
icon: 'fa-database',
|
1380
|
+
type: AXMOrganizationNodeType.Department, // Updated type here
|
1381
|
+
parentId: '4',
|
1382
|
+
children: [
|
1383
|
+
{
|
1384
|
+
id: '6',
|
1385
|
+
title: 'Backend Developer',
|
1386
|
+
subtitle: 'Software Engineer',
|
1387
|
+
description: 'Builds and maintains backend services.',
|
1388
|
+
icon: 'fa-server',
|
1389
|
+
type: AXMOrganizationNodeType.Position, // Updated type here
|
1390
|
+
parentId: '5',
|
1391
|
+
children: [
|
1392
|
+
{ id: '6-1', title: 'Jane Smith', subtitle: 'Backend Developer', description: 'Expert in Node.js and database architecture.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '6' },
|
1393
|
+
{ id: '6-2', title: 'Michael Johnson', subtitle: 'Backend Developer', description: 'Specializes in API development and microservices.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '6' }
|
1394
|
+
]
|
1395
|
+
}
|
1396
|
+
]
|
1397
|
+
},
|
1398
|
+
{
|
1399
|
+
id: '8',
|
1400
|
+
title: 'Frontend Team',
|
1401
|
+
subtitle: 'Handles frontend applications',
|
1402
|
+
description: 'Develops UI/UX for web and mobile apps.',
|
1403
|
+
icon: 'fa-paint-brush',
|
1404
|
+
type: AXMOrganizationNodeType.Department, // Updated type here
|
1405
|
+
parentId: '4',
|
1406
|
+
children: [
|
1407
|
+
{
|
1408
|
+
id: '9',
|
1409
|
+
title: 'Frontend Developer',
|
1410
|
+
subtitle: 'Software Engineer',
|
1411
|
+
description: 'Works on UI/UX and frontend logic.',
|
1412
|
+
icon: 'fa-laptop-code',
|
1413
|
+
type: AXMOrganizationNodeType.Position, // Updated type here
|
1414
|
+
parentId: '8',
|
1415
|
+
children: [
|
1416
|
+
{ id: '9-1', title: 'Emma Davis', subtitle: 'Frontend Developer', description: 'Expert in React and modern UI frameworks.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '9' }
|
1417
|
+
]
|
1418
|
+
}
|
1419
|
+
]
|
1420
|
+
}
|
1421
|
+
]
|
1422
|
+
}
|
1423
|
+
]
|
1424
|
+
},
|
1425
|
+
{
|
1426
|
+
id: '10',
|
1427
|
+
title: 'New York Office',
|
1428
|
+
subtitle: 'East Coast Operations',
|
1429
|
+
description: 'Handles business development and sales.',
|
1430
|
+
icon: 'fa-city',
|
1431
|
+
type: AXMOrganizationNodeType.City, // Updated type here
|
1432
|
+
parentId: '2',
|
1433
|
+
isExpanded: true,
|
1434
|
+
children: [
|
1435
|
+
{
|
1436
|
+
id: '12',
|
1437
|
+
title: 'Sales Division',
|
1438
|
+
subtitle: 'Business Growth and Partnerships',
|
1439
|
+
description: 'Responsible for client acquisitions and revenue growth.',
|
1440
|
+
icon: 'fa-handshake',
|
1441
|
+
type: AXMOrganizationNodeType.Division, // Updated type here
|
1442
|
+
parentId: '10',
|
1443
|
+
children: [
|
1444
|
+
{
|
1445
|
+
id: '13',
|
1446
|
+
title: 'Sales Manager',
|
1447
|
+
subtitle: 'Leads the sales team',
|
1448
|
+
description: 'Manages key partnerships and sales strategies.',
|
1449
|
+
icon: 'fa-chart-line',
|
1450
|
+
type: AXMOrganizationNodeType.Position, // Updated type here
|
1451
|
+
parentId: '12',
|
1452
|
+
children: [
|
1453
|
+
{ id: '13-1', title: 'Robert Wilson', subtitle: 'Senior Sales Executive', description: 'Focuses on enterprise client relationships.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '13' },
|
1454
|
+
{ id: '13-2', title: 'Lisa Brown', subtitle: 'Sales Representative', description: 'Handles client negotiations and sales leads.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '13' }
|
1455
|
+
]
|
1456
|
+
}
|
1457
|
+
]
|
1458
|
+
}
|
1459
|
+
]
|
1460
|
+
}
|
1461
|
+
]
|
1462
|
+
},
|
1463
|
+
{
|
1464
|
+
id: '14',
|
1465
|
+
title: 'India',
|
1466
|
+
subtitle: 'Regional Office',
|
1467
|
+
description: 'Call Center & Customer Support Operations.',
|
1468
|
+
icon: 'fa-flag',
|
1469
|
+
type: AXMOrganizationNodeType.Country, // Updated type here
|
1470
|
+
parentId: '1',
|
1471
|
+
isExpanded: true,
|
1472
|
+
children: [
|
1473
|
+
{
|
1474
|
+
id: '15',
|
1475
|
+
title: 'Bangalore Office',
|
1476
|
+
subtitle: 'Support & Call Center Hub',
|
1477
|
+
description: 'Handles customer support and service inquiries.',
|
1478
|
+
icon: 'fa-phone',
|
1479
|
+
type: AXMOrganizationNodeType.City, // Updated type here
|
1480
|
+
parentId: '14',
|
1481
|
+
isExpanded: true,
|
1482
|
+
children: [
|
1483
|
+
{
|
1484
|
+
id: '16',
|
1485
|
+
title: 'Customer Support Division',
|
1486
|
+
subtitle: 'Technical Support',
|
1487
|
+
description: 'Responsible for customer service and tech support.',
|
1488
|
+
icon: 'fa-headset',
|
1489
|
+
type: AXMOrganizationNodeType.Division, // Updated type here
|
1490
|
+
parentId: '15',
|
1491
|
+
children: [
|
1492
|
+
{
|
1493
|
+
id: '17',
|
1494
|
+
title: 'Call Center Representative',
|
1495
|
+
subtitle: 'Support Agent',
|
1496
|
+
description: 'Answers customer questions and resolves issues.',
|
1497
|
+
icon: 'fa-user-headset',
|
1498
|
+
type: AXMOrganizationNodeType.Position, // Updated type here
|
1499
|
+
parentId: '16',
|
1500
|
+
children: [
|
1501
|
+
{ id: '17-1', title: 'Rahul Sharma', subtitle: 'Call Center Representative', description: 'Provides top-notch customer support.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '17' },
|
1502
|
+
{ id: '17-2', title: 'Priya Kapoor', subtitle: 'Call Center Representative', description: 'Handles inquiries and customer escalations.', icon: 'fa-user', type: AXMOrganizationNodeType.Employee, parentId: '17' },
|
1503
|
+
{ id: '17-3', title: 'Amit Verma', subtitle: 'Call Center Supervisor', description: 'Manages a team of call center representatives.', icon: 'fa-user-tie', type: AXMOrganizationNodeType.Employee, parentId: '17' },
|
1504
|
+
{ id: '17-4', title: 'Neha Mehta', subtitle: 'Quality Analyst', description: 'Monitors and evaluates customer interactions.', icon: 'fa-user-check', type: AXMOrganizationNodeType.Employee, parentId: '17' },
|
1505
|
+
{ id: '17-5', title: 'Vikram Singh', subtitle: 'Technical Support Specialist', description: 'Provides assistance with technical issues.', icon: 'fa-user-cog', type: AXMOrganizationNodeType.Employee, parentId: '17' }
|
1506
|
+
]
|
1507
|
+
}
|
1508
|
+
]
|
1509
|
+
}
|
1510
|
+
]
|
1511
|
+
}
|
1512
|
+
]
|
1513
|
+
}
|
1514
|
+
]
|
1515
|
+
};
|
1516
|
+
|
1517
|
+
class AXCOrganizationManagementDataSeeder {
|
1518
|
+
constructor() {
|
1519
|
+
this.storageService = inject(AXPDexieEntityStorageService);
|
1520
|
+
}
|
1521
|
+
async seed() {
|
1522
|
+
const uuid = AXPDataGenerator.uuid;
|
1523
|
+
// Departments
|
1524
|
+
await this.storageService.initial(RootConfig$5.entities.department.source, [
|
1525
|
+
{
|
1526
|
+
id: uuid(),
|
1527
|
+
title: 'Engineering Division',
|
1528
|
+
description: 'A department focused on engineering projects and development.',
|
1529
|
+
},
|
1530
|
+
{
|
1531
|
+
id: uuid(),
|
1532
|
+
title: 'Sales Division',
|
1533
|
+
description: 'A department dedicated to driving sales and customer engagement.',
|
1534
|
+
},
|
1535
|
+
{
|
1536
|
+
id: uuid(),
|
1537
|
+
title: 'Customer Support Division',
|
1538
|
+
description: 'A department committed to delivering excellent customer service.',
|
1539
|
+
},
|
1540
|
+
]);
|
1541
|
+
// Divisions
|
1542
|
+
await this.storageService.initial(RootConfig$5.entities.division.source, [
|
1543
|
+
{
|
1544
|
+
id: uuid(),
|
1545
|
+
title: 'Software Development',
|
1546
|
+
description: 'A division within the Engineering Department responsible for developing software solutions.',
|
1547
|
+
},
|
1548
|
+
{
|
1549
|
+
id: uuid(),
|
1550
|
+
title: 'Business Development',
|
1551
|
+
description: 'A division within the Sales Department focused on expanding business opportunities.',
|
1552
|
+
},
|
1553
|
+
{
|
1554
|
+
id: uuid(),
|
1555
|
+
title: 'Technical Support',
|
1556
|
+
description: 'A division within the Customer Support Department that handles technical assistance.',
|
1557
|
+
},
|
1558
|
+
]);
|
1559
|
+
// Branches
|
1560
|
+
await this.storageService.initial(RootConfig$5.entities.branch.source, [
|
1561
|
+
{
|
1562
|
+
id: uuid(),
|
1563
|
+
title: 'San Francisco Office',
|
1564
|
+
description: 'A branch office located in San Francisco, serving as a hub for West Coast operations.',
|
1565
|
+
},
|
1566
|
+
{
|
1567
|
+
id: uuid(),
|
1568
|
+
title: 'New York Office',
|
1569
|
+
description: 'A branch office located in New York, catering to our East Coast clients.',
|
1570
|
+
},
|
1571
|
+
{
|
1572
|
+
id: uuid(),
|
1573
|
+
title: 'Bangalore Office',
|
1574
|
+
description: 'A branch office in Bangalore supporting our international operations.',
|
1575
|
+
},
|
1576
|
+
]);
|
1577
|
+
// Positions
|
1578
|
+
await this.storageService.initial(RootConfig$5.entities.position.source, [
|
1579
|
+
{
|
1580
|
+
id: uuid(),
|
1581
|
+
title: 'Backend Developer',
|
1582
|
+
description: 'A role responsible for server-side logic and integration with databases.',
|
1583
|
+
},
|
1584
|
+
{
|
1585
|
+
id: uuid(),
|
1586
|
+
title: 'Frontend Developer',
|
1587
|
+
description: 'A role focused on crafting engaging user interfaces and client-side features.',
|
1588
|
+
},
|
1589
|
+
{
|
1590
|
+
id: uuid(),
|
1591
|
+
title: 'Sales Manager',
|
1592
|
+
description: 'A leadership position overseeing sales strategies and team performance.',
|
1593
|
+
},
|
1594
|
+
{
|
1595
|
+
id: uuid(),
|
1596
|
+
title: 'Sales Representative',
|
1597
|
+
description: 'A role tasked with building client relationships and closing sales deals.',
|
1598
|
+
},
|
1599
|
+
{
|
1600
|
+
id: uuid(),
|
1601
|
+
title: 'Call Center Representative',
|
1602
|
+
description: 'A position dedicated to managing inbound and outbound customer calls.',
|
1603
|
+
},
|
1604
|
+
{
|
1605
|
+
id: uuid(),
|
1606
|
+
title: 'Technical Support Specialist',
|
1607
|
+
description: 'A role providing specialized technical assistance and problem resolution.',
|
1608
|
+
},
|
1609
|
+
]);
|
1610
|
+
// Employment Types
|
1611
|
+
await this.storageService.initial(RootConfig$5.entities.employmentType.source, [
|
1612
|
+
{
|
1613
|
+
id: uuid(),
|
1614
|
+
title: 'Full-Time',
|
1615
|
+
description: 'An employment category for full-time engagements.',
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
id: uuid(),
|
1619
|
+
title: 'Part-Time',
|
1620
|
+
description: 'An employment category for part-time work schedules.',
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
id: uuid(),
|
1624
|
+
title: 'Contract',
|
1625
|
+
description: 'An employment type based on fixed-term contractual agreements.',
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
id: uuid(),
|
1629
|
+
title: 'Internship',
|
1630
|
+
description: 'An employment type designed for internship programs.',
|
1631
|
+
},
|
1632
|
+
{
|
1633
|
+
id: uuid(),
|
1634
|
+
title: 'Freelance',
|
1635
|
+
description: 'An employment type for freelance and project-based work.',
|
1636
|
+
},
|
1637
|
+
]);
|
1638
|
+
// Employees
|
1639
|
+
await this.storageService.initial(RootConfig$5.entities.employee.source, [
|
1640
|
+
{ id: uuid(), firstname: 'Jane', lastname: 'Smith', birthDate: new Date('1985-02-15'), employeeID: 'EMP002' },
|
1641
|
+
{ id: uuid(), firstname: 'Michael', lastname: 'Johnson', birthDate: new Date('1978-03-22'), employeeID: 'EMP003' },
|
1642
|
+
{ id: uuid(), firstname: 'Emma', lastname: 'Davis', birthDate: new Date('1992-04-10'), employeeID: 'EMP004' },
|
1643
|
+
{ id: uuid(), firstname: 'Robert', lastname: 'Wilson', birthDate: new Date('1980-09-18'), employeeID: 'EMP009' },
|
1644
|
+
{ id: uuid(), firstname: 'Lisa', lastname: 'Brown', birthDate: new Date('1987-10-29'), employeeID: 'EMP010' },
|
1645
|
+
{ id: uuid(), firstname: 'Rahul', lastname: 'Sharma', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
|
1646
|
+
{ id: uuid(), firstname: 'Priya', lastname: 'Kapoor', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
|
1647
|
+
{ id: uuid(), firstname: 'Amit', lastname: 'Verma', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
|
1648
|
+
{ id: uuid(), firstname: 'Vikram', lastname: 'Singh', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
|
1649
|
+
]);
|
1650
|
+
// Store Chart Data
|
1651
|
+
await this.storageService.initial(RootConfig$5.entities.chart.source, [
|
1652
|
+
{
|
1653
|
+
id: uuid(),
|
1654
|
+
version: '1.0',
|
1655
|
+
data: SOFTWARE_COMPANY_ORGANIZATION,
|
1656
|
+
},
|
1657
|
+
]);
|
1658
|
+
}
|
1659
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1660
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder }); }
|
1661
|
+
}
|
1662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, decorators: [{
|
1663
|
+
type: Injectable
|
1664
|
+
}] });
|
1665
|
+
|
1666
|
+
class AXCFOrganizationManagementMockModule {
|
1667
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1668
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule }); }
|
1669
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, providers: [
|
1670
|
+
{
|
1671
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
1672
|
+
useClass: AXCOrganizationManagementDataSeeder,
|
1673
|
+
multi: true,
|
1674
|
+
},
|
1675
|
+
] }); }
|
1676
|
+
}
|
1677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, decorators: [{
|
1678
|
+
type: NgModule,
|
1679
|
+
args: [{
|
1680
|
+
imports: [],
|
1681
|
+
exports: [],
|
1682
|
+
declarations: [],
|
1683
|
+
providers: [
|
1684
|
+
{
|
1685
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
1686
|
+
useClass: AXCOrganizationManagementDataSeeder,
|
1687
|
+
multi: true,
|
1688
|
+
},
|
1689
|
+
],
|
1690
|
+
}]
|
1691
|
+
}] });
|
1692
|
+
|
1456
1693
|
class AXCMockModule {
|
1457
1694
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1458
1695
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, imports: [i1$1.AXPAuthModule, AXCFormTemplateManagementMockModule,
|
@@ -1508,6 +1745,11 @@ class AXCMockModule {
|
|
1508
1745
|
useClass: AXCAppTermDataSeeder,
|
1509
1746
|
multi: true,
|
1510
1747
|
},
|
1748
|
+
{
|
1749
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
1750
|
+
useClass: AXCAppTermDataSeeder,
|
1751
|
+
multi: true,
|
1752
|
+
},
|
1511
1753
|
{
|
1512
1754
|
provide: AXPModuleDesignerService,
|
1513
1755
|
useClass: AXCModuleDesignerService,
|
@@ -1591,6 +1833,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1591
1833
|
useClass: AXCAppTermDataSeeder,
|
1592
1834
|
multi: true,
|
1593
1835
|
},
|
1836
|
+
{
|
1837
|
+
provide: AXP_DATA_SEEDER_TOKEN,
|
1838
|
+
useClass: AXCAppTermDataSeeder,
|
1839
|
+
multi: true,
|
1840
|
+
},
|
1594
1841
|
{
|
1595
1842
|
provide: AXPModuleDesignerService,
|
1596
1843
|
useClass: AXCModuleDesignerService,
|