@acorex/connectivity 20.2.4-next.1 → 20.2.4-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.
|
@@ -2337,17 +2337,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
2337
2337
|
}] });
|
|
2338
2338
|
|
|
2339
2339
|
const mockUsers = [
|
|
2340
|
-
{ id: AXPDataGenerator.uuid(), username: 'johndoe',
|
|
2341
|
-
{ id: AXPDataGenerator.uuid(), username: 'janesmith',
|
|
2342
|
-
{ id: AXPDataGenerator.uuid(), username: 'mikeross',
|
|
2343
|
-
{ id: AXPDataGenerator.uuid(), username: 'emilyparker',
|
|
2344
|
-
{ id: AXPDataGenerator.uuid(), username: 'robertjohnson',
|
|
2345
|
-
{ id: AXPDataGenerator.uuid(), username: 'sarahwilliams',
|
|
2346
|
-
{ id: AXPDataGenerator.uuid(), username: 'davidbrown',
|
|
2347
|
-
{ id: AXPDataGenerator.uuid(), username: 'lisadavis',
|
|
2348
|
-
{ id: AXPDataGenerator.uuid(), username: 'michaelwilson',
|
|
2349
|
-
{ id: AXPDataGenerator.uuid(), username: 'amandamiller',
|
|
2350
|
-
{ id: AXPDataGenerator.uuid(), username: 'admin',
|
|
2340
|
+
{ id: AXPDataGenerator.uuid(), username: 'johndoe', displayName: 'John Doe', roleIds: [{ id: '1001', title: 'Administrator' }, { id: '1002', title: 'Manager' }] },
|
|
2341
|
+
{ id: AXPDataGenerator.uuid(), username: 'janesmith', displayName: 'Jane Smith', roleIds: [{ id: '1002', title: 'Manager' }, { id: '1006', title: 'Human Resources' }] },
|
|
2342
|
+
{ id: AXPDataGenerator.uuid(), username: 'mikeross', displayName: 'Mike Ross', roleIds: [{ id: '1008', title: 'Developer' }, { id: '1005', title: 'Support Staff' }] },
|
|
2343
|
+
{ id: AXPDataGenerator.uuid(), username: 'emilyparker', displayName: 'Emily Parker', roleIds: [{ id: '1003', title: 'Regular User' }] },
|
|
2344
|
+
{ id: AXPDataGenerator.uuid(), username: 'robertjohnson', displayName: 'Robert Johnson', roleIds: [{ id: '1007', title: 'Finance' }] },
|
|
2345
|
+
{ id: AXPDataGenerator.uuid(), username: 'sarahwilliams', displayName: 'Sarah Williams', roleIds: [{ id: '1004', title: 'Read Only' }] },
|
|
2346
|
+
{ id: AXPDataGenerator.uuid(), username: 'davidbrown', displayName: 'David Brown', roleIds: [{ id: '1003', title: 'Regular User' }, { id: '1005', title: 'Support Staff' }] },
|
|
2347
|
+
{ id: AXPDataGenerator.uuid(), username: 'lisadavis', displayName: 'Lisa Davis', roleIds: [{ id: '1006', title: 'Human Resources' }] },
|
|
2348
|
+
{ id: AXPDataGenerator.uuid(), username: 'michaelwilson', displayName: 'Michael Wilson', roleIds: [{ id: '1002', title: 'Manager' }, { id: '1007', title: 'Finance' }] },
|
|
2349
|
+
{ id: AXPDataGenerator.uuid(), username: 'amandamiller', displayName: 'Amanda Miller', roleIds: [{ id: '1008', title: 'Developer' }] },
|
|
2350
|
+
{ id: AXPDataGenerator.uuid(), username: 'admin', displayName: 'Admin User', roleIds: [{ id: '1001', title: 'Administrator' }] },
|
|
2351
2351
|
];
|
|
2352
2352
|
|
|
2353
2353
|
// Helper function to get a specific user by index (with fallback)
|
|
@@ -2512,7 +2512,7 @@ class AXPMessageDataSeeder {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
try {
|
|
2514
2514
|
const user = await this.usersService.getOne(userId);
|
|
2515
|
-
const fullName = `${user.
|
|
2515
|
+
const fullName = `${user.displayName}`.trim();
|
|
2516
2516
|
this.userNameCache.set(userId, fullName);
|
|
2517
2517
|
return fullName;
|
|
2518
2518
|
}
|
|
@@ -3355,8 +3355,8 @@ function generateChartsDashboard(user) {
|
|
|
3355
3355
|
return {
|
|
3356
3356
|
id: AXPDataGenerator.uuid(),
|
|
3357
3357
|
name: `charts-dashboard-${user.username}`,
|
|
3358
|
-
title: `${user.
|
|
3359
|
-
description: `Personal data visualization dashboard for ${user.
|
|
3358
|
+
title: `${user.displayName}'s Data Dashboard`,
|
|
3359
|
+
description: `Personal data visualization dashboard for ${user.displayName}`,
|
|
3360
3360
|
widgets: chartWidgets,
|
|
3361
3361
|
roleIds: user.roleIds.map((r) => r.id),
|
|
3362
3362
|
isDeleted: false,
|
|
@@ -4640,7 +4640,7 @@ mockUsers.forEach((user) => {
|
|
|
4640
4640
|
name: user.username,
|
|
4641
4641
|
color: '#FFFFFF',
|
|
4642
4642
|
size: getRandomSize(),
|
|
4643
|
-
description: `Folder of User : ${user.
|
|
4643
|
+
description: `Folder of User : ${user.displayName}`,
|
|
4644
4644
|
parentId: rootUsersFolder.id,
|
|
4645
4645
|
isSystem: false,
|
|
4646
4646
|
isHidden: false,
|
|
@@ -4933,7 +4933,7 @@ class AXCReviewMockService extends AXMReviewServiceImpl {
|
|
|
4933
4933
|
review.reviewer = {
|
|
4934
4934
|
id: user.id,
|
|
4935
4935
|
name: user.username,
|
|
4936
|
-
title: user.
|
|
4936
|
+
title: user.displayName,
|
|
4937
4937
|
};
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
@@ -5634,7 +5634,7 @@ class MOCKStrategy extends AXPAuthStrategy {
|
|
|
5634
5634
|
user = {
|
|
5635
5635
|
id: currentUser.id,
|
|
5636
5636
|
name: currentUser.username,
|
|
5637
|
-
title:
|
|
5637
|
+
title: currentUser.displayName,
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
5640
|
}
|
|
@@ -5685,12 +5685,7 @@ class MOCKStrategy extends AXPAuthStrategy {
|
|
|
5685
5685
|
location: location,
|
|
5686
5686
|
lastLoginDate: new Date(),
|
|
5687
5687
|
};
|
|
5688
|
-
debugger;
|
|
5689
|
-
const x = await this.deviceSessionsService.query();
|
|
5690
|
-
console.log('x', x);
|
|
5691
5688
|
await this.deviceSessionsService.insertOne(deviceSession);
|
|
5692
|
-
const x2 = await this.deviceSessionsService.query();
|
|
5693
|
-
console.log('x2', x2);
|
|
5694
5689
|
}
|
|
5695
5690
|
catch (error) {
|
|
5696
5691
|
console.error('Error creating device session:', error);
|
|
@@ -8953,13 +8948,13 @@ function generateNotificationForRoom(roomId) {
|
|
|
8953
8948
|
receiver: {
|
|
8954
8949
|
id: recieverUser.id,
|
|
8955
8950
|
username: recieverUser.username,
|
|
8956
|
-
fullName: recieverUser.
|
|
8951
|
+
fullName: recieverUser.displayName,
|
|
8957
8952
|
type: 'user',
|
|
8958
8953
|
},
|
|
8959
8954
|
sender: {
|
|
8960
8955
|
id: senderUser.id,
|
|
8961
8956
|
username: senderUser.username,
|
|
8962
|
-
fullName: senderUser.
|
|
8957
|
+
fullName: senderUser.displayName,
|
|
8963
8958
|
type: 'user',
|
|
8964
8959
|
},
|
|
8965
8960
|
template: {
|
|
@@ -15351,10 +15346,7 @@ class AXPSecurityManagementUserDataSeeder {
|
|
|
15351
15346
|
return mockUsers.map((user) => ({
|
|
15352
15347
|
id: user.id,
|
|
15353
15348
|
username: user.username,
|
|
15354
|
-
|
|
15355
|
-
lastName: user.lastName,
|
|
15356
|
-
nationalCode: user.nationalCode,
|
|
15357
|
-
mobile: user.mobile,
|
|
15349
|
+
displayName: user.displayName,
|
|
15358
15350
|
password: '123',
|
|
15359
15351
|
roles: user.roleIds,
|
|
15360
15352
|
}));
|
|
@@ -18435,7 +18427,7 @@ const meetingParticipantMock = [
|
|
|
18435
18427
|
meetingId: meetingIds.dailyStandup1,
|
|
18436
18428
|
userId: {
|
|
18437
18429
|
id: mockUsers[0].id,
|
|
18438
|
-
title: mockUsers[0].
|
|
18430
|
+
title: mockUsers[0].displayName
|
|
18439
18431
|
},
|
|
18440
18432
|
jointime: new Date('2024-01-15T09:00:00'),
|
|
18441
18433
|
leaveTime: new Date('2024-01-15T09:15:00'),
|
|
@@ -18453,7 +18445,7 @@ const meetingParticipantMock = [
|
|
|
18453
18445
|
meetingId: meetingIds.dailyStandup1,
|
|
18454
18446
|
userId: {
|
|
18455
18447
|
id: mockUsers[1].id,
|
|
18456
|
-
title: mockUsers[1].
|
|
18448
|
+
title: mockUsers[1].displayName
|
|
18457
18449
|
},
|
|
18458
18450
|
jointime: new Date('2024-01-15T09:01:00'),
|
|
18459
18451
|
leaveTime: new Date('2024-01-15T09:15:00'),
|
|
@@ -18471,7 +18463,7 @@ const meetingParticipantMock = [
|
|
|
18471
18463
|
meetingId: meetingIds.dailyStandup1,
|
|
18472
18464
|
userId: {
|
|
18473
18465
|
id: mockUsers[2].id,
|
|
18474
|
-
title: mockUsers[2].
|
|
18466
|
+
title: mockUsers[2].displayName
|
|
18475
18467
|
},
|
|
18476
18468
|
jointime: new Date('2024-01-15T09:02:00'),
|
|
18477
18469
|
leaveTime: new Date('2024-01-15T09:14:00'),
|
|
@@ -18491,7 +18483,7 @@ const meetingParticipantMock = [
|
|
|
18491
18483
|
meetingId: meetingIds.dailyStandup2,
|
|
18492
18484
|
userId: {
|
|
18493
18485
|
id: mockUsers[3].id,
|
|
18494
|
-
title: mockUsers[3].
|
|
18486
|
+
title: mockUsers[3].displayName
|
|
18495
18487
|
},
|
|
18496
18488
|
jointime: new Date('2024-01-16T10:00:00'),
|
|
18497
18489
|
leaveTime: null, // Still in meeting
|
|
@@ -18509,7 +18501,7 @@ const meetingParticipantMock = [
|
|
|
18509
18501
|
meetingId: meetingIds.dailyStandup2,
|
|
18510
18502
|
userId: {
|
|
18511
18503
|
id: mockUsers[4].id,
|
|
18512
|
-
title: mockUsers[4].
|
|
18504
|
+
title: mockUsers[4].displayName
|
|
18513
18505
|
},
|
|
18514
18506
|
jointime: new Date('2024-01-16T10:01:00'),
|
|
18515
18507
|
leaveTime: null, // Still in meeting
|
|
@@ -18529,7 +18521,7 @@ const meetingParticipantMock = [
|
|
|
18529
18521
|
meetingId: meetingIds.projectReview1,
|
|
18530
18522
|
userId: {
|
|
18531
18523
|
id: mockUsers[5].id,
|
|
18532
|
-
title: mockUsers[5].
|
|
18524
|
+
title: mockUsers[5].displayName
|
|
18533
18525
|
},
|
|
18534
18526
|
jointime: new Date('2024-01-18T14:00:00'),
|
|
18535
18527
|
leaveTime: new Date('2024-01-18T15:30:00'),
|
|
@@ -18547,7 +18539,7 @@ const meetingParticipantMock = [
|
|
|
18547
18539
|
meetingId: meetingIds.projectReview1,
|
|
18548
18540
|
userId: {
|
|
18549
18541
|
id: mockUsers[6].id,
|
|
18550
|
-
title: mockUsers[6].
|
|
18542
|
+
title: mockUsers[6].displayName
|
|
18551
18543
|
},
|
|
18552
18544
|
jointime: new Date('2024-01-18T14:00:00'),
|
|
18553
18545
|
leaveTime: new Date('2024-01-18T15:30:00'),
|
|
@@ -18565,7 +18557,7 @@ const meetingParticipantMock = [
|
|
|
18565
18557
|
meetingId: meetingIds.projectReview1,
|
|
18566
18558
|
userId: {
|
|
18567
18559
|
id: mockUsers[7].id,
|
|
18568
|
-
title: mockUsers[7].
|
|
18560
|
+
title: mockUsers[7].displayName
|
|
18569
18561
|
},
|
|
18570
18562
|
jointime: new Date('2024-01-18T14:02:00'),
|
|
18571
18563
|
leaveTime: new Date('2024-01-18T15:28:00'),
|
|
@@ -18583,7 +18575,7 @@ const meetingParticipantMock = [
|
|
|
18583
18575
|
meetingId: meetingIds.projectReview1,
|
|
18584
18576
|
userId: {
|
|
18585
18577
|
id: mockUsers[8].id,
|
|
18586
|
-
title: mockUsers[8].
|
|
18578
|
+
title: mockUsers[8].displayName
|
|
18587
18579
|
},
|
|
18588
18580
|
jointime: new Date('2024-01-18T14:15:00'),
|
|
18589
18581
|
leaveTime: new Date('2024-01-18T15:30:00'),
|