Files
skybridge/web-components/dist/utils/notifications.d.ts
2025-08-31 23:27:52 -04:00

38 lines
1.6 KiB
TypeScript

export declare const showSuccessNotification: (message: string, title?: string) => void;
export declare const showErrorNotification: (message: string, title?: string) => void;
export declare const showWarningNotification: (message: string, title?: string) => void;
export declare const showInfoNotification: (message: string, title?: string) => void;
export declare const NotificationMessages: {
createSuccess: (entityName: string) => string;
updateSuccess: (entityName: string) => string;
deleteSuccess: (entityName: string) => string;
createError: (entityName: string) => string;
updateError: (entityName: string) => string;
deleteError: (entityName: string) => string;
loadError: (entityName: string) => string;
networkError: string;
validationError: string;
requiredFieldError: (fieldName: string) => string;
authRequired: string;
permissionDenied: string;
sessionExpired: string;
applicationCreated: string;
applicationUpdated: string;
applicationDeleted: string;
tokenCreated: string;
tokenRevoked: string;
userCreated: string;
userUpdated: string;
userDeleted: string;
functionCreated: string;
functionUpdated: string;
functionDeleted: string;
executionStarted: string;
executionCompleted: string;
executionFailed: string;
};
export declare const showCrudNotification: {
success: (operation: "create" | "update" | "delete", entityName: string) => void;
error: (operation: "create" | "update" | "delete" | "load", entityName: string, customMessage?: string) => void;
};