decent
This commit is contained in:
37
web-components/dist/utils/notifications.d.ts
vendored
Normal file
37
web-components/dist/utils/notifications.d.ts
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user