@acorex/connectivity 20.6.5 → 20.6.7

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.
@@ -55,7 +55,7 @@ import { AXP_IDENTIFIER_RULES, AXPIdentifierService, AXPSimplePatternEngine, bui
55
55
  import { RootConfig as RootConfig$d } from '@acorex/modules/learning-management';
56
56
  import { RootConfig as RootConfig$e } from '@acorex/modules/location-management';
57
57
  import { RootConfig as RootConfig$f } from '@acorex/modules/measurement-core';
58
- import { RootConfig as RootConfig$g } from '@acorex/modules/meeting-management';
58
+ import { RootConfig as RootConfig$g, AXMMeetingStatusProvider } from '@acorex/modules/meeting-management';
59
59
  import { RootConfig as RootConfig$i, AXMOrgChartNodeType } from '@acorex/modules/organization-management';
60
60
  import { RootConfig as RootConfig$j } from '@acorex/modules/party-management';
61
61
  import { RootConfig as RootConfig$k } from '@acorex/modules/platform-management';
@@ -29963,6 +29963,11 @@ const meetingIds = {
29963
29963
  projectReview1: AXPDataGenerator.uuid()
29964
29964
  };
29965
29965
  //#endregion
29966
+ //#region ---- Meeting Status Definitions ----
29967
+ // Use status provider to get status definitions
29968
+ const meetingStatusProvider = new AXMMeetingStatusProvider();
29969
+ const MEETING_STATUS_DEFINITIONS = meetingStatusProvider.statuses;
29970
+ //#endregion
29966
29971
  const meetingMock = [
29967
29972
  //#region ---- Daily Standups ----
29968
29973
  {
@@ -29970,12 +29975,14 @@ const meetingMock = [
29970
29975
  title: 'Development Team Daily Standup',
29971
29976
  meetingNotes: 'Daily sync for the development team. Discuss yesterday\'s progress, today\'s plans, and any blockers.',
29972
29977
  meetingType: {
29973
- id: meetingTypeMock[0].id,
29974
- title: meetingTypeMock[0].title
29978
+ id: meetingTypeMock[5].id,
29979
+ title: meetingTypeMock[5].title
29975
29980
  },
29976
29981
  meetingProviderType: 'OnSite',
29977
29982
  isRecorded: false,
29978
- mettingStatus: 'Completed',
29983
+ setInGoogleCalendar: true,
29984
+ meetingStatusId: MEETING_STATUS_DEFINITIONS[0].name,
29985
+ meetingStatus: { id: MEETING_STATUS_DEFINITIONS[0].name, title: MEETING_STATUS_DEFINITIONS[0].title },
29979
29986
  isFullysignedOff: true,
29980
29987
  meetingLocationId: {
29981
29988
  id: locationMock[0].id,
@@ -29994,7 +30001,9 @@ const meetingMock = [
29994
30001
  joinUrl: 'https://zoom.us/j/1234567890',
29995
30002
  hostUrl: 'https://zoom.us/j/1234567890?role=1',
29996
30003
  isRecorded: true,
29997
- mettingStatus: 'In Progress',
30004
+ setInGoogleCalendar: false,
30005
+ meetingStatusId: MEETING_STATUS_DEFINITIONS[1].name,
30006
+ meetingStatus: { id: MEETING_STATUS_DEFINITIONS[1].name, title: MEETING_STATUS_DEFINITIONS[1].title },
29998
30007
  isFullysignedOff: false,
29999
30008
  },
30000
30009
  //#endregion
@@ -30011,7 +30020,9 @@ const meetingMock = [
30011
30020
  joinUrl: 'https://meet.google.com/abc-defg-hij',
30012
30021
  hostUrl: 'https://meet.google.com/abc-defg-hij?hs=1',
30013
30022
  isRecorded: true,
30014
- mettingStatus: 'Scheduled',
30023
+ setInGoogleCalendar: true,
30024
+ meetingStatusId: MEETING_STATUS_DEFINITIONS[2].name,
30025
+ meetingStatus: { id: MEETING_STATUS_DEFINITIONS[2].name, title: MEETING_STATUS_DEFINITIONS[2].title },
30015
30026
  isFullysignedOff: false,
30016
30027
  meetingLocationId: {
30017
30028
  id: locationMock[2].id,
@@ -30019,6 +30030,29 @@ const meetingMock = [
30019
30030
  }
30020
30031
  },
30021
30032
  //#endregion
30033
+ //#region ---- Published Meetings ----
30034
+ {
30035
+ id: AXPDataGenerator.uuid(),
30036
+ title: 'Monthly All-Hands Meeting',
30037
+ meetingNotes: 'Company-wide monthly meeting to discuss company updates, achievements, and upcoming initiatives. All employees are invited to attend.',
30038
+ meetingType: {
30039
+ id: meetingTypeMock[6].id,
30040
+ title: meetingTypeMock[6].title
30041
+ },
30042
+ meetingProviderType: 'Online',
30043
+ joinUrl: 'https://teams.microsoft.com/l/meetup-join/19:meeting_abc123',
30044
+ hostUrl: 'https://teams.microsoft.com/l/meetup-join/19:meeting_abc123?role=1',
30045
+ isRecorded: true,
30046
+ setInGoogleCalendar: true,
30047
+ meetingStatusId: MEETING_STATUS_DEFINITIONS[5].name,
30048
+ meetingStatus: { id: MEETING_STATUS_DEFINITIONS[5].name, title: MEETING_STATUS_DEFINITIONS[5].title },
30049
+ isFullysignedOff: false,
30050
+ meetingLocationId: {
30051
+ id: locationMock[0].id,
30052
+ title: locationMock[0].title
30053
+ }
30054
+ },
30055
+ //#endregion
30022
30056
  ];
30023
30057
 
30024
30058
  class AXMMeetingDataSeeder {
@@ -30075,7 +30109,7 @@ const meetingRoleTypeMock = [
30075
30109
  },
30076
30110
  {
30077
30111
  id: AXPDataGenerator.uuid(),
30078
- title: 'Observer',
30112
+ title: 'Attendie',
30079
30113
  meetingParticipantId: participantIds.participant5,
30080
30114
  },
30081
30115
  // {
@@ -30128,21 +30162,30 @@ const meetingRoleTypeMock = [
30128
30162
  // },
30129
30163
  ];
30130
30164
 
30165
+ //#region ---- Participant Status Definitions ----
30166
+ const PARTICIPANT_STATUS_DEFINITIONS = [
30167
+ { name: 'absent', title: 'Absent' },
30168
+ { name: 'present', title: 'Present' },
30169
+ { name: 'accept', title: 'Accept' },
30170
+ { name: 'decline', title: 'Decline' },
30171
+ ];
30172
+ //#endregion
30131
30173
  const meetingParticipantMock = [
30132
30174
  //#region ---- Daily Standup 1 Participants ----
30133
30175
  // Organizer - Sarah Johnson (Project Manager)
30134
30176
  {
30135
30177
  id: participantIds.participant1,
30136
30178
  meetingId: meetingIds.dailyStandup1,
30137
- userId: {
30138
- id: mockUsers[0].id,
30139
- title: mockUsers[0].displayName
30179
+ employeeId: {
30180
+ id: EMPLOYEES_MOCK[0].id,
30181
+ title: EMPLOYEES_MOCK[0].party.displayName
30140
30182
  },
30141
30183
  jointime: new Date('2024-01-15T09:00:00'),
30142
30184
  leaveTime: new Date('2024-01-15T09:15:00'),
30143
30185
  duration: 15, // minutes
30144
30186
  signOffAt: new Date('2024-01-15T09:15:00'),
30145
- participantStatus: 'Present',
30187
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[1].name,
30188
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[1].name, title: PARTICIPANT_STATUS_DEFINITIONS[1].title },
30146
30189
  meetingRoleTypeIds: {
30147
30190
  id: meetingRoleTypeMock[0].id,
30148
30191
  title: meetingRoleTypeMock[0].title
@@ -30152,15 +30195,16 @@ const meetingParticipantMock = [
30152
30195
  {
30153
30196
  id: participantIds.participant2,
30154
30197
  meetingId: meetingIds.dailyStandup1,
30155
- userId: {
30156
- id: mockUsers[1].id,
30157
- title: mockUsers[1].displayName
30198
+ employeeId: {
30199
+ id: EMPLOYEES_MOCK[1].id,
30200
+ title: EMPLOYEES_MOCK[1].party.displayName
30158
30201
  },
30159
30202
  jointime: new Date('2024-01-15T09:01:00'),
30160
30203
  leaveTime: new Date('2024-01-15T09:15:00'),
30161
30204
  duration: 14, // minutes
30162
30205
  signOffAt: new Date('2024-01-15T09:15:00'),
30163
- participantStatus: 'Present',
30206
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[2].name,
30207
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[2].name, title: PARTICIPANT_STATUS_DEFINITIONS[2].title },
30164
30208
  meetingRoleTypeIds: {
30165
30209
  id: meetingRoleTypeMock[1].id,
30166
30210
  title: meetingRoleTypeMock[1].title
@@ -30170,15 +30214,16 @@ const meetingParticipantMock = [
30170
30214
  {
30171
30215
  id: participantIds.participant3,
30172
30216
  meetingId: meetingIds.dailyStandup1,
30173
- userId: {
30174
- id: mockUsers[2].id,
30175
- title: mockUsers[2].displayName
30217
+ employeeId: {
30218
+ id: EMPLOYEES_MOCK[2].id,
30219
+ title: EMPLOYEES_MOCK[2].party.displayName
30176
30220
  },
30177
30221
  jointime: new Date('2024-01-15T09:02:00'),
30178
30222
  leaveTime: new Date('2024-01-15T09:14:00'),
30179
30223
  duration: 12, // minutes
30180
30224
  signOffAt: new Date('2024-01-15T09:14:00'),
30181
- participantStatus: 'Present',
30225
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[1].name,
30226
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[1].name, title: PARTICIPANT_STATUS_DEFINITIONS[1].title },
30182
30227
  meetingRoleTypeIds: {
30183
30228
  id: meetingRoleTypeMock[2].id,
30184
30229
  title: meetingRoleTypeMock[2].title
@@ -30190,15 +30235,16 @@ const meetingParticipantMock = [
30190
30235
  {
30191
30236
  id: participantIds.participant4,
30192
30237
  meetingId: meetingIds.dailyStandup2,
30193
- userId: {
30194
- id: mockUsers[3].id,
30195
- title: mockUsers[3].displayName
30238
+ employeeId: {
30239
+ id: EMPLOYEES_MOCK[3].id,
30240
+ title: EMPLOYEES_MOCK[3].party.displayName
30196
30241
  },
30197
30242
  jointime: new Date('2024-01-16T10:00:00'),
30198
30243
  leaveTime: null, // Still in meeting
30199
30244
  duration: 0, // Still ongoing
30200
30245
  signOffAt: null,
30201
- participantStatus: 'Present',
30246
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[1].name,
30247
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[1].name, title: PARTICIPANT_STATUS_DEFINITIONS[1].title },
30202
30248
  meetingRoleTypeIds: {
30203
30249
  id: meetingRoleTypeMock[3].id,
30204
30250
  title: meetingRoleTypeMock[3].title
@@ -30208,15 +30254,16 @@ const meetingParticipantMock = [
30208
30254
  {
30209
30255
  id: participantIds.participant5,
30210
30256
  meetingId: meetingIds.dailyStandup2,
30211
- userId: {
30212
- id: mockUsers[4].id,
30213
- title: mockUsers[4].displayName
30257
+ employeeId: {
30258
+ id: EMPLOYEES_MOCK[4].id,
30259
+ title: EMPLOYEES_MOCK[4].party.displayName
30214
30260
  },
30215
30261
  jointime: new Date('2024-01-16T10:01:00'),
30216
30262
  leaveTime: null, // Still in meeting
30217
30263
  duration: 0, // Still ongoing
30218
30264
  signOffAt: null,
30219
- participantStatus: 'Present',
30265
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[1].name,
30266
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[1].name, title: PARTICIPANT_STATUS_DEFINITIONS[1].title },
30220
30267
  meetingRoleTypeIds: {
30221
30268
  id: meetingRoleTypeMock[4].id,
30222
30269
  title: meetingRoleTypeMock[4].title
@@ -30228,15 +30275,16 @@ const meetingParticipantMock = [
30228
30275
  {
30229
30276
  id: participantIds.participant6,
30230
30277
  meetingId: meetingIds.projectReview1,
30231
- userId: {
30232
- id: mockUsers[5].id,
30233
- title: mockUsers[5].displayName
30278
+ employeeId: {
30279
+ id: EMPLOYEES_MOCK[5].id,
30280
+ title: EMPLOYEES_MOCK[5].party.displayName
30234
30281
  },
30235
30282
  jointime: new Date('2024-01-18T14:00:00'),
30236
30283
  leaveTime: new Date('2024-01-18T15:30:00'),
30237
30284
  duration: 90, // minutes
30238
30285
  signOffAt: new Date('2024-01-18T15:30:00'),
30239
- participantStatus: 'Left',
30286
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[0].name,
30287
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[0].name, title: PARTICIPANT_STATUS_DEFINITIONS[0].title },
30240
30288
  meetingRoleTypeIds: {
30241
30289
  id: meetingRoleTypeMock[5].id,
30242
30290
  title: meetingRoleTypeMock[5].title
@@ -30246,15 +30294,16 @@ const meetingParticipantMock = [
30246
30294
  {
30247
30295
  id: participantIds.participant7,
30248
30296
  meetingId: meetingIds.projectReview1,
30249
- userId: {
30250
- id: mockUsers[6].id,
30251
- title: mockUsers[6].displayName
30297
+ employeeId: {
30298
+ id: EMPLOYEES_MOCK[6].id,
30299
+ title: EMPLOYEES_MOCK[6].party.displayName
30252
30300
  },
30253
30301
  jointime: new Date('2024-01-18T14:00:00'),
30254
30302
  leaveTime: new Date('2024-01-18T15:30:00'),
30255
30303
  duration: 90, // minutes
30256
30304
  signOffAt: new Date('2024-01-18T15:30:00'),
30257
- participantStatus: 'Left',
30305
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[0].name,
30306
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[0].name, title: PARTICIPANT_STATUS_DEFINITIONS[0].title },
30258
30307
  meetingRoleTypeIds: {
30259
30308
  id: meetingRoleTypeMock[4].id,
30260
30309
  title: meetingRoleTypeMock[4].title
@@ -30264,15 +30313,16 @@ const meetingParticipantMock = [
30264
30313
  {
30265
30314
  id: participantIds.participant8,
30266
30315
  meetingId: meetingIds.projectReview1,
30267
- userId: {
30268
- id: mockUsers[7].id,
30269
- title: mockUsers[7].displayName
30316
+ employeeId: {
30317
+ id: EMPLOYEES_MOCK[7].id,
30318
+ title: EMPLOYEES_MOCK[7].party.displayName
30270
30319
  },
30271
30320
  jointime: new Date('2024-01-18T14:02:00'),
30272
30321
  leaveTime: new Date('2024-01-18T15:28:00'),
30273
30322
  duration: 86, // minutes
30274
30323
  signOffAt: new Date('2024-01-18T15:28:00'),
30275
- participantStatus: 'Left',
30324
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[0].name,
30325
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[0].name, title: PARTICIPANT_STATUS_DEFINITIONS[0].title },
30276
30326
  meetingRoleTypeIds: {
30277
30327
  id: meetingRoleTypeMock[5].id,
30278
30328
  title: meetingRoleTypeMock[5].title
@@ -30282,15 +30332,16 @@ const meetingParticipantMock = [
30282
30332
  {
30283
30333
  id: participantIds.participant9,
30284
30334
  meetingId: meetingIds.projectReview1,
30285
- userId: {
30286
- id: mockUsers[8].id,
30287
- title: mockUsers[8].displayName
30335
+ employeeId: {
30336
+ id: EMPLOYEES_MOCK[8].id,
30337
+ title: EMPLOYEES_MOCK[8].party.displayName
30288
30338
  },
30289
30339
  jointime: new Date('2024-01-18T14:15:00'),
30290
30340
  leaveTime: new Date('2024-01-18T15:30:00'),
30291
30341
  duration: 75, // minutes
30292
30342
  signOffAt: new Date('2024-01-18T15:30:00'),
30293
- participantStatus: 'Left',
30343
+ participantStatusId: PARTICIPANT_STATUS_DEFINITIONS[0].name,
30344
+ participantStatus: { id: PARTICIPANT_STATUS_DEFINITIONS[0].name, title: PARTICIPANT_STATUS_DEFINITIONS[0].title },
30294
30345
  meetingRoleTypeIds: {
30295
30346
  id: meetingRoleTypeMock[3].id,
30296
30347
  title: meetingRoleTypeMock[3].title