1 import type { EVENT_ACTIONS } from '@proton/shared/lib/constants';
2 import type { EVENT_TYPES } from '@proton/shared/lib/drive/constants';
4 import type { EncryptedLink } from '../_links';
6 export type EventHandler = (
9 processedEventCounter: (eventId: string, event: DriveEvent) => void
10 ) => Promise<void> | void;
12 export interface DriveEvents {
18 export type DriveEvent = {
19 eventType: EVENT_TYPES;
20 encryptedLink: EncryptedLink;
21 data?: DriveEventData;
22 originShareId?: string;
25 type DriveEventData = {
26 externalInvitationSignup?: string;
29 export type DriveCoreEvent = {
31 Action: EVENT_ACTIONS;