1 import type { InternalEventBusInterface } from '@proton/docs-shared'
2 import type { SquashVerificationObjectionDecision } from '../Types/SquashVerificationObjection'
4 export enum ApplicationEvent {
5 SquashVerificationObjectionDecisionMade = 'SquashVerificationObjectionDecisionMade',
6 GeneralUserDisplayableErrorOccurred = 'GeneralUserDisplayableErrorOccurred',
9 export type DocsClientSquashVerificationObjectionMadePayload = {
10 decision: SquashVerificationObjectionDecision
13 export type GeneralUserDisplayableErrorOccurredPayload = {
14 translatedError: string
15 translatedErrorTitle?: string
16 /** If true, the UI will be destroyed and only this error will be shown */
17 irrecoverable?: boolean
21 export function PostApplicationError(
22 eventBus: InternalEventBusInterface,
23 params: GeneralUserDisplayableErrorOccurredPayload,
26 type: ApplicationEvent.GeneralUserDisplayableErrorOccurred,