feat: Add hideCalendarEventDetails option to event types (#16817)
* Add `hideCalendarEventDetails` to DB Co-authored-by: Alex van Andel <[email protected]> * Add option to hide calendar event details * Pass `hideCalendarEventDetails` to event object * Add to API * Add to CalendarEvent class * Pass `hideCalendarEventDetails` to calendar services * Adjust test * fix: move `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14` and remove from older versions - Added `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14` - Removed `hideCalendarEventDetails` from `api/v1` and `api/v2/event-types_2024_04_15` * fix: calEventRaw is undefined (use event instead) * chore: Remove debug artifact * fix: description id + update to copy * fix: Attempt at fixing type error * Add hideCalendarEventDetails to test builder --------- Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Somay Chauhan <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
29 files changed
+93
-5
No files matched your search
@@ -79,6 +79,7 @@ export const useEventTypeForm = ({
|
||||
endDate: periodDates.endDate,
|
||||
},
|
||||
hideCalendarNotes: eventType.hideCalendarNotes,
|
||||
hideCalendarEventDetails: eventType.hideCalendarEventDetails,
|
||||
offsetStart: eventType.offsetStart,
|
||||
bookingFields: eventType.bookingFields,
|
||||
periodType: eventType.periodType,
|
||||
|
||||
+4
@@ -290,6 +290,10 @@ export class CreateEventTypeInput_2024_06_14 {
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
useDestinationCalendarEmail?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
hideCalendarEventDetails?: boolean;
|
||||
}
|
||||
|
||||
export enum HostPriority {
|
||||
|
||||
+4
@@ -282,6 +282,10 @@ export class UpdateEventTypeInput_2024_06_14 {
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
useDestinationCalendarEmail?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
hideCalendarEventDetails?: boolean;
|
||||
}
|
||||
|
||||
@ApiExtraModels(
|
||||
|
||||
+10
@@ -333,6 +333,11 @@ class BaseEventTypeOutput_2024_06_14 {
|
||||
@IsBoolean()
|
||||
@DocsProperty()
|
||||
useDestinationCalendarEmail?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
@DocsProperty()
|
||||
hideCalendarEventDetails?: boolean;
|
||||
}
|
||||
|
||||
export class TeamEventTypeResponseHost extends TeamEventTypeHostInput {
|
||||
@@ -385,4 +390,9 @@ export class TeamEventTypeOutput_2024_06_14 extends BaseEventTypeOutput_2024_06_
|
||||
@IsEnum(SchedulingTypeEnum)
|
||||
@DocsProperty({ enum: SchedulingTypeEnum })
|
||||
schedulingType!: EventTypesOutputSchedulingType | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
@DocsProperty()
|
||||
hideCalendarEventDetails?: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user