Files
calendar/packages/types/Event.d.ts
T
417acdaacb fix: Improves dialog window that appears when there is no availability in a month. Adding a description to clarify limits when rolling or range period types are in use. (#20451)
* init

* updated typing, english localization text, used existing calculatePeriodLimits and isTimeViolatingFutureLimit to determine if go to next month button should be disabled

* improving copy

* semantic dialog heading tag, proper EN localization,

* reverting

* force local to origin

* Translations by LLM

* intit tests

* moving NoAvailability to its own file.

* refactor overlay component to encpsulate logic in hooks

* improved tests

* remove unintended change

* fix: period data type import. Providing default periodData values

* fix: type errors on event object

* fix: updates case in type import

* removing translations

* remove unnecessary import

* remove unnecessary import

* improving mocks for booker and logger

* moving tests to __tests__ folder

---------

Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com>
2025-04-15 23:46:01 +05:30

13 lines
486 B
TypeScript

import type { EventType } from "@calcom/prisma/client";
import type { NewCalendarEventType, AdditionalInformation } from "@calcom/types/Calendar";
import type { CrmData } from "./CrmService";
import type { VideoCallData } from "./VideoApiAdapter";
export type Event = AdditionalInformation | NewCalendarEventType | VideoCallData | CrmData;
export type PeriodData = Pick<
EventType,
"periodType" | "periodStartDate" | "periodEndDate" | "periodDays" | "periodCountCalendarDays"
>;