4506 change field labels and field type for calendarevent object metadata to match figma (#4679)

* update calendarEvent labels and description to match Figma

* modify conferenceUri to conferenceLink with LINK type

* update format-google-calendar-event.util to match new conferenceLink

* update CalendarEventDetails since overriding the fields is no longer needed

* fix mock metadata

* generate new uuid for field conferenceLink
This commit is contained in:
bosiraphael
2024-03-27 15:17:45 +01:00
committed by GitHub
parent 2ffe519478
commit 416eb1eafd
14 changed files with 179 additions and 55 deletions

View File

@ -12,6 +12,15 @@ registerEnumType(TimelineCalendarEventVisibility, {
description: 'Visibility of the calendar event',
});
@ObjectType('LinkMetadata')
export class LinkMetadata {
@Field()
label: string;
@Field()
url: string;
}
@ObjectType('TimelineCalendarEvent')
export class TimelineCalendarEvent {
@Field(() => ID)
@ -41,8 +50,8 @@ export class TimelineCalendarEvent {
@Field()
conferenceSolution: string;
@Field()
conferenceUri: string;
@Field(() => LinkMetadata)
conferenceLink: LinkMetadata;
@Field(() => [TimelineCalendarEventAttendee])
attendees: TimelineCalendarEventAttendee[];

View File

@ -214,7 +214,8 @@ export class TimelineCalendarEventService {
event.description = '';
event.location = '';
event.conferenceSolution = '';
event.conferenceUri = '';
event.conferenceLink.label = '';
event.conferenceLink.url = '';
}
});

View File

@ -94,7 +94,7 @@ export const calendarEventStandardFieldIds = {
location: '20202020-641a-4ffe-960d-c3c186d95b17',
iCalUID: '20202020-f24b-45f4-b6a3-d2f9fcb98714',
conferenceSolution: '20202020-1c3f-4b5a-b526-5411a82179eb',
conferenceUri: '20202020-0fc5-490a-871a-2df8a45ab46c',
conferenceLink: '20202020-35da-43ef-9ca0-e936e9dc237b',
recurringEventExternalId: '20202020-4b96-43d0-8156-4c7a9717635c',
calendarChannelEventAssociations: '20202020-bdf8-4572-a2cc-ecbb6bcc3a02',
eventAttendees: '20202020-e07e-4ccb-88f5-6f3d00458eec',