This commit is contained in:
2025-08-31 23:27:52 -04:00
parent 23dfc171b8
commit 40f8780dec
27 changed files with 24228 additions and 0 deletions

View 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;
};

View File

@ -0,0 +1,37 @@
export declare const ValidationPatterns: {
email: RegExp;
url: RegExp;
duration: RegExp;
token: RegExp;
appId: RegExp;
uuid: RegExp;
};
export declare const ValidationMessages: {
required: (fieldName: string) => string;
email: string;
url: string;
duration: string;
minLength: (fieldName: string, minLength: number) => string;
maxLength: (fieldName: string, maxLength: number) => string;
pattern: (fieldName: string) => string;
token: string;
appId: string;
uuid: string;
positiveNumber: string;
range: (fieldName: string, min: number, max: number) => string;
};
export declare const validateRequired: (value: any) => string | null;
export declare const validateEmail: (value: string) => string | null;
export declare const validateUrl: (value: string) => string | null;
export declare const validateDuration: (value: string) => string | null;
export declare const validateMinLength: (value: string, minLength: number, fieldName?: string) => string | null;
export declare const validateMaxLength: (value: string, maxLength: number, fieldName?: string) => string | null;
export declare const validatePattern: (value: string, pattern: RegExp, fieldName?: string) => string | null;
export declare const validateRange: (value: number, min: number, max: number, fieldName?: string) => string | null;
export declare const validateAppId: (value: string) => string | null;
export declare const validateToken: (value: string) => string | null;
export declare const validateUuid: (value: string) => string | null;
export declare const validateJsonString: (value: string) => string | null;
export declare const parseDuration: (duration: string) => number;
export declare const formatDuration: (seconds: number) => string;
export declare const combineValidators: (...validators: Array<(value: any) => string | null>) => (value: any) => string | null;