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;
|
||||
};
|
||||
37
web-components/dist/utils/validation.d.ts
vendored
Normal file
37
web-components/dist/utils/validation.d.ts
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user