17 use EventSubscriberResponseTrait;
18 use CalendarEventSubscriberTrait;
28 $calendarEvent = $this->getCalendarEvent(
$event);
31 return $this->makeUndefinedResponse();
36 $calendarEvent->getSpecialLabel(),
38 Dictionary::EVENT_TYPE[
'collab'],
39 Dictionary::EVENT_TYPE[
'shared_collab']
45 return $this->makeSuccessResponse();
49 $command =
$event->getParameter(
'command');
50 $collabId = $calendarEvent->getSection()->getOwner()?->getId();
57 Analytics::getInstance()->onEventCreate(
59 subSection: $command->getAnalyticsSubSection(),
62 chatId: $command->getAnalyticsChatId(),
65 return $this->makeSuccessResponse();
71 AfterCalendarEventCreated::class,