Skip to content

Commit f2bf2c8

Browse files
committed
feat: meetings implementation
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent ea73a87 commit f2bf2c8

7 files changed

Lines changed: 20 additions & 0 deletions

File tree

backend/src/database/migrations/U1775219382__addMeetingsActivityTypes.sql

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
INSERT INTO "activityTypes" ("activityType", platform, "isCodeContribution", "isCollaboration", description, "label") VALUES
2+
('invited-meeting', 'meetings', false, false, 'User is invited to a meeting', 'Invited to a meeting'),
3+
('attended-meeting', 'meetings', false, false, 'User attends a meeting', 'Attended a meeting');

services/libs/data-access-layer/src/organizations/attributesConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export const ORG_DB_ATTRIBUTE_SOURCE_PRIORITY = [
233233
OrganizationAttributeSource.ENRICHMENT_PEOPLEDATALABS,
234234
OrganizationAttributeSource.CVENT,
235235
OrganizationAttributeSource.TNC,
236+
OrganizationAttributeSource.MEETINGS,
236237
// legacy - keeping this for backward compatibility
237238
OrganizationAttributeSource.ENRICHMENT,
238239
OrganizationAttributeSource.GITHUB,

services/libs/integrations/src/integrations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ export * from './cvent/types'
5252

5353
export * from './tnc/types'
5454

55+
export * from './meetings/types'
56+
5557
export * from './activityDisplayService'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { IActivityScoringGrid } from '@crowd/types'
2+
3+
export enum MeetingsActivityType {
4+
INVITED_MEETING = 'invited-meeting',
5+
ATTENDED_MEETING = 'attended-meeting',
6+
}
7+
8+
export const MEETINGS_GRID: Record<MeetingsActivityType, IActivityScoringGrid> = {
9+
[MeetingsActivityType.INVITED_MEETING]: { score: 1 },
10+
[MeetingsActivityType.ATTENDED_MEETING]: { score: 1 },
11+
}

services/libs/types/src/enums/organizations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export enum OrganizationSource {
1414
UI = 'ui',
1515
CVENT = 'cvent',
1616
TNC = 'tnc',
17+
MEETINGS = 'meetings',
1718
}
1819

1920
export enum OrganizationMergeSuggestionType {
@@ -42,6 +43,7 @@ export enum OrganizationAttributeSource {
4243
ENRICHMENT_PEOPLEDATALABS = 'enrichment-peopledatalabs',
4344
CVENT = 'cvent',
4445
TNC = 'tnc',
46+
MEETINGS = 'meetings',
4547
// legacy - keeping this for backward compatibility
4648
ENRICHMENT = 'enrichment',
4749
GITHUB = 'github',

services/libs/types/src/enums/platforms.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export enum PlatformType {
2626
LFID = 'lfid',
2727
CVENT = 'cvent',
2828
TNC = 'tnc',
29+
MEETINGS = 'meetings',
2930
GITLAB = 'gitlab',
3031
FACEBOOK = 'facebook',
3132
OTHER = 'other',

0 commit comments

Comments
 (0)