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 = '';
}
});